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
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?)
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!
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.
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.
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”
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.
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:
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.
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.)
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
[url=http://mbed.org/handbook/Windows-serial-configuration]| Mbed
I have the following log when I plug the mbed in the Vera USB port:
[code]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
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.
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)
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
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.