Problem of COM port opening on nano every

I was advised to continue the discussion in this category.
You can find it named "Problem of COM port opening".

My question was:
I wrote an C# application to communicate with an Arduino Nano Every. When I plug the USB connector to Arduino for the 1st time, the port opened but doesn't communicate (the Arduino must send a message with Serial.println("Hello!"); that I don't receive). Even if I press the PB reset on the board, nothing happens.
Remark: the Arduino is supplied only via USB plug.
If I launch the Serial Monitor from Arduino IDE I receive the write message (Hello!). Now, if I return to my C# program and run it again, I receive the right message "Hello!" on each reset, until I'll disconnect the USB.

I tried an experiment:
I load this simple program in my Arduino:

void setup() {

void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second

and I launch a serial terminal software (Termite 3.4).
I can observe the same behavior that is after plugging USB the terminal output displays a sequence of [00][00]....just after reset and so after each second.
Now, if I launch the Arduino IDE Serial Monitor, I receive immediately the right message:
And if I launch the Termite Terminal instead of Serial Monitor, I receive the same right message.

Thank you to enlighten me.

Well, I finally found the solution.

In my C# application:

SerialPort PulseComPort;
PulseComPort.DtrEnable = true;

After opening the port, I must enable Dtr and (very important) wait a delay before send message.
It is working.
I deduced that the Serial Monitor do this and not the Termite terminal.
Thank you

1 Like