In the newer builds, [tt]serproxy[/tt] “launches” [tt]ser2net[/tt] to handle the RS232-Ethernet interfacing. I recently added a 2nd Serial port as decribed in the thread:
http://forum.micasaverde.com/index.php?topic=1471.0
and added it to the [tt]serproxy.ports[/tt] file so it would be recognized by Vera:
root@HomeControl:/tmp/log/cmh# cat /etc/cmh/serproxy.ports
vendor:067b product:2303
When I do this, the [tt]serproxy/ser2net[/tt] stops functioning for ANY of the attached serial ports. This is because [tt]ser2net[/tt] doesn’t start, and looks like the following in [tt]/var/log/cmh/serproxy.log[/tt] (extraneous lines filtered between calls to [tt]ser2net[/tt]):
08/04/09 20:48:38 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
08/04/09 20:48:46 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
08/04/09 20:48:53 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
08/04/09 20:49:00 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
08/04/09 20:49:08 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
08/04/09 20:49:15 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
08/04/09 20:49:22 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
08/04/09 20:49:30 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
08/04/09 20:49:37 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE"-C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
The problem is that there’s a SPACE character missing before the 2nd “-C” command line option, so [tt]ser2net[/tt] simply bails out.
Please add a space before the second “-C” as follows:
08/04/09 20:49:37 Running: /usr/bin/ser2net -n -C "3481:raw:0:/dev/usb/tts/1:57600 1STOPBIT NONE" -C "3482:raw:0:/dev/usb/tts/2:9600 1STOPBIT NONE"
subtle, but it fixes the problem, and the [tt]ser2net[/tt] starts and listens on both Ports correctly.
MCV: Can you build this into one of the formal luup releases?