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

nrf52832 ADC+BLE+UART ? questions.

Hello,

I have tested the ADC+UART in nRF52 BLE module, 

and now thanks to help of this community, I can get the ADC value with UART communication.

Sorry for so many questions and simple(easy) questions..

I am using the Git example,

https://github.com/NordicPlayground/nRF52-ADC-examples

However, still I cannot understand how could I advertising the Bluetooth in this example.

My final goal is ((BLE slave module: ADC)) ---Bluetooth--- ((BLE master module: UART)) --- UART --- other processor.

But, I cannot connect the BLE to BLE module with bluetooth communication, (I understood that, this example also enable ble function).

The completed function is just sending SAADC data with UART communication in nRF52 board.

My questions are:

1) Should I connect bluetooth communication both the above example and ble_app_uart_c_pac10040_s132 example code?

(I think example is peripheral, so the other board needs central example.)

2) Is it right that the example sending the ADC data both UART and BLE together?

(I think the ble_evt_handler() function is the ble related function)

The Git has also simple explanation, so I don't know the exact each function's role.

I still studying the example codes including basic code, SDK tutorial. But for me it takes a lot time..

: or something I have misunderstood, and so should I making or modifying another code?(I want to sending ADC data with Bluetooth)..

Thank you for reading questions.

Best Regards,

Yclee.

  • Hi,

    First, I would like to point out that it seems from your problem description that you have limited experience with BLE. I suggest that you see our BLE tutorial to get a grasp on the important topics such as GAP roles and how to build your own service. 

    1) Should I connect bluetooth communication both the above example and ble_app_uart_c_pac10040_s132 example code?

    (I think example is peripheral, so the other board needs central example.)

     The example available on Github is based on the NUS example in the SDK. I haven't tested it myself, but the NUS central example should indeed be the best option to use on the central side, at the very least it would be a good base to write the central code with.

    2) Is it right that the example sending the ADC data both UART and BLE together?

    (I think the ble_evt_handler() function is the ble related function)

     I'm not sure I understand this question. Could you elaborate on it a bit more?

    regards

    Jared 

  • Thank you for reply.

    I will see and study tutorial and try again.

    I think it is better that I should try again, and ask again with more detail information..

    Best Regards,

    Yclee.

Related