I need to communicate from my Arduino Leonardo to my PC and vice versa. I use QSerialPort and it works fine.
I manage to communicate in both directions and to detect then to open the port where the microcontroller is.
But for this, to read from the PC, I must first open the Arduino IDE Serial Monitor. Without it, I can not read it. I can open it but it seems the Arduino is sending nothing. Does the monitor do anything special?
QSerialPort can find settings for the serial port.
So, what settings does it find?
Unlike the other Arduinos, the Leonardo requires that the DTREnabled flag be set to true. The Serial Monitor does this. Most applications do not. The default value for the flag is false.