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

Send a packet with RedBearLab Blend Micro and nRF8001 using BLE advertising

Dear comrades, I am trying to advertise a simple packet with the nRF8001 embedded in the RedBearLab Blend Micro board using it as a beacon.

I am using the ble_broadcast example and generating the services.h file with nRFgo Studio. The packet that I am trying to send is:

0x0201040AFF59000005FFF703FB56

As you can see, there is only the Flags and the Manufacturer Specific Data fields with its values. The problem is, when I compile ble_broadcast example with my generated services.h and upload it to the board, the board is not advertising anything.

I use the nRF connect Android App to check if it is actually sending data, but it is not. But when I upload the BLEControllerSketch example in the RBL_nrf8001 library, then it actually advertises data. If then I try to configure that packet with my services.h file, then stops advertising again.

My guess is that I am configuring the services.h file wrongly. Can someone please explain me how to do it correctly. I would be very gratefull.

Thanks!

AGB

Parents Reply
  • According to the nRF connect app, the ble_broadcast example sends this:

    • 0x01 (Flags) 0x06
    • 0x09 (Complete Local Name) 0x426C656E644D6963726F
    • 0X07 (Complete List of 128-bit Service Class UUIDs)1E948DF1483194BA754C3E5000003D71
    • 0x09 (Complete Local Name) 0x426C656E644D6963726F

    It doesn't matter if I change the services.h file, it always sends that. I would like to send this:

    • 0x01 (Flags) 0x06
    • 0xFF (Manufacturer Specific Data) 0x59000005FFF703FB56

    Because is what the nRF52832 chip that I have in the application that I want to mimic is sending. but I have read somewhere that it is not possible to change the setup data while advertising, so I just want someway to send the data (59000005FFF703FB56).

Children
No Data
Related