
NARROW BAND - NB868_25mW - User guide version V2.2.2 - Software version V2.3.0
19
Page of 24
4. Product Configuration - Command Mode
The command mode is an embedded tool, accessible by the serial link via a terminal (*), enabling the programming of the module parameters
usingasetofinstructionscalled:“ATcommandset”.ATcommandsareusedtoreadandwritethemodulecongurationregisters.Inthecom-
mand mode, the radio is deactivated (in reception and transmission).
(*): Hercules types
4.1. Command mode input/output
The command mode entry is obtained by applying a rising edge on the CMDE_MODE pin. The pin is debounced for the time configured in the
S240register.Themodulereturnsthe“CM”stringwhenithaseffectivelyenteredcommandmode.Notethatthecommandmodeentrymay
bedifferedwhenanincomingRFframeispushedontheUARTinterface.Inanycase,the“CM<cr><lf>”stringissent.Themodulebacksto
the communication mode on a falling edge on the CMDE_MODE pin with respect of the configured debounce time. The module returns the
“O<cr><lf>”stringwhenithaseffectivelyleavedcommandmode.
The command mode entry may also be done with the UART interface by transmission of a sequence of 3 ASCII characters on the serial link.
Bydefault,thesequenceis:“+++<cr><lf>”,howevertheusercanchooseitsownASCIIcharacterbyreprogrammingregisterS214.TheATO
commandbacksthemoduletothecommunicationmode.Themodulereturnsthe“O<cr><lf>”stringwhenithaseffectivelyleavedcommand
mode.
It should be noted that exiting from the command mode is also possible automatically (timeout) by programming register S202
Command Description Answer
+++ Allows entry into command mode « CM » to confirm entry in command mode.
ATO Exit command mode «O»<cr> if operation OK
«E»<cr> if error
4.2. AT Commandes
AcommandstartswiththetwoASCIIcharacters:“AT”,followedbyoneormorecharactersanddata(seeCbelowforthesyntaxofATcom-
mands available on the module).
Eachcommandshouldendwitha“CR”or“CR”“LF”,thetwopossibilitiesareaccepted.(CRsignies:CarriageReturn,LFsignies:LineFeed)
On receipt of a command the module returns:
• “thedata”<cr><lf>,forareadingcommand,typeATS<n>?,AT/SorAT/V.
• “O”<cr><lf>,forallothertypesofcommandsifitisaccepted.
• “E”<cr><lf>,ifitrefusesthecommandbecauseofasyntaxerror,unknowncommand,unknownregister,invalidparameter,etc.
• “W”<cr><lf>,ifitrefusesthecommandbecausethecongurationrequestedisnotauthorised.
• “CM”<cr><lf>,ifitacceptsentryintothecommandmode
Table of AT commands:
Command Description Reply
ATS<n>? Returns the contents of register nSn=y where y represents the contents of register n
ATS<n>=<m> Transfer the value m to register n «O»<cr> if operation OK
«E»<cr> if error
« W» if the operation has a configuration problem.
AT/S Display as a list, the content of each User register Sxxx=y<cr><lf> for each register
AT/V Display the complete firmware version AdeunisRFNB868<val>?????
ATR Restore the content of registers with default values.
This command must be followed by an AT&W
command and a module reset to ensure that all
parameters have been applied.
«O»<cr> if operation OK
«E»<cr> if error
ATT02 Starts the Scan Free mode «Returns for each channel, its number and RSSI value associated :
Cxxx=-090dBm<cr><lf>
ATT03 <c> <t> Scan of channel «c», during a «t» period , with :
- <c> value on three digits.
- <t> value from 1 to 999, by step of 1s
The command returns three values of RSSI: mini, medium and maximum.