adrianpang
New member
I have written a code for Teensy 3.2 to utilise all 3 serial ports.
Serial1 will receive a set of commands and will send Serial2 and Serial3 data based on these commands. Serial1 will receive a set of response from Serial2 and Serial3. This is somewhat like a serial multiplexer.
There is an inquiry command that Serial1 receives every 100ms, and the code copies the data and send it to Serial3 directly.
There is a set of response from Serial2 sends to Serial1 every 1s.
What is happening is that Serial1 can receive a ad-hoc, asynchronous set of commands to drive an LED. However, it is observed that Serial1 will not receive these commands all the time.
Serial1 seems to be dropping data.
Can anyone suggest how I can debug this further? I did some printf and noticed that the ad-hoc set of commands only gets captured and decoded very rarely, even if they are sent to Serial1 quite often.
Serial1 will receive a set of commands and will send Serial2 and Serial3 data based on these commands. Serial1 will receive a set of response from Serial2 and Serial3. This is somewhat like a serial multiplexer.
There is an inquiry command that Serial1 receives every 100ms, and the code copies the data and send it to Serial3 directly.
There is a set of response from Serial2 sends to Serial1 every 1s.
What is happening is that Serial1 can receive a ad-hoc, asynchronous set of commands to drive an LED. However, it is observed that Serial1 will not receive these commands all the time.
Serial1 seems to be dropping data.
Can anyone suggest how I can debug this further? I did some printf and noticed that the ad-hoc set of commands only gets captured and decoded very rarely, even if they are sent to Serial1 quite often.