©2019 Open Acoustic Devices

AudioMoth

Flashing

Step 1: Download your platform's Flash application

AudioMoth can be programmed with different firmware by USB through the Flash application. To put the device in programming mode make sure you follow all of these steps and have a paper clip handy.

First, download the relevant Flash application and place the executable in a new folder.

If the file you download possesses an extension such as .dms, rename the file and remove the extension before continuing.

On macOS and Linux you must now set the permissions of the file. To do this, open a terminal, navigate to the location of the flash file and run the following command: chmod a+x flash

For Windows 7 machines you must first manually install a driver which you can download here (right click the link and Save As). Download to a known location, right click the .inf file and click install.

Step 2: Find your firmware .bin file

Download the latest firmware from the Github repository or your own custom firmware and place in the same folder as the Flash executable.

Step 3: Run Flash executable

Open a command window in the created folder location.

Run the Flash executable by typing in the command window "flash.exe" for Windows OS or"./flash" for Linux and Mac OS.

Running the flash executable displays a list of currently connected communicable devices. The names of the ports will display as ‘’COMx’ on Windows, as /dev/tty.usbmodem14xx' on macOS and as '/dev/ttyACMx' on Linux.

 

The number of serial ports found will depend on your computer and what other hardware is connected to it. If no serial ports currently exist, the application will report ’No serial ports found’. This is fine also.

Your AudioMoth will not appear in this list yet. It needs to be both connected and put into programming mode. This is shown in the next few steps. 

Step 4: Connect the AudioMoth device

Set the switch on the side of your AudioMoth device to CUSTOM, remove the device's batteries and then connect it to your computer via USB. Both LEDs should start to flash.

Step 5: Enable programming mode

To enable Programming mode on your device, use a standard paperclip to connect the two metal contacts marked "PROG". Be sure to hold the paperclip tightly against the contacts.

If done correctly, the LEDs should stop flashing, which means the paperclip can now be removed.

For Windows 7 users, extra steps are required. Click here to view.

Step 6: Establish device connection name

Open the command line and run the Flash executable once again.

 

Compare the list of ports to the previous list to find the name of the port which has opened since the AudioMoth was plugged in.

In this case, the AudioMoth is using port COM6.

Step 7: Flash AudioMoth device

Run the Flash executable with the "-u" flag, providing the port name and the .bin file as arguments.

This should take a few seconds. Once the application has finished, verify the "Programmed" size and "Flash CRC" value match those given by the GitHub release. After 5 seconds the LED should start flashing again. Your AudioMoth now has the new firmware installed and can be configured and deployed as normal.

In the event that they do not match the above screenshot, make a post on the  support forum  with the output you received.

Step X: In the event of failure

In the event that the flashing process failed and your device appears non-functional, it can be flashed again.

Make sure there are no batteries installed in the device, hold the paperclip to the contacts as in step 5, and then plug the USB cable into the device. It is important that the paperclip is being held on the contacts when power is first applied to the device via the USB cable. Your AudioMoth will then wake up and will be in programming mode. From here follow steps 6 and 7 to repeat the flashing process.