-
Notifications
You must be signed in to change notification settings - Fork 95
Route hops order in create_source_route
vs CreateSourceRoutePacket
vs XBee User Guide
#278
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
Labels
Comments
Hi @bennevados, Keep in mind that:
Best Regards |
Just to address all of your points:
Based on my answers above (specifically point 3), I still believe there is an issue with this library's implementation. |
tatianaleon
added a commit
that referenced
this issue
Aug 17, 2022
…packet 'Create Source Route' packet (0x21) must include the hops to a destination node from closest node to destination to closest neighbor to source. See: https://www.digi.com/resources/documentation/digidocs/90001539/#reference/r_frame_0x21.htm #278 Signed-off-by: Tatiana Leon <[email protected]>
Hi @bennevados, Issue solved in commit 0cb53bd. This fix will be included in the next release. Thanks for reporting. |
Thank you, @tatianaleon! That was very fast. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the documentation for
ZigBeeDevice.create_source_route(..)
:In the documentation for
CreateSourceRoutePacket.__init__(..)
:In the documentation for Create Source Route - 0x21 in the XBee User Guide:
As far as I can tell:
ZigBeeDevice.create_source_route(..)
, the hops are passed in order toCreateSourceRoutePacket.__init__(..)
.CreateSourceRoutePacket
, the hops are packed in order into a 0x21 frame.I have tested this by creating a source route and then sending a request for a DB. When I send with a destination to source order, contrary to the documentation, the packet has a signal strength that corresponds to the last hop as expected. When I send with a source to destination order, the packet has a signal strength that corresponds to the first hop even though the DB would return the signal strength of the last hop suggesting that the request took the reversed path.
Note that in
XBeeDevice.__route_record_callback(..)
, the list is specifically reversed, so that looks OK.The text was updated successfully, but these errors were encountered: