I’ve got two Raspberry Pi’s - one with a Z-Wave stick and ser2net and the other with socat and OpenHAB (and a Z-Wave stick of it’s own.
I can get the remote Z-Wave on the remote Pi working and running solidly. However if the connection gets broken, I have to fiddle around and poke various parts of the system before it will reconnect otherwise it just reports as “Offline”. This can take ages and I have yet to discover what I do to fix the link. It’s really annoying!
So far as I’m aware the ser2net/socat link is OK as socat happily sits running. Restarting OH or just the ZWave bundle doesn’t help - until it does!
Any ideas what could be going on?
Permissions on the tty are:
lrwxrwxrwx 1 root root 10 Jun 7 13:47 /dev/ttyACM9 -> /dev/pts/2
crwxrwxrwx 1 openhab dialout 136, 2 Jun 7 2018 /dev/pts/2
Hmm as far as i remember there is a thread about ser2net and based on that description it works very reliable on my system with blue giga adapters. The startup ist implemented as a daemon with reconnect. You should search the forum
Thanks yes, I’m aware of posts explaining others setups but I still have problems. So far as I’m aware I’ve tried everything I could find - this has been a problem for quite a while. It won’t work then suddenly springs into life.
I’ll give usb2ip a go. I’m not convinced the link itself is a problem as socat stays running, but I’m out of ideas!
However “usbip port” doesn’t work but the link does, happily.
When you set up the remote end, it’s worth doing a netstat to check the code is listening to the port as I did have a situation once where the code seemed to be working but it wasn’t listening.