Just received the FTDI USB<->RS-232 converter. Installed the FTDI on WIN7 PC and was able to communicate with the pool controller vi HyperTerminal. Next, plugged the FTDI in Vera and configured. Apps->Dev Apps->Serial Port Config and set the comm settings to 19200/8/N/2 and used by 'Swimming Pool / Spa". The only other USB<->RS-232 I have is the BAFO connected to a DCS alarm panel which is functioning properly. This makes me think the /etc/ser2net.conf is not used by Vera???
I get the same results as with the BAFO “When connected Vera I keep reading characters from lul_data that say the “PORT IS ALREADY IN USE”. The message at the top of the UI states that the plugin faield to open the port.” Does port mean the USB port (/dev/ttyUSB0) or the TCP/IP port (3481)?
Contents of /etc/ser2net.conf :
BANNER:banner1:Welcome to ser2net TCP port \p device \d\r\n
second line
third line\r\n
BANNER:banner2:this is ser2net TCP port \p device \d\r\n
second line
third line\r\n
BANNER:banner3:this is ser2net TCP port \p device \d serial parms \s\r\n
TRACEFILE:tw1:/tmp/tw-\p-\Y-\M-\D-\H:\i:\s.\U
TRACEFILE:tr1:/tmp/tr-\p-\Y-\M-\D-\H:\i:\s.\U
2001:raw:600:/dev/ttyS0:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
#2002:raw:600:/dev/ttyS1:9600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
2003:raw:5:/dev/ttyS2:9600
2004:raw:5:/dev/ttyS3:115200
2005:raw:5:/dev/ttyS4:9600
2006:raw:5:/dev/ttyS5:9600
2007:raw:5:/dev/ttyS6:9600 tw=tw1 tr=tr1
3001:telnet:0:/dev/ttyS0:19200 remctl banner1
3011:telnet:3:/dev/ttyS0:19200 banner2
#3002:telnet:0:/dev/ttyS1:9600
3003:telnet:0:/dev/ttyS2:9600 banner3
3004:telnet:0:/dev/ttyS3:115200
3005:telnet:0:/dev/ttyS4:9600
3006:telnet:0:/dev/ttyS5:9600
3007:telnet:0:/dev/ttyS6:9600
5001:rawlp:10:/dev/lp0
Contents os /var/log/cmh/serproxy.log :
02/16/13 10:50:44 ===—Running 4 with Luup IP: 127.0.0.1 ID: 30001308 My IP: 127.0.0.1 COM: none
02/16/13 10:50:44 ==Skipping unknown Serial Port: usbserinfo:1.0 driver:2.0
02/16/13 10:50:44 ==Found Serial Port: 0 path:/dev/ttyUSB0 name: ftdi_sio id: usb-rt3883-ohci-1 vendor: 403 product: 6001
02/16/13 10:50:44 ==Found Serial Port: 1 path:/dev/ttyUSB1 name: pl2303 id: usb-rt3883-ohci-2 vendor: 67 product: 2303
02/16/13 10:50:44 ===Number of Serial Ports found: 2
02/16/13 10:50:44 Downloaded http://127.0.0.1:3480/data_request?id=lu_finddevice&devid=30001308&devtype=urn:micasaverde-org:device:SerialPortRoot:1 to /tmp/serproxy.1-2841 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.1-2841” “http://127.0.0.1:3480/data_request?id=lu_finddevice&devid=30001308&devtype=urn:micasaverde-org:device:SerialPortRoot:1” Response 0
02/16/13 10:50:44 Parent serial device: 138
02/16/13 10:50:44 Downloaded http://127.0.0.1:3480/data_request?id=lu_childdevices&DeviceNum=138 to /tmp/serproxy.2-2841 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.2-2841” “http://127.0.0.1:3480/data_request?id=lu_childdevices&DeviceNum=138” Response 0
02/16/13 10:50:44 fetch_port_list fetched 44 dat to compare with 2 ports
02/16/13 10:50:44 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=path to /tmp/serproxy.3-2841 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.3-2841” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=path” Response 0
02/16/13 10:50:44 port_list_matches device 143 now on path /dev/ttyUSB0 instead of /dev/ttyUSB1
02/16/13 10:50:44 Reporting child device usb-rt3883-ohci-1/ftdi_sio
02/16/13 10:50:44 Reporting child device usb-rt3883-ohci-2/pl2303
02/16/13 10:50:44 Downloaded http://127.0.0.1:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=ProcessChildDevices&DeviceNumParent=138&DeviceList=ID=usb-rt3883-ohci-1 Embedded=1 Invisible=1 UpnpDevFilename=D_SerialPort1.xml DeviceType=urn:micasaverde-org:device:SerialPort:1 Description=ftdi_sio Argument,urn:micasaverde-com:serviceId:HaDevice1,Protocol=RS232 Argument,urn:micasaverde-org:serviceId:SerialPort1,vendor=403 Argument,urn:micasaverde-org:serviceId:SerialPort1,product=6001 Argument,urn:micasaverde-org:serviceId:SerialPort1,path=/dev/ttyUSB0
ID=usb-rt3883-ohci-2 Embedded=1 Invisible=1 UpnpDevFilename=D_SerialPort1.xml DeviceType=urn:micasaverde-org:device:SerialPort:1 Description=pl2303 Argument,urn:micasaverde-com:serviceId:HaDevice1,Protocol=RS232 Argument,urn:micasaverde-org:serviceId:SerialPort1,vendor=67 Argument,urn:micasaverde-org:serviceId:SerialPort1,product=2303 Argument,urn:micasaverde-org:serviceId:SerialPort1,path=/dev/ttyUSB1 to /tmp/serproxy.4-2841 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.4-2841” “http://127.0.0.1:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=ProcessChildDevices&DeviceNumParent=138&DeviceList=ID=usb-rt3883-ohci-1 Embedded=1 Invisible=1 UpnpDevFilename=D_SerialPort1.xml DeviceType=urn:micasaverde-org:device:SerialPort:1 Description=ftdi_sio Argument,urn:micasaverde-com:serviceId:HaDevice1,Protocol=RS232 Argument,urn:micasaverde-org:serviceId:SerialPort1,vendor=403 Argument,urn:micasaverde-org:serviceId:SerialPort1,product=6001 Argument,urn:micasaverde-org:serviceId:SerialPort1,path=/dev/ttyUSB0
ID=usb-rt3883-ohci-2 Embedded=1 Invisible=1 UpnpDevFilename=D_SerialPort1.xml DeviceType=urn:micasaverde-org:device:SerialPort:1 Description=pl2303 Argument,urn:micasaverde-com:serviceId:HaDevice1,Protocol=RS232 Argument,urn:micasaverde-org:serviceId:SerialPort1,vendor=67 Argument,urn:micasaverde-org:serviceId:SerialPort1,product=2303 Argument,urn:micasaverde-org:serviceId:SerialPort1,path=/dev/ttyUSB1” Response 0
02/16/13 10:50:44 ==Created 2 child devices
02/16/13 10:50:44 Downloaded http://127.0.0.1:3480/data_request?id=lu_reload&source=serproxy to /tmp/serproxy.5-2841 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.5-2841” “http://127.0.0.1:3480/data_request?id=lu_reload&source=serproxy” Response 0
02/16/13 10:50:44 Exiting after reporting changed devices
02/16/13 10:50:50 ===—Running 4 with Luup IP: 127.0.0.1 ID: 30001308 My IP: 127.0.0.1 COM: none
02/16/13 10:50:50 ==Skipping unknown Serial Port: usbserinfo:1.0 driver:2.0
02/16/13 10:50:50 ==Found Serial Port: 0 path:/dev/ttyUSB0 name: ftdi_sio id: usb-rt3883-ohci-1 vendor: 403 product: 6001
02/16/13 10:50:50 ==Found Serial Port: 1 path:/dev/ttyUSB1 name: pl2303 id: usb-rt3883-ohci-2 vendor: 67 product: 2303
02/16/13 10:50:50 ===Number of Serial Ports found: 2
02/16/13 10:50:50 Downloaded http://127.0.0.1:3480/data_request?id=lu_finddevice&devid=30001308&devtype=urn:micasaverde-org:device:SerialPortRoot:1 to /tmp/serproxy.1-3001 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.1-3001” “http://127.0.0.1:3480/data_request?id=lu_finddevice&devid=30001308&devtype=urn:micasaverde-org:device:SerialPortRoot:1” Response 1792
02/16/13 10:50:50 Download failed
02/16/13 10:50:50 find_self failed
02/16/13 10:50:56 ===—Running 4 with Luup IP: 127.0.0.1 ID: 30001308 My IP: 127.0.0.1 COM: none
02/16/13 10:50:56 ==Skipping unknown Serial Port: usbserinfo:1.0 driver:2.0
02/16/13 10:50:56 ==Found Serial Port: 0 path:/dev/ttyUSB0 name: ftdi_sio id: usb-rt3883-ohci-1 vendor: 403 product: 6001
02/16/13 10:50:56 ==Found Serial Port: 1 path:/dev/ttyUSB1 name: pl2303 id: usb-rt3883-ohci-2 vendor: 67 product: 2303
02/16/13 10:50:56 ===Number of Serial Ports found: 2
02/16/13 10:50:56 Downloaded http://127.0.0.1:3480/data_request?id=lu_finddevice&devid=30001308&devtype=urn:micasaverde-org:device:SerialPortRoot:1 to /tmp/serproxy.1-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.1-3120” “http://127.0.0.1:3480/data_request?id=lu_finddevice&devid=30001308&devtype=urn:micasaverde-org:device:SerialPortRoot:1” Response 0
02/16/13 10:50:56 Parent serial device: 138
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_childdevices&DeviceNum=138 to /tmp/serproxy.2-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.2-3120” “http://127.0.0.1:3480/data_request?id=lu_childdevices&DeviceNum=138” Response 0
02/16/13 10:50:57 fetch_port_list fetched 44 dat to compare with 2 ports
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=path to /tmp/serproxy.3-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.3-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=path” Response 0
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=path to /tmp/serproxy.4-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.4-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=path” Response 0
02/16/13 10:50:57 readcfg port list matches
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-com:serviceId:HaDevice1&Variable=IOPort to /tmp/serproxy.5-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.5-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-com:serviceId:HaDevice1&Variable=IOPort” Response 0
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=baud to /tmp/serproxy.6-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.6-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=baud” Response 0
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=stopbits to /tmp/serproxy.7-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.7-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=stopbits” Response 0
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=databits to /tmp/serproxy.8-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.8-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=databits” Response 13312
02/16/13 10:50:57 Download failed
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=parity to /tmp/serproxy.9-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.9-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=143&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=parity” Response 13312
02/16/13 10:50:57 Download failed
02/16/13 10:50:57 ===Setting up serproxy for port usb-rt3883-ohci-1/ftdi_sio on: /dev/ttyUSB0 device 143 netport 3481 baud 19200 N/8/2…
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-com:serviceId:HaDevice1&Variable=IOPort to /tmp/serproxy.10-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.10-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-com:serviceId:HaDevice1&Variable=IOPort” Response 0
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=baud to /tmp/serproxy.11-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.11-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=baud” Response 0
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=stopbits to /tmp/serproxy.12-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.12-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=stopbits” Response 0
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=databits to /tmp/serproxy.13-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.13-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=databits” Response 13312
02/16/13 10:50:57 Download failed
02/16/13 10:50:57 Downloaded http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=parity to /tmp/serproxy.14-3120 with /usr/bin/curl -k -s -S --fail --connect-timeout 5 --max-time 5 -o “/tmp/serproxy.14-3120” “http://127.0.0.1:3480/data_request?id=lu_variableget&DeviceNum=142&serviceId=urn:micasaverde-org:serviceId:SerialPort1&Variable=parity” Response 13312
02/16/13 10:50:57 Download failed
02/16/13 10:50:57 ===Setting up serproxy for port usb-rt3883-ohci-2/pl2303 on: /dev/ttyUSB1 device 142 netport 3482 baud 9600 N/8/1…
02/16/13 10:50:57 Running: ser2net -n -C “3481:raw:0:/dev/ttyUSB0:19200 2STOPBITS NONE” -C “3482:raw:0:/dev/ttyUSB1:9600 1STOPBIT NONE”