drivers/at86rf2xx: use luid_get_eui64() / luid_get_short()#13362
drivers/at86rf2xx: use luid_get_eui64() / luid_get_short()#13362aabadie merged 1 commit intoRIOT-OS:masterfrom
Conversation
Use dedicated helper functions to generate long and short address. Maybe fixes RIOT-OS#13358
|
I'm trying this PR on several samr21-xpro and iotlab-m3. On samr21-xpro, it doesn't really help, there are still collisions: On the M3, the problem remains the same, the numbers are just different: |
|
@aabadie have you looked at the short address? The last part of the long address isn't a problem, if the short address is not derived from it. |
|
Those are just the long addresses and I don't see any collisions - what about the short addresses? |
|
I think I don't know what a short address is then ;) I'm using |
It's right there. |
oups! |
|
Ok, it's much better with this PR on the M3 (on master the problem is really there): So I'd say this PR improves the situation. |
|
Does it solve the issue for you? @benpicco also has an open PR that allows to do proper management of L2 addresses. This could be used to e.g. load the L2 addresses from EEPROM. E.g. this is what we plan to do in our testbed to guarantee that all L2 addresses (including the short IEEE 802.15.4 addresses) are unique within the testbed. That PR could also be of interest for you. |
|
Still not quite sure why it only "improves" the situation and not fixes your issue though. :-/ |
|
I'm still wondering why 44bit of the long address are still the same across devices. |
It indeed fixes my problem: I couldn't see any collision with the short address (only tested on 10 M3 though). |
|
I guess that counts as tested? So ACK? |
aabadie
left a comment
There was a problem hiding this comment.
I guess that counts as tested? So ACK?
ACK
Contribution description
Use dedicated helper functions to generate long and short address.
luid_get_short()will use the 'next' pseudo-random luid instead of re-using the previous one, so this might alleviate the address collisions observed in #13358Testing procedure
samr21-xpro)Issues/PRs references
Maybe fixes #13358