5. How to Control via External MCU
5.1. How to Send AT Commands
⚫
When BT is NOT connected, for ALL commands
1.
Output low to
UART PD
pin to enable UART interface. Please keep it low during the
whole time when sending AT commands.
2.
Send any AT commands you want.
Please wait for at least 250 ms between sending
each command.
We recommended sending corresponding “Read” command (
section 4.2.2
the delay to know whether the writing is successful before moving on to step 3 to save
your settings.
Please prolong the delay (over 250 ms) when writing or/and reading is not successful.
3.
Send command “ AT+RESET ” (
not HW reset
) to save all your settings.
4.
Output high or NC to
UART PD
pinto turn off UART interface.
⚫
When BT is connected for following commands ONLY
Write: AT+DISCONNECT,
AT+SLEEP
Read: AT?ADCVALUE
1.
Output low to
UART PD
pin to enable UART interface. Please keep it low during the
whole time when sending AT commands.
2.
Output low to
flash default
pin to enable receiving AT commands when BT is connected.
Please keep it low during the whole time when sending AT commands.
3.
Send “AT?ADCVALUE” or “AT+DISCONNECT” or “AT+SLEEP”
4.
Output high or NC to
UART PD
pin to turn off UART interface.
5.
Output high or NC to
flash default
pin to disable the module to receive AT commands
when BT is connected.
Содержание MDBT42T-AT-UART-S
Страница 6: ...3 Reference Circuit...