Hello, I'm trying to make two nRF52832 connect to each other on their own. Currently, it seems that the ble addresses are reversed when printed by ble_gap_addr_print in different parts of the program.
What would cause this?
Hello, I'm trying to make two nRF52832 connect to each other on their own. Currently, it seems that the ble addresses are reversed when printed by ble_gap_addr_print in different parts of the program.
What would cause this?
Where do you find the ble_gap_addr_print()
function? The addr
field in the ble_gap_addr_t struct is stored with LSB first. So If you are printing this from index 0->5 it will appear reversed.
The print was made as part of a contiki port by W Bober at nordic. When I connect to the boards through a PC, they print their normal addresses but when I make them connect through eachother, they are reversed. I am aware that the addresses should be LSB but what is confusing is that they seem to not be LSB in different scenarios.
Still having issues with this. When I connect through the PC with these instructions the device recognizes (and prints) the addresses correctly. This ensures that the applications can create ipv6 connections by converting the BLE address. This however does not function when the addresses are reversed.
Johan,
Could you please say where in program you use the function? If there is indeed a problem with the addresses being reversed in some situations we need to establish when this happens.
Do you have your code on a github branch?
The print function is run at the same place by both instances; the switch case of BLE_GAP_EVT_CONNECTED in ble-core.c
github.com/.../contiki I pushed everything just so that it's what I'm currently running. It's not cleaned in any way and not well commented but I hope you can understand most of it as i'm trying to follow most code conventions.