Description
I noticed this issue back in January and tried to contact Nu Tech for support by email and forums but never got a response or account activated. There is no GitHub project for the AD2PI firmware/hardware, and this seems like the next best location.
Background:
This issue started following a power supply problem with the RPi. The RPi would not boot and made a "hissing" sound. After replacing the USB power supply with a new one and rebuilding the SD card (using the AlarmDecoder image) it booted and there were no unusual sounds.
Issue:
In the AlarmDecoder webapp, the AD2PI was failing setup tests. The webapp prompted "firmware update available", but the update page now displayed the firmware version as "unknown". Attempting to update the FW from the webapp would not complete.
After this I shelled in and tried using ad2-firmwareupload
with both localhost:10000 and /dev/serial0 (with ser2sock, nginx, and gunicorn stopped). Both methods only output:
Flashing device: localhost:10000 - 115200 baud
Firmware: ./ademcoemu_V2-2a-8-8.hex
..but nothing else and were still running after 30 minutes.
I also tried using screen
to open /dev/serial0. Initially, if I pressed "!" the console would output "!no", "!wait", and a lot of garbage characters. On one attempt this test also output "!lboot" and "!load" but has not been reproducible using screen. The latest attempts using screen
will output nothing.
Since then I have also tried using tcpdump
to capture ser2sock communication to localhost:10000. In most cases ad2-firmwareupload
will open the connection and ser2sock will return a few single-byte payloads and then stop communication (connection is still open). In one case, ser2sock eventually returned "!wait" followed by "!load", then ad2-firmwareupload
sent several packets of ASCII data in the form of:
:10000 0000F724 70E23CA3 C4D82C4E E148E43C E8C31
:10000 80039DAA B5279A08 A5D82C4E E148E43C E8C65
:10001 000816CC 9FB056D5 FE26A8EC F0316196 61D00
:10002 00032008 A3DAF0BC 3742F809 946F86CE 50A05
:10003 0000AB18 47DB0743 A53D60F8 25B85CB1 C61C4
...
The reply from ser2sock after every packet in this sequence was always:
!0000 :0000
After 11 such data packets ser2sock stopped replying and ad2-firmwareupload
stopped sending. This was the only attempt that even got this far. I can share the .PCAP file if needed (note: if I still have it from 10 months ago).
Request:
My question is what is happening here? Is my AD2PI recoverable, and if so what procedure is involved?