I have a NodeJS server running on the laptop connected over serial.
I used the C# application by Johnny Chung Lee and that controls the robot just fine.
But I wanted to get rid of the C# application and just drive it directly from a web page without the need to download any plugins or exe's.
So I have it mostly working on the web side of things and can get the drive commands from the client web page to the NodeJS server just fine.
But the part that isn't working right now is sending the actual drive commands to the robot over serial from NodeJS.
My latest version is here:
Specifically, in the serverSerial.js file. I've tried using the Create-OI and similar NPM packages but those give errors or otherwise do not work.
I think I'm having trouble sending the data as actual Bytes over serial? My next step is to hook up a Bus Pirate from Dangerous Prototypes and check what the actual serial data looks like coming from the laptop from both the C# app where it works OK, and the NodeJS script where it doesn't.