Vera - Smarter Home Control Forum

Advanced => Plugins & Plugin Development => Programming => AD2USB Plugin for the Honeywell/Ademco Vista Alarm Panels => Topic started by: markiper on November 04, 2013, 09:46:54 pm

Title: AD2USB suddenly started showing "Connection Down"
Post by: markiper on November 04, 2013, 09:46:54 pm
I installed a AD2USB (and the proper plugin) to be able to have communication between a Vera3 unit and my Ademco Vista 20P panel.  The system had been working properly for the past 3 - 4 months, and now I am suddenly seeing error messages telling me that the connection to the alarm panel is down.

No changes to the Vera unit; already checked all cabling to make sure that nothing has come loose.  Even though the AD2USB reports the connection being down; I am still able to ARM/DISARM the system using he plugin, so there is communication (at least one way) between Vera and my Ademco panel.  I capture the logs from vera, and this is the only thing that I see:

Quote
50      11/04/13 21:25:43.100   luup_log:62: (VistaAlarmPanel::checkConnection) CONNECTION DOWN <0x2c997680>
50      11/04/13 21:25:43.101   luup_log:62: (VistaAlarmPanel::task) Connection down. <0x2c997680>
50      11/04/13 21:26:02.617   luup_log:62: (VistaAlarmPanel::requestArmMode) Request new arm mode: 'Disarmed', device #63. <0x2dfc4680>
50      11/04/13 21:26:02.617   luup_log:62: (VistaAlarmPanel::requestArmMode) partNo = 1 <0x2dfc4680>
50      11/04/13 21:26:02.618   luup_log:62: (VistaAlarmPanel::getPinCode) Using the stored PIN code. <0x2dfc4680>
50      11/04/13 21:26:02.618   luup_log:62: (VistaAlarmPanel::requestArmMode) Current arm mode = 'nil'. <0x2dfc4680>
50      11/04/13 21:26:06.075   luup_log:62: (VistaAlarmPanel::processIncoming) Incoming data = '!Sending...done'. <0x2e1eb680>
50      11/04/13 21:26:06.075   luup_log:62: (VistaAlarmPanel::processIncoming) ERROR: Invalid message. <0x2e1eb680>

Can anyone point me in the right direction to determine what could have happened to the Ademco plugin that is now reporting no connection?  I guess Vera (the Ademco plugin) has lost the ability to receive messages, but I am still able to send commands and the alarm panel receive those message and execute them properly (ARM/DISAM, etc).

I have tried removing and installing the AD2USB plugin already, and the issue still persists.  One thing that I have noticed is that the plugin version shows 2.45 on the actual Alarm Panel device; but it shows 3.0 when I go to the APPS tab of my Vera unit (seems like a version mismatch, but I do not remember if it has always been that way).

Any help will be greatly appreciated
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: SteveZ on November 04, 2013, 11:27:35 pm
That is strange, the connection down sounds like you lost your serial port configuration, so check that if you haven't already done so, the being able to arm but not receive  feed back sounds like a keypad address problem, either the wrong address in the ad2usb or not enabled in the panel, or maybe a duplicate with another keypad.

If none of the above is it i would try controlling the ad2usb with the nutech software directly from a pc to rule out a problem with the ad2usb
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: markiper on November 05, 2013, 07:35:37 am
Checked the serial port configuration and all values are set exactly as the plugin instructions.  To rule out a bad USB port on the Vera, I tried both USB ports and both gave me the same result.

I did verify that the keypads have no conflicts, so I have 2 alpha numeric keypads, one with address 16, one with address 17 and the AD2USB with address 18.  All three keypad addresses are properly enabled on the Ademco Vista 20P panel.

I have not tried the software from nutech, but I think I am going to have to do that to rule out the AD2USB being the one causing the problem.  I also verified power, data cables going to the alarm panel, and so far everything checks.  Very strange issue, but I guess it is a possibility for he AD2USB unit to go bad as well (mounted on a equipment rack, with full battery backup and surge protection).
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: markiper on November 12, 2013, 05:00:59 pm
Seems like I experienced an issue with the AD2USB devie, but I must say that NuTech was very responsive in helping troubleshooting and providing a replacement unit.  I just thought I will update this threat for anyone else that seems this problem.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: wg on December 06, 2013, 10:55:21 pm
I have the same or a similar problem. My serial port configuration for AD2USB disappears after a while and sometimes randomly shows up again. I plugged it into a Windows PC and watched the same thing happen in the device manager.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: tomgru on January 10, 2014, 11:12:16 am
Seems like I experienced an issue with the AD2USB devie, but I must say that NuTech was very responsive in helping troubleshooting and providing a replacement unit.  I just thought I will update this threat for anyone else that seems this problem.

Mark... i seem to have the same problem.  I just randomly get "connection down" messages.  This morning, i reloaded and it went away, but i still can't get my dashboard to control the alarm at all.  Usually a reboot helps... which leads me to believe the AD2USB isn't the problem.  I/O is all there and correct. 

Did you ever figure this out, and/or did the AD2USB help?
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: pentium on February 02, 2014, 05:18:11 pm
Just my 2 cents but I have just recently started having the connection down message.  I quickly checked here on the forum which led me to the serial port configuration which had defaulted back to some odd stuff.  I set it back to the correct information and it is working fine.  Today I was testing to see if I could use a USB hub to run both my ad2usb and a thumb drive for the logs.  After I disconnected my ad2usb from the vera lite, I found that the serial information had defaulted again.  I have to problem if this is a known step if one ever disconnects the ad2usb cable from vera and only mention it in case someone else that thinks their unit is broken might check to see if they have also recently disconnected the cable. 

Also, I would like to know if this is a sign that the ad2usb unit is starting to fail.  I don't think it is a year old.  Otherwise, I am still amazed at the ademco plugin!
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: tomgru on February 03, 2014, 07:54:03 pm
I have found that if you change the USB connections at all... like adding a hub, thumb drive, etc.... you'll have to go in and reset the serial port for AD2USB.  Otherwise, if you are just unplugging in (to add a device e.g.), then plug it back in and power up, it will still be there. 
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: jefflabe on April 11, 2014, 02:53:18 pm
I am having the same "connection down" problem with my AD2USB - about once a day.  Sometimes a reload on the Vera 3 will take care of it - other times I have to unplug / plug the USB cable on the Vera 3 and then reconfigure the serial port again.  I contacted NuTech tech support and they had me me verify that the AD2USB is working by connecting it to a laptop for several days.  They told me to contact MiCasaVerde about the problem (since they did not write the Vera 3 software).  This looks like some type of software issue on the Vera 3 / or the Ad2USB App.  Any ideas from anyone on what to do with this would be greatly appreciated...??  Thanks!!
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: BulldogLowell on April 11, 2014, 03:37:20 pm
are you UI5 or UI6?
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: jefflabe on April 11, 2014, 11:49:44 pm
U15
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: jimpapa on April 12, 2014, 02:48:04 am
I have been using the AD2USB for years.  I used to have to reset the serial port settings on the vera3 every time I rebooted it.  On the vera lite at my office I have not had to do this ever.

The AD2 USB. Is pretty solid.  Are you using a powered USB hub ?
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: jefflabe on April 12, 2014, 02:36:18 pm
No USB hub installed - however I did try one and it didn't make any difference.  I am using USB over CAT5E extenders so I can keep the AD2USB located in my alarm cabinet in the basement (my Vera 3 is mounted on the wall upstairs in my hallway coat closet).  I used the same USB extenders when I did the extended test with a laptop and Alarm Decoder software - with no problems at all.  Just for grins I changed the "connection down" parameter from 180 (default) to 360.  Apparently this is the amount of time that can go by (in seconds...?) without the plugin hearing from the AD2USB unit before it reports "connection down".  So far so good - but it has only been one day plus... 
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: jimpapa on April 13, 2014, 01:35:20 pm
The use of  a USB extender in your setup would def. be of interest in trouble shooting .. I agree they work well.. most of the time.
Because most things they are hooked to don't complain as readily as Vera would.. they would just retry.

The above is a nice way of saying .. I bet your right!
  :)

 
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: roquej on April 22, 2014, 02:11:45 pm
I have the same issues now. Had the AD2USB working for over 7 months, without any issues.  Have disconnected the unit many times to include devices and corrected the port parameters every time.  However, last week I disconnected the unit to include a switch, corrected the parameters, and nothing. I get the "connection down" message.  The parameters are correct. I have connected my laptop to the AD2USB using the keyboard GUI and everything works.  Even called Vera support and they confirmed the USB port is working. 

Is this a plugin issue?  Should I uninstall and reinstall?  What am I missing?

JR
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: pentium on April 22, 2014, 02:18:51 pm
Just in case, I sometimes get disconnected and fail to choose the correct ademco device.  It shows two in the selection list and I can never remember which one is right. 
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: roquej on April 22, 2014, 02:22:49 pm
Yes, it can get confusing, as it shows both the panel device and the partition device.  However, I have always gotten it to work by picking the panel device.  Therefore, I don't think that is the issue.  Thank you
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: roquej on April 22, 2014, 03:56:24 pm
Fixed it. The how: uninstalled the plugin, rebooted, and then reinstalled it. Of course, had to redo all the configurations and parameters. Wonder what happened...
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: roquej on April 23, 2014, 04:32:19 pm
Well, spoke too soon...it worked for 24 hours and it died again.  Any suggestions?

JR
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: tb001 on May 18, 2014, 07:01:02 pm
Would love any other suggestions here as well. All was working fine and then I used battery pack to add a device and now am seeing a connection down error. So frustrating--this is one of the plug ins I use the most. I've re-entered all the serial port info, since this was lost on the system, but still not working
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: thewizardofoz on May 19, 2014, 01:10:43 am
Did you reboot Vera after you entered all the serial port info?
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: tb001 on May 19, 2014, 11:06:25 am
Good question. I think I rebooted, but not positive. Got up this morning and seems to be working again--hopefully it stays that way!
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: SteveZ on May 19, 2014, 03:23:18 pm
Anytime the vera powers up and does not see the ad2usb the serial port settings will be lost, like when you unplug it to add a sensor and power it up off the battery. This is one reason why I have my vera on a ups and try to always add devices using full power inclusion and leave the vera where it's at. I haven't had to re enter my serial port settings for well over a year
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: triangledave on August 23, 2014, 12:26:39 pm
I set my alarm last night via the AD2USB connection.  This morning I get connection down. I first tried to save PIN, no luck.  Then I went in and checked the serial config and the baud rate had defaulted back to 115k.  I changed it back to 9600 and reloaded, no joy.  Power cycled Vera, no joy.  Checked my AD2USB device and have green blinking light.  My alarm panel device still shows armed status even though I have disarmed it manually.

I have not touched Vera for months and have been using the AD2USB device multiple times daily without fault.  The only things I have ever had to do is resave the PIN after I've added devices or rebooted Vera and even rarer I've had to occasionally reset the Baud rate.  Otherwise I have been running the AD2USB connection without issue for years and now it is randomly gone.

Reading the responses in this thread, I am concerned that others have run into this issue and there does not seem to be a clear resolution.

Does anyone have any additional info or suggestions?

Thank you
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: pentium on August 23, 2014, 05:27:21 pm
Actually, the 115k baud rate was correct.  You will want to change it back to that rate.

For me, the blinking green light usually leads to the lack of internet connectivity.  I had that problem the other morning, for unexplained reasons, and i simply unplugged the vera and plugged it back in and the green light went solid and vera was once again talking to the ad2usb.  I am hoping to replace my internet connectivity with a raspberry pi this week, hoping to get a more dependable alarm connection than the ethernet port on the back of my uverse receiver.

But since you mentioned it, just in the past few weeks I have looked at the ui5 screen and it says the connection is down about once or twice a week.  I hit the reload button and do not get the message.  This also follows my lightning strike which burned out my ad2usb and required me to get a new one. 

I would think that if you are getting a green blinking light that you are having a lot of other issues as well, so for me I would be tracking back the internet connection. 
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: triangledave on August 24, 2014, 02:12:43 am
reset baud to 115k and it works again.  Thank you!  I hope it stays up.  Vera is connected to network via unmanaged gigabit switch.

Never had this happen before.  We did have a thunderstorm last night.  If power blinked, it did not blink enough to reset any clocks in the house.  Vera is connected to a UPS as is the alarm panel.

Not sure what is going on.  I guess I'll just keep an eye on it.  I use the plugin twice daily, so I'll know pretty quickly if it is not working again.

David
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: Fred S on October 01, 2014, 06:13:08 pm
I'm having the same issue. I got a new AD2USB but it does not show up in the serial port Serial Port configuration section. Any ideas? I've connected to my PC so I know its working.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: ErikinSC on January 08, 2017, 10:57:49 pm
Wondering how any of you fixed this previously.    I am uninstalling the plugin, refreshed, and then power cycle (reboot) the VeraLite.

I could not get the plugin to work.    Any ideas on how to troubleshoot ?
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: amizon on January 19, 2017, 03:21:23 pm
My AD2USB device has worked perfectly for several years (except for the occasional vera serial port config reset).
I'm now experiencing the same 'connection down' error - it started a week ago.

I've noticed that the green 'heartbeat' light on the AD2USB device will turn off completely when the connection down error occurs (no more flashing).
Troubleshooting so far:
 - replaced the vera to AD2USB USB cable        (problem still occurs)
 - I've upgraded the AD2USB firmware             (problem still occurs)

To temporarily fix the error (for a day or two), I simply disconnect the 4 alarm wires from AD2USB, wait a few seconds, and plug them back in.
The green heartbeat light starts flashing again and I reboot veraplus and everything works fine again.

I will keep troubleshooting.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: kevinnutech on February 01, 2017, 06:48:03 pm
Does this behavior repeat itself when you have it hooked to a PC?
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: clambert on February 04, 2017, 06:52:22 pm
Oddly enough I am also having this "Connection Down" issue after adding a switch last weekend.  Anyone have any luck fixing this issue? It's been working fine up until I disconnected everything to add the switch.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: clambert on February 05, 2017, 07:22:05 am
Oddly enough I am also having this "Connection Down" issue after adding a switch last weekend.  Anyone have any luck fixing this issue? It's been working fine up until I disconnected everything to add the switch.

As it turns out my USB settings were wrong.  After re-applying them I'm back in business.  I have no idea why they may have been wiped out but at least I have control again.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: jb2017 on August 13, 2017, 04:12:17 pm
For others having this issue where Vera will lose connection after ~48 hours, the only fix I found was to switch to an AD2NetworkAppliance and install using the instructions on this thread: http://forum.micasaverde.com/index.php/topic,26672.0.html

Vera Support was useless in solving my issue.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: habano on November 11, 2017, 11:21:52 am
I've been getting these 'Connection Down' messages for several months now. AD2USB always seems to work fine, but Vera randomly decides to lose contact. Initially I did a lot of fiddling with Vera and AD2USB without much luck. Communicating with Vera support never got me very far. Luckily I've been able to get my connection back each time, but it's been a huge inconvenience. Once I get the connection working again, it usually works fine for about a month before losing the connection again.
After a few frustrating months of dealing with this, I decided to start logging my steps to help get to a solution quickly. I've now successfully narrowed it down to just this:

unplug AD2USB from Vera
connect AD2USB to a computer
run Alarm Decoder
select 'restart AD2USB'
plug AD2USB back into Vera

That's it. No restarts, no configuration changes, no contacting support. Now while it may sound simple, it's still an inconvenience to have to do this whenever the 'Connection Down' message randomly decides to show up.

Here's a question for the community: Is there any way that AD2USB can be restarted directly from Vera (so as to avoid using a computer)? If there was a way, maybe I could set AD2USB to reset on a schedule (something like once every couple of weeks).
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: pentium on November 11, 2017, 11:47:04 am
When you do all of that, do you also have to go back into vera and set the baud rate?  For me, I found I was causing my own problem whenever I unplugged the usb from the vera box.  And my resolution was to just go back to the serial port settings in vera and confirm the correct baud rate.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: habano on November 11, 2017, 03:48:35 pm
Nope. No settings to change. Since I don't restart the Vera, it doesn't change any of the serial port settings.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: narancic on January 15, 2018, 02:03:05 am
I have to do the same procedure as habano, however the "restart AD2USB" doesn't seem necessary in my case.
  I tried flashing the ADUSB to the latest firmware and it still looses connectivity from time to time. 
Not sure whats in the Alarm Decoder app does to fix the issue, but it would be great if the AD2USB app could be adjusted to mimic what Alarm Decoder does.
Title: Re: AD2USB suddenly started showing "Connection Down"
Post by: narancic on June 12, 2018, 02:55:49 am
I have been doing the same procedure that habano laid out for a couple years now.  While I can't recall how long ago this started becoming an issue, for years I did not have this type of issue during my VeraLite deployment (only issues was related serial port buad rate reset).

 Has anybody had any luck finding the root cause? 

It's very burdensome to disconnect the Vera and use the AlarmDecoder app to get the AD2USB back into a working state with Vera.  It tensd to only happen when I am away from home and need it the most.