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

Offline utz

  • Sr. Member
  • ****
  • Posts: 274
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #30 on: February 29, 2012, 06:03:36 pm »
Switched to an FTDI USB chip which now works both directions. I could not get the cp210x to work (could receive but not send data from vera). I am quite convinced the issue is with the cp210x driver on vera. If anyone has a hint how to fix this please let me know.

0: module:ftdi_sio name:"FTDI FT232BM Compatible" vendor:0403 product:6001 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

Offline utz

  • Sr. Member
  • ****
  • Posts: 274
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #31 on: March 04, 2012, 04:02:54 pm »
0: module:cp210x name:"CP210X" vendor:10c4 product:ea60 num_ports:1 port:1 path:usb-00:03.0-1.1
--> Can be made to work partly by editing serproxy.ports (receiving data but not sending).

0: module:ftdi_sio name:"FTDI FT232BM Compatible" vendor:0403 product:6001 num_ports:1 port:1 path:usb-00:03.0-1.1
--> Can be made to work by editing serproxy.ports (receiving data but not sending). Works reliably (so far) on 9600. With a speed of 115200 it stopped working after a while (all serial ports in the system then stop and no data is sent or received).

Seems to me the whole serproxy thing on vera2 is not very reliable. Is this just my experience (picking the two worst possible usb chips) or is that a general known issue (maybe it is fixed on newer vera systems with a fresh wrt version).

Offline Da_JoJo

  • Hero Member
  • *****
  • Posts: 1382
  • Karma: +16/-78
  • If something aint work, we can allways try n make
    • House Of Yu
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #32 on: March 07, 2012, 04:22:52 am »
device : usb-rt3883-ohci-1
chipset/name  : pl2303  / prolific 2303  usb<>rs232 bridge
running on port 3481

seems to work , have nothing to test it on as there is no rs232 plugin for my samsung tv (syncmaster 400p)
i have the codes for it though, so if anyone willing to cut n paste the data into plugin for the panasonic tv , it would be greatly appreciated. i have no time  look at it myself for the comming month or so :-( 

i was thinking.. maybe someone can make a virtual rs232 device on the pc which communicates with the vera so the vera can show the pc stats  hd usage/fan/temps etc ?  wouldnt that be cool :-)
Vera lite (1.5.622), 2x an-158/2, dead usb pl2302 rs-232, 2x greenwave 6 port, 4x Fibaro FGD211 v1.6, FGBS001, few FGS - 221, etc. AuthomationHD 3 for android :-)
Dutch & German translator http://wiki.micasaverde.com/index.php/Special:AllPages http://support.micasaverde.com http://domotica-shop.nl

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1981
  • Karma: +60/-193
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #33 on: April 14, 2012, 01:34:50 pm »
I have a Prolific PL2303 and would like to get it working.

This thread is difficult to follow... where are the instructions for a linux noobie (that can use command line, putty, etc) on how to get it running?

thx!

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 #34 on: April 14, 2012, 03:09:28 pm »
@Aaron,
CJ's post that started this thread is an accurate list of the commands to run, and the output to provide.  If you post the output, that he's referencing in that first post, to this thread then I'm sure someone will assist.

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1981
  • Karma: +60/-193
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #35 on: April 15, 2012, 10:47:28 pm »
@Aaron,
CJ's post that started this thread is an accurate list of the commands to run, and the output to provide.  If you post the output, that he's referencing in that first post, to this thread then I'm sure someone will assist.

after looking around it seems that the Vera with UI5 recognized the adapter I put on... I just needed to tell it to use that as the Insteon interface and it started reading the devices on my PLM. Pretty cool

Offline Charly86

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #36 on: June 18, 2012, 07:45:32 pm »
Guys,

you're lucky, I am in UI5 and no more serproxy.port file.

But, it sees my both usb serial (all after reboot of course)

Code: [Select]
root@MiOS_xxxxxxx:/# l /dev/tty*
crw-rw-rw-    1 root     root        5,   0 Jan  1  1970 /dev/tty
crw-rw-rw-    1 root     root        4,  64 Jun 19 01:40 /dev/ttyS0
crw-rw-rw-    1 root     root        4,  65 Jan  1  1970 /dev/ttyS1
crw-rw-rw-    1 root     root      188,   0 Jun 19 01:01 /dev/ttyUSB0
crw-rw-rw-    1 root     root      188,   1 Jun 19 01:01 /dev/ttyUSB1
root@MiOS_35101944:/#

and

Code: [Select]
root@MiOS_xxxxxx:/proc/tty/driver# cat usbserial
usbserinfo:1.0 driver:2.0
0: module:ftdi_sio name:"FTDI USB Serial Device" vendor:0403 product:6001 num_ports:1 port:1 path:usb-rt3883-ohci-1.1
1: module:cp210x name:"cp210x" vendor:10c4 product:ea60 num_ports:1 port:1 path:usb-rt3883-ohci-1.3
root@MiOS_35101944:/proc/tty/driver#

Ok, both are here but none in UI5, just my old pl2303 (prolific) is present.

Anyone can explain this or more have a solution to see my 2 usb serial in UI5 ?

Thank you for your help.

Offline Charly86

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #37 on: June 19, 2012, 10:30:35 am »
Well,

Guessed saved my life in this post (needed to manually create the file serproxy.ports)

http://forum.micasaverde.com/index.php/topic,10817.0.html

really thanks to him

By the way, anyone knows what is the use for the field "path" in serial port configuration ?
I think the device number field is used to be sure to identify the same device after reboot ? Is that correct ?



« Last Edit: June 19, 2012, 11:53:03 am by Charly86 »

Offline don key

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #38 on: July 24, 2012, 04:31:27 pm »
just got a vera lite and sq blaster and got all of that set up with no problems. now i'd like to interface my alarm via usb->serial adapter (belkin F5U409). I didn't see the belkin on the supported devices page but thought id give it a try anyways. This is my first attempt at ssh into vera and all seems to be well. this is what i get when i run the commands

"usb 2-1: USB disconnect, address 2
 mct_u232 ttyUSB0: MCT U232 converter now disconnected from ttyUSB0
 mct_u232 2-1:1.0: device disconnected
+usb 2-1: new full speed USB device using rt3883-ohci and address 3
+mct_u232 2-1:1.0: MCT U232 converter detected
+usb 2-1: MCT U232 converter now attached to ttyUSB0"

after checking back on UI5 i still have "not available" listed under Serial Port Config tab

is the adapter just not supported or did i need to do something with a "serproxy.ports" file

any help would be appreciated!

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3229
  • Karma: +181/-8
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #39 on: July 24, 2012, 06:12:57 pm »
don key,

You didn't say that you rebooted the Vera between here

+usb 2-1: new full speed USB device using rt3883-ohci and address 3
+mct_u232 2-1:1.0: MCT U232 converter detected
+usb 2-1: MCT U232 converter now attached to ttyUSB0"

and here

Quote
after checking back on UI5 i still have "not available" listed under Serial Port Config tab

so I'm assuming that you didn't.  Do that. Tell us how you go.

Edit: If that doesn't make any difference, you need to find out what the vendor and product ids are. run "lsusb" with the device unplugged, then again with it connected.  The new line is the one you need.  You can try feeding this into the /etc/cmh/serproxy.conf file, creating the file if necessary.

(Disclaimer: I haven't ever done this; I'm just going by the posts I've read.)

« Last Edit: July 24, 2012, 06:28:15 pm by futzle »

Offline alexk

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +1/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #40 on: August 26, 2012, 04:48:46 pm »
hello all,

need some help with my usb to Serial connection.
I am trying to connect my Vera light to my Caddx Alarm system and cant seem to get the usb to serial recognized.
I managed to understand how to log onto vera via putty and run the required commands.

this is what i get


root@MiOS_35102760:~# dmesg > /tmp/dmesg-post
root@MiOS_35102760:~# diff -u /tmp/dmesg-pre /tmp/dmesg-post
--- /tmp/dmesg-pre
+++ /tmp/dmesg-post
@@ -167,3 +167,4 @@
 JFFS2 notice: (375) check_node_data: wrong data CRC in data node at 0x005a1ca4:                                                                                                  read 0x148d3253, calculated 0x1a98721e.
 JFFS2 notice: (375) check_node_data: wrong data CRC in data node at 0x0032f7a4:                                                                                                  read 0x1463a5e3, calculated 0x5b00e93b.
 ramips-wdt: timeout value 60 must be 0 < timeout < 25
+usb 2-1: new full speed USB device using rt3883-ohci and address 2


any advice?

thanks a lot

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3229
  • Karma: +181/-8
How to make Vera recognize your USB-to-Serial Adapter
« Reply #41 on: August 26, 2012, 06:46:04 pm »
alexk, those JFFS messages may be coincidental (but they are a worry). You may find that they spontaneously appear in the dmesg output even without you messing with USB ports. For the moment, ignore them.

The rt3883-ohci note confirms that you've got an electrical connection between the USB adapter and the Vera. The fact that there are no further messages shows that the adapter isn't one that Linux knows about. So the next step is to identify the vendor and product strings.

Run the lsusb command twice, once without and once with your adapter connected. Any difference in the output?

(What is your adapter, by the way? Did they say what chipset it used?)

Offline alexk

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +1/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #42 on: August 27, 2012, 03:10:10 am »
Hi Futzle,

Thanks for the answer much appreciated.

firstly.  while i am an electronic engineer by degree it has been a long time since I did anything technical (switched to marketing) so pls be gentle.  :o

now on to the issue at hand.

If the JFFS messages relate to the zwave devices which make up the network i wouldn't worry (yet) as I am doing all my installation on a block of wood with switches(test bed) so that i learn how everything works before I install them behind my switches.  So from time to time the Nodes dissapear because i unplug the test bed.

If the error message isnt related to above then lets see latter.

on to the serial connection (with the NX584 i am trying to achieve)
I only understood vera has a preference for speicific serial connections last night :).  I have two cables already from previous pcs so I will try both.  So far i only tried one.

Q1.  When doing all the testing etc.  Should the usb to serial adapter be connected to the end device or not?  (the NX 584 in this case)
Q2.  If yes (or for latter use) do i need to do something to the nx to switch the tx and rx of the cable or should it work as is?
Q3. As I never did get into linux could you clarify what command exactly?  (when you guys say run XXXX does it translates to type in the string after run at the command prompt? 

thanks again and i hope to have more info by tonight!

Alex


« Last Edit: August 27, 2012, 03:13:32 am by alexk »

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3229
  • Karma: +181/-8
How to make Vera recognize your USB-to-Serial Adapter
« Reply #43 on: August 27, 2012, 07:15:17 am »
Alex,

lsusb is a command, yes. At the prompt, type those five characters and press Enter. Case is important.

For the moment there is little point connecting the NX-584. Just leave the serial DB9 end dangling loose.

When it comes to connecting the NX-584 you need to ensure that the Transmit and Receive pins are swapped an odd number of times, so that the Transmit of one connects to the Receive of the other.  Null modem cables include a built-in swap. Gender changers and straight-through cables generally do not.  Jiggling the jumpers on the NX-584 constitute a swap. In practice, you either change all of the NX-584 jumpers, or none of them. One of these options won't work. With any luck, the other one does.

Offline alexk

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +1/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #44 on: August 27, 2012, 08:48:26 am »
re command got it (the enter part wasnt necessary) :D

ok will disconnect nx-584.

and will test having switched the jumpers (most probably)

thanks!