Failed to connect to OpenMV's serial port

Hello, I could use some help with the OpenMV’s udev rules.
I’m running Node-Red on windows 10, and using a Python script to connect to the OpenMV board. When Node-Red starts up the serial connection works, but then disconnects over time. When I try to reconnect to the serial ports I get an error “Failed to connect”. However, when Node-Red is restarted the serial connection is made and the sensor starts sending data.

What should I look for that may cause the connections to disconnect? Or, is it possible to add something that will reload the udev rules?

Sorry, i forgot to mention in Node-Red the connection is TCP in on port 2113.

Failed to connect to OpenMV’s serial port.
Please install OpenMV’s udev rules first:
sudo cp openmv/udev/50-openmv.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules

Thank you for your help!

Hi, the udev rules are just there to deal with permission issues. If the port works once then the rules are working. After that it’s because there’s some communication error happening causing things to break.

Thank you!