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

Using BLE NUS SERVICE without UART

Hello

I would like to send my sensor data to a mobile application using BLE SDK 15. Someone suggested me to go through the BLE NUS SERVICE example which was a good one. I understood a lot of things but now my sensor values are coming on analog pins and not on UART pins. How do i send those values? Would i have to create a whole new service for doing this or could i somehow modify the same example to work according to my needs. Thanks!  

Parents
  • Hi , I am trying to do a similar thing. Where did you find the NUS Service example? I am using thee SDK 15.2 but I have only the ble_template and ble_app_uart examples... 

  • ble_app_uart is the example that uses the NUS service. Regarding your other post, where you explain nothing happens when you flash the ble_app_uart example:

    How do you flash it? Through your IDE? What IDE do you use?

    Unless you are using Segger Embedded Studio, you need to flash the SoftDevice first. Did you do that?

    Without any modifications this example should also start advertising, and you should be able to detect it with nRF Connect for Mobile or Desktop (Note: It will not show up on your Mobile Settings->bluetooth page.

    For this example to work you will also need to program the softdevice.

    The softdevice for nRF52832 is the .hex file located in:

    SDK15.2.0\components\softdevice\s132\hex\

    You can program it using nRF Connect for Desktop or Nordic Command Line Tools.

    Best regards,

    Edvin

Reply
  • ble_app_uart is the example that uses the NUS service. Regarding your other post, where you explain nothing happens when you flash the ble_app_uart example:

    How do you flash it? Through your IDE? What IDE do you use?

    Unless you are using Segger Embedded Studio, you need to flash the SoftDevice first. Did you do that?

    Without any modifications this example should also start advertising, and you should be able to detect it with nRF Connect for Mobile or Desktop (Note: It will not show up on your Mobile Settings->bluetooth page.

    For this example to work you will also need to program the softdevice.

    The softdevice for nRF52832 is the .hex file located in:

    SDK15.2.0\components\softdevice\s132\hex\

    You can program it using nRF Connect for Desktop or Nordic Command Line Tools.

    Best regards,

    Edvin

Children
Related