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() {
Serial.begin(9600);
Serial.println("Hello!");
pinMode(LED_BUILTIN, OUTPUT);
}void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
Serial.println("HIGH");
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
Serial.println("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:
Hello!
HIGH
LOW
...
And if I launch the Termite Terminal instead of Serial Monitor, I receive the same right message.
Thank you to enlighten me.