Page 1 of 1

Reflash Firmware - Aurduino-ThingShield-AD2Pi

PostPosted: Tue Mar 20, 2018 6:21 am
by scottma61
I have a Arduino MEGA connected to a ThingShield connected to an AD2Pi. THis used to communicate with my Vista 20 and SmartThings Hub. I moved my setup to a new hub and in that process I may have corrupted the AD2Pi firmware so I may need to reflash the firmware. My question is can I communicate directly with the AD2Pi through the Arduino IDE serial terminal (and if so, how?), or will I need to use a TTL cable?

I am a novice tinkerer, but follow direction well. If this is possible any detailed instruction would be greatly appreciated. Thanks for your help.

Re: Reflash Firmware - Aurduino-ThingShield-AD2Pi

PostPosted: Tue Mar 20, 2018 5:02 pm
by kevin
If you can read/write the stream the alarmdecoder sends, you can write the firmware

Issue = to reboot
Issue = again to interrupt bootloader and then begin writing the file

Write each line of the .hex file to the device, reading the output back

a !ce is a checksum error
a !no is incorrect data sent
a !ok is done uploading

alternatively if you have a raspberry pi you can just use the python uploader with the device hooked to the GPIO