AT+HELP
is issued.=====
. Lines with configuration options follow key: value
, with arbitrary whitespace between :
and the value. Example:ID
here should be a globally unique ID (like a MAC address). If the device does not have a globally unique ID set this to 00:00:00:00:00:00
and implement the AT+DEVICEID
command. The serial daemon will then use the MAC address of the USB controller instead.Data Transfer Baudrate
is the baud rate that the device can switch to when offloading data for functions like AT+BUFFER
. If the device does not support switching to a higher baud rate set this to 115200
. See "Switching to higher baud rates" later on this page for the protocol.AT+DEVICEINFO?
).AT+SAMPLESTART=
to indicate which sensor should be used. Example:Has snapshot
to 0
and omit the other options. The color depth should be either Grayscale
or RGB
. Example:AT+READBUFFER
function and follow the instructions under AT+SAMPLESTART
.y/n
). Example:AT+UPLOADSETTINGS?
) to specify where the file will be sent. Once uploading is completed, the device should respond with File uploaded
. Example:y/n
). Example:0
for 'Present' and leave the other fields empty. The serial daemon will then no longer prompt to connect the development board to WiFi.AT+UPLOADSETTINGS=
. If the device is not connected, the Last error
field can be used to indicate why the connection failed. Example:AT+SAMPLESETTINGS?
, and then uploads the file (if connected to WiFi) according to the parameters in AT+UPLOADSETTINGS?
. Takes one parameter, the name of the sensor (one of the sensors listed in AT+SENSORS?
).Not uploading file
. The serial daemon will then use AT+READFILE
with the file name specified earlier to read the file back.Not uploading file. Used buffer, from=0, to=310.
(where 0 and 310 are parameters that will be passed in to AT+READBUFFER
).AT+SAMPLESETTINGS?
may be ignored, e.g. if this is set to a value that the sensor does not support.Sampling...
- sampling has started, currently recording data from the sensor.Done sampling
- sampling has finished.Processing...
- if the sample requires post-processing (e.g. signing the file, or copying the file over), send this event.Done processing
- post-processing was done.Uploading...
- uploading has started.OK
- full process is done.Not uploading file
, and don't emit OK
.File name:
and lists where the file will be stored.y/n
). The content of the base64 buffer should be a uint8_t
array, with one value per pixel when in grayscale mode, or three values per pixel in RGB mode. E.g. an 2x1 image with a black and a white pixel would be:[ 0x00, 0xff ]
(pixel 1, pixel 2).[ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff ]
(pixel 1 red, pixel 1 green, pixel 1 blue, pixel 2 red, pixel 2 green, pixel 2 blue).edge-impulse-framebuffer2jpg
tool which is part of the Edge Impulse CLI. Write the base64 string to a file called features.txt
and then invoke:framebuffer.jpg
with the decoded content.b
is received on stdin. This function takes three parameters: 1) the width of the snapshot, 2) the height of the snapshot, 3) whether to switch to the 'Data transfer baud rate' (y/n
). The format is the same as AT+SNAPSHOT
, but every snapshot should be on a new line.AT+READFILE
, AT+READBUFFER
, AT+SNAPSHOT
, AT+SNAPSHOTSTREAM
) you'll need to follow this procedure:n
is passed in for the 'use max rate' property:y
is passed in for the 'use max rate' property:\r\nOK
on baud rate 115,200.\r\nOK
(on the max. baud rate).\r\n>
).AT+READFILE
from hex to base64.AT+READBUFFER
and the Present
field for WiFi.