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

VN: Add validation to initialization configuration commands #27437

Closed
wants to merge 3 commits into from

Conversation

lashVN
Copy link
Contributor

@lashVN lashVN commented Jul 3, 2024

Currently, all configuration commands sent to the VN unit are not validated for a response, leading to difficult-to-diagnose errors when a command doesn't go through or is rejected by the VN. All commands send to the unit (particularly setup commands) should have their acceptance confirmation checked before the driver begins to use the data.

@lashVN lashVN marked this pull request as draft July 3, 2024 01:03
@lashVN
Copy link
Contributor Author

lashVN commented Jul 3, 2024

The last commit is purely cosmetic, it looked like styling was inconsistent so I ran clang-format on the files. I couldn't find the file recommended or used project-wide, so I took my best guess based on looking through the code and style guide.

Let me know if these were incorrect

@lashVN
Copy link
Contributor Author

lashVN commented Jul 3, 2024

@IamPete1

These changes are built upon PR #27285 , so I expect the first few commits which are contained within this PR (and resultant diffs) will be removed when that is merged. If not, I'll remove them after merge.

Otherwise, I've tested these changes for successful arming of a AP connected to a VN, so this should be ready for review.

@lashVN lashVN marked this pull request as ready for review July 3, 2024 02:07
Expands wait_register_response (and renames to send_command_blocking)
to accept any arbitrary command, and uses the new method for all sent
commands
…her than just active port

This change prevents a commonly seen baudrate overflow error on the unused port.
Also pause asynchronous communications during initial configuration.
Non-functional changes, purely cosmetic.
@lashVN lashVN closed this Jul 5, 2024
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.

None yet

1 participant