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

UART communication between two boards

Hi,

I am trying to establish UART communication between two nRF52 Dev boards. I flashed both of them with UART peripheral example from 15.2.0 SDK and connected TX,RX and GND pins.

Here, I encountered a weird issue where the two way communication(two terminals are recording the data when I enter data on any one terminal) is taking place with only one connection (TX from one board to RX on another / Connecting RX of both connectors) and nothing is being displayed on terminals when TX on both boards are connected. Can anyone explain this?

Thank you.

Parents
  • Hi.

    I'm not sure if I understand exactly what your setup looks like.

    You have only connected TX from one board to RX on another board, and are able to acheive two way communication? You also get two way communication connecting only RX from one board to RX on the other board?

    If you have two DK's (Board A and Board B),
    You should connect TX from board A to RX on board B and TX from board B to RX on board A.

    Could you provide some more information as well?
    Which SDK are you working with? nRF52 DK? Custom board? etc. 

    Best regards,
    Joakim

  • Hi,

    You have only connected TX from one board to RX on another board, and are able to acheive two way communication? You also get two way communication connecting only RX from one board to RX on the other board?

    Yes, this is what I was facing. I was on vacation and just returned today. So, didn't have much time working on this.

    If you have two DK's (Board A and Board B),
    You should connect TX from board A to RX on board B and TX from board B to RX on board A.

    This is what I have started with. Few weeks ago, it was working perfect with these connections but later it started to behave weirdly where the two way communication was occurring with only one connection. 

    I am working with 15.2.0 SDK, examples-> peripheral->uart. I didn't create any custom board. I am using pca10040.h file only. And yes, I am using nRF52 DK's with nRF52832.

    Thank you.

Reply
  • Hi,

    You have only connected TX from one board to RX on another board, and are able to acheive two way communication? You also get two way communication connecting only RX from one board to RX on the other board?

    Yes, this is what I was facing. I was on vacation and just returned today. So, didn't have much time working on this.

    If you have two DK's (Board A and Board B),
    You should connect TX from board A to RX on board B and TX from board B to RX on board A.

    This is what I have started with. Few weeks ago, it was working perfect with these connections but later it started to behave weirdly where the two way communication was occurring with only one connection. 

    I am working with 15.2.0 SDK, examples-> peripheral->uart. I didn't create any custom board. I am using pca10040.h file only. And yes, I am using nRF52 DK's with nRF52832.

    Thank you.

Children
Related