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

CMD mode #4

Open
bitcraze-issue-importer opened this issue Feb 11, 2014 · 1 comment
Open

CMD mode #4

bitcraze-issue-importer opened this issue Feb 11, 2014 · 1 comment

Comments

@bitcraze-issue-importer

Add ways to control settings of the dongle via the data bulk endpoint.

Currently settings are set with USB control message which limits the speed at witch settings can be changed and so limits the possibility of real-time channel hopping algorithm.


@whoenig
Copy link
Contributor

whoenig commented May 4, 2016

The idea I had is the following:

  • Have a fixed number of "configurations" (e.g. 8). Each configuration is a combination of settings: configuration=channel,address,data_rate,radio_power,radio_ard,radio_arc,ack_enable. So the configuration is a struct, and we have a fixed-size array of them.
  • During configuration, we add a "configuration index", for example SET_RADIO_CHANNEL(0,100) means set the channel to 100 for configuration0. This is the same as setting a field in a struct.
  • Bulk mode now is a struct as well with the first byte being the configuration index, and the following bytes are the data which the user wants to send. The radio will a) check if it in the requested configuration already (if not, switch to the new configuration); b) send data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants