Is there any secret to sending/receiving data from the PC via the USB connection to the Teensy (4.1) ??
Here's my setup:
I have a PC program that I want to communicate with the teensy over the USB serial port. The teensy is opening the Serial connection on its side and waiting for a message.
Then the PC sends a message, teensy reads it, and replies. Sounds simple but here's what happens:
The PC opens the com port OK, sends the message, the teensy gets the message and replies, but the reply doesn't come back to the PC.
If I close the PC connection and then get on the Arduino interface and open the serial monitor, the reply then comes back on the serial monitor!
It would seem that the teensy is getting the message from the PC, but the reply is sticking somewhere. PC is running Windows 10 with a program written in BASIC.
I can send messages back and forth all day long using the serial monitor so it would seem the teensy side is doing what it needs to do.
Thoughts???
NOTE: After further experimenting, it appears the message is NOT reaching the teensy from the PC until AFTER I close the pc program and open the serial monitor, so it's in a buffer somewhere but not really sent. But after opening the serial monitor it actually shows up...?????
Here's my setup:
I have a PC program that I want to communicate with the teensy over the USB serial port. The teensy is opening the Serial connection on its side and waiting for a message.
Then the PC sends a message, teensy reads it, and replies. Sounds simple but here's what happens:
The PC opens the com port OK, sends the message, the teensy gets the message and replies, but the reply doesn't come back to the PC.
If I close the PC connection and then get on the Arduino interface and open the serial monitor, the reply then comes back on the serial monitor!
It would seem that the teensy is getting the message from the PC, but the reply is sticking somewhere. PC is running Windows 10 with a program written in BASIC.
I can send messages back and forth all day long using the serial monitor so it would seem the teensy side is doing what it needs to do.
Thoughts???
NOTE: After further experimenting, it appears the message is NOT reaching the teensy from the PC until AFTER I close the pc program and open the serial monitor, so it's in a buffer somewhere but not really sent. But after opening the serial monitor it actually shows up...?????
Last edited: