Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiradio support #319

Merged
merged 32 commits into from
Nov 1, 2023
Merged

Multiradio support #319

merged 32 commits into from
Nov 1, 2023

Conversation

joenpera
Copy link
Contributor

@joenpera joenpera commented Oct 9, 2023

Implements messaging interface for Multiradio control.

Jira-Id: SPSI-43

joenpera and others added 29 commits October 5, 2023 15:05
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
- multiwifi currently supported

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
- Bridge config now taken from configuration message.
- Also some other hardcoded values removed.
- killall calls removed

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
- comms_status.py - status handling rework
- comms_nats_controller.py - refactoring status instance handling
- comms_settings.py - save/load fixes

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Some fixes after testing commit done so far.

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
- radio index used now widely
- sorting radio config by index when settings received
- default_mesh checks removed as not needed in a logic

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id:SCDI-61

Signed-off-by: pemanty <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-ID: WC-247
entrypoint_nats waits for init_halow process to finish
before generating bridge ip and continuing to start mesh.

Signed-off-by: Saku Auvinen <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
- Alfred now start with own init.d
- all configs done with based on the wifi interface name and
  phy is detected.

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
- UnitTests now supports multiradio
- bug found and fixed from comms_settings

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: WC-260

Signed-off-by: pemanty <[email protected]>
- br_lan_ip -> bridge_ip as bridge name can change
- comms_settings.py fail case fixes

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
- Changes channel to requested frequency without any
  extra acks.

Jira-Id: 43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: WC-262

Signed-off-by: pemanty <[email protected]>
Jira-ID: WC-248
GET_IDENTITY response contains now list of wireless interfaces that
can be controlled via CommsController. Affected code is refactored with
black tool using -l 79 option to comply with pep8 rules. Type annotations
has been changed also to compatible with mypy tool.

Signed-off-by: Saku Auvinen <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
@joenpera joenpera requested a review from saauvine October 31, 2023 08:01
@joenpera joenpera changed the title WIP: Multiradio support Multiradio support Oct 31, 2023
@joenpera joenpera self-assigned this Oct 31, 2023
Copy link
Contributor

@TIISR TIISR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First batch, will try to continue later

common/scripts/mesh-helper.sh Outdated Show resolved Hide resolved
common/scripts/mesh-helper.sh Show resolved Hide resolved
common/scripts/mesh-helper.sh Outdated Show resolved Hide resolved
common/scripts/mesh-helper.sh Show resolved Hide resolved
common/scripts/mesh-helper.sh Show resolved Hide resolved
common/scripts/mesh-helper.sh Show resolved Hide resolved
Copy link
Contributor

@TIISR TIISR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Written in a hurry, apologies if anything sounds harsh as it is not at all how I mean all this :)

- identity file deleted from test codes under nats/scripts
- /sys/class/net/<interface>/address used to get MAC address instead of
  complex grep/awk/print
- max_recon_attempts renamed to max_reconnection_attempts from test codes
  under nats/scripts

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
Copy link
Contributor

@TIISR TIISR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if my comments get stuck as Pending again unless I do this

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
- generate_bridge_ip renamed to generate_lan_bridge_ip

Jira-Id: SCDI-43

Signed-off-by: Mika Joenpera <[email protected]>
@joenpera joenpera merged commit 50b5c52 into develop Nov 1, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants