AD2PI Firmware Upgrade & Boot Loop

General Discussion

AD2PI Firmware Upgrade & Boot Loop

Postby CanadianDavid » Thu Aug 11, 2016 2:56 pm

Hi, I recently attempted to upgrade my new ad2pi via the alarmdecoder web-app. I selected the firmware while it was still in the zip file and the uploader appeared to accept it. However, after some time the upgrade did not appear to work and now the device does not appear to operate correctly when viewing the device output.

Below is the output I get from the device via screen after stopping ser2sock:

Code: Select all
$ sudo /etc/init.d/ser2sock stop
$ sudo screen /dev/ttyAMA0 115200
!no!sn:ffffffff
!boot....................
!wait
!load


If I press enter, the output repeats itself. It appears that I cannot issue any other command to the device.

I have also attempted to upgrade the firmware via ad2-firmwareupload:

Code: Select all
$ ad2-firmwareupload ademcoemu_V2_2a_8.hex /dev/ttyAMA0 115200
Flashing device: /dev/ttyAMA0 - 115200 baud
Firmware: ademcoemu_V2_2a_8.hex
Rebooting device..
Waiting for boot loader..
Rebooting device..
Waiting for boot loader..
Uploading firmware.Error: Timeout while waiting for line terminator.


Is my ad2pi bricked? How can I recover the device so that I can access it and upgrade the firmware?
CanadianDavid
newt
newt
 
Posts: 2
Joined: Thu Aug 11, 2016 2:40 pm

Re: AD2PI Firmware Upgrade & Boot Loop

Postby Scott » Thu Aug 11, 2016 3:22 pm

Hi David,

That's the bootloader that you're stuck in, which happens when a firmware flash fails. It's totally recoverable, but ad2-firmwareupload is a little buggy. It's still going to be the easiest option to get the firmware back on it. I suggest trying to run it a few times. You also might try doing it through ser2sock by replacing /dev/ttyAMA0 with localhost:10000.

Thanks,
Scott
Scott
Expert Nut
Expert Nut
 
Posts: 118
Joined: Thu Dec 12, 2013 11:17 am


Return to General

Who is online

Users browsing this forum: No registered users and 5 guests

cron