Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 1 month ago.
Serial passthrough between two mbed MCU's using XBee API
When using series 2 XBee in API mode where the XBee radio is connected to MCU1 serial UART1 and UART2 is connected to MCU2 serial UART1.
How would you write serial pass-through code for MCU1 to pass serial data to MCU2, or basically mirror serial data on UART1 to UART2?
Would this help me: http://developer.mbed.org/questions/7068/Serial-Communication-between-two-mbeds-w/
MCU2 would use the XBee API library, while MCU1 just passes serial data when not receiving a new program. MCU2 is transmitting sensor data.
I'm considering a custom FOTA PCB with two MCU's both running mbed code. MCU1 runs the code to receive the new program file via XBee, while MCU2 runs the application program code which is changed over the air. MCU1's purpose is to recover MCU2 if it bricks due to a corrupt or bad program. MCU2 would be a FRM-K64F, while MCU1 might be a FRDM-KL25Z or NXP chip.