AD2USB & Vista 21P Questions

Posted on
Wed Dec 21, 2011 7:31 pm
ethanw offline

Re: AD2USB & Vista 21P Questions

Thanks so very much mate :-) I eagerly waiting for the 32 bit :-) For some reason won't compile on my Leopard system,. I have Xcode installed and all of that.

Then I can put my energy on writing the How-To for running Leopard & Indigo on the AppleTV first generation :-)



berkinet wrote:
I have a machine still on Snow-Leopard and I'll make a build for you later tonight, or on the morning. I guess I should include ser2sock Power-PC, and 32/64 bit Intel in the release.

In the meantime, you should still be able to use the plugin to talk to the ad2usb using the USB/Serial port. Just select Local USB port instead of IP Network.

Posted on
Wed Dec 21, 2011 7:39 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: AD2USB & Vista 21P Questions


Posted on
Wed Dec 21, 2011 8:28 pm
ethanw offline

Re: AD2USB & Vista 21P Questions

Thanks much, the 32 binary seam to work fine but I am not sure if the switches are the same with the 64 binary. When I try to build the startup script/application following the instructions I get an error when I run it or when the computer starts. See attached pics, first pic is the full command with the respective USB device and second pic is the error I get. Is this normal? Man this is not easy config for me
Attachments
Start-Error-1.jpg
Start-Error-1.jpg (28 KiB) Viewed 5743 times
Start-Error-2.jpg
Start-Error-2.jpg (103.91 KiB) Viewed 5743 times

Posted on
Wed Dec 21, 2011 9:06 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: AD2USB & Vista 21P Questions

It is not obvious from your screen shots what the problem is. I suggest you try starting ser2sock from the terminal. Just paste:
Code: Select all
/usr/local/bin/ser2sock -p15003 -s/dev/tty.usbserial-A8008ZRJ  -b115200 -d -c -w 5000

If that does not work, try this command
Code: Select all
/usr/local/bin/ser2sock -p15003 -s/dev/tty.usbserial-A8008ZRJ  -b115200

ser2sock will stay running in the terminal and you will have to enter control-C to kill it. But, as long as you keep it running, that should let you test the plugin.

Let me know what happens. If you get errors in the terminal window, please post them back here.

Posted on
Wed Dec 21, 2011 9:23 pm
ethanw offline

Re: AD2USB & Vista 21P Questions

So it looks like the shorter syntax work fine: /usr/local/bin/ser2sock -p15003 -s/dev/tty.usbserial-A8008ZRJ -b115200
I did telnet to localhost 15003 and I got all the alarm output. The plugin also configured and loaded perfect. I now have to configure the rest.

Would the overall functionality of the plugin be affected by the switches that are not working? "-d -c -w 5000"

Lastly thanks a BUNCH berkinet for taking your own time and helping. I am very grateful Sir..
Attachments
AD2USB.jpg
AD2USB.jpg (49.98 KiB) Viewed 5737 times

Posted on
Wed Dec 21, 2011 9:32 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: AD2USB & Vista 21P Questions

ethanw wrote:
So it looks like the shorter syntax work fine: /usr/local/bin/ser2sock -p15003 -s/dev/tty.usbserial-A8008ZRJ -b115200
I did telnet to localhost 15003 and I got all the alarm output. The plugin also configured and loaded perfect. I now have to configure the rest.

Would the overall functionality of the plugin be affected by the switches that are not working? "-d -c -w 5000"

Lastly that a BUNCH berkinet for taking your own time and helping. I am very grateful Sir..

You are welcome, glad to be of help. The -c and -w switches will not seriously affect Indigo. They control how ser2sock responds to a lost USB connection. It is odd that they do not work. I'll check the code and make sure I compiled with the most recent version.

However, you do want the -d argument, that will place ser2sock in the background as a daemon.

Posted on
Wed Dec 21, 2011 9:40 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: AD2USB & Vista 21P Questions

:oops: :oops: My error. I compiled an older version of the code for the 32bit intel architecture. I have placed a new version of 0.9.17 on dropbox containing the right version. The problem was simple, the 0-c and -w switches weren't supported in the version I compiled.

Sorry for any inconvenience.

Posted on
Wed Dec 21, 2011 9:58 pm
ethanw offline

Re: AD2USB & Vista 21P Questions

No worries mate, no inconvenience at all. Actually you're helping me.

So I replaced with the new binary and redone the startup script back with the "-d -c -w 5000" switches and it works perfect now. I need to configure the rest. based on the instructions.


berkinet wrote:
:oops: :oops: My error. I compiled an older version of the code for the 32bit intel architecture. I have placed a new version of 0.9.17 on dropbox containing the right version. The problem was simple, the 0-c and -w switches weren't supported in the version I compiled.

Sorry for any inconvenience.

Posted on
Thu Dec 22, 2011 2:17 pm
ethanw offline

Re: AD2USB & Vista 21P Questions

I am trying to build triggers to arm and disarm my Vista 21P and I was wondering if anyone can help. All I am trying to do is get Indigo to arm and disarm my alarm based on a schedule.

I got the AD2USB wired, talking to the alarm panel and with the INDIGO (I think), I have a "Device" configured for the AD2USB and it reads the status correctly.

I am not sure what to put in the "Trigger" and "Actions" tabs for the trigger object. I think the "Actions" tab is pretty straight forward (see attached pic) with the right syntax in the "Edit Section Settings" area. But I have no idea what to put in the "Trigger" tab. Can anyone share their setup/objects from their Indigo setup?

See attached pics and THANKS bunch.
Attachments
ARM-2.jpg
ARM-2.jpg (39.77 KiB) Viewed 5719 times
ARM-1.jpg
ARM-1.jpg (55.34 KiB) Viewed 5719 times

Posted on
Thu Dec 22, 2011 2:26 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: AD2USB & Vista 21P Questions

Take a look in the ad2usb_plugin_quick_reference under "Using the Alarm Keypad device in Indigo Actions:"

Posted on
Thu Dec 22, 2011 2:28 pm
ethanw offline

Re: AD2USB & Vista 21P Questions

So I put the "AD2USB" plugin in "debug" mode and this is what I get when I try to execute the arming alarm trigger, I did use the right syntax in the "Edit Section Settings" area to write to panel:


Dec 22, 2011 2:26:49 PM
Enabling plugin "AD2USB Alarm Interface 0.9.16"
Starting plugin "AD2USB Alarm Interface 0.9.16" (pid 74528)
Plugin "AD2USB Alarm Interface" connected
Plugin "AD2USB Alarm Interface 0.9.16" started
AD2USB Alarm Interface Debug startup called
AD2USB Alarm Interface Debug versionCheck() called
AD2USB Alarm Interface Error You are running v0.9.16. A newer version, v0.9.17 is available.
AD2USB Alarm Interface Debug <<-- entering deviceStartComm: 1998 Alarm (399013719 - ad2usbInterface)
AD2USB Alarm Interface Debug buildDevList starting. funct=add
AD2USB Alarm Interface Debug exiting deviceStartComm -->>
AD2USB Alarm Interface Debug runConcurrentThread called
AD2USB Alarm Interface Debug startComm called
AD2USB Alarm Interface Debug startComm: read the alarm status dict... {'010': 'armedAway', '001': 'armedStay', '000': 'faulted', '100': 'ready'}
AD2USB Alarm Interface Debug Loaded zonesDict:
AD2USB Alarm Interface Debug the url is:socket://127.0.0.1:15003
AD2USB Alarm Interface Debug Started concurrent thread.
AD2USB Alarm Interface Debug Entering read loop
AD2USB Alarm Interface Debug Read msg: !SER2SOCK Connected

AD2USB Alarm Interface Debug panelReadMsg Quit
AD2USB Alarm Interface Debug Read msg: !SER2SOCK SERIAL_CONNECTED

AD2USB Alarm Interface Debug panelReadMsg Quit
AD2USB Alarm Interface Debug Read msg: !AUI:0e020000000054feec0101010000

AD2USB Alarm Interface Debug panelReadMsg Quit
AD2USB Alarm Interface Debug Read msg: !AUI:0e020000000055fefeec01010101

AD2USB Alarm Interface Debug panelReadMsg Quit
AD2USB Alarm Interface Debug Read msg: [1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "

AD2USB Alarm Interface Debug The raw zone type is: [100
AD2USB Alarm Interface Debug Panel Message: Before:=[1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "
, Current=
AD2USB Alarm Interface Debug Panel msg: [1000000100000000----],
AD2USB Alarm Interface Debug panelReadMsg Quit
AD2USB Alarm Interface Debug Read msg: !AUI:0e020000000056fefeec01010101

AD2USB Alarm Interface Debug panelReadMsg Quit
AD2USB Alarm Interface Debug Read msg: [1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "

AD2USB Alarm Interface Debug The raw zone type is: [100
AD2USB Alarm Interface Debug Panel Message: Before:=[1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "
, Current=[1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "

AD2USB Alarm Interface Debug no panel status change
AD2USB Alarm Interface Debug panelReadMsg Quit


Trigger Arm The Panel
AD2USB Alarm Interface Debug Entering write control function
AD2USB Alarm Interface Debug Control received: description : write to panel
deviceId : 0
pluginId : com.berkinet.ad2usb
pluginTypeId : writeToPanel
props : com.berkinet.ad2usb : (dict)
panelMessage : 11234 (string)
AD2USB Alarm Interface Debug Control found mesg: 11234
AD2USB Alarm Interface Debug Entering write function with write mesg: 11234
AD2USB Alarm Interface Debug Unable to write panel message: 11234. Check that your ad2usb is connected.

AD2USB Alarm Interface Debug Read msg: [1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "

AD2USB Alarm Interface Debug The raw zone type is: [100
AD2USB Alarm Interface Debug Panel Message: Before:=[1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "
, Current=[1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "

AD2USB Alarm Interface Debug no panel status change
AD2USB Alarm Interface Debug panelReadMsg Quit
AD2USB Alarm Interface Debug Read msg: !AUI:0e020000000051feec0101010000

Posted on
Thu Dec 22, 2011 2:29 pm
ethanw offline

Re: AD2USB & Vista 21P Questions

I did follow the instructions and no matter what I try I still get:

AD2USB Alarm Interface Debug Unable to write panel message: 11234. Check that your ad2usb is connected.
AD2USB Alarm Interface Debug Read msg: [1000000100000000----],008,[f702001f1008001c08020000000000],"****DISARMED**** Ready to Arm "



berkinet wrote:
Take a look in the ad2usb_plugin_quick_reference under "Using the Alarm Keypad device in Indigo Actions:"

Posted on
Thu Dec 22, 2011 2:51 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: AD2USB & Vista 21P Questions

Have you verified that you can write to the ad2usb at all? Try connecting to ser2sock in a telnet session

telnet 127.0.0.1 15003

Then, when you are connected enter some command (eg. 11234 and return) you can verify (like go into and out of chime mode).

If that works, then the problem is in the plugin and we can look further. Otherwise, either your ad2usb or the panel is mis-configured.

Posted on
Thu Dec 22, 2011 3:00 pm
ethanw offline

Re: AD2USB & Vista 21P Questions

Yeap it worked, so I got the wiring correct along with correctly configuring the 21P alarm panel. So it must be the Indigo configuration then.

High level steps:
1. I configured the AD2USB plugging
2. Configured a device for the Alarm
3. Configured a trigger

I didn't configure "Virtual Zone Device" in indigo. Could skipping that step be the problem?



exiled:~ root# telnet 127.0.0.1 15003
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
!SER2SOCK Connected
!SER2SOCK SERIAL_CONNECTED
112!AUI:0e020000000054fefeec01010101
34
!Sending.done
[0101050100000000----],060,[f702001f106005000c020000000000],"ARMED ***AWAY***May Exit Now 60"
!AUI:120600000000636c02456cf5ec0101010000
!AUI:1706000000006463024543f531fb456cf5ec020201023c
!AUI:0f020000000055fefeec020201023c
[0101050100000000----],059,[f702001f105905000c020000000000],"ARMED ***AWAY***May Exit Now 59"
[0101050100000000----],058,[f702001f105805000c020000000000],"ARMED ***AWAY***May Exit Now 58"
[0101050100000000----],057,[f702001f105705000c020000000000],"ARMED ***AWAY***May Exit Now 57"
[0101050100000000----],056,[f702001f105605000c020000000000],"ARMED ***AWAY***May Exit Now 56"
!LRR:022,1,ARM_AWAY
[0101050100000000----],055,[f702001f105505000c020000000000],"ARMED ***AWAY***May Exit Now 55"
[0101050100000000----],054,[f702001f105405000c020000000000],"ARMED ***AWAY***May Exit Now 54"




berkinet wrote:
Have you verified that you can write to the ad2usb at all? Try connecting to ser2sock in a telnet session

telnet 127.0.0.1 15003

Then, when you are connected enter some command (eg. 11234 and return) you can verify (like go into and out of chime mode).

If that works, then the problem is in the plugin and we can look further. Otherwise, either your ad2usb or the panel is mis-configured.

Posted on
Thu Dec 22, 2011 3:27 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: AD2USB & Vista 21P Questions

No, it is not necessary to have virtual zones. I will add some debugging code and post an updated version later today.

Who is online

Users browsing this forum: No registered users and 1 guest