Hello all,
I'm having what seems to be a known issue, but all the recommended troubleshooting steps have failed. I'm running a very simple flow (which worked fine 2 weeks ago), which basically sends an input via Serial node to my Arduino. However, I get the following error:
10 Mar 10:23:40 - [error] [serialconfig:3981ce82553fb55b] serial port COM6 error: Error: Opening COM6: Access denied
I've done the following:
- Restarted PC and launched Node-Red.
- Made sure neither the Arduino IDE nor the Arduino Serial Monitor is open before launching Node-Red.
My understanding is that if the COM port was being used by something other than the Arduino while compiling and uploading a sketch, that upload should not have been possible, as Arduino would have returned the same message of the access being denied. I read some posts about permissions, but I'm running this as an admin on Windows 10.
I'm at a loss. Here's my Arduino sketch and Node-Red flow if it helps.
void setup()
{
pinMode(13, OUTPUT);
Serial.begin(9600);
while (!Serial);
}
void loop() {
while (Serial.available())
{
int state = Serial.parseInt();
if (state>50)
{
digitalWrite(13, HIGH);
Serial.print("_HIGH");
delay(2000);
}
else (state<50);
{
digitalWrite(13, LOW);
Serial.print("_LOW_");
}
}
}
