Monitoreo pasivo acústico#

AudioMoth#

https://www.openacousticdevices.info/audiomoth

AudioMoth free software

Device detection

usb 1-2.4: new full-speed USB device number 25 using xhci_hcd
usb 1-2.4: New USB device found, idVendor=10c4, idProduct=0002, bcdDevice= 0.00
usb 1-2.4: New USB device strings: Mfr=1, Product=2, [..]
usb 1-2.4: Product: AudioMoth
usb 1-2.4: Manufacturer: openacousticdevices.info
[...]
hid-generic [...]:10C4:0002.000B: hiddev2,hidraw4: USB HID v1.11 Device [openacousticdevices.info AudioMoth] on usb-0000:00:14.0-2.4/input0

lsub Bus 001 Device 009: ID 10c4:0002 Silicon Labs F32x USBXpress Device

Linux configuration#

to be able to open the device

sudo echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666", TAG+="uaccess", TAG+="udev-acl"' \
>> /etc/udev/rules.d/92-audiomoth.rules

sudo udevadm control --reload-rules
sudo udevadm trigger

to be able flash the device? write in /lib/udev/rules.d/99-audiomoth.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="0002", MODE="0666"
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="0003", MODE="0666"`

and sudo usermod -a -G dialout [...]

Python#

>>> import hid
>>> vid = 0x10c4
>>> pid = 0x0002
>>> hid.enumerate(vid, pid)
[{'path': b'/dev/hidraw4', 'vendor_id': 4292, 'product_id': 2, 'serial_number': '[...]', 'release_number': 0, 'manufacturer_string': 'openacousticdevices.info', 'product_string': 'AudioMoth', 'usage_page': 65451, 'usage': 512, 'interface_number': 0}]
>>> from easyhid import Enumeration
>>> en = Enumeration()
>>> devices = en.find(manufacturer='openacousticdevices.info')
>>> device = am[0]
>>> am.description()
'HIDDevice:\n    /dev/hidraw4 | 10c4:2 | openacousticdevices.info | AudioMoth | [...]\n    release_number: 0\n    usage_page: 65451\n    usage: 512\n    interface_number: 0'
>>> am.open()
import usb.core
import usb.util
import usb.control

# find our device
dev = usb.core.find(idVendor=0x1a86, idProduct=0xe041)

js library#

https://github.com/OpenAcousticDevices/AudioMoth-HID

LEDs#

https://www.openacousticdevices.info/led-guide

Errors#

From https://www.openacousticdevices.info/support/flashing-support/could-not-flash

Double check that it is all correct. Your computer can communicate with the AudioMoth via USB HID but not USB Serial. This is normally because the TTY rule in 99-audiomoth.rules has a typo, or because your default user is not a member of dialout and thus cannot write to the serial port. Check that both are correct, logout and login again, and disconnect and reconnect the AudioMoth, and it should start working correctly.

Others: https://www.openacousticdevices.info/support/flashing-support/flash-app-could-not-connect

with self built config app

./AudioMoth-Config-1.9.1.AppImage
[19079:0729/112100.091892:ERROR:nss_util.cc(239)] Error initializing NSS with a persistent database (sql:/home/[..]/.pki/nssdb): NSS error code: -8126