AX−SFJK, AX−SFJK−API
www.onsemi.com
10
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−SFJK 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−SFJK enters Standby mode. In Standby
mode, AX−SFJK listens on the UART for commands from
the host. Also, OOB frames are transmitted whenever the
OOB timer fires. To conserve power, the AX−SFJK can be
put into Sleep or turned off (Deep Sleep) completely.
Sleep
The command AT$P=1 is used to put the AX−SFJK into
Sleep mode. In this mode, only the wakeup timer for
out−of−band messages is still running. To wake the
AX−SFJK 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−SFJK 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−SFJK.
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 }.
AX−SFJK, AX−SFJK−API
www.onsemi.com
11
AT$CB=0011223344,1
OK
RX=AA BB CC DD
This sends a Sigfox frame containing { 0xAA : 0xBB : 0x12
: 0x34 } without waiting for a response telegram.
AT$CB=0xAA,1
OK
The ‘CB’ command sends out a continuous pattern of bits,
in this case 0xAA = 0b10101010.
AT$P=1
OK
This transitions the device into sleep mode. Out−of−band
transmissions will still be triggered. The UART is powered
down. The device can be woken up by a low level on the
UART signal, i.e. by sending break.
Table 10. COMMANDS
Command Name Description
AT Dummy Command Just returns ‘OK’ and does nothing else. Can be used to check
communication.
AT$SB=bit[,bit] Send Bit Send a bit status (0 or 1). Optional bit flag indicates if AX−SFJK
should receive a downlink frame.
AT$SF=frame[,bit] Send Frame Send payload data, 1 to 12 bytes. Optional bit flag indicates if
AX−SFJK should receive a downlink frame.
AT$SO Manually send out of band
message
Send the out−of−band message.
AT$TR? Get the transmit repeat Returns the number of transmit repeats. Default: 2
AT$TR=? Get transmit range Returns the allowed range of transmit repeats.
AT$TR=uint Get transmit repeat Sets the transmit repeat.
ATSuint? Get Register Query a specific configuration register’s value. See chapter
“Registers” for a list of registers.
ATSuint=uint Set Register Change a configuration register.
ATSuint=? Get Register Range Returns the allowed range of transmit repeats.
AT$IF=uint Set TX Frequency Set the output carrier macro channel for Sigfox frames.
AT$IF? Get TX Frequency Get the currently chosen TX frequency.
AT$DR=uint Set RX Frequency Set the reception carrier macro channel for Sigfox frames.
AT$DR? Get RX Frequency Get the currently chosen RX frequency.
AT$CW=uint,bit[,uint_opt] Continuous Wave To run emission tests for Sigfox certification it is necessary to send a
continuous wave, i.e. just the base frequency without any modula-
tion. Parameters:
Name Range Description
Frequency 800000000− Continuous wave frequency in Hz.
999999999, 0 Use 923200000 for Sigfox
Mode 0, 1 Enable or disable carrier wave.
Power 14 dBm of signal | Default: 14
AT$CB=uint_opt,bit Test Mode: TX constant byte For emission testing it is useful to send a specific bit pattern. The
first parameter specifies the byte to send. Use ‘−1’ for a
(pseudo−)random pattern. Parameters:
Name Range Decsription
Pattern 0−255, −1 Byte to send. Use ‘−1’ for a
(pseudo−)random pattern.
Mode 0, 1 Enable or disable pattern test mode.
AT$T? Get Temperature Measure internal temperature and return it in 1/10
th
of a degree
Celsius.
AT$V? Get Voltages Return current voltage and voltage measured during the last
transmission in mV.
AX−SFJK, AX−SFJK−API
www.onsemi.com
12
Table 10. COMMANDS
Command DescriptionName
AT$I=uint Information Display various product information:
0: Software Name & Version
Example Response: AX−Sigfox 1.1 RCZ3
1: Contact Details
Example Response: support@axsem.com
2: Silicon revision lower byte
Example Response: 8F
3: Silicon revision upper byte
Example Response: 51
4: Major Firmware Version
Example Response: 1
5: Minor Firmware Version
Example Response: 1
7: Firmware Variant (Frequency Band etc. (EU/US))
Example Response: RCZ3
9: SIGFOX Library Version
Example Response: UDL1−1.8.9
10: Device ID
Example Response: 00012345
11: PAC
Example Response: 0123456789ABCDEF
AT$P=uint Set Power Mode To conserve power, the AX−SFJK can be put to sleep manually.
Depending on power mode, you will be responsible for waking up the
AX−SFJK again!
0: software reset (settings will be reset to values in flash)
1: sleep (send a break to wake up)
2: deep sleep (toggle GPIO9 or RESET_N pin to wake up;
the AX−SFJK is not running and all settings will be reset!)
AT$WR Save Config Write all settings to flash (RX/TX frequencies, registers) so they
survive reset/deep sleep or loss of power.
Use AT$P=0 to reset the AX−SFJK and load settings from flash.
AT:Pn? Get GPIO Pin Return the setting of the GPIO Pin n; n can range from 0 to 9.
A character string is returned describing the mode of the pin,
followed by the actual value. If the pin is configured as analog pin,
then the voltage (range 01 V) is returned. The mode characters
have the following meaning:
Mode Description
0 Pin drives low
1 Pin drives high
Z Pin is high impedance input
U Pin is input with pull−up
A Pin is analog input (GPIO pin 03 only)
T Pin is driven by clock or DAC (GPIO pin 0 and 4 only)
The default mode after exiting reset is U on all GPIO pins.
AT:Pn=? Get GPIO Pin Range Print a list of possible modes for a pin. The table below lists the
response.
Pin Modes
P0 0, 1, Z, U, A, T
P1 0, 1, Z, U, A
P4 0, 1, Z, U, T
P5 0, 1, Z, U
P6 0, 1, Z, U
P7 0, 1, Z, U
P8 0, 1, Z, U
P9 0, 1, Z, U
AT:Pn=mode Set GPIO Pin Set the GPIO pin mode.
For a list of the modes see the command AT:Pn?

AX-SFJK-1-01-TX30

Mfr. #:
Manufacturer:
ON Semiconductor
Description:
RF System on a Chip - SoC JAPAN AND KOREA RF-MICRO
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union