chilipeppr / serial-port-json-server

Serial Port JSON Server is a websocket server for your serial devices. It compiles to a binary 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
321 stars 101 forks source link

CompleteFake, cannot send a command to any port #38

Open salvosav opened 7 years ago

salvosav commented 7 years ago

Hello,

I'm using SPJS v. 1.94 under Ubuntu 16.04. I've installed the 64bit version already compiled. I can run the daemon, open any ports, and correctly reads messages from them. The issue that I got is that I cannot send a message to any port.

So running: sendjson {"P":"/dev/ttyS1","Data":[{"Id":"firstMsg","D":"12 05"}]}

I get {"Cmd":"Queued","QCnt":1,"P":"/dev/ttyS1","Data":[{"D":"12 05","Id":"firstMsg","Pause":0}]} {"Cmd":"Write","QCnt":0,"Id":"firstMsg","P":"/dev/ttyS1"} {"Cmd":"CompleteFake","Id":"firstMsg","P":"/dev/ttyS1"}

To send a command, I simply open a websocket connection and send via it the command. With the same, I can successfully get any message received from the serial ports.

I've also tried using chilipeppr.com/serialport, and I've notice that when I open a port I got a quick popup telling "Not in single select mode so don't know what port to send to." Even if that's the case, I don't understand what's the matter...I always send the port's name with the command.

Hope someone can help. Thanks