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

Bluetooth Beacon Setup on Thingy 91

Hello,

I am working on an IoT project using the Thingy 91 to send sensor data via Bluetooth to a remote device. Currently, I am trying to set up a simple beacon as shown in the Zephyr samples. I would like to set up the NRF9160 as the host and the NRF52 as the controller.
Therefore, I used the LTE/BLE example in the NRF samples and flashed the NRF52 with the patched HCI/UART sample provided in this post.
However, the system keeps crashing during HCI setup (in bt_enable). The error is due to a failing k_sem_take call (return value -11) in Zephyr's hci_core.c.

Is there some issue with the driver setup?


Best regards

Nils Ruf

Parents
  • Hello Øyvind,

    Bluetooth is now working properly. The error I posted above was actually due to the change I applied to the code. After turning the Thingy off, switching the debug switch to "NRF52", turning it back on and finally switching the debug switch back to "NRF91" I got my serial output back.

    The failing Bluetooth initialization could be fixed by adding the configuration option CONFIG_BT_PERIPHERAL=y to my prj.conf. After that, advertising and even connection management was working properly without hanging.

    Thank you very much for your help.

    Kind regards

    Nils

Reply
  • Hello Øyvind,

    Bluetooth is now working properly. The error I posted above was actually due to the change I applied to the code. After turning the Thingy off, switching the debug switch to "NRF52", turning it back on and finally switching the debug switch back to "NRF91" I got my serial output back.

    The failing Bluetooth initialization could be fixed by adding the configuration option CONFIG_BT_PERIPHERAL=y to my prj.conf. After that, advertising and even connection management was working properly without hanging.

    Thank you very much for your help.

    Kind regards

    Nils

Children
Related