Author Topic: How to make Vera recognize your USB-to-Serial Adapter  (Read 61685 times)

Offline LibraSun

  • Hero Member
  • *****
  • Posts: 542
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #15 on: September 17, 2009, 05:40:02 pm »
I'd certainly love to augment your (great, by the way!) wiki page, but...

...I'm not 100% certain my cable isn't faulty.  I mean, how many products register themselves as Mfr. code 000 and Dev. ID 000 in Windows, and refuse ALL of the drivers contained on their own mini-CD?

So, I'm still trying to resolve whether I'm dealing with a broken product, or just a poorly documented one.  Once I'm convinced either way, I will update your table(s).  THANKS!
Vera Model I running UI4 (Firmware 1.1.1338), died in 2015
Vera Plus running UI7 (Firmware 1.7.2935)

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #16 on: September 17, 2009, 11:44:55 pm »
I just update wiki with my experience with the adapters... Vera seems to be more sensitive then plain Kamikaze - I suspect a bit outdated drivers...

Offline guessed

  • Master Member
  • *******
  • Posts: 5294
  • Karma: +90/-22
  • Release compat is not a bolted-on afterthought
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #17 on: November 28, 2009, 08:52:34 pm »
@CJ, I borrowed the 8-Port USB-Serial adapter from @nanckekr that he was trying to get working back in June/July.  It was discussed in this thread:

    http://forum.micasaverde.com/index.php?topic=1170.45

and I'd previously created a placeholder for the device in the Serial USB Wiki page:

    http://wiki.micasaverde.com/index.php/Serial_Supported_Hardware


To make it work cleanly out of the box with Vera, there are a few things to be sorted:

a) Default install should pre-configure the /etc/modules.d/65-usb-serial-ftdi file
You reference this in the first post, but it doesn't appear in the Default Vera build (1.0.980), so folks have to manually add with the command line interface to get this device recognized.

Here is the  default setting for this file in 1.0.980:
Code: [Select]
    ftdi_sio
and here's what's needed to make it recognise this USB-Serial controller:
Code: [Select]
    ftdi_sio vendor=0x403 product=0x6010
Can you add this to the standard image so folks don't need to add it manually?

b) "id" code in serproxy/ser2net creates duplicate labels
This device has "Dual" UARTs per USB entry, which shows as follows in the lsusb listing:

Code: [Select]
...
Bus 001 Device 006: ID 05e3:0604 Genesys Logic, Inc. USB 1.1 Hub
Bus 001 Device 007: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 001 Device 008: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 001 Device 009: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 001 Device 010: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC

Unfortunately serproxy/ser2net then goes and creates "duplicate" id values as can be seen in the following log:

11/28/09 17:14:05 ==Found Serial Port: 1 path:/dev/usb/tts/2 name: ftdi_sio id: usb-00:03.0-1.2.4.1
11/28/09 17:14:05 ==Found Serial Port: 2 path:/dev/usb/tts/3 name: ftdi_sio id: usb-00:03.0-1.2.4.1
11/28/09 17:14:05 ==Found Serial Port: 3 path:/dev/usb/tts/4 name: ftdi_sio id: usb-00:03.0-1.2.4.2
11/28/09 17:14:05 ==Found Serial Port: 4 path:/dev/usb/tts/5 name: ftdi_sio id: usb-00:03.0-1.2.4.2
11/28/09 17:14:05 ==Found Serial Port: 5 path:/dev/usb/tts/6 name: ftdi_sio id: usb-00:03.0-1.2.4.3
11/28/09 17:14:05 ==Found Serial Port: 6 path:/dev/usb/tts/7 name: ftdi_sio id: usb-00:03.0-1.2.4.3
11/28/09 17:14:05 ==Found Serial Port: 7 path:/dev/usb/tts/8 name: ftdi_sio id: usb-00:03.0-1.2.4.4
11/28/09 17:14:05 ==Found Serial Port: 8 path:/dev/usb/tts/9 name: ftdi_sio id: usb-00:03.0-1.2.4.4


These Id's are used by Vera in the Serial Port's "Device Number" field in Vera.  Since they're not unique, Vera only "sees" this as a 4-Port serial device, not an 8-Port device.  (See attached screenshot)

c) Plugging this device in, with the above issues, results in loss of connectivity to the ZWave dongle
The devices appear to be claimed correctly by the FTDI drivers, and there's nothing in particular in dmesg to indicate a problem, but if I boot with the device connected, then the other Serial devices (my Alarm Panel, and the ZWave dongle) both seem to drop out.  They show in device listings (Etc) but Vera has problems communicating with them.

I suspect it relates to the duplicate Id's in (b) above, but can't tell.



For now, it's unplugged.  Ping me offline directly if you want to debug it more directly on Vera and I'll plug it in.  I'd like to get this (or it's 4-port equiv) working to help with folks who want direct-wiring of their Media Devices (Amp, TV) and Blinds.

Offline cj

  • Hero Member
  • *****
  • Posts: 1253
  • Karma: +1/-0
    • MiCasaVerde
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #18 on: December 18, 2009, 12:49:11 pm »
Manufacturer: B&B Electronics
Product: Model 485USBTB-2W
SerialNumber: BBR7EC7C
usb.c: unhandled interfaces on device
usb.c: USB device 4 (vend/prod 0x856/0xac33) is not claimed by any active driver.
  Length              = 18
  DescriptorType      = 01
  USB version         = 2.00
  Vendor:Product      = 0856:ac33
  MaxPacketSize0      = 8
  NumConfigurations   = 1
  Device version      = 6.00
  Device Class:SubClass:Protocol = 00:00:00
    Per-interface classes
Configuration:
  bLength             =    9
  bDescriptorType     =   02
  wTotalLength        = 0020
  bNumInterfaces      =   01
  bConfigurationValue =   01
  iConfiguration      =   00
  bmAttributes        =   80
  MaxPower            =  100mA

  Interface: 0
  Alternate Setting:  0
    bLength             =    9
    bDescriptorType     =   04
    bInterfaceNumber    =   00
    bAlternateSetting   =   00
    bNumEndpoints       =   02
    bInterface Class:SubClass:Protocol =   ff:ff:ff
    iInterface          =   02
    Endpoint:
      bLength             =    7
      bDescriptorType     =   05
      bEndpointAddress    =   81 (in)
      bmAttributes        =   02 (Bulk)
      wMaxPacketSize      = 0040
      bInterval           =   00
    Endpoint:
      bLength             =    7
      bDescriptorType     =   05
      bEndpointAddress    =   02 (out)
      bmAttributes        =   02 (Bulk)
      wMaxPacketSize      = 0040
      bInterval           =   00
usb.c: kusbd: /sbin/hotplug-call add 4


Bus 001 Device 004: ID 0856:ac33 B&B Electronics
insmod ftdi_sio vendor=0x856 product=0xac33

Offline michaelk

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 634
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #19 on: January 30, 2010, 12:37:05 am »
@CJ, I borrowed the 8-Port USB-Serial adapter from @nanckekr that he was trying to get working back in June/July.  It was discussed in this thread:

    http://forum.micasaverde.com/index.php?topic=1170.45

and I'd previously created a placeholder for the device in the Serial USB Wiki page:

    http://wiki.micasaverde.com/index.php/Serial_Supported_Hardware


To make it work cleanly out of the box with Vera, there are a few things to be sorted:

a) Default install should pre-configure the /etc/modules.d/65-usb-serial-ftdi file
You reference this in the first post, but it doesn't appear in the Default Vera build (1.0.980), so folks have to manually add with the command line interface to get this device recognized.

Here is the  default setting for this file in 1.0.980:
Code: [Select]
    ftdi_sio
and here's what's needed to make it recognise this USB-Serial controller:
Code: [Select]
    ftdi_sio vendor=0x403 product=0x6010
Can you add this to the standard image so folks don't need to add it manually?

b) "id" code in serproxy/ser2net creates duplicate labels
This device has "Dual" UARTs per USB entry, which shows as follows in the lsusb listing:

Code: [Select]
...
Bus 001 Device 006: ID 05e3:0604 Genesys Logic, Inc. USB 1.1 Hub
Bus 001 Device 007: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 001 Device 008: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 001 Device 009: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 001 Device 010: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC

Unfortunately serproxy/ser2net then goes and creates "duplicate" id values as can be seen in the following log:

11/28/09 17:14:05 ==Found Serial Port: 1 path:/dev/usb/tts/2 name: ftdi_sio id: usb-00:03.0-1.2.4.1
11/28/09 17:14:05 ==Found Serial Port: 2 path:/dev/usb/tts/3 name: ftdi_sio id: usb-00:03.0-1.2.4.1
11/28/09 17:14:05 ==Found Serial Port: 3 path:/dev/usb/tts/4 name: ftdi_sio id: usb-00:03.0-1.2.4.2
11/28/09 17:14:05 ==Found Serial Port: 4 path:/dev/usb/tts/5 name: ftdi_sio id: usb-00:03.0-1.2.4.2
11/28/09 17:14:05 ==Found Serial Port: 5 path:/dev/usb/tts/6 name: ftdi_sio id: usb-00:03.0-1.2.4.3
11/28/09 17:14:05 ==Found Serial Port: 6 path:/dev/usb/tts/7 name: ftdi_sio id: usb-00:03.0-1.2.4.3
11/28/09 17:14:05 ==Found Serial Port: 7 path:/dev/usb/tts/8 name: ftdi_sio id: usb-00:03.0-1.2.4.4
11/28/09 17:14:05 ==Found Serial Port: 8 path:/dev/usb/tts/9 name: ftdi_sio id: usb-00:03.0-1.2.4.4


These Id's are used by Vera in the Serial Port's "Device Number" field in Vera.  Since they're not unique, Vera only "sees" this as a 4-Port serial device, not an 8-Port device.  (See attached screenshot)

c) Plugging this device in, with the above issues, results in loss of connectivity to the ZWave dongle
The devices appear to be claimed correctly by the FTDI drivers, and there's nothing in particular in dmesg to indicate a problem, but if I boot with the device connected, then the other Serial devices (my Alarm Panel, and the ZWave dongle) both seem to drop out.  They show in device listings (Etc) but Vera has problems communicating with them.

I suspect it relates to the duplicate Id's in (b) above, but can't tell.



For now, it's unplugged.  Ping me offline directly if you want to debug it more directly on Vera and I'll plug it in.  I'd like to get this (or it's 4-port equiv) working to help with folks who want direct-wiring of their Media Devices (Amp, TV) and Blinds.

I''l add it to the wiki- but wanted to let the powers that be know that the this 4-port model comes up fine to be configured by the vera UI.

http://www.mcmelectronics.com/product/83-10137

I happened to have it floating around from my old homeseer system also. 

just plugged it in.

I saw a post that the to kick things over have to hit save or reboot. SO I hit save. Vera took loingerthan usual to come back. when it came back up i went into serial configuration and all looks well.

Offline michaelk

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 634
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #20 on: January 30, 2010, 01:50:41 am »
   
I''l add it to the wiki- but wanted to let the powers that be know that the this 4-port model comes up fine to be configured by the vera UI.

http://www.mcmelectronics.com/product/83-10137

I happened to have it floating around from my old homeseer system also. 

just plugged it in.

I saw a post that the to kick things over have to hit save or reboot. SO I hit save. Vera took loingerthan usual to come back. when it came back up i went into serial configuration and all looks well.



or maybr not..... not sure if it is working . I can't get my 2414s insteon cottoller to work with i...


I'll fight some more later. Going to bed...

Offline michaelk

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 634
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #21 on: January 30, 2010, 12:25:45 pm »
so searched and read some more here that the 2414 is not supported currently by vera.  So I dont really know if the  usb-> 4-port serial adapter is in fact working as I dont have a serial device that will work with vera to confirm.

But it seems to show up properly and vera lets me fiddle with the various values.


Offline michaelk

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 634
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #22 on: February 24, 2010, 07:17:46 pm »
for those interested- I can confirm the 4-port model above works fine.

(broke down and bought a 2412s to play with it)

Offline LibraSun

  • Hero Member
  • *****
  • Posts: 542
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #23 on: March 07, 2010, 04:41:14 pm »
Hey (sarcasm mode = ON), let me know when things get simpler, and I can "Just plug the USB-to-Serial cable/adapter in, and Vera will recognize it."  (sarcasm mode = STANDBY)

The moment someone starts in with "Go to the Linux command line and type (insert several lines of meaningless Mandarin Chinese here)..." my eyes glaze over and I feel violated.
Vera Model I running UI4 (Firmware 1.1.1338), died in 2015
Vera Plus running UI7 (Firmware 1.7.2935)

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #24 on: May 04, 2010, 08:38:27 pm »
Vera is always connected device, there's no reason for it not to ask a repository at findvera what to do with this specific adapter, and download whatever script reqired...

Offline LibraSun

  • Hero Member
  • *****
  • Posts: 542
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #25 on: May 04, 2010, 10:53:01 pm »
I keep promising myself I will try again, but frankly got SO frustrated trying to make X10 work with Vera (my primary aim when I bought her!) that I've given up.  Now, Vera just turns on a lamp, sets my thermostat temperatures, and manages my Schlage lock.
Period.  All else has been put on hold until I feel the X10 issue has been resolved.
...
Vera Model I running UI4 (Firmware 1.1.1338), died in 2015
Vera Plus running UI7 (Firmware 1.7.2935)

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #26 on: May 04, 2010, 11:05:21 pm »
It might be easier to upgrade from X10 then...

Offline cramer

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #27 on: December 16, 2010, 08:27:01 am »
Vera2  1.1.1047

Has the install of USB -> Serial adapters moved on?

I have a cable which reports in Windows as Vendor 0x403  Product 0x6010  (FT2232H)

I have followed the instructions for rmmod -f ftdi_sio and insmod 0x403 0x6010 but don't get anything useful in dmesg and nothing in the Dashboard.

Correction: I can now see the device attached with the 232BM driver but still nothing in the MiosDevelopers / Serial Configuration of the dashboard.
« Last Edit: December 16, 2010, 09:37:04 am by cramer »

Offline Sebastian

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #28 on: November 30, 2011, 07:11:47 am »
"IF YOU FIND THAT THIS IS WORKING FOR YOUR ADAPTER PLEASE PASTE ON THIS THREAD IT'S KERNEL MODULE, VENDOR AND PRODUCT CODE SO I COULD ADD THEM BY DEFAULT IN THE FIRMWARE."
[/quote]

Hi CJ,

I just want to have your advise:
I want to use the zwave.me (http://en.z-wave.me) service both with my vera2.
For that, I need to use a little prg downloaded from zwave.me (=z-connector package) to autorize communication between my zwave network and the zwave prg "zwave.me" runing on the cloud. This also need to use a zwave antenna like AEON LABS z-stick (or even integrated zwave antenna from vera2?).
I'm not programmer and I really need some help to do that or even just to know if it's possible. I want to join the package so that you can check it but I can't do that on this post. The package is available on http://en.z-wave.me and really light to download.
Could you please give me 5 min and check that?
I'll really be grateful.

Thank you,

sebastian


Offline utz

  • Sr. Member
  • ****
  • Posts: 274
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #29 on: February 25, 2012, 07:20:07 pm »
I have a device with a cp210x chipset. Serial communication works partly. I can receive data but I am unable to send data. Anyone an idea what this might be?

I added the line "vendor:10c4 product:ea60" to serproxy.ports and it is recognised in UI4.

0: module:cp210x name:"CP210X" vendor:10c4 product:ea60 num_ports:1 port:1 path:usb-00:03.0-1.1
1: module:pl2303 name:"PL-2303" vendor:067b product:2303 num_ports:1 port:1 path:usb-00:03.0-1.2.2
2: module:pl2303 name:"PL-2303" vendor:067b product:2303 num_ports:1 port:1 path:usb-00:03.0-1.2.4
« Last Edit: February 29, 2012, 04:57:13 am by utz »