We have moved at community.getvera.com

Author Topic: Re: Setup  (Read 9139 times)

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Setup
« on: December 22, 2010, 03:42:31 pm »
This thing is driving me crazy!!!!

I will detail step by step what I did to see if someone could give me a clue about what I am doing wrong:

Setup:

-Vera2 UI4 firmware 1.1.1062
-USB to serial (chipset Prolific PL2303)
-Caddx NX-8E panel
-DIY serial connector (used a schematic found on the Internet to build an equivalent to the Caddx P0003 cable)

Panel configuration:

-Location 207 Segment 1: 1 (Serial Port Selector: NX584 enabled)
-Location 208 Segment 1: 3 (Baud rate: when I press 4 for 34800 baud the number 3 is lit, not sure if the baud rate was set at 19200 or 34800... anyway, I tried with every speed with no luck)
-Location 209 Segment 1: 0 (HA Protocol: binary)
-Location 209 Segment 2: 0 (HA Protocol: not supervised)
-Location 210 Segment 1: 2 5 6 7 8
-Location 210 Segment 2: 1
-Location 211 Segment 1: 2 4 5 6 7 8
-Location 211 Segment 2: 1 2 3
-Location 211 Segment 3: 0
-Location 211 Segment 4: 4 7 8

Plugin Instalation:

- Uploaded the for files in the Mios repository to Vera
- Created a device called NX8E and UpnpDevFilename: D_CaddxNX584Security.xml
- Set the serial configuration as follows: Name: PL2303, Device Number: usb-00:03.0-1.2, Baud: 38400... also tried other speeds, parity: none, data bits: 8, stop bits:1, used by device: NX8E... this is the created device)

Device I/O configuration:

- PL2303 [] used by NX8e

Result: I can't get any signal from the alarm panel..... What I am skipping????

PS: I used the following configuration for the cable (already has Tx and Rx crossed, so I shouldn't need the null serial cable)

NX8E     DB9 (female)
2            3
5            2
9            5




Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Re: Setup
« Reply #1 on: December 22, 2010, 04:02:56 pm »
Hi @glaso,

Your config looks right, both on the NX-8E (I think; I'm using an NX-584 so the addresses are mildly different) and on the Vera, so my eye is drawn towards:

-DIY serial connector (used a schematic found on the Internet to build an equivalent to the Caddx P0003 cable)
...
PS: I used the following configuration for the cable (already has Tx and Rx crossed, so I shouldn't need the null serial cable)
NX8E     DB9 (female)
2            3
5            2
9            5

Not to diss your DIY skills, but have you tried your home-made null modem cable in another environment and know it works?  I'm particularly worried that you haven't connected ground-to-ground on pin 5.  See here for a full null modem pinout: http://www.aggsoft.com/rs232-pinout-cable/nullmodem-db9-to-db9.htm

One thing you could try is to disconnect the USB adapter from the Vera and plug the USB adapter it into a computer running a terminal program (PuTTY has a serial mode which might work, but I'm not a Windows expert, sorry, so you're on your own).  Walk into a zone to trip it, and the NX-* will start sending out packets every 1.5 seconds, even if they are not acknowledged.  You should be seeing repeated garbage bytes on the computer's terminal program every 1.5 seconds.

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #2 on: December 22, 2010, 04:08:46 pm »
Thanks Futzle.... that was a quick answer  ;D

I'll try the following cable setup and get back to you in a few minutes:

2 ---> 3
3 ---> 2
5 ---> 5

Thanks!!!

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #3 on: December 22, 2010, 04:14:22 pm »
Before changing the cable I tried listening with Putty. When I trip a sensor it sends the following data again and again:


09860020000040010080717A

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Re: Setup
« Reply #4 on: December 22, 2010, 04:33:05 pm »
Before changing the cable I tried listening with Putty. When I trip a sensor it sends the following data again and again:
09862000000040010080717A

That looks correct; it's a partition status message.  So you know that you've connected pins 2/3 correctly.  Good.  Also, your USB-to-serial adapter is probably OK.

Apart from connecting pin 5 to pin 5 (ground) you also should connect pins 7 to 8 and 8 to 7 (swapping CTS and RTS).  Putty (or Windows) may be ignoring CTS/RTS and happily showing you the bytes on the RX line, but you can't assume that the Vera's serial driver is doing the same thing.

According to the NX-584's docs, pins 1, 4, 6 and 9 aren't connected, so you might be able to get away without wiring those pins.

Note that this is all just going by the specs; I didn't do it this way so I am not speaking from experience.

Here's the forum post with the communication protocol, FWIW: http://www.promixis.com/forums/showthread.php?t=6510

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #5 on: December 22, 2010, 05:09:13 pm »
Hi Futzle, thanks again for your dedication...

I forgot to tell you that the packet 09862000000040010080717A was sent with the panel in ASCII mode, in binary mode it sends the following packet @qz~.

I also checked the circuit board of the NX-8e and pins 7,8,9,10 of the RS232 connector ar not wired at all ¿¿¿¿????... only pins 1,2,3,4,5,6 are wired.

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #6 on: December 22, 2010, 05:10:48 pm »
ahhh, another thing.... I changed the cable configuration to:

2 ----> 3
3 ----> 2
5 ----> 5

and still receive the same messages in ASCII and binary mode

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Re: Setup
« Reply #7 on: December 22, 2010, 06:56:16 pm »
I forgot to tell you that the packet 09862000000040010080717A was sent with the panel in ASCII mode, in binary mode it sends the following packet @qz~.

I also checked the circuit board of the NX-8e and pins 7,8,9,10 of the RS232 connector ar not wired at all ¿¿¿¿????... only pins 1,2,3,4,5,6 are wired.

I figured it was ASCII.  The Luup plugin needs binary so you're presumably setting it back when you are connecting to the Vera.

(By the way, one of your sensors has low battery according to the packet.)

"Pin 10"?  I've been assuming that there is a DB9 connector on the NX-8, but apparently not...  Like I said, I don't have an NX-8 so I am making assumptions, which might not be correct.  Your pinout might be right after all...

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Re: Setup
« Reply #8 on: December 22, 2010, 07:00:28 pm »
"Pin 10"? [...] Your pinout might be right after all...

Oh, this is what it is, isn't it?:
http://pinouts.ru/SerialPorts/Serial9_pinout.shtml

In that case, connect CTS, RTS, GND, RXD and TXD at both ends according to the table in that web page (maybe doing RXD/TXD and CTS/RTS crossovers to make it a mull-modem), and see how you go.

Edit: Mentioned pairs to swap for crossover/null-modem cable
« Last Edit: December 22, 2010, 07:06:17 pm by futzle »

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #9 on: December 22, 2010, 08:15:19 pm »
No, the NX8E has an IDC 2x5 connector onboard... There is an adptor from GE (Caddx J0003) to connect it to a DB9 serial port.
I think that my version (v.19) of the NX8e has a different pin configuration, because I read that the pin 9 of the IDC was ground, and if I check the circuit board, that pin is not wired.

Another issue is that the packet heard by Putty doesn't change if I trip another sensor or if I arm the alarm, for example.

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #10 on: December 22, 2010, 08:20:14 pm »
Yes!!! That table could do the trick... Tomorrow I'll check it to see how it goes... Thanks!!!

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Re: Setup
« Reply #11 on: December 22, 2010, 10:12:09 pm »
Another issue is that the packet heard by Putty doesn't change if I trip another sensor or if I arm the alarm, for example.

That's expected; the panel wants the other end (the PC, or Vera) to acknowledge the original packet before it sends another packet.  It will keep sending the same original packet for hours on end until you send back an acknowledgment packet.

-Location 208 Segment 1: 3 (Baud rate: when I press 4 for 34800 baud the number 3 is lit, not sure if the baud rate was set at 19200 or 34800... anyway, I tried with every speed with no luck)

That's the Caddx of talking binary numbers.  LED 1 is the LSB, LED 8 the MSB.  LED 3 on and all others off is binary 00000100, which is the number four.

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #12 on: December 23, 2010, 09:25:47 am »
Hi Futzle.... Almost there!!!! ;D

Now I'm using the configuration that you sent me yesterday and finally Vera sees the Panel... BUT :-\ after opening the I/O port it shows "Caddx NX-584:Failed to set up interface"

I'm getting there but still can't see the zones...

BTW the cable configuration is:

NX-8E    DB9
3-------->2
5-------->3
9-------->5
4-------->8
6-------->7

THANKS!!!

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #13 on: December 23, 2010, 09:49:51 am »
Hi Futzle, attached is the log file... hope this helps (I changed the extension to .doc to be able to upload it to the forum)

Offline glaso

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
Re: Re: Setup
« Reply #14 on: December 23, 2010, 03:47:11 pm »
Big steps here ;D ;D ;D... now I can see the 8 zones, a device called Caddx NX-8E (the one I created) and a device calle partition 1.

Now I'm stuck on how to use it... the sensors give me their status with no issues, but I can't arm or bypass them.
Neither I can arm or disarm the alarm....

Thanks again for your help and merry christmas!!!
« Last Edit: December 23, 2010, 04:25:28 pm by glaso »