Win10 AD2Pi Firmware update - How to?

General Discussion

Win10 AD2Pi Firmware update - How to?

Postby scottma61 » Wed Mar 21, 2018 9:35 am

I have a Windows 10 PC and I want to update my AD2Pi to the latest firmware. I have a TTL cable and I have PuTTY installed.

BACKGROUND:
I want to update the firmware because I suspect that it is corrupted. It use to work on my old setup, then I moved my setup (Arduino MEGA/ThingShield/AD2Pi connected to my Vista 20P) to a new hub and I am getting inconsistent results and communications errors. I have eliminated most other areas that may be the cause so I want to update the firmware on the AD2Pi to make sure I did not somehow corrupt the firmware when I moved things over to the new hub.

As I said, I have a Windows 10 machine and a TTL cable (will arrive tomorrow). I have PuTTY installed so I should be able to connect directly to AD2Pi through PuTTY. So, I would like step-by-step instructions on what I need to do to install a new firmware image. I have downloaded the most recent stable firmware version to the Windows 10 machine. I read that I need to connect through PuTTY using SERIAL on the appropriate COM port that the AD2Pi is connected to. After that, what are the commands to re-flash the firmware? I also want to set the keypad address that the AD2Pi will use while I am there. How do I do that?

I very much so appreciate any assistant to guide me in this. Thank you.
scottma61
newt
newt
 
Posts: 5
Joined: Tue Mar 20, 2018 6:09 am

Re: Win10 AD2Pi Firmware update - How to?

Postby kevin » Wed Mar 21, 2018 5:57 pm

For windows, use the windows keypad app to flash firmware found here https://www.alarmdecoder.com/wiki/index ... der_Keypad

TTL hookups can be found here https://www.alarmdecoder.com/wiki/index ... bone_Black

Yes, it says beaglebone black, but the left column in the STEPS table are the hookups of the ad2pi

Then just configure the serial device in the keypad app and flash the firmware

NOTE: You must power the ad2pi either with the alarm panel or a 9v battery.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Win10 AD2Pi Firmware update - How to?

Postby scottma61 » Thu Mar 22, 2018 6:30 am

Thank you. To make sure I understand this correctly, the connection you are describing are:

Code: Select all
          AD2PI        TTL        Panel (or) 9V battery
GND                                   -  (or) -
3.3V                                   + (or) +
RX           10        RX
TX           8         TX



Confirming that I do NOT connect the GND or the +V from the TTL cable to the AD2PI, correct?

Also, I installed the AlarmDecoder_Keypad app on my Win10 laptop. After install I opened it. It stays open for a few seconds then closes. Is this normal if it does not detect a connection to the AD2PI? My TTL cable is suppose to show up today so I hope to accomplish this and I don't know if I have an issue with my AlarmDecoder_Keypad install.

Again ... Thanks for the help.
scottma61
newt
newt
 
Posts: 5
Joined: Tue Mar 20, 2018 6:09 am

Re: Win10 AD2Pi Firmware update - How to?

Postby scottma61 » Thu Mar 22, 2018 5:56 pm

I connected to the AD2PI as described. I attempt to upload the firmware and nothing happens? The log screen shows this:

Code: Select all
Starting AlarmDecoderApp build #2.0.10.40818
3/22/2018 7:49:30 PM Socket Listening on 192.168.0.59 listenPort 10000
3/22/2018 7:49:30 PM Loding modules. To remove modules use the modules tab under the about menu
3/22/2018 7:49:31 PM Example V1.0 initialized
3/22/2018 7:49:31 PM keypad V1.0 initialized ()
3/22/2018 7:49:31 PM MyStuff V1.0b initialized
3/22/2018 7:49:36 PM Waiting for communication to AlarmDecoder to open
3/22/2018 7:49:37 PM Opening com port: 'COM3'
3/22/2018 7:49:37 PM Communicaiton to AlarmDecoder established
3/22/2018 7:49:37 PM Trying to make sure we are not in config mode sending \r\n A Bunch!
3/22/2018 7:49:39 PM Sending '\r\n' to check if in config mode.
3/22/2018 7:49:40 PM The AlarmDecoder not in config mode. Continuing to initialize.
3/22/2018 7:49:41 PM Sending 'V' command to the AlarmDecoder
3/22/2018 7:49:41 PM V
3/22/2018 7:49:45 PM Timeout waiting for !VER message from the AlarmDecoder
3/22/2018 7:49:46 PM Sending '\r\n' command to the AlarmDecoder
3/22/2018 7:49:51 PM C
3/22/2018 7:50:07 PM Restart application for settings to take effect
3/22/2018 7:50:07 PM Opening com port: 'COM3'
3/22/2018 7:50:16 PM =


I tried to connect via PuTTY. I type in '=' (or 'V', or 'C' or '!') and hit enter and the curser moved back over the character typed and nothing happens?

Any suggestions? Thank you.
scottma61
newt
newt
 
Posts: 5
Joined: Tue Mar 20, 2018 6:09 am

Re: Win10 AD2Pi Firmware update - How to?

Postby kevin » Thu Mar 22, 2018 5:58 pm

You've got your tx and rx reversed

On TTL serial, RX connects to TX and vice versa

You hook up power from TTL cable to + and - pins

What I mean by 9v battery is the alarm panel connection
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Win10 AD2Pi Firmware update - How to?

Postby scottma61 » Thu Mar 22, 2018 8:37 pm

Got it working and I have reflashed the firmware. Thanks for your help.
scottma61
newt
newt
 
Posts: 5
Joined: Tue Mar 20, 2018 6:09 am


Return to General

Who is online

Users browsing this forum: No registered users and 28 guests

cron