|
AX-SFEU Datasheet, PDF (11/20 Pages) ON Semiconductor – Ultra-Low Power Transceiver IC | |||
|
◁ |
AXâSFEU, AXâSFEUâAPI
COMMAND INTERFACE
General Information
The chapter âCommand Interfaceâ is a documentation of
the ATâCommand set for devices which do not have an
APIâinterface. To see whether the device is capable of
receiving ATâCommands, please refer to chapter âPart
Numbersâ. If the device has been shipped with the
APIâInterface, please refer to the SW manual and
âapiexampleâ code delivered with AXâSFâLIBâ1âGEVK
for an introduction on how to setup a project and how to use
the APIâInterface.
Serial Parameters: 9600, 8, N, 1
The AXâSFEU uses the UART (pins UARTTX,
UARTRX) to communicate with a host and uses a bitrate of
9600 baud, no parity, 8 data bits and one stop bit.
Power Modes
Standby
After PowerâUp and after finishing a SIGFOX
transmission, AXâSFEU enters Standby mode. In Standby
mode, AXâSFEU listens on the UART for commands from
the host. Also, OOB frames are transmitted whenever the
OOB timer fires. To conserve power, the AXâSFEU can be
put into Sleep or turned off (Deep Sleep) completely.
Sleep
The command AT$P=1 is used to put the AXâSFEU into
Sleep mode. In this mode, only the wakeup timer for
outâofâband messages is still running. To wake the
AXâSFEU up from Sleep mode toggle the serial UARTRX
pin, e.g. by sending a break (break is an RS232 framing
violation, i.e. at least 10 bit durations low). When an Out of
Band (OOB) message is due, AXâSFEU automatically
wakes up to transmit the message, and then returns to Sleep
mode.
Deep Sleep
In Deep Sleep mode, the AXâSigfox is completely turned
off and only draws negligible leakage current. Deep Sleep
mode can be activated with AT$P=2. To wakeâup from
Deep Sleep mode, GPIO9 is pulled to GND.
When using Deep Sleep mode, keep two things in mind:
Everything is turned off, timers are not running at all and all
settings will be lost (use AT$WR to save settings to flash
before entering Deep Sleep mode). Outâofâband messages
will therefore not be sent. The pins states are frozen in Deep
Sleep mode. The user must ensure that this will not result in
condition which would draw a lot of current.
AT Commands
Numerical Syntax
hexdigit ::= [0â9AâFaâf]
hexnum ::= â0xâ hexdigit+
decnum ::= â0â | [1â9] [0â9]*
octnum ::= â0â [0â7]+
binnum ::= â0bâ [01]+
bit
::= [01]
optnum ::= ââ1â
frame ::= (hexdigit hexdigit)+
uint ::= hexnum | decnum | octnum | binnum
uint_opt ::= uint | optnum
Command Syntax
A command starts with âATâ (everything is case
sensitive!), continues with the actual command followed by
parameters (if any) and ends with any kind of whitespace
(space, tab, newline etc.)
If incorrect syntax is detected (âparsing errorâ) all input
is ignored up until the next whitespace character.
Also note that any number can be entered in any format
(Hexadecimal, Decimal, Octal and binary) by adding the
corresponding prefix (â0xâ, â0â, â0bâ). The only exception is
the âSend Frameâ command (AT$SF) which expects a list of
hexadecimal digits without any prefix.
Return Codes
A successful command execution is indicated by sending
âOKâ. If a command returns a value (e.g. by querying a
register) only the value is returned.
Examples
Bold text is sent to AXâSFEU.
AT$I=0
AXSEM AT Command Interface
Here, we execute command âIâ to query some general
information.
AT$SF=aabb1234
OK
This sends a Sigfox frame containing { 0x00 : 0x11 : 0x22
: 0x33 : 0x44 }, then waits for a downlink response telegram,
which in this example contains { 0xAA : 0xBB : 0xCC :
0xDD }.
www.onsemi.com
11
|
▷ |