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

startup script if no tinyg connected to RPI USB port - SOLVED with v1.95 #71

Open AlesSt opened 6 years ago

AlesSt commented 6 years ago

Hi all,

Has anyone caught a problem if tinyg is not connected during RPI boot. RPI doesn't boot. SSH server doesn't start properly so I cannot connect remotly. Even if i connect it directly to monitor and keyboard: sometimes i can log in but afterwards nothing can be executed as SPJS is not started properly. For now workaround was that i disabled the SPJS as a service and I run it through cron.

Also running on RPI default startup script doesn't work: /home/pi/serial-port-json-server_linux_arm/serial-port-json-server -regex usb|acm & changed to: /home/pi/serial-port-json-server_linux_arm/serial-port-json-server -regex usb &

With usb|acm server doesn't start on startup as there is an error with acm. Deleting acm my SPJS starts but with problems as described above.

Ales

edit: was on version 1.88 version 1.95 seems to work fine :)

chilipeppr commented 6 years ago

Hmm. Does it exhibit the same behavior if you don't use the -regex command line switch? I wonder if the regex code has a bug in it. I never use that command line switch myself. Even then, with you starting spjs with the & sign, it's odd it's freezing your boot process.

On Wed, Apr 4, 2018 at 2:53 AM, AlesSt notifications@github.com wrote:

Hi all,

Has anyone caught a problem if tinyg is not connected during RPI boot. RPI doesn't boot. SSH server doesn't start properly so I cannot connect remotly. Even if i connect it directly to monitor and keyboard: sometimes i can log in but afterwards nothing can be executed as SPJS is not started properly. For now workaround was that i disabled the SPJS as a service and I run it through cron.

Also running on RPI default startup script doesn't work: /home/pi/serial-port-json-server_linux_arm/serial-port-json-server -regex usb|acm & changed to: /home/pi/serial-port-json-server_linux_arm/serial-port-json-server -regex usb &

With usb|acm server doesn't start on startup as there is an error with acm. Deleting acm my SPJS starts but with problems as described above.

Ales

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/johnlauer/serial-port-json-server/issues/71, or mute the thread https://github.com/notifications/unsubscribe-auth/AHidbbijydxI8rA_6o0WKImaFPjaUKbWks5tlJgDgaJpZM4TGf6Y .