This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
  • Thank you for your reply.

     The project url you used on your github.

     https://github.com/jimmywong2003/nrf5-ble-multiple-role-example

     Two examples were downloaded and tested on the nrf52832 dk board.

     I used sdk 15.3.

     I have connected nrf52832 board and iphone7 (app: nrf toolbox).

     I want to send and receive data in both directions using uart terminal. 

    But The <ble_app_lbs_nus_its_multi-role> example doesn't seem to be normal.

    I used nrf52832(pca10040/s132) board.

     

     

    A. Example <ble_app_lbs_nus_its_multi_role> and the Mobile Connection Screen

    <ble_app_lbs_nus_its_multi_role/nrf52832(Peripheral mode)>

    In the uart terminal, I typed "data send" on the keyboard.

    (Tx "DATA SEND") 

    <NRF TOOLBOX(ios)> (Central)

    not reveive 

    B. Example <ble_app_lbs_nus> and the Mobile Connection Screen

    <ble_app_lbs_nus/nrf52832(Peripheral)>

    In the uart terminal, I typed "data send" on the keyboard.

    (Tx "DATA SEND")

    <NRF TOOLBOX(ios)> (Central)

    reveived "data send"

    C.

    There are additional issues involved.
    

    Two NRF52832 DK boards were used. On the first NRF52832 DK board I downloaded the <ble_app_lbs_nus_its_multi_role> example. On the second board I downloaded ble_app_lbs_nus. <ble_app_lbs_nus_its_multi_role> was used in CENTRAL mode.
    I set <ble_app_lbs_nus> to Peripheral. The connection was successful. However, Using UART terminal <ble_app_lbs_nus_its_multi_role> Sent data to the board. <ble_app_lbs_nus> No data is received on the board.
    In my opinion, the ble_nus_data_send () function seems to have a problem
    in the ble_app_lbs_nus_its_multi_role example.
    Thanks to Jimmy, the development went smoothly.
    
    Please, reply.
    
    thank you.
    Have a nice day

  • Did you solve the issue where ble_nus_data_send() returned 5?

  • Hi.

    Thank you for your reply.

    Unfortunately, I couldn't find a solution.

    I don't know where to fix it.

    I am a beginner and need help.

  • Read my reply starting with "As long as it doesn't return 0, the message is not sent.".

    Then look at the example found in SDK\examples\ble_peripheral\experimental\ble_app_multiperipheral.

Related