Skip to content

Over the Air Updates

Timo Wielink edited this page Dec 10, 2021 · 3 revisions

With a ESP32 based board or a WiFi-capable development board we can use WiFi to update a duck's firmware (as long as WiFi is enabled in the ducks).

To flash a duck over-the-air (OTA), all we have to do is compile firmware as a binary in Arduino and send it to the ducks over WiFi.

1. Compile the firmware into binary

Open the Arduino IDE and the example or firmware you want to send to the Duck.

Go to Sketch -> Export compiled Binary. The Exported Binary will be saved in the same folder as your .INO file

binary

2. Connect to a duck's WiFi

Wifi ap

On the left the PapaDuck on the right a Mamaduck or DuckLink

3. Go to 192.168.1.1/update

Connect to a duck's WiFi (e.g. PapaDuck Setup, or MamaDck), open a browser and go to http://192.168.1.1/update. It will ask for your username and password.

Default:

  • Username: user
  • Password: pass

You will need to change the default username and password at line number line number 307 and 308 of CDPCFG.h

update

4. Upload the compiled binary

Upload the compiled binary once you are in the update page.

Click on Choose File and select the .bin folder from your computer. upload bin Note: Every duck needs to have a different DuckID, So every duck needs a different compiled binary.