We have moved at community.getvera.com

Author Topic: Caddx nx584<-->serial to usb<-->Raspberry ser2net<-->Vera  (Read 3332 times)

Offline ferra

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Caddx nx584<-->serial to usb<-->Raspberry ser2net<-->Vera
« on: January 18, 2017, 05:57:03 am »
Hello,

I'm trying to configure this plugin with this type of connection:

Caddx nx584<-->serial to usb<-->Raspberry ser2net<-->Vera

I test the connectionn with dl900 software "Caddx nx584<-->serial to usb<-->pc running dl900" and this works OK
I telnet the ser2net ip/port from this pc (putty) and telnet connection from shh vera returns:

~       ▒▒▒~    ▒▒▒~    ▒▒▒~    ▒▒▒~    ▒▒▒~    ▒▒▒~    ▒▒▒~    ▒▒▒~    ▒▒▒~    ▒▒▒~    ▒▒▒

On ser2net I add this line:
1234:raw:0:/dev/ttyUSB0:9600 1STOPBIT 8DATABITS NONE

I setup nx584 with binary and 9600 baud

I put the ip:port on advanced tab of plugin but Vera returns: Caddx NX584 Security[91] : Failed to set up interface

This is the log:

Quote
50      01/18/17 11:51:39.146   luup_log:91: Initializing Caddx NX-584 <0x77516520>
50      01/18/17 11:51:39.146   luup_log:91: Opening socket to 192.168.0.209 port 1234 <0x77516520>
50      01/18/17 11:51:39.249   luup_log:91: Sending message and waiting for response: 0x21 Interface Configuration Request <0x77516520>
50      01/18/17 11:51:39.250   luup_log:91: Message: Outgoing: 0x7e 0x01 0x21 0x22 0x23 <0x77516520>
02      01/18/17 11:51:39.263   IOPort::Run RecvFailed 0 close 14 <0x74f16520>
02      01/18/17 11:51:43.100   ZWaveJobHandler::AlarmCallback skipping check because of jobs <0x77716520>
02      01/18/17 11:51:44.283   IOPort::Run RecvFailed 0 close 14 <0x74f16520>
02      01/18/17 11:51:48.344   ZWaveSerial::GetFrame 0x76f15bd8 timed out now 0 m_listGetFramePending 0 <0x76f16520>
02      01/18/17 11:51:48.344   ZWaveJobHandler::SendDataAbort got m_iFrameID 0 <0x76f16520>
02      01/18/17 11:51:48.345   ZWJob_SendData::ReturnMessageNotReceived job job#6 :setpoint support node 2 dev:49 (0x8ab9d0) N:2 P:38 S:5 to node 2 command 0x43/0x4 retries 0 of 2 quit 0 returned m_iFrameID 0 <0x76f16520>
02      01/18/17 11:51:48.433   ZWJob_SendData::ReceivedFrame ok job job#6 :setpoint support node 2 dev:49 (0x8ab9d0) N:2 P:38 S:5 to node 2 command 67/4 took 1 retries resend: 0 waiting 67/5 got 0 <0x77716520>
50      01/18/17 11:51:51.844   luup_log:91: Received inconvenient message 0x04 <0x77516520>
50      01/18/17 11:51:51.844   luup_log:91: Message: Unsolicited message body: 0x05 0x01 0x58 0x13 0xf0 0x09 0x02 <0x77516520>
50      01/18/17 11:51:51.845   luup_log:91: Sending message: 0x1D Positive Acknowledge <0x77516520>
50      01/18/17 11:51:51.845   luup_log:91: Message: Outgoing: 0x7e 0x01 0x1d 0x1e 0x1f <0x77516520>
50      01/18/17 11:51:51.846   luup_log:91: Message: Outgoing: 0x7e 0x01 0x21 0x22 0x23 <0x77516520>
02      01/18/17 11:51:51.854   IOPort::Run RecvFailed 0 close 13 <0x74f16520>
50      01/18/17 11:51:56.877   luup_log:91: Ignoring byte 83 <0x77516520>
50      01/18/17 11:51:56.887   luup_log:91: Ignoring byte 45 <0x77516520>
50      01/18/17 11:51:56.898   luup_log:91: Ignoring byte fe <0x77516520>
02      01/18/17 11:51:56.908   IOPort::Run RecvFailed 0 close 13 <0x74f16520>
02      01/18/17 11:52:01.474   ZWaveSerial::GetFrame 0x76f15bd8 timed out now 0 m_listGetFramePending 0 <0x76f16520>
02      01/18/17 11:52:01.475   ZWaveJobHandler::SendDataAbort got m_iFrameID 0 <0x76f16520>
02      01/18/17 11:52:01.475   ZWJob_SendData::ReturnMessageNotReceived job job#6 :setpoint support node 2 dev:49 (0x8ab9d0) N:2 P:38 S:5 to node 2 command 0x43/0x4 retries 1 of 2 quit 0 returned m_iFrameID 0 <0x76f16520>
02      01/18/17 11:52:01.563   ZWJob_SendData::ReceivedFrame ok job job#6 :setpoint support node 2 dev:49 (0x8ab9d0) N:2 P:38 S:5 to node 2 command 67/4 took 2 retries resend: 0 waiting 67/5 got 0 <0x77716520>
50      01/18/17 11:52:04.472   luup_log:91: Received inconvenient message 0x06 <0x77516520>
50      01/18/17 11:52:04.472   luup_log:91: Message: Unsolicited message body: 0x00 0x00 0x00 0x00 0x00 0x02 0x00 0x83 <0x77516520>
50      01/18/17 11:52:04.473   luup_log:91: Sending message: 0x1D Positive Acknowledge <0x77516520>
50      01/18/17 11:52:04.474   luup_log:91: Message: Outgoing: 0x7e 0x01 0x1d 0x1e 0x1f <0x77516520>
50      01/18/17 11:52:04.474   luup_log:91: Message: Outgoing: 0x7e 0x01 0x21 0x22 0x23 <0x77516520>
02      01/18/17 11:52:04.483   IOPort::Run RecvFailed 0 close 13 <0x74f16520>
02      01/18/17 11:52:09.518   IOPort::Run RecvFailed 0 close 14 <0x74f16520>
02      01/18/17 11:52:14.594   ZWaveSerial::GetFrame 0x76f15bd8 timed out now 0 m_listGetFramePending 0 <0x76f16520>
02      01/18/17 11:52:14.595   ZWaveJobHandler::SendDataAbort got m_iFrameID 0 <0x76f16520>
02      01/18/17 11:52:14.595   ZWJob_SendData::ReturnMessageNotReceived job job#6 :setpoint support node 2 dev:49 (0x8ab9d0) N:2 P:38 S:5 to node 2 command 0x43/0x4 retries 2 of 2 quit 0 returned m_iFrameID 0 <0x76f16520>
02      01/18/17 11:52:14.596   ZWJob_ConfigureNode::ChildChanged aborting job#2 :conf_jh#2 dev:49 (0xb106d0) P:39 S:5 for job#6 :setpoint support node 2 dev:49 (0x8ab9d0) N:2 P:38 S:5 <0x76f16520>
02      01/18/17 11:52:14.596   Device_Basic::m_eConfigured_set device 49 was -2 now 0 zw aborting <0x76f16520>
01      01/18/17 11:52:14.599   ZWJob_SendData::JobFailed job#6 :setpoint support node 2 dev:49 (0x8ab9d0) N:2 P:38 S:3 Priority 38 <0x76f16520>
02      01/18/17 11:52:14.602   JobHandler::Run job#3 :conf_jh#3 dev:53 (0xb109b0) P:40 S:0 is 39.729855000 seconds old <0x76f16520>
02      01/18/17 11:52:14.628   Device_Basic::m_eConfigured_set device 53 was -2 now 1 zw configured <0x76f16520>
02      01/18/17 11:52:14.634   JobHandler::Run job#4 :conf_jh#4 dev:57 (0xa18cd0) P:40 S:0 is 39.739642000 seconds old <0x76f16520>
02      01/18/17 11:52:14.650   Device_Basic::m_eConfigured_set device 57 was -2 now 1 zw configured <0x76f16520>
50      01/18/17 11:52:17.114   luup_log:91: Received inconvenient message 0x06 <0x77516520>
50      01/18/17 11:52:17.114   luup_log:91: Message: Unsolicited message body: 0x00 0x00 0x00 0x00 0x00 0x02 0x00 0x83 <0x77516520>
50      01/18/17 11:52:17.115   luup_log:91: Sending message: 0x1D Positive Acknowledge <0x77516520>
50      01/18/17 11:52:17.115   luup_log:91: Message: Outgoing: 0x7e 0x01 0x1d 0x1e 0x1f <0x77516520>
50      01/18/17 11:52:17.116   luup_log:91: Message: Outgoing: 0x7e 0x01 0x21 0x22 0x23 <0x77516520>
02      01/18/17 11:52:17.125   IOPort::Run RecvFailed 0 close 14 <0x74f16520>
02      01/18/17 11:52:21.676   Device_Basic::AddPoll 53 poll list full, deleting old one <0x77716520>
02      01/18/17 11:52:21.679   JobHandler::Run job#8 :pollnode_conf #4 dev:57 (0xb8f448) N:4 P:40 S:0 is 7.26852000 seconds old <0x76f16520>
02      01/18/17 11:52:22.147   IOPort::Run RecvFailed 0 close 13 <0x74f16520>

Can you help me succeed with the connection?

Thanks a lot
« Last Edit: January 18, 2017, 10:49:28 am by ferra »

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Caddx nx584<-->serial to usb<-->Raspberry ser2net<-->Vera
« Reply #1 on: January 26, 2017, 08:21:30 pm »
Here's what I can tell from your troubleshooting:
  • You can receive data that comes from the alarm panel ("Received inconvenient message 0x04")
  • There's no evidence that the alarm panel is receiving any bytes, and there's a suggestion that it's not ("IOPort::Run RecvFailed 0 close 14").
I'm confident that the problem is that the Raspberry Pi isn't able to supply enough power to the USB-to-Serial adapter.  RS-232 is a 12 volt protocol, so it requires extra current to step the 5 V USB connection up to send bytes.  Receiving bytes is a step down in voltage so it will often work even without sufficient current. Raspberry Pi USB power is renowned for being anaemic.

Put an externally-powered USB hub, capable of at least 1 A per port, between the serial adapter and the Raspberry Pi, and try again.

Offline ferra

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Caddx nx584<-->serial to usb<-->Raspberry ser2net<-->Vera
« Reply #2 on: February 07, 2017, 05:09:10 am »
Thanks a lot for your response.

You have solved my problem :)