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

Clarification on BLE Packet formation for NRF52

I'm trying to get an a recognized ble pulse without using a softdevice. I started with the basic transmitter application and am trying to decipher the order for the data I'll need. Figure 2. On air Packet Layout of the product spec shows that the least significant bits are coming first.

If I want my beacon to output an address of "D6BE898E" should I be assigning it to base0 in reverse order or as is? I'm a bit confused as to how that is intended. Does this also apply to the prefix, packetptr, etc?

  • FormerMember
    0 FormerMember

    The address should be assigned to the packetptr in the reverse order.If the advertised address is 12:34:56:78:9A:BC, it should be added the following way: [0xBC,0x9A,0x78,0x56,0x34,0x12]

    In SDK 11, the example experimental_ble_app_multiactivity shows how to create and transmit advertising packets by using the radio directly. The example is a heart rate example that will uses the timeslot API to do advertising using the radio directly when in a connection. The example is made for nRF51, but should be a good starting point for nRF52 as well.

    m_configure_radio(..) -> m_get_adv_packet(..) shows how to add the address.

Related