-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add support for continuous scan mode #52
Conversation
@@ -243,6 +243,10 @@ def open_channel(self, channel): | |||
message = Message(Message.ID.OPEN_CHANNEL, [channel]) | |||
self.write_message(message) | |||
|
|||
def open_rx_scan_mode(self,channel,syncmsgsonly): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I see in the documentation, its not actually a channel parameter. Marked as fillet, but is weirdly present in the api as a parameter.
Seems to only be available on channel 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to only be available on channel 0.
Yes, Documentation says:
Execution of this command causes channel 0 to commence operation in continuous scanning mode.
Channel 0 should have been previously assigned and configured as a slave receive channel.
In this mode no other channels may operate when the node is in continuous scanning mode.
@@ -67,6 +67,10 @@ def open(self): | |||
self._ant.open_channel(self.id) | |||
return self.wait_for_response(Message.ID.OPEN_CHANNEL) | |||
|
|||
def open_rx_scan_mode(self, syncmsgsonly): | |||
self._ant.open_rx_scan_mode(self.id,syncmsgsonly) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably throw an error if we arr not on channel 0.
This pull request could be closed now, as PullRequest: #54 is merged and include this also. |
See paragraph 9.5.4.5 Open Rx Scan Mode of ANT Message Protocol