DrewHamilton
New member
Hi All,
I have a QT Gui which autodetects a Teensy 4.0 and sets up a serial connection. I am having an issue in which my GUI tells me I am connected successfully via serial, but it isn't reading any new data. When this happens, I've found that I can open the Arduino Serial Monitor and that seems to "reset" the Teensy. If I close out the serial monitor and restart my GUI, I can successfully connect and read the data coming in. I could be way off here, but it seems like the Arduino Serial Monitor is either resetting the Teensy or setting up the RS232 connection in a way that QT can then get through to it.
My hypothesis at the moment is that the Arduino Serial Monitor is doing something with RTS/DTR or flow control (which I am a little shaky on), which resets the Teensy. I would like to be able to do this as well from my QT application, as the Teensy seems to be hanging on something (but only when I use QT).
I have attached the full INO file to conform to forum rules, but attaching all of the QT Application would just be too much, so I've attached the serialport.cpp portion.
Any help would really be appreciated.
Best,
Drew Hamilton
I have a QT Gui which autodetects a Teensy 4.0 and sets up a serial connection. I am having an issue in which my GUI tells me I am connected successfully via serial, but it isn't reading any new data. When this happens, I've found that I can open the Arduino Serial Monitor and that seems to "reset" the Teensy. If I close out the serial monitor and restart my GUI, I can successfully connect and read the data coming in. I could be way off here, but it seems like the Arduino Serial Monitor is either resetting the Teensy or setting up the RS232 connection in a way that QT can then get through to it.
My hypothesis at the moment is that the Arduino Serial Monitor is doing something with RTS/DTR or flow control (which I am a little shaky on), which resets the Teensy. I would like to be able to do this as well from my QT application, as the Teensy seems to be hanging on something (but only when I use QT).
I have attached the full INO file to conform to forum rules, but attaching all of the QT Application would just be too much, so I've attached the serialport.cpp portion.
Any help would really be appreciated.
Best,
Drew Hamilton