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.

  • @billtest36: Have you made any changes to the example ? The error code telling that it is NRF_ERROR_NOT_SUPPORTED. I would suggest you to test first with: ble_app_hrs_c on the S120 side and ble_app_hrs on the S110 side. Let them connected and talk to each other to understand how the central and peripheral works. After that you can also try to use experimental_ble_app_uart on S110 interfacing with a PC and a phone/tablet, to know how them work and how UART data from the PC can be sent to the phone and vice versa.

    Then you can try to run the set up as in the figure you draw. If you still have the issue, could you add a breakpoint at line 660 and go step by step through to see which line of code give error 0x06

Reply
  • @billtest36: Have you made any changes to the example ? The error code telling that it is NRF_ERROR_NOT_SUPPORTED. I would suggest you to test first with: ble_app_hrs_c on the S120 side and ble_app_hrs on the S110 side. Let them connected and talk to each other to understand how the central and peripheral works. After that you can also try to use experimental_ble_app_uart on S110 interfacing with a PC and a phone/tablet, to know how them work and how UART data from the PC can be sent to the phone and vice versa.

    Then you can try to run the set up as in the figure you draw. If you still have the issue, could you add a breakpoint at line 660 and go step by step through to see which line of code give error 0x06

Children
No Data
Related