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

Offline alexk

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #45 on: August 27, 2012, 04:45:11 pm »
hello again.

long story short.
tried one of the cables i had - according to windows it is manufactured by wch.cn and no further info offered. it didnt work.  I tried a second usb serial cable i got my hands on (prolific) and it was recognized.

so i got that far.

installed nx-584 app and connected the cable.  now at first i got a message saying failed to connect or register (something like that) and then i switched all the pins (4 of them) on the card.  now the message on Vera is reading: Caddx NX584 Security System[11] : Running Lua Startup.

it has been stuck there for 30 mins or so.

does this means the connection is correct? ie usb serial is connected?  does it mean that the tx and rx are correctly connected?
Depending on if this message means everything is conected (any way i can check it?) perhaps i should move the rest of the chat to the specific thread.




Offline alexk

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #46 on: August 27, 2012, 04:51:10 pm »
Wait! :)

got it. changed the baud rate to 9600 and it worked. probably didnt change the nx584 setting after all.
so i am sorted for this thread!

Alex

Offline alexk

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #47 on: September 25, 2012, 07:08:52 am »
this adapter works also

Startech.com 1 Port FTDI USB to Serial RS232 Adapter Cable with COM Retention bought from Amazon.co.uk
Item model number: ICUSB2321F
ASIN: B004ZMYTYC

Offline patrick

  • Sr. Newbie
  • *
  • Posts: 31
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #48 on: October 29, 2012, 02:00:56 am »
I also had difficulties using a PL2302 based adapter with a Caddx alarm panel.

I bought a FTDI-based adapter manufactured by Sabrent, and it's working well. 
https://www.sparkfun.com/products/11304

Offline verahargro

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #49 on: January 23, 2013, 02:38:36 pm »
I followed this guide to get my tripplite usb to serial adapter working.  The vera recognized it as a pl2303 but I had to edit serproxy.ports to make the UI recognize the adapter.  I installed the vizia RF emulator and started sending commands.  I think I just need to buy a new cable (one of the ones that work), but I would like this one to work.  this is from my log, does anyone have any advice as to how I can fix this?  I'm just trying to send a basic command to the plugin, but the log keeps saying "recvfailed"

and when I try to send a test command i get


GetLuaInterface can't find device type: -1/0xf22a60 str: (null) <0x2d02d680>
01      01/23/13 13:41:04.728   luup_io_write 0xf78bb0 args 1 <0x2d02d680>






Here's the other messages:

02      01/23/13 13:28:57.545   ZWaveSerial::GetFrame 0x2bc2cf60 timed out now 0 m_listGetFramePending 0 <0x2bc2d680>
02      01/23/13 13:28:57.545   ZWaveJobHandler::SendDataAbort got m_iFrameID 0 <0x2bc2d680>
01      01/23/13 13:28:57.546   ZWJob_PollNode::Run job job#392 :pollnode #99 (0xed46b8) N:99 P:100 S:1 ZW_Send_Data to node 99 failed 1 req 0xe88250/1 abort m_iFrameID 0 <0x2bc2d680>
02      01/23/13 13:28:57.546   ZWJob_PollNode::PollFailed job job#392 :pollnode #99 (0xed46b8) N:99 P:100 S:1 node 99 battery 0 <0x2bc2d680>
06      01/23/13 13:28:57.546   Device_Variable::m_szValue_set device: 1 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: LastError was: Poll failed now: Poll failed #hooks: 0 upnp: 0 v:0xf7f838/NONE duplicate:1 <0x2bc2d680>
04      01/23/13 13:28:57.547   <Job ID="392" Name="pollnode #99 1 cmds" Device="183" Created="2013-01-23 13:28:55" Started="2013-01-23 13:28:55" Completed="2013-01-23 13:28:57" Duration="2.446092000" Runtime="2.444994000" Status="Failed" LastNote="" Node="99" NodeType="ZWaveNonDimmableLight" NodeDescription="Tyler's Office"/> <0x2bc2d680>
02      01/23/13 13:28:57.548   JobHandler::PurgeCompletedJobs purge job#392 :pollnode #99 (0xed46b8) N:99 P:100 S:2 pollnode #99 1 cmds status 2 <0x2bc2d680>
02      01/23/13 13:29:10.101   LOG_CHECK_MEMORY_LEAK pMem start 0x1075000 now 0x1081000 last 0x105b000 leaked 49152 __LEAK__ this:155648 start:155648 to 0x1081000 <0x2ba2d680>
02      01/23/13 13:29:25.102   ZW_Send_Data node 100 USING ROUTE 255.114.101.100 <0x2bc2d680>
04      01/23/13 13:29:25.245   <Job ID="393" Name="pollnode #100 1 cmds" Device="184" Created="2013-01-23 13:29:25" Started="2013-01-23 13:29:25" Completed="2013-01-23 13:29:25" Duration="0.144099000" Runtime="0.143157000" Status="Successful" LastNote="" Node="100" NodeType="ZWaveNonDimmableLight" NodeDescription="A/V Room"/> <0x2ba2d680>
02      01/23/13 13:29:53.512  IOPort::Run RecvFailed 0 close 13 <0x2d82d680>
02      01/23/13 13:29:55.102   ZW_Send_Data node 41 USING ROUTE 255.105.99.101 <0x2bc2d680>
04      01/23/13 13:29:55.285   <Job ID="394" Name="pollnode #41 1 cmds" Device="49" Created="2013-01-23 13:29:55" Started="2013-01-23 13:29:55" Completed="2013-01-23 13:29:55" Duration="0.184191000" Runtime="0.182969000" Status="Successful" LastNote="" Node="41" NodeType="ZWaveWindowCovering" NodeDescription="Somfy"/> <0x2ba2d680>
02      01/23/13 13:30:00.100   Energy::LogEnergyUsageOnServer <0x2b82d680>
02      01/23/13 13:30:00.101   Energy::LogEnergyUsageOnServer 2013-01-23 13:30:00 <0x2b82d680>
02      01/23/13 13:30:02.556  IOPort::Run RecvFailed 0 close 13 <0x2d82d680>
02      01/23/13 13:30:07.578  IOPort::Run RecvFailed 0 close 13 <0x2d82d680>
02      01/23/13 13:30:12.600   IOPort::Run RecvFailed 0 close 13 <0x2d82d680>
02      01/23/13 13:30:17.620   IOPort::Run RecvFailed 0 close 13 <0x2d82d680>
« Last Edit: January 23, 2013, 02:43:07 pm by verahargro »

Offline patrick

  • Sr. Newbie
  • *
  • Posts: 31
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #50 on: January 27, 2013, 01:01:56 am »
I think you're best off buying a FTDI adapter.  I have had no end of problems with the PL2303, regardless of OS.  I was using one at work with Windows 7 for the serial console on Cisco networking gear, and it would drop connections there as well.  The FTDI is the most failsafe way to go.

Offline GaryOkie

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +4/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #51 on: February 06, 2013, 11:14:27 pm »
I have the StarTech  FTDI Cable (ICUSB232FTN)  and it appears to be recognized OK, but I am not able to communicate with the CADDX NX-8 via the NX-584 home automation board.

After connecting cable, DMESG shows:
Code: [Select]
usb 2-1: new full speed USB device using rt3883-ohci and address 3
ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
usb 2-1: Detected FT232RL
usb 2-1: Number of endpoints 2
usb 2-1: Endpoint 1 MaxPacketSize 64
usb 2-1: Endpoint 2 MaxPacketSize 64
usb 2-1: Setting MaxPacketSize 64
usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0

And that's it.   All good, and fully recognized?   

I have the Vera Lite, Plugin and the NX all configured for the same 38400 baud rate.   The CADDX plugin and Luaa code starts fine.   But I can not get a response from the NX via the CADDX plugin.    Before I seek help in the plugin forum, I would sure appreciate a confirmation if my USB/Serial connection is set up properly, and how else I can test it.

Thanks!
http://www.amazon.com/StarTech-com-Modem-Serial-Adapter-ICUSB232FTN/dp/B008634VJY

Offline GaryOkie

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +4/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #52 on: February 07, 2013, 10:51:34 am »
Wait!   ;)

I encountered the exact same situation as AlexK.    I discovered the NX was still configured for 9600 baud after I had reprogrammed it for 38400.   Although my change was echoed back properly on the LCD keypad, after exiting, it obviously wasn't saved.   Maybe I missed some important step to save NX 584 changes that I didn't find in the documentation?

Anyway, after setting up all components for 9600, connectivity is fine.   Add another model of StarTech FTDI to the "works" list.

Now,  does anyone know why it wouldn't save?    Because if I don't know how to save NX programming changes, I'm going to have to hope all the defaults are OK.   (ASCII(?), Transition-based broadcasting(?),etc.)




Offline blotfib

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #53 on: April 03, 2013, 05:49:55 pm »
For me I need the Vera Lite to recognize my mbed !
It see it as an USB Flash disk
I know for Windows, there is a special driver to load
http://mbed.org/handbook/Windows-serial-configuration

I have the following log when I plug the mbed in the Vera USB port:
Code: [Select]
root@MiOS_xxxxxx:~# dmesg > /tmp/dmesg-pre
root@MiOS_xxxxxx:~# dmesg > /tmp/dmesg-post
root@MiOS_xxxxxx:~# diff -u /tmp/dmesg-pre /tmp/dmesg-post
--- /tmp/dmesg-pre
+++ /tmp/dmesg-post
@@ -203,3 +203,16 @@
 eth0: link up (100Mbps/Full duplex)
 eth0: link down
 eth0: link up (100Mbps/Full duplex)
+usb 2-1: new full speed USB device using rt3883-ohci and address 4
+scsi2 : usb-storage 2-1:1.0
+cdc_acm 2-1:1.1: ttyACM0: USB ACM device
+scsi 2:0:0:0: Direct-Access     MBED     microcontrolleur  1.0 PQ: 0 ANSI: 2
+sd 2:0:0:0: Attached scsi generic sg0 type 0
+sd 2:0:0:0: [sda] 4096 512-byte logical blocks: (2.09 MB/2.00 MiB)
+sd 2:0:0:0: [sda] Write Protect is off
+sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
+sd 2:0:0:0: [sda] Assuming drive cache: write through
+sd 2:0:0:0: [sda] Assuming drive cache: write through
+ sda:
+sd 2:0:0:0: [sda] Assuming drive cache: write through
+sd 2:0:0:0: [sda] Attached SCSI removable disk

Is it possible to see the Serial interface over the USB as in Windows ?

Thanks

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3258
  • Karma: +191/-9
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #54 on: April 03, 2013, 06:28:04 pm »
For me I need the Vera Lite to recognize my mbed !

It doesn't look like there has been any effort to get OpenWrt and mbed to talk to each other. A Google search comes up empty. I think that you are out of luck unless you feel like writing a kernel module.

Offline blotfib

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #55 on: April 03, 2013, 06:35:41 pm »
tried this

http://forum.micasaverde.com/index.php/topic,10000.msg68246.html#msg68246

as you can see my mbed is here :
+cdc_acm 2-1:1.1: ttyACM0: USB ACM device

os.execute("ser2net -C 5000:raw:0:/dev/ttyACM0:115200")
or directly on the ssh interface : ser2net -C 5000:raw:0:/dev/ttyACM0:115200
telnet 127.0.0.1 5000

it works (a little)
Update : It works well, after the first initialisation bad answer


root@MiOS_xxxxx:~# telnet 127.0.0.1 5000
j:1, Data: NET:0 ID:1 RH:57 T:22.5  TIME:Thu Jan  1 00:00:00 1970
$$$$1010ff93b29ba879c0db8b10031e043bd0e7j:1, Data: NET:0 ID:1 RH:56 T:22.6  TIME:Thu Jan  1 00:02:59 1970
j:2, Data: NET:0 ID:1 RH:56 T:22.6  TIME:Thu Jan  1 00:03:59 1970


relevent data in bold, and then freeze, no more data comes, but often, I got the
$$$$1010ff93b29ba879c0db8b10031e043bd0e7
msg ???

now how I can get these data to exploite the in a Module I can add to the web interface and integrate them for some scenes
(I measure temperature T:22.6 and humidity  RH:56)

Thanks
« Last Edit: April 04, 2013, 03:50:05 am by blotfib »

Offline peteinau

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #56 on: December 04, 2013, 04:29:09 am »
Hello,

I have an USB to RS485 adapter that I'm trying to get to show up as a USB-serial device, but I don't get the information mentioned in the article above but I get the following information:

usb 2-2: new full speed USB device using rt3883-ohci and address 2
usb 2-2: USB disconnect, address 2
usb 2-1: new full speed USB device using rt3883-ohci and address 3

Can anyone suggest what the problem might be?

Thanks,
Pete

Offline dpackham

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #57 on: December 04, 2013, 06:29:15 pm »
got it working by adding the vendor: + product: into the serproxy.ports file and now it shows up now

Thanks  :)

Offline jmmorgan

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +1/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #58 on: May 28, 2014, 10:43:48 am »
Has anyone got the cp210x serial chip on the nano arduino unit to work with Vera 2(firmware 1.5.622 ) .  I created a /etc/cmh/serproxy.port file with one line (vendor:10c4 product:ea60).  This allows Vera 2 to recognize the serial port and it shows up in the serial port config tab.  If I set the baud rate  > than 9600, the serial port only allows one way communication from the Nano unit to Vera, but not the other way.  Someone suggesting lowering the baud rate to 9600, when I do that it does not work at all.  Any help would be appreciated.  Even if you just tell me that cp210x is not capable with Vera 2.

Offline rvendrame

  • Sr. Newbie
  • *
  • Posts: 37
  • Karma: +1/-0
Re: How to make Vera recognize your USB-to-Serial Adapter
« Reply #59 on: November 10, 2014, 07:26:12 am »
Just to document here,  I was able to make Vera identify my USB serial device by following this post:

http://forum.micasaverde.com/index.php/topic,4668.msg34066.html#msg34066

« Last Edit: November 12, 2014, 02:42:03 pm by rvendrame »