johnlauer / serial-port-json-server

A serial port JSON websocket server for Windows, Mac, Linux, Raspberry Pi, or BeagleBone Black that lets you communicate with your serial port from a web application. This enables web apps to be written that can communicate with your local serial device such as an Arduino, CNC controller, or any device that communicates over the serial port.
http://chilipeppr.com
GNU General Public License v2.0
355 stars 174 forks source link

Great Serial -> Web Socket, close seems to be broke #8

Open panterlo opened 9 years ago

panterlo commented 9 years ago

This is a great slim Serial -> Web Socket project. The close commands seems to be broke, at least on Windows. Can't close the port,

open COM1 115200 tinyg Opening serial port COM1 at 115200 baud . . . close COM1 {"Error" : "We could not find the serial port COM1 that you were trying to close."}

johnlauer commented 9 years ago

Yes, we are still having trouble on the closing of ports. It seems to work great on Windows, but it looks like you may have found an instance where it doesn't. A change was made recently to fix something on the Mac, but it may have caused further issues on Windows. There's no great serial port code for golang out there so this is a trial/error process. I will say, I'm still glad I built this in golang. It's worth dealing with some of these other issues. Any thoughts you might have would help. What version of Windows were you on?

panterlo commented 9 years ago

Windows 2012 R2, I can see similar issues actually in C# and C++ apps running with serial ports on Windows so it may be something in the Windows API