debugging serial instability
Jan 08 2020 | 4:57 pm
Hi, quick question (with lots of details and specifics following): are there any tools or workflows for debugging usb/serial stability issues? (Windows 10, app built from Max 7) either in Max, external software, or is there something I can learn from Windows logs?
I know there are about a million forum questions about serial errors, but I haven't been able to find any that cover the problem I've run into: initial correct operation, with delayed failure.
I have a computer running a max patch for an art installation. It's been installed and operating correctly for 2 months, but in the last week, serial errors have begun occurring. Not at startup, but at seemingly random intervals through the day: sometimes 30 min, sometimes 5 hours.
The error message isn't a lot of help: serial - error writing to serial port
the serial object sends values every ~5 seconds. Once this error occurs, it continues to occur on every subsequent attempt to send values until I close and reopen the serial port in max with the following steps: -send "close" message to serial object. -get new error: "serial: error resetting port attributes" -send "close" message again -send "open" message
I've hacked together a temporary fix that automates the above process using [error] and some [route] and [delay] objects, but I need to diagnose the underlying problem and find a true fix. Added complication: the installation is about 5000 km away. I have remote access to computer via teamviewer, but can't fiddle with the physical usb port/cable/etc. Any ideas appreciated!