I'm trying to upgrade to Firm ware 1.5 and keep getting the error message 'could not connect to Audiomoth. Reconnect and flash again'.
I'm using Flash App 1.2.0, audiomoth has firmware 1.3.0 and my operating system is Ubuntu 20.04.2 LTS. Error log attached.
Please advise.
Great. We're looking at implementing a new HID bootloader to make this a bit easier. Alex
Hi Sean, Did you manage to get this working? Alex
Using the command below worked for me, but only after logging out and back in again, and disconnecting and reconnecting the AudioMoth: > sudo usermod -a -G dialout MY_USER_NAME It's a bit annoying that Linux doesn't give you default write access to the serial ports.
The communication with the factor installed bootloader is through a virtual serial port whereas the rest of the communication is through USB HID. The Flash App can see the device and switch it to bootloader mode in USB HID but then the operating system isn't allowing it to open to serial port to communicate with the boatloader. I'm having the same issue on a clean Ubuntu 20.04.1 LTS installation so try to figure out the solution there.
Hi Alex,
I did already have the additional Linux instructions in place. Tried again but got the same error. I'm not sure if this is relevant but both the TimeApp and the Configuration App both connect to the Audiomoth.
Sean
Hi, The Flash App can't access the serial port to communicate with the AudioMoth.
[2021-04-15 15:50:46.080] [info] --- Starting serial write --- [2021-04-15 15:50:46.142] [error] Error: Error: Permission denied, cannot open /dev/ttyACM0 [2021-04-15 15:50:46.142] [info] Reattempting to open port. Attempt 1 [2021-04-15 15:50:46.643] [info] --- Starting serial write --- [2021-04-15 15:50:46.718] [error] Error: Error: Permission denied, cannot open /dev/ttyACM0 [2021-04-15 15:50:46.718] [info] Reattempting to open port. Attempt 2 [2021-04-15 15:50:47.719] [info] --- Starting serial write --- [2021-04-15 15:50:47.778] [error] Error: Error: Permission denied, cannot open /dev/ttyACM0 [2021-04-15 15:50:47.779] [info] Reattempting to open port. Attempt 3 [2021-04-15 15:50:49.779] [info] --- Starting serial write --- [2021-04-15 15:50:49.839] [error] Error: Error: Permission denied, cannot open /dev/ttyACM0 [2021-04-15 15:50:49.839] [info] Reattempting to open port. Attempt 4 [2021-04-15 15:50:53.839] [info] --- Starting serial write --- [2021-04-15 15:50:53.899] [error] Error: Error: Permission denied, cannot open /dev/ttyACM0 [2021-04-15 15:50:53.900] [info] Reattempting to open port. Attempt 5 [2021-04-15 15:51:01.900] [info] --- Starting serial write --- [2021-04-15 15:51:01.964] [error] Error: Error: Permission denied, cannot open /dev/ttyACM0 [2021-04-15 15:51:01.964] [info] Reattempting to open port. Attempt 6 [2021-04-15 15:51:17.964] [info] --- Starting serial write --- [2021-04-15 15:51:18.037] [error] Error: Error: Permission denied, cannot open /dev/ttyACM0 [2021-04-15 15:51:18.038] [info] Gave up trying to open port after 6 failed attempts.
There are some additional instructions for Linux users at the bottom of the page here:
https://www.openacousticdevices.info/applications
Make sure you have both lines in the 99-audiomoth.rules file and if that doesn't fix it you may have to manually set the permissions to access the port. I think the adding the 'tty' rule will be enough though. Alex.