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

send data by ble uart

Hi

I use SES and nRF52832 dongle . I want to send data on "ble uart" and get that data on "nRF UART v2.0" app. mean i want send a string in program while every 5 second and get it on mobile app. I did different ways. But it didn't work.

I use this example "\nRF5SDK160098a08e2\examples\ble_peripheral\ble_app_uart\pca10040\s132\ses"

pls help me .

Parents
  • I use a nRF52832 chip(SoC) on a PCB according to Nordic reference circuitry schematic. The circuit and chip are working properly. i can advertising and successful connection to smart phone with "nRF UART v2.0" app.

    I want every 5 second, send a string from the chip program and get it for real time on "nRF UART v2.0" app .

    What is your solution to this work? What should I do?

    How do I modify this example ? "\nRF5SDK160098a08e2\examples\ble_peripheral\ble_app_uart\pca10040\s132\ses"

  • Hello,

    Bizadi said:
    What is your solution to this work? What should I do?

    To have a task executed at a certain interval, I would suggest setting up a timer for the specific period, and then have it call the send function after that time.
    Many examples already demonstrate this in some capacity, but I would recommend that you take a look at the Timer Example from the SDK to see the simplest form.

    When it comes to implement it into the Nordic UART example it depends on how you would like this to function. The unmodified example is set to transmit whatever it receives through UART to its peer over the BLE link.
    Are you intending for the device to hold the connection in between the timeout, or do you intend for the device to go to sleep and then wakeup to send every 5 seconds, or something else?
    Its capacity to receive UART input will depend on these choices.

    Best regards,
    Karl

Reply
  • Hello,

    Bizadi said:
    What is your solution to this work? What should I do?

    To have a task executed at a certain interval, I would suggest setting up a timer for the specific period, and then have it call the send function after that time.
    Many examples already demonstrate this in some capacity, but I would recommend that you take a look at the Timer Example from the SDK to see the simplest form.

    When it comes to implement it into the Nordic UART example it depends on how you would like this to function. The unmodified example is set to transmit whatever it receives through UART to its peer over the BLE link.
    Are you intending for the device to hold the connection in between the timeout, or do you intend for the device to go to sleep and then wakeup to send every 5 seconds, or something else?
    Its capacity to receive UART input will depend on these choices.

    Best regards,
    Karl

Children
No Data
Related