Digilent Pmod ESP32 Manuale di riferimento - Pagina 5
Sfoglia online o scarica il pdf Manuale di riferimento per Unità di controllo Digilent Pmod ESP32. Digilent Pmod ESP32 8.
AT Command (Slave) Mode
The Pmod ESP32 is delivered to users in slave mode. In slave mode, the top row of
pins are mapped to their UART functionality. It is important that switches SW1.1 and
SW1.2 are both in the "off" position when power is applied to the device. Once power
has been applied, the value of SW1.2 is arbitrary. However, SW1.1 must remain in the
"off" position during the duration of operation in slave mode.
In slave mode, commands of a specific format (referred to as AT commands hereafter)
are passed to the Pmod via the UART port on the top row of pins. The UART port on
the Pmod is initially set to function at 115200 baud with 8 data bits, 1 stop bit, and no
parity or hardware flow control. The settings of the UART port can be modified by using
specific AT commands later.
AT commands must always be followed by a carriage return and newline character, in
that order. For example, the AT command "AT" would be typed into the serial terminal
as "AT<CR><LF>", where CR stands for carriage return and LF stands for line feed or
newline. If the carriage return or line feed are not included at the end of the command,
the Pmod will not respond to the command. The Pmod is initially set to echo back any
UART data it receives to the sender. Upon boot, when in slave mode, the Pmod will
send the word "ready" over the UART port.
A very sparse table of some AT commands is shown below. For the full list of supported
AT commands, please visit the official AT Command Set documentation, which is
provided by Espressif.
Carriage return and line feed bytes are omitted for clarity.
Command
Behavior
AT
Verifies that
the device is
in AT mode
and working
AT+RST
Resets the
device
AT+GMR
Checks
version info
Example
AT
AT+RST
AT+GMR
Response
OK
OK
<At Version Info>, <SDK version info>,
<compile time>