lost serial gateway after un plug power Rpi
-
I have the same problem, i posted a question at the Domoticz Forum :
Not reconnecting serial porttGreetz Peer
-
Somehow I think it's more related to the linux kernel than it's a mysensors or Domticz related issue
I would start to check which linux kernel you are using with uname -a and then start to search from this
Maybe it could also be USB power related? Try to use a better USB power supply to your RPI
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=53832 -
Why not connect the gateway to one of the onboard serial ports through the GPIO header? I have an Orange Pi which has a GPIO header that is pin compatible with the Raspberry Pi and I ran my gateway from there with no problems. I used pins 6, 8 and 10 which for me was /dev/ttyS3:
The trick in doing this with Domoticz is to create a synlink. The reason for this is that Domoticz looks for a ttyUSBxxx device, so with the symlink you are basically tricking Domoticz into thinking that the onboard serial port is USB. In my case I created a symlink for ttyS3 to ttyUSB30 like this:sudo ln -s /dev/ttyS3 /dev/ttyUSB30This way you avoid having the problem of USB devices not being detected on boot.
-
Thank's for the answers to this problem.
They didn't work for me, but i think i solved mine.
Stop monitoring the serial port for data from a terminal session.
See my post at Domoticz forum.