Reflash Firmware - Aurduino-ThingShield-AD2Pi

General Discussion

Reflash Firmware - Aurduino-ThingShield-AD2Pi

Postby scottma61 » Tue Mar 20, 2018 6:21 am

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.
scottma61
newt
newt
 
Posts: 5
Joined: Tue Mar 20, 2018 6:09 am

Re: Reflash Firmware - Aurduino-ThingShield-AD2Pi

Postby kevin » Tue Mar 20, 2018 5:02 pm

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
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


Return to General

Who is online

Users browsing this forum: No registered users and 27 guests

cron