COMUNICACIÓN ENTRE UART1 Y UART2

Q&A forumCategory: QuestionsCOMUNICACIÓN ENTRE UART1 Y UART2
topocomputer1 asked 4 weeks ago
Buen día comunidad.
Tengo una placa simpleRTK2B V3 y dos radios externas. Quiero suministrar correcciones diferenciales (RTCM) provenientes de una base NTRIP. Envío las correcciones desde la radio emisora a la radio receptora que está conectada a simpleRTK2B en UART2. Estos mensajes RTCM entrantes los quiero enviar a UART1 (Shield for second XBee Socket) en donde tengo conectado el bluetooth que venden ustedes.  La duda es la configuración de entrada y salida necesaria para que los puertos UART se comuniquen. En este momento los tengo configurados así:
UART2: con velocidad de baudios igual a la de la radio (115´200)
IN >> RTCM
OUT: >> NONE
______________________
UART1: con velocidad de baudios igual a la del Bluetooth (38´400)
IN: >> UBX+NMEA+RTCM
OUT: >> NMEA
Con esta configuración no logro que UART1 saque posiciones NMEA corregidas a mi programa recolector de datos. Alguien me puede dar una luz sobre esto por favor?
Básicamente lo que necesito saber es la configuración para que los mensajes RTCM entrantes en UART2, sean canalizados hacia UART1
clive1
replied 4 weeks ago

Good morning community.
I have a simpleRTK2B V3 board and two external radios. I want to supply differential corrections (RTCM) coming from a NTRIP base. I send the corrections from the transmitting radio to the receiving radio that is connected to simpleRTK2B on UART2. I want to send these incoming RTCM messages to UART1 (Shield for second XBee Socket) where I have connected the bluetooth that you sell. The question is the input and output configuration required for the UART ports to communicate. At this moment I have them configured like this:
UART2: with baud rate equal to that of the radio (115’200)
IN >> RTCM
OUT: >> NONE
______________________
UART1: with baud rate equal to that of Bluetooth (38’400 )
IN: >> UBX + NMEA + RTCM
OUT: >> NMEA
With this configuration I cannot get UART1 to get corrected NMEA positions to my data collector program. Can someone give me a light on this please?
Basically what I need to know is the configuration so that the incoming RTCM messages in UART2, are channeled towards UART1

topocomputer1
replied 4 weeks ago

Ok Clive1 muchas gracias por la aclaración, sobre todo la correspondiente a la primera respuesta que enviaste.

2 Answers
clive1 answered 4 weeks ago
There isn’t a way of forwarding/routing the input of one UART to the output of another.
RTCM3 data can be delivered via USB, UART1 or UART2, but I’d avoid using more than one interface at a time.
RTCM3 data suitably delivered will be used in the same solution output to all interfaces. ie the NMEA output should be the same regardless of the interface the RTCM3 data came in on.
The reception of RTCM3 data can be confirmed via UBX-RXM-RTCM

clive1 answered 4 weeks ago
Plumbing between multiple interfaces and changing baud rates is something you’d need to implement with an MCU.
If you can match the baud rates you could probably wire an assembly to get the data from one radio to another.
If you also want to combine NMEA data from the receiver, you will definitely want to use an MCU to merge/combine the data, and manage the differences in baud rates.
The UART1 and UART2 pins are exposed at the Arduino interface, you could passively listen to the input/output data streams from each.