I have two USB devices I have connect to a server, but will use on another server.
The server which are connected physical with the USB sticks are a raspary pi, the Domoticz server I use them on is a 64bit virtual ubnutu server.
The two units are as follows:
1. RFXtrx433E http: //www.rfxcom.co...nsceivers/14103
2. UZB1 https://www.z-wave.me/index.php?id=28
On the Pi I have isntalled and configurated ser2net. and added the following to ser2net.conf
Code: Select all
10001:raw:0:/dev/ttyUSB0:38400 8DATABITS NONE 1STOPBIT
10003:raw:0:/dev/ttyACM0:38400 8DATABITS NONE 1STOPBIT
But Domoticz does not support using UZB1 directly on IP, so I must therefore emulate it as a local unit of ubuntu.
I hear Socat should be a good program for this, but I get it simply not to work.
Here are device pi-one:
Code: Select all
[ 1.139817] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.340108] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 1.340121] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.619853] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.720170] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 1.721799] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber =0
[ 1.795420] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb- 1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:2c:90:58
[ 1.899860] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
[ 1.989817] usb 1-1.3: device descriptor read/64, error -32
[ 2.179825] usb 1-1.3: device descriptor read/64, error -32
[ 2.369836] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
[ 2.449854] usb 1-1.3: device descriptor read/64, error -32
[ 2.639829] usb 1-1.3: device descriptor read/64, error -32
[ 2.829827] usb 1-1.3: new full-speed USB device number 6 using dwc_otg
[ 3.249848] usb 1-1.3: device not accepting address 6, error -32
[ 3.371954] usbcore: registered new interface driver brcmfmac
[ 3.509806] usb 1-1.3: new full-speed USB device number 8 using dwc_otg
[ 3.614989] usb 1-1.3: New USB device found, idVendor=0658, idProduct=0200
[ 3.616735] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber =1
[ 3.618455] usb 1-1.3: SerialNumber: 12345678-9012-3456-7890-123456789012
Code: Select all
flemmingss@VM4:~$ sudo socat pty,link=/dev/UZB1overIP,raw,echo=0 tcp:pi1:10003
2017/01/20 00:01:52 socat[18873] E connect(7, AF=2 192.168.1.115:10003, 16): Connection refused
flemmingss@VM4:~$ sudo socat pty,link=/dev/lio3,raw,echo=0 tcp:pi1:10003
2017/01/20 00:02:34 socat[18884] E connect(7, AF=2 192.168.1.115:10003, 16): Connection refused
flemmingss@VM4:~$
flemmingss@VM4:~$ sudo socat pty,link=/dev/ttyACM0,raw,echo=0 tcp:pi1:10003
[sudo] password for flemmingss:
2017/01/20 00:22:58 socat[19131] E connect(7, AF=2 192.168.1.115:10003, 16): Connection refused
flemmingss@VM4:~$
"pi1" is the hostname for pi