serial-port-json-server
serial-port-json-server copied to clipboard
CompleteFake, cannot send a command to any port
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