BAFO USB to serial adapter not showing in Vera's WEB UI

I noticed that some users like 325xi seem to have good experience with the BAFO DX SKU 5947. I purchased a couple of them, and are having some issues. The adapter does not appear in vera’s web UI, but is somehow recognized by vera, as dmesg shows this:

+hub.c: new USB device 00:03.0-1.1, assigned address 7
+usb.c: kmalloc IF 8125a440, numif 1
+usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0
+usb.c: USB device number 7 default language ID 0x409
+Manufacturer: Prolific Technology Inc.
+Product: USB-Serial Controller
+usbserial.c: PL-2303 converter detected
+usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
+usb.c: serial driver claimed interface 8125a440
+usb.c: kusbd: /sbin/hotplug-call add 7
hub.c: port 2, portstatus 103, change 0, 12 Mb/s

I read some guys writing a seerproxy inside vera,

Then MCV later says that seerproxy is no longer used, as it is replaced by ser2net
http://wiki.micasaverde.com/index.php/Windows_Serial_Proxy

I am 100% confused. How can I make this USB to serial adapter work with vera so it shows in the web ui?

Relevant links to this post:
List of supported hardware: http://wiki.micasaverde.com/index.php/Serial_Supported_Hardware
Discussion of seerproxy: http://forum.micasaverde.com/index.php?topic=1170.60
Steps on how to determine if Vera is at all recognizing the USB to Serial adapter (using dmesg): http://forum.micasaverde.com/index.php?topic=1471.0

@nanckekr

From your email yesterday it sounds like you addressed this by adding the entry into the [tt]serproxy.ports[/tt] file. Please post again if this isn’t the case.

For some background…
The [tt]serproxy[/tt] module is a Vera-specific Linux program that Vera uses to “detect” the USB devices being plugged in, and configure (add, remove) Serial Port entries in Vera’s UI. It runs in the background and automatically manages the Lifecycle of these entries in Vera. Most people don’t need to know this exists as, well, “it just works” 8)

Internally, [tt]serproxy[/tt] “wrappers” (Launches) [tt]ser2net[/tt], which is a standard/open-source module that actually does the Ethernet-to-Serial Proxying work, including establishing Baud rates, etc.

[tt]serproxy[/tt] will effectively restart [tt]ser2net[/tt] each time someone plugs-in, or removes, a USB-attached Serial port.

I was planning to write a summary for the forum, but wanted to wait until I had tried the steps a couple of times to make sure they are correct. At some point Vera may be able to recognize the BAFO USB to serial adapter and have it display in Vera’s WEB without hacking via SSH, but for now this seems to be required. The steps below describes all sections and can be used for users even if they have no clue what SSH actually is :slight_smile:

  1. Set SSH password: From Vera control panel
    1. Advanced–>Net & wifi–>Advanced configuration
    2. This gives a page of the router login. Here you are prompted to create a root password. Set that (twice)
  2. SSH into Vera
    1. Download putty.exe (no installation required)Download PuTTY: latest release (0.78)
    2. Start putty and point to Vera’s IP address (found by http://findvera.com)
    3. Set root as username and use the password from before
  3. Enable the FABO USB to serial adapter, via SSH:
    1. echo "vendor:067b product:2303" >> /etc/cmh/serproxy.ports
  4. In Vera’s web UI select Devices–>Luup plugins–>Serial Port configuration
    1. Now the serial adapter will display with a set of configurable parameters like baudraate etc. and some prefilled parameters like
      * name=“pl2303’”
      * device number = “usb-00:03.0-1.1” (or similar)
    2. The adapter also as a parameter with a pop-down box called: “use this device with”. Don’t change this yet, as we need to install the luup application we want to use with the serial port fist :slight_smile:

As a side comment, not related to the subject on this thread - in case you want to use the Somfy blind controller interface - then I wanted to highlight the importance of following every single part of the steps here http://wiki.micasaverde.com/index.php/Somfy_Plugin

The trick here is, that the deafault value in the somfy controller plugin for the “Urtsild” parameter is not correct. The steps to make it correct is covered in detail in the tutorial on the wiki above. Obviously this require the serial port to be configurable through the web UI which my first post covers in the beginning.

I only hope that some beautiful day I’ll upgrade FW and will see an easy way to add serial ports and download serial adapters configs in actually user-friendly way… No, stop dreaming, start working…

@325xi, having a bad day? 8)

Personally I’d be happy with CJ completing the list he set out in the sticky thread on Serial ports :slight_smile: At this point it’s more of “the path well taken” for anyone that’s wanting to try this without hurt.

It the BAFO’s require manual steps, can you update the Wiki to specifically indicate that? I think we’ll want to drive folks to one of a smaller set of [cheap] models that work, and warn them about the pitfalls for all other models.

wiki updated with link to post containing the required steps

Looks like the edit might have collided, since it didn’t stick in the wiki.

My mistake - I forgot to enter the capcha words…

I’ll have to remember what I did then… Couldn’t run a cable from second floor to basement, and so being unable to do serial over wifi I eventually had to hibernate that project altogether…

[quote=“nanckekr, post:3, topic:165402”] 3. Enable the FABO USB to serial adapter, via SSH:
1. echo "vendor:067b product:2303" >> /etc/cmh/serproxy.ports[/quote]

It works with iTec USB to RS232 adapter http://www.i-tec-europe.eu as well