-
Notifications
You must be signed in to change notification settings - Fork 2k
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
xbee: fixed several bugs (backport) #5345
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Destination address is at tx_buf[5] and tx_buf[6] rather than tx_buf[4] and tx_buf[5]. Broadcast header is overridden by following code mistakenly.
XBee supports channels 0x0B-0x1A while XBee-PRO supports only 0x0C-0x17.
XBee sends short address even for `API_ID_TX_LONG_ADDR` if short address is enabled. This results in check sum error of ICMPv6 since the IP address is computed based on long address on the sender side while it is computed based on short address on the receiver side.
`_set_addr` is called from `xbee_init` with lower bytes of the long address. If `_set_addr` destructs the given address, the long address is also destructed.
When debugging multihop wireless network, it is useful to emulate non-transitive network, that is, node A can communicate with B and B can communicate with C, but A cannot communicate with C directly. If `XBEE_DENIED_ADDRESSES`, which is an array of XBee long addresses, is defined, packets from those addresses are dropped silently. Example: CFLAGS += "-DXBEE_DENIED_ADDRESSES={ 0x02, 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0x02, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11 }"
re-ACK |
CI not available so go! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: drivers
Area: Device drivers
Area: network
Area: Networking
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport to #4445