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

How to use send and receive serial data over gpio pins?

Hi,

I am stuck in sending and receiving serial data over Rx and Tx in nrf51 DK. I used arduino to prototype a fingerprint access control system. Now I am shifting to nrf51 using 12.3 SDK, It was easy to send and receive serial data over Rx and Tx in arduino using Software Serial. How to do it in nrf51? the baud rate for fingerprint sensor is different from the ble_app_uart example. The sensor uses 9600 baud rate ,UART (TLL logical level) and for communication uses data package array of size 11-14 bytes to send and receive communication, for example the format is

Could I get help in tools or advice to do this in nrf51?

Parents Reply
  • Hi,

    Is there any particular reason why not to use SoftwareSerial ?

    I'm trying to establish two way communications between an nrf51 and an arduino using software serial and uart.

    What I'm seeing is that I send 20 bytes from arduino but the nrf51 doesn't receive them all. And if I sent only one byte from arduino, the nrf51 seams to receive 4 bytes. 

    If I send 20 bytes from nrf51 to arduino, arduino receives them well, but not the other way around.

     Edit: I've tried this with 1200, 2400 and 9600 baud rates.

Children
No Data
Related