Unable to start advertising using HCI UART project

Hi,

I started a new project where a nRF52840 DK is used in controller mode to advertise sensor data. The board is flashed with the HCI UART project found in the Zephyr SDK.

I executed successfully most of the HCI commands (i.e. scan), but I'm unable to start advertising: I always get the error 0x12 (Invalid HCI Command Parameters).

Here is the command I send:

0x010a200101

And the response I get:

0x040e04010a2012

I also tried to use the Bluez on Linux and I get the same issue, using hcitool or btmgmt.

Any suggestion ? Is there any feature to enable first ?

Thanks in advance for your support,
Gerald

Parents
  • Hi Gemo, 
    I will try to take a look. But a quick comment is that the address of the advertiser need to follow a certain format of the MSB bits:


    (page 2678 in spec v 5.4)

    My suggestion is to try to test in a nRF52840 BLE sample to see if the address is accepted before testing on the HCI commands. It's easier to debug and find what's wrong in the code. 

Reply
  • Hi Gemo, 
    I will try to take a look. But a quick comment is that the address of the advertiser need to follow a certain format of the MSB bits:


    (page 2678 in spec v 5.4)

    My suggestion is to try to test in a nRF52840 BLE sample to see if the address is accepted before testing on the HCI commands. It's easier to debug and find what's wrong in the code. 

Children
Related