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

Making Thingy91 a peripheral bluetooth device

I want to make The Thingy91 a bluetooth peripheral device . I want it to send the generated temperature data to cloud or another device. How do I do this? I had problems with the Bluetooth LTE Sensor Gateway example. I couldn't see the usb ports after programming hci_uart on nRF52840:pca20035 and lte_ble_gateway on nRF9160_pca20035. I couldn't read the logs. 

https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/thingy-91-faq says that this kind of demo is coming. Do you know when?

  • 1234qwerty said:
    How can I add the needed bas.c and hrs.c to the project? The c-files for zephyr/subsys/bluetooth/common and zephyr/subsys/bluetooth/host are compiled with the project but I don't know how to add the needed c-files from zephyr/subsys/bluetooth/services to the project

    In NCS and Zephyr, this is usually done by enabling specific configuration, and CMake will add the files. In order to add bas.c and hrs.c to your project, you have to set CONFIG_BT_GATT_BAS and CONFIG_BT_GATT_HRS to y. Check out the file subsys/bluetooth/services/CMakeLists.txt.

    If you look at the prj.conf file of the peripheral_hr sample, you can see the configurations needed to make this example work.

    Best regards,

    Simon

  • I am looking for a way to interface with the onboard Bluetooth on the Thingy 91 as well. None of the examples (Peripheral NUS, Central NUS) etc currently work with Nrf52840_pca20035 config.

    I have successfully managed to integrate the usb_uart_bridge to the peripheral_NUS and Central_NUS examples. I also get the error 
    --> <err> bt_hci_core: No HCI driver registered

    If there is any working BLE sample please let me know. My use case is to send data from master to BT/BLE slave (Nordic) which can then be sent to the cloud.

    Thanks,

Related