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

How to send the sensor data from on to another nRF52832 board using the BLE communication?

Hi guys,

I am working on my project and until now I enabled the device to measure the voltage and get the sensor data from the temperature sensor which I need now to send to another nRF52832 board using the BLE communication. The main goal of my project is sending the sensor data after my device achieves the required voltage level. For that, I need to use BLE as the low power technology, but I am still trying to figure out how to do that and how to find the good example which can be the base of my code. I will appreciate any type of help, advice or some example that you can send me and give me the guidelines how to solve this.

Thank you very much in advance and kind regards!!

  • Today I tried these examples (Central and Peripheral UART) but I was not able to run them. The main problem have been in some libraries related to NUS and DK Button and LED Library. Can I fix that using nRF Connect SDK with compatible tools or the problem is somewhere else? Also, I installed everything followed the steps from official Zephyr project website (https://docs.zephyrproject.org/latest/getting_started/index.html). Now, will it change something if I want to setup and get started with the nRF Connect SDK and install the required tools?

    Also, today I tested the samples/bluetooth/peripheral_ht from the zephyrproject documentation and put the part of code when I read the voltage level. I established the BLE communication with my mobile phone using this nRF mobile app and everything worked. Can I do the same thing if I test the code for the central device on my second nRF52832 board?

    Best regards,

    Adnan.

  • Hello Adnan,

    Aduka_27 said:
    Today I tried these examples (Central and Peripheral UART) but I was not able to run them. The main problem have been in some libraries related to NUS and DK Button and LED Library. Can I fix that using nRF Connect SDK with compatible tools or the problem is somewhere else?

    What were your problems exactly, did you receive any errors?
    Please be more specific, as it will make it easier to help you resolve the issue.

    Aduka_27 said:
    Also, I installed everything followed the steps from official Zephyr project website (https://docs.zephyrproject.org/latest/getting_started/index.html). Now, will it change something if I want to setup and get started with the nRF Connect SDK and install the required tools?

    By what you are saying, do I understand you correctly that you did in fact not download the nRF Connect SDK? 
    The nRF Connect SDK runs on Zephyr, but zephyr is not the nRF Connect SDK. You will instead need to follow the getting started with nRF Connect SDK guide that I linked in my previous comment.

    Aduka_27 said:
    Now, will it change something if I want to setup and get started with the nRF Connect SDK and install the required tools?

    I am not sure I understand what you are asking here. You should use the nRF Connect SDK if you would like to utilize the examples and drivers from the SDK.

    Aduka_27 said:
    Also, today I tested the samples/bluetooth/peripheral_ht from the zephyrproject documentation and put the part of code when I read the voltage level. I established the BLE communication with my mobile phone using this nRF mobile app and everything worked. Can I do the same thing if I test the code for the central device on my second nRF52832 board?

    Yes, you can do the same thing - the difference then would however then be that the peripheral sends its voltage measurements to the central nRF52832 board, and not your mobile app - so you will need to have the nRF52832 output its received data to UART / somewhere else for you to see.

    Please do not hesitate to ask if anything still should be unclear!

    Best regards,
    Karl

Related