This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MAC address of peripheral from advertising packet

I am creating a peripheral and central.  The peripheral is done and appears to work fine.  The central is in progress.  It will use the serial port to communicate with a host computer system.  One of the things that it has to communicate is the MAC address of the peripheral (printed on the outside of the peripheral's BMD-350) when an advertising packet is received.  The host will then decide to connect of not. 

So far, I can communicate with the host over the serial port just fine, but I'm not sure I understand how to get the MAC address of the peripheral.

I'm using the BMD-350 on a peripheral and the data sheet says the lower three bytes of the MAC address are printed on the chip.  Take a look here https://media.digikey.com/pdf/Data%20Sheets/Rigado%20PDFs/BMD-350_v2.0_1-22-19.pdf on page 12.

What I get in the advertising report (ble_gap_evt_adv_report_t), member peer_addr, doesn't match what is on the outside of the radio.  Nor can I find anything in the advertising packet that matches that address.  Is this the MAC address or some other address.  If not, how can I get the MAC address.

The value of peer_addr is F712931CF0EB (byte 5 -> byte 0).  What is printed on the outside of the chip is AE509162.  I was expecting to see the 0x50, 0x91 and 0x62 somewhere in the peer address.

I'm using nRF5_SDK_16.  For the central, I'm using the Rigado BMD-300 series evaluation kit.  The peripheral is custom hardware using a BMD-350.

Thanks.

Parents Reply Children
No Data
Related