This sensor will capture audio data on a number of channels for a set amount of time and then sleep for a "hold period". It does this repeatedly forever. For each recording, the data is dumped to a corresponding file on an attached SD card and also pushed to an FTP server with the same naming scheme.
The sensor is configured with preprocessor definitions in src/config.h
. Most
values are documented within the source code.
The number of channels to simultaneously sample during recording. There will be a separate channel data file saved for each channel of audio data.
The name of the based directory under which each recording will be saved. This
is a printf-style format string with a single integer (%d
) format specifier
for the recording ID/index.
The absolute path to an individual channel recording. This is a printf-style
format string which takes a string (%s
) followed by an integer (%d
). The
string represents the recording base directory while the integer represents
the channel index.
If set, disable all interaction with ethernet including FTP communications. This is necessary when using a chip/board without ethernet support (e.g. the Teensy 4.0 vice Teensy 4.1). When defined >0, all routines and variables relating to network communication will be removed.
Hardware MAC address to present over the ethernet port. This is an array of six one-byte integers.
The IPv4 address of the FTP server.
The TCP port on which the FTP server is listening.
The IPv4 address to assign to the sensor itself.
The IPv4 address of a DNS server. This is not used, but must be specified
with some value. It defaults to the same as CONFIG_SELF_ADDRESS
.
The FAT type for the SD card. You should normally use 3
here.
The SPI clock frequency to configure.
The size of the network heap to use. This shouldn't be changed, but if you are running out of memory for some reason and have RAM to spare, you can increase this value.
The amount of time in seconds before a warning is printed to the serial port about a pending watchdog reset trigger.
The amount of time in seconds before the microcontroller will reset if no new samples are taken.
The baud rate for the serial port.
The port which is connected to a status LED. This LED is illuminated whenever the sensor is actively recording data.
The length of the audio recording in milliseconds.
The amount of time to sleep between recordings.
A valid/existing FTP user account with write permissions.
The password for the user given in CONFIG_FTP_USER
.
Size of the internal audio queue buffer. This should not be changed.
When set to one, the sensor will roll the oldest recording off the SD card if/when the SD card is full or cannnot hold more recordings.