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

UART to BLE transfer Data Issue

Hi Sir, I’m working in an application with the demo board A to communicate via Bluetooth to the demo board B and send data between them. In the module I have to do send a data from demo board A to the demo board B and display it in the computer screen via UART, then I have to write a value in the computer and sent it back to the demo board A and display it in the computer screen via UART. Do you know how to seeting BLE Master/Slave mode and finish nRF51822's BLE pairing ? What steps do you suggest I should take? Please help! Thank you I want to transfer data using UART to BLE by Baud Rate 38400(using nRF51822).

Parents
  • Hi Billtest,

    I pasted the wrong answer from another case to your case earlier. I deleted it. Sorry about that.

    We have an example in our SDK that you can have a look. It's the experimental_ble_app_uart project where it acts as a peripheral and forward the data it receive on UART line to BLE and vice versa. You can test this with the nRFUART app on the phone.

    In your case you want to have nRF51 on both side, then you would need to implement the central as well. We also have an example for that, but it's not the official one. You can have a look here.

    Regarding bonding, you can have a look at the ble_app_hrs_c example where we trigger bonding right after doing service discovery.

  • Hi Hung Bui,

    Sorry! I have some question need you help. I have attached a black diagram.

    A board use S120 softDevice for BLE/Master. B board use S110 softDevice for BLE/Slave.

    I still can't work with nrf51 UART to BLE transfer Data. Do you know how to finish BT pairing from nRF51822 code? Can I change BT pairing PIN code?

    A board code : ble_app_uart_c_S120-master project B board code : experimental_ble_app_uart project

    image description image description

    Thanks, Billtest

Reply
  • Hi Hung Bui,

    Sorry! I have some question need you help. I have attached a black diagram.

    A board use S120 softDevice for BLE/Master. B board use S110 softDevice for BLE/Slave.

    I still can't work with nrf51 UART to BLE transfer Data. Do you know how to finish BT pairing from nRF51822 code? Can I change BT pairing PIN code?

    A board code : ble_app_uart_c_S120-master project B board code : experimental_ble_app_uart project

    image description image description

    Thanks, Billtest

Children
No Data
Related