20.2 FLYFOT Show And Send Original GPS Data +WGPSNMEA ............................... 140
FLYFOT-MG260-MODULE
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 7 / 246
20.3 FLYFOT Get Current GPS Locition +WGPSPOS...................................................140
20.4 FLYFOT Send Cmd TO Uart1 +WGPSRAW..........................................................140
20.5 FLYFOT Open Auto Show +STARTGPSDATA......................................................140
20.6 FLYFOT Close Auto Show +STOPGPSDATA........................................................140
20.7 FLYFOT Examples For Using GPS Cmd ................................................................... 140
FLYFOT-MG260-MODULE
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 8 / 246
FLYFOT-MG260-MODULE
Overview
The aim of this document is to provide FLYFOT customers with a full description of the AT
commands.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 9 / 246
FLYFOT-MG260-MODULE
1 Introduction
1. Scope of this document
This document describes the AT-command based messages exchanged between an application and the
FLYFOT products in order to manage GSM related events or services.
FLYFOT MG260 Module
1.1 Related documents
This interface specification is based on the following recommendations:
[1] ETSI GSM 07.05: Digital cellular telecommunications system (Phase 2); Use of DTE-DCE
interface for Short Message Service (SMS) and Cell Broadcast Service (CBS)
[2] ETSI GSM 07.07: D igital cellular telecom munica tions sy stem (Phase 2 ); AT command set
for GSM Mobile Equipment (ME)
[3] ITU-T Recommendation V.25 ter: Serial asynchronous automatic dialling and control
[4] ETSI GSM 03.40: Digital cellular telecommunications system (Phase 2); Technical
implementation of the Short Message Service (SMS) Point-to-Point (PP)
[5] ETSI GSM 03.38: Digital cellular telecommunications system (Phase 2); Alphabets and
language-specific information
[6] ETSI GSM 04.80: Digital cellular telecommunications system (Phase 2): Mobile radio
interface layer 3, Supplementary service specification, Formats and coding
1.2 ETSI secretariat
The following addresses may be of use in obtaining the latest GSM
recommendations:
Postal address: F-06921 Sophia Antipolis CEDEX – France
Office address: 650 Route des Lucioles – Sophia Antipolis – Valbonne – France
1.3 Definitions
The words, “Mobile Station” (MS) or “Mobile Equipment” (ME) are used for mobile terminals
supporting GSM services.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 10 / 246
A call from a GSM mobile station to the PSTN is called a “mobile originated call” (MOC) or
“outgoing call”, and a call from a fixed network to a GSM mobile station is called a “mobile
terminated call” (MTC) or “incoming call”.
In this document, the word “product” refers to any FLYFOT product supporting the AT
commands interface.
1.4 Presentation r ules
In the following, the AT commands are presented with as much precision as possible, through three
paragraphs. A “Description” paragraph provides general information on the AT command (or
response) behaviour. A “Syntax”paragraph describes the way to use it, the possible answers, through
a readable format. A “Defined values” paragraph provides parameters values, as well for the AT
command as for the corresponding responses.
Schemas are provided where necessary.
FLYFOT-MG260-MODULE
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 11 / 246
2 A T commands f eatures
2.1 FLYFO T line settings
A serial link handler is set with the following default values (factory settings):
baud rate is 460800 bit/s, 8 bits data, 1 stop bit, no parity, no flow control.
2.2 Command line
Commands always start with AT (which means Attention) and finish with a <CR> character.
2.3 Information responses and result codes
Responses start and end with <CR><LF>
If command syntax is incorrect, the “ERROR” string is returned,.
z If command syntax is correct but transmitted with wrong parameters, the +CME ERROR:
<Err> or +CMS ERROR: <SmsErr> strings is returned with adequate error codes if CMEE
was previously set to 1. By default, CMEE is set to 0, and the error message is only
“ERROR”.
z If the command line has been executed successfully, an “OK” string is returned.
In some cases, such as “AT+CPIN?” or (unsolicited) incoming events, the product does not return the
“OK” string as a response.
FLYFOT-MG260-MODULE
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 12 / 246
FLYFOT-MG260-MODULE
3 General behaviors
3.1 SIM Insertion, SIM Remo val
SIM card Insertion and Removal procedures are supported. There are software functions relying on
positive reading of the hardware SIM detect pin. This pin state (open/closed) is permanently
monitored.
When the SIM detect pin indicates that a card is present in the SIM connector, the product tries to set
up a logical SIM session. The logical SIM session will be set up or not depending on whether the
detected card is a SIM Card or not.
The AT+CPIN? command delivers the following responses:
z If the SIM detect pin indicates “absent”, the response to AT+CPIN? is “+CME ERROR 10”
(SIM not inserted).
z If the SIM detect pin indicates “present”, and the inserted card is a SIM card, the response to
AT+CPIN? is “+CPIN: xxx” depending on SIM PIN state.
z If the SIM detect pin indicates “present”, and the inserted card is not a SIM card, the response
to AT+CPIN? is “+CME ERROR 10”.
z These last two states are not provided immediately due to background initialization. Between
the hardware SIM detect pin indicating “present” and the final results, the AT+CPIN? sends
“+CME ERROR: 515” (Please wait, init in progress).
When the SIM detect pin indicates card absence, and if a SIM Card was previously inserted, an IMSI
detach procedure is performed, all user data is removed from the product (Phonebooks, SMS etc.).
The product then switches to emergency mode.
3.2 Background initialization
After entering the PIN (Personal Identification Number), some SIM user data files are loaded into
the product (phonebooks, SMS status, etc.). Please be aware that it might take some time to read a
large phonebook.
The AT+CPIN? command response occurs after the PIN checking. After this response user data is
loaded in background. This means that some data may not be available just when PIN entry is
confirmed by ’OK’. The reading of phonebooks will then be refused by “+CME ERROR: 515” or
“+CMS ERROR: 515” meaning, “Please wait, service is not available yet, init in progress”.
This type of answer may be sent by the product at several points:
z when trying to execute another AT command before the previous one is completed (before
response),
z when asking for +CPIN? status immediately after SIM insertion and before the product has
determined if the inserted card is a valid SIM card.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 13 / 246
FLYFOT-MG260-MODULE
4 General commands
4.1 Module initial reason +TINIT
Description :
Request module initial reason.
Syntax:
Command syntax : AT+TINIT
Command Possible responses
+TINIT: 2,n
Note: watchdog init
+TINIT: 3,n
Note: plugin init
+TINIT: 4,n
Note: restart init
+TINIT: 5,n
Note: error init
OK
+CME ERROR 3
Note: not support
Defined values :
<n>
0: airplane mode is off
1: airplane mode is on
4.2 Battery state +CBC
Description :
Request module battery state.
Syntax :
Command syntax : AT+CBC
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 14 / 246
Command Possible responses
AT+CBC?
AT+CBC=?
AT + CB C
AT+CBC=1
While the battery level changed the indicator will be send to TE.
Defined values :
<n>
0: battery not in charge
1: battery in charge
2: battery full
3: battery low
<m>
0: battery level 0
25: battery level 1
50: battery level 2
75: battery level 3
100: battery level 4
FLYFOT-MG260-MODULE
+CBC: n,m
OK
+CBC: (0-3), (0-100)
OK
+CBC: n,m
OK
+CME ERROR 3
Note: not support
4.3 Manufacturer identification +CGMI
Description :
This command gives the manufacturer identification.
Syntax :
Command syntax : AT+CGMI
Command Possible responses
AT + CG M I
Note: Get manufacture identification
AT+CGMI=? OK
AT+CGMI?
AT+CGMI=1
4.4 Request model identification +CGMM
Description :
This command is used to get the supported frequency bands. With multi-band products the response
may be a combination of different bands.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
FLYFOT MODEM
OK
Note: Command valid, FLYFOT modem
+CME ERROR 3
Note: not support
Page: 15 / 246
Syntax :
Command syntax : AT+CGMM
Command Possible responses
AT+CGMM
Note: Get all available frequency band
AT+CGMM?
Note: Get current used frequency band
AT+CGMM=? OK
FLYFOT-MG260-MODULE
MULTIBAND 900 1800 1900
OK
Note: 900(EGSM), 1800(DCS) MHz primary
band.
+CGMM: EGSM900
OK
AT+CGMM=1
4.5 Request revision identification +CGMR
Description :
This command is used to get the revised software version.
Syntax :
Command syntax : AT+CGMR
Command Possible responses
AT + CG M R
Note: Get software version
AT+ CGMR =? OK
AT+ CGMR?
AT+ CGMR =1
+CME ERROR 3
Note: not support
FLYFOT-MG260-MODULE-VER-01.00 Aug
12 2006 14:06:42
OK
Note: Software release, revision 01.23 generated
on the 17
+CME ERROR 3
Note: not support
st of Dec 2003
4.6 Product Serial Number +CGSN
Description :
This command allows the user application to get the IMEI (International Mobile Equipment Identity,
15 digits number) of the product.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 16 / 246
Syntax :
Command syntax : AT+CGSN
Command Possible responses
FLYFOT-MG260-MODULE
AT+ C G SN
Note: Get the IMEI
AT+ C G SN
Note: Get the IMEI
AT+ CGSN =? OK
AT+ CGSN?
AT+ CGSN =1
4.7 Request IMSI +CIMI
Description :
This command is used to read and identify the IMSI (International Mobile Subscriber Identity) of
the SIM card. The PIN may need to be entered before reading the IMSI.
Syntax
Command syntax : AT+CIMI
Command Possible responses
AT+CIMI
Note : Read the IMSI
012345678901234
OK
Note: IMEI read from EEPROM
+CME ERROR: 22
Note: IMEI not found in EEPROM
+CME ERROR 3
Note: not support
208200120320598
OK
Note : IMSI value ( 15 digits ), starting with
MCC ( 3 digits ) / MNC ( 2 digits, 3 for PCS
1900 )
AT+ CIMI =? OK
AT+ CIMI?
AT+ CIMI =1
See appendix 16.12 for MCC / MNC description.
4.8 Card Identification +CCID
Description :
This command orders the product to read the EF-CCID file on the SIM card.
Syntax :
Command syntax : AT+CCID
Command Possible responses
AT+CCID
Note : Get card ID
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
+CME ERROR 3
Note: not support
+CCID: “123456789AB111213141”
Note : EF-CCID is present, hexadecimal format
Page: 17 / 246
AT+CCID?
Note : Get current value
AT+CCID = ?
Note : Get possible value
AT+ CCID =1
If there is no EF-CCID file present on the SIM, the +CCID answer will not be sent, but the OK
message will be returned.
4.9 Capabilities list +GCAP
Description :
This command gets the complete list of capabilities.
Syntax :
Command syntax : AT+GCAP
Command Possible responses
FLYFOT-MG260-MODULE
+ CCID: “123456789AB111213141”
Note : Same result as +CCID
OK
Note : No parameter but this command is valid
+CME ERROR 3
Note: not support
AT + GC A P
Note :Get capabilities list
Defined values :
No parameter
4.10 Repea t last command A/
Description :
This command repeats the previous command. Only the A/ command itself cannot be repeated.
Syntax :
Command syntax : A/
Command Possible responses
A/
Note Repeat last command
4.11 Power off +CPOF
Description :
This specific command power off FLYFOT MG260 module
+GCAP;+CGSM
OK
Note: Support GSM command
Syntax :
Command syntax : AT+CPOF
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 18 / 246
Command Possible responses
FLYFOT-MG260-MODULE
AT+CPOF
Note : power off
AT + CP O F ?
AT+CPOF=?
AT+CPOF =1
4.12 Set phone functionality +CFUN
Description :
This command selects the mobile station’s level of functionality. If the application wants to force the
product to execute an IMSI DETACH procedure, then it must send:AT+CFUN=0 This command
closed RF and SIM card can be accessed, so, sending SM function can Not be used again. The
AT+CFUN=1 command restarts the entire GSM stack and GSM functionality.
If the mobile switch on with the charger plugged in, it must send: either AT+CFUN=1 at normal mode
or AT+CFUN=3 at airplane mode so that the SIM CARD can be identified correctly.
Syntax :
Command syntax : AT+CFUN=<functionality level>
Command Possible responses
AT+ C F UN ?
Note : Ask for current functionality level
AT+ C F UN =0
Note : Set minimum functionality,
procedure
AT+ C F UN =1
Note : Set the full functionality mode with a
Complete software reset
AT + CF U N = 3
Note : Set the airplane mode
AT + CF U N
AT + CF U N = ?
NOTE: Command Operator Selection +COPS is used to force registration/deregistration.
IMSI detach
OK
Note: Command valid
+CME ERROR 3
Note: not support
+CFUN: 1
OK
Note : Full functionality
OK
Note : Command valid
SIM is valid
OK
Note : Command valid
OK
Note : Command valid
+CME ERROR 3
Note: not support
+CFUN: (0,1,3)
OK
Defined values :
<functionality level>
0 : Set minimum functionality, IMSI detach procedure
1 : Set the full functionality mode with a complete software reset
3 : Set the airplane mode, disable the network registration when switching on.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 19 / 246
<cfun state>
0: radio off
1: radio on
2: the system is initializing
3: radio off and the product at airplane mode
4.13 Phone activity status +CPAS
Description :
This command returns the activity status of the mobile equipment.
Syntax :
Command syntax : AT+CPAS
Command Possible responses
FLYFOT-MG260-MODULE
AT+ C PAS
Note : Current activity status
AT+ C PAS?
AT+ CPAS=?
AT+ C PAS= 1
Defined values :
<pas>
0: ready (allow commands from TA/TE)
1: unavailable (does not allow commands)
2: unknown
3: ringing (ringer is active)
4: call in progress
5: asleep (low functionality)
4.14 Report Mobile Equipment errors +CMEE
Description :
This command disables or enables the use of the “+CME ERROR : <xxx>” or “+CMS
ERROR :<xxx>” result code instead of simply “ERROR”. See appendix 16.1 for +CME ERROR
result codes description and appendix 16.2 for +CMS ERROR result codes.
+CPAS: <pas>
OK
+CME ERROR 3
Note: not support
Syntax :
Command syntax : AT+CMEE=<error reporting flag>
Command Possible responses
AT+CMEE=0
Note : Disable ME error reports, use only
“ERROR”
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
OK
Page: 20 / 246
AT+CMEE=1
Note : Enable “+CME ERROR:<xxx>” or
“+CMS ERROR:<xxx>”
AT+CMEE?
AT+CMEE=?
AT+CMEE
Defined values :
<error reporting flag>
0 : Disable ME error reports, use only “ERROR”
1 : Enable “+CME ERROR: <xxx>”
4.15 Keypad control +CKPD
Description :
This command emulates the ME keypad by sending each keystroke as a character in a <keys> string.
The supported GSM sequences are listed in the appendix. If emulation fails, a +CME ERROR: <err>
is returned. If emulation succeeds, the result depends on the GSM sequence activated:
Note: In the case where the FDN phonebook is activated, the sequences concerning “call forwarding”
are allowed only if the entire sequence is written in the FDN.
FLYFOT-MG260-MODULE
OK
+CMEE : 1
Note : Enable “+CME ERROR: <xxx>”
+CME ERROR 3
Note: not support
Syntax :
Command syntax : AT+CKPD=<keys>
Command Possible responses
AT+CKPD=”*#21#”
Note : Check every call forwarding status
AT+CKPD=”1234”
Note : Sequence not allowed
Defined values :
<keys>
Keyboard sequence : string of the following characters (0-9,*,#).
4.16Clock Management +CCLK
Description :
This command is used to set or get the current date and time of the ME real-time clock.
Syntax :
Command syntax : AT+CCLK=<date and time string>
Command Possible responses
+CCFC: 0,7
+CME ERROR 3
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 21 / 246
AT+CCLK=”00/06/09,17:33:00+32”
Note : set date to June 9
5:33pm, GMT +8
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 22 / 246
Defined values :
<date and time string>
String format for alarms : “yy/MM/dd,hh:mm:ss” (see +CCLK).
Note : Seconds are not taken into account.
4.18 Select type of address +CSTA
Description :
This command is used to select type of address.
Syntax :
Command syntax :AT+CSTA=<type>
Command Possible responses
FLYFOT-MG260-MODULE
AT + CS TA ?
AT+CSTA=? +CSTA: (129,145)
AT+CSTA=129
AT + CS TA
4.19 Open Micor phone power +TCFG
Description :
Firstly this command is used to open or close main microphone power by parameter “RED”.
Secondly this command is used to control display mode by parameter “IND”.
Syntax :
Command syntax : AT+TCFG=<type>,<value>
Command Possible responses
AT+TCFG=”IND”,1
Note : enable the value of CSQ、CREG、CBC、
CGREG indication unsolicited
AT + TC F G = ?
Note : Get all value
AT + TC F G ?
AT + TC F G
+CSTA: 129
OK
Note : read current value
OK
Note : get all value
OK
Note : set value
+CME ERROR: 3
Note : not support
OK
+TCFG: ("RED","NTC","IND"),(0,1)
OK
+CME ERROR: 3
Note : not support
Defined values :
<Type>
“RED”: record mode.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
m : this value has 4 octets. If the bit is set, the value of indication unsolicited once changing.
Otherwise the value is not given until requested.
4.20 32kHz Po wer down Mode +W32K
Description :
This specific command allows the 32kHz power down mode to be enabled or disabled.
:
Note
z When power down mode is entered, the product uses a 32kHz internal clock during
b4 b3 b2 b1
…
inactivity stages (despite of its nominal internal clock).
FLYFOT-MG260-MODULE
zWhen enabled, power down mode is active after 1 to 15 minutes. The mode is not stored
in EEPROM : the command has to be repeated after a reset.
Syntax :
Command syntax : AT+W32K=<mode>
Command Possible responses
AT+W32K=1 OK
Note : Enable 32kHz power down mode Note : 32kHz power down mode is
enabled
AT+W32K=0 OK
Note : Disable 32kHz power down mode Note : 32kHz power down mode is
disabled
Defined values
<mode> :
0 : Disable 32kHz power down mode
1 : Enable 32kHz power down mode
4.21Set alert tone Command +TMEL
Description:
This command with two parameters is used to set call active alert tone or other alert tone.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 24 / 246
Syntax :
Command syntax : AT+TMEL=<type>,< volume>
Command Possible responses
FLYFOT-MG260-MODULE
AT+TMEL=2,3
Note: Set the alert type and volume
AT+ T M EL = ?
Note: Get possible value
AT+TMEL =10,4
Note: Set invalid value
AT+ TMEL?
AT+ TMEL
Defined values :
<type> The value range is 0-15
0: none alert tone
(1-15): different alert tone
<volume> The value range is 1-3
1: The volume is lowest
2: The volume is middle
3: The volume is topmost
OK
+TMEL: (0-15),(1-3)
OK
+CME ERROR: 3
Note: The product can not support this command
+CME ERROR: 3
Note: The product can not support this command
4.22 Control Flash LED Command +TFLED
Description
This command with six parameters is used to control the flash led sparking.
Syntax
AT+TFLED=[Operation],<light time in idle>,<dark time in idle>,<light in calling>,<dark in
calling>,<mode:>
Command Possible responses
AT+ T F LE D = ?
Note: Set the alert type and volume
AT+ TFLED =1,10,10,10,10 ,1
Note: Get possible value
AT+ TFLED =10,4
Note: Set invalid value
AT+ T F LE D?
AT+ T F LE D
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
+TFLED:
(0-1),(0-65535),(0-65535),(0-65535),(0-65535),(0-1)
OK
OK
+CME ERROR: 3
Note: The product can not support this command
+TFLED: 1,10,10,10,10,1
+CME ERROR: 3
Note: The product can not support this command
Page: 25 / 246
Defined values :
Operation:
0:turn off the led
1:flash the led according to the other parameters
light time in idle:
0~65535 the light time in idle state;
dark time in idle:
0~65535 the dark time in idle state;
light in calling:
0~65535 the light time in calling state;
dark in calling:
0~65535 the dark time in calling state;
mode:
0:Normal mode
1:Super mode(the flash of the led is not relative to the calling of registeration state)
4.23 Restricted SIM a ccess +CRSM
Description
By using this command instead of Generic SIM Access +CSIM TE application has easier but more
limited access to the SIM database. This command transmits to the MT the SIM <command> and its
required parameters.
As response to the command, MT sends the actual SIM information parameters and response data. MT
error result code +CME ERROR may be returned when the command cannot be passed to the SIM,
but failure in the execution of the command in the SIM is reported in <sw1> and <sw2>
parameters.
As for the CSIM command , there is no locking between two successive commands. The user should
be aware of the precedence of the GSM application commands to the TE commands.
<command> : integer type
Command passed on by the MT to the SIM; refer GSM 11.11 (or 3GPP TS 51.011) :
176 READ BINARY
178 READ RECORD
192 GET RESPONSE
242 STATUS
all other values are reserved and the command will return +CME ERROR=3
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
+CRSM:
<sw1>,<sw2>[,<response>]
+CME ERROR: <err>
Page: 26 / 246
NOTE 1: The MT internally executes all commands necessary for selecting the desired file, before
performing the actual command.
<fileid> : integer type
This is the identifier of a elementary datafile on SIM. Mandatory for every command except STATUS.
NOTE 2: The range of valid file identifiers depends on the actual SIM and is defined in GSM 11.11
(or 3GPP TS 51.011). Optional files may not be present at all. This value must be in the range [0 .
65535] else a CME_ERROR=3 is returned.
<P1>, <P2>, <P3> : integer type
Parameters passed on by the MT to the SIM. These parameters are mandatory for every command,
except GET RESPONSE and STATUS. The values are described in GSM 11.11 (or 3GPP TS 51.011).
<data> : hexadecimal type
information which shall be written to the SIM (hexadecimal character format; refer +CSCS).
<sw1>, <sw2> : integer type
Information from the SIM about the execution of the actual command.
These parameters are delivered to the TE in both cases, on successful or failed execution of the
command.
<response> : hexadecimal type
response of a successful completion of the command previously issued (hexadecimal character format;
refer +CSCS). STATUS and GET RESPONSE return data, which gives information about the current
elementary datafield. This information includes the type of file and its size (refer GSM 11.11 (or 3GPP
TS 51.011)). After READ BINARY or READ RECORD command the requested data will be
returned.
<error>: integer type
3 Wrong format or parameters of the command
13 SIM no response
FLYFOT-MG260-MODULE
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 27 / 246
FLYFOT-MG260-MODULE
5 Call Control commands
5.1 Dial command D
Description :
The ATD command is used to set a voice, data call, As per GSM 02.30, the dial command also
controls supplementary services.
For a data call
ATD<nb> where <nb> is the destination phone number.
For a voice call
(the bearer may be selected previously, if not a default bearer is used).
ATD<nb> where <nb> is the destination phone number.
Please note that for an international number, the local international prefix does not need to be set
(usually 00) but does need to be replaced by the ‘+’ character.
Example: to set up a voice call to FLYFOT offices from another country, the AT command is:
“ATD+8601062965555;”
Note that some countries may have specific numbering rules for their GSM handset numbering.
The response to the ATD command is one of the following:
Verbose result Numeric code Description
OK 0 if the call succeeds, for voice call only
CONNECT
<speed>
, the application sends the following ASCII string to the product:
, the application sends the following ASCII string to the product:
10,11,12,13,14,15
if the call succeeds, for data calls only, <speed> takes
the value negotiated by the product.
BUSY 7 If the called party is already in communication
NO ANSWER 8 If no hang up is detected after a fixed network time-out
NO CARRIER 3
Direct dialing from a phonebook (stored in the SIM card) can be performed with the following
command:
ATD> <index>; to call <index> from the selected phonebook (by the +CPBS command)
AT D> “BILL”; to call “BILL” from the selected phonebook
Syntax:
Command syntax: ATD<nb>[;]
ATD><index>[;]
Command Possible responses
AT+ C P BS ?
Note: Which phonebook is selected?
AT D >8 ;
Note: Call index 8 from AND phonebook
Call setup failed or remote user release. Use the
AT+CEER command to know the failure cause
+CPBS:”SM”, 8, 10
Note: ADN phonebook is selected, 8 locations
are used and 10 locations are available
OK
Note: Call succeeds
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 28 / 246
Note: The ”;” for speech calls
Defined values :
<nb>
destination phone number
<index>
call number at indicated offset from the phonebook selected by the +CPBS command
<name>
call number corresponding to given name from the phonebook selected by the +CPBS command
5.2 Hang-Up command H
Description:
The ATH command is used by the application to disconnect the remote user. In the case of multiple
calls, all calls are released (active, on-hold and waiting calls).
The specific FLYFOT ATH1 command has been appended to disconnect the current outgoing call,
only in dialing or alerting state (i.e. ATH1 can be used only after the ATD command, and before its
terminal response (OK, NO CARRIER...). It can be useful in the case of multiple calls.
Syntax :
Command syntax : ATH<n>
Command Possible responses
FLYFOT-MG260-MODULE
ATH
Note: Ask for disconnection
AT H 1
Note: Ask for outgoing call disconnection
Defined values:
<n>
0: Ask for disconnection (default value)
1: Ask for outgoing call disconnection
5.3 Answer a call A
Description :
When the product receives a call, it sets the Ring Indication signal and sends the ASCII “RING”
string to the application. Then it waits for the application to accept the call with the ATA command.
Syntax :
Command syntax : ATA
Command Possible responses
OK
Note: Every call, if any, are released
OK
Note: Outgoing call, if any, is released
RING
Note: Incoming call
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 29 / 246
ATA
Note: Answer to this incoming call
ATH
Note: Disconnect call
Defined values :
No parameter
5.4 Remote disconnection
This message is used by the product to inform the application that an active call has been released by
the remote user.
The product sends “NO CARRIER” to the application. (Release cause reference to appendixes 17.4
failure cause from GSM 04.08 recommendation with +CEER command).
5.5 Extended er ror repor t +CEER
Description :
This command gives the cause of call release when the last call set up (originating or answering)
failed. Release cause reference to Appendixes 17.4 failure cause from GSM 04.08 recommendation
FLYFOT-MG260-MODULE
OK
Note: Call accepted
OK
Note: Call disconnected
5.5.2 Synt ax :
Command syntax : AT+CEER
Command Possible responses
ATD123456789;
Note: Outgoing voice call
AT+CEER
Note: Ask for reason of release
For the cause information element from GSM 04.08 see chapter 18.4 or 18.5. “NO CARRIER”
indicates that the AT+CEER information is available for failure diagnosis.
Defined values :
No parameter
5.6 DTMF signals +VTD, +VTS
+VTD Description:
The product enables the user application to send DTMF tones over the GSM network. This
command is used to define tone duration (the default value is 300ms).
NO CARRIER
Note: Call setup failure
+CEER: Error <xxx>
OK
Note: <xxx>is the release cause reference to
Appendixes 17.4 failure cause from GSM 04.08
recommendation
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 30 / 246
+VTD Syntax:
Command syntax: AT+VTD=<n>
Command Possible responses
FLYFOT-MG260-MODULE
AT+ V T D= 6
Note: To define600 ms tone duration
AT+ V T D= 0
Note: To set the default value
AT+ V T D?
Note: interrogate current tone duration
AT+ V T D= ?
Defined values :
<n> : tone duration
<n>*100 is the duration in ms.
If n < 4, tone duration is 300 ms; if n > 255, the value is used modulo 256.
Default value is 300 ms, that is <n> = 3.
+VTS Description:
The product enables the user application to send DTMF tones over the GSM network. This
command enables tones to be transmitted, only when there is an active call.
+VTS Syntax:
Command syntax: AT+VTS=<Tone>
Command Possible responses
AT+VTS=A
AT+VTS=11
AT+VTS=4
OK
Note: Command valid
OK
+VTD: <n>
OK
+VTD: (0-255)
OK
OK
Note: Command valid
+CME ERROR: 4
Note: If the <Tone> is wrong
+CME ERROR: 3
Note: If there is no communication
Defined values:
<Tone>:
The value is in {0-9, *, #, A, B, C, D}
Example:
To send tone sequence 13#, the application sends:
AT+VTS=1; +VTS=3; +VTS=#
OK
5.7 Redial last telephone number ATDL
Description:
This command is used by the application to redial the last number used in the ATD command. The last
number dialed is displayed followed by “;” for voice calls only
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 31 / 246
Syntax:
Command syntax: ATDL
Command Possible responses
FLYFOT-MG260-MODULE
AT D L
Note: Redial last number
Defined values :
No parameter
5.8 Automatic answ er ATS0
Description:
This S0 parameter determines and controls the product automatic answering mode.
Syntax :
Command syntax : ATS0=<value>
Command Possible responses
ATS 0 = 2
Note: Automatic answer after 2 rings
ATS 0 ?
Note: Current value
ATS 0 = 0
Note: No automatic answer
All others S-parameters (S6,S7,S8 …) are not implemented.
01062965555
Note: Last call was a voice call.
Command valid
OK
002
OK
Note: always 3 characters padded with zeros
OK
Note: Command valid
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 32 / 246
Defined values:
<value>
number of rings before automatic answer (3 characters padded with zeros).
Range of values is 0 to 255.
5.9 Gain contr ol +VGR, +VGT
Description:
This command is used by the application to tune the receive gain of the speaker and the
transmit gain of the microphone.
Syntax:
Command syntax: AT+VGR=<Rgain>
AT+VGT=<Tgain>
Command Possible responses
FLYFOT-MG260-MODULE
AT+VGR=5
AT + VG T = 4 5
AT+ V G R?
Note: Interrogate value
AT+VGR=?
Note: Test command
AT+ V G T?
Note: Interrogate value
AT+ V G T= ?
Note: Test command
Defined values :
<Rgain>: receiver gain
<Tgain>: transmission gain
OK
Note: Command valid
OK
Note: Command valid
+VGR: 5
OK
Note: Default receive gain
+VGR: (1-10)
OK
Note: Possible values
+VGT: 20 (When AT+SPEAKER=0)
+VGT: 96 (When AT+SPEAKER=1)
+VGT: 32 (When AT+SPEAKER=2)
OK
Note: Default transmit gain
+VGT: (0-255)
OK
Note: Possible values
Note: VGT command is not supported.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 33 / 246
5.10 Microphone Mute Control +CMUT
Description :
This command is used to mute the microphone input on the product (for the active microphone set
with the +SPEAKER command). This command is only allowed during a call. Syntax:
Command syntax : AT+CMUT=<mode>
Command Possible responses
FLYFOT-MG260-MODULE
AT+ C M UT = ?
Note: Test command
AT+ C M UT ?
Note: Ask for current value
AT+ C M UT = 1
Note: Mute ON (call active)
AT+ C M UT ?
Note: Ask for current value
AT+ C M UT = 0
Note: Mute OFF (call not active)
Defined values :
<mode>
0 : microphone mute off (default value).
1 : microphone mute on.
5.11 Speaker & Microphone selection +SPEAKER
Description:
+CMUT: (0,1)
OK
Note: Enable / disable mute
+CMUT: 0
OK
Note: Current value is OFF
OK
Note: Command valid
+CMUT: 1
OK
Note: Mute is active (call active)
+CME ERROR:3
Note: Command not valid
This specific command is used to select the speaker and the microphone set.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged
without prior written agreement.
Page: 34 / 246
5.14.2 Syntax :
Command syntax : AT+SPEAKER=<ActiveSpkMic>
Command Possible responses
FLYFOT-MG260-MODULE
AT+SPEAKER=0
Note : Speaker ONE and Micro ONE
AT+SPEAKER?
AT+SPEAKER=?
5.14.3 Defined values :
5.14.3 Defined values :
<ActiveSpkMic>
0 : SPEAKER ONE, MICRO ONE
1 : SPEAKER TWO, MICRO TWO
2: BUZZER, MICRO TWO
5.12Echo Cancellation +ECHO
OK
Note : Command valid
+SPEAKER: 0
OK
Note : Speaker ONE and Micro ONE are
active
+SPEAKER: (0-2)
OK
Description :
This specific command is used to enable, disable or configure the Echo Cancellation functions for voice
calls (in rooms, in cars, etc.). It is necessary to tune the Microphone gain (AT+VGT) and the Speaker gain
(AT+VGR) before activating the Echo Cancellation.
Syntax :
Command syntax :
AT+ECHO=<GammaSp>,<GammaNSp>,<AlfaRev>
Command Possible responses
AT+CMEE=1
Note: Enables the use of result code
AT+SPEAKER?
AT+SIDET=0
Note: Deactivate the Sidetone
OK
+ SPEAKER: 0
OK
Note : Speaker ONE and Micro ONE are active
OK
Page: 35 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
AT+SIDET? +SIDET: 0,0
FLYFOT-MG260-MODULE
AT+ECHO?
Note : Read current settings
AT+ECHO=96,2,95
Note : Active Echo cancellation for Mic/Spk one.
AT+ECHO?
Note : Read current settings
Defined values:
<GammaSp>
Remote echo cancellation
The allowed range is [ 1; 96].
16 by default
<GammaNSp>
Near echo cancellation
The allowed range is [ 1; 96].
96 by default
<AlfaRev>
Echo cancellation related to room
The allowed range is [ 1; 64].
64 by default
+ECHO: 0,2,0
OK
OK
+ECHO: 96,2,95
OK
Page: 36 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
5.13 SideTone modification +SIDET
Description :
This specific command is used to set the level of audio feedback in the speaker
(microphone feedback in the speaker).
Syntax :
Command syntax : AT+SIDET=<val1>[,<val2>]
Command Possible responses
AT+SIDET=1,0
OK
Note : Command valid
AT+SIDET?
Note : Current value
+SIDET: 1,0
OK
Note : Command valid
AT+SIDET=? +SIDET: (0-1),(0-3)
OK
FLYFOT-MG260-MODULE
Defined values :
<val1>
0: SideTone is disabled
1: SideTone is enabled
<val2> ( default value 0 will be used if this parameter is not given)
0: 0 db
1: - 6 db
2: - 12 db
3: - 18 db
5.14Initialize Voice Parameters +VIP
Description :
This command allows factory settings for voice parameters to be restored from EEPROM.
These voice parameters include:
z Gain control (+VGR & +VGT commands),
z Microphone mute control (+CMUT command),
z Speaker & Microphone selection (+SPEAKER command),
z Echo cancellation (+ECHO command),
z Side tone modification (+SIDET command).
Page: 37 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
Syntax :
Command syntax : AT+VIP=<n>
Command Possible responses
FLYFOT-MG260-MODULE
AT+ V I P?
AT+VIP=2
Note : Syntax error
AT+VIP=1
Note : Restore the factory settings from EEPROM
AT+VIP=1
Note : Restore the factory settings from EEPROM
with the current Echo cancellation algo (different of
the default algo).
AT+ V I P=?
Note : List of supported <n>s
Defined values :
<n>
1 : Restore all voice parameters
Other values are not supported.
+VIP: 1
OK
+CME ERROR: 3
OK
Note : The command has been executed
CME ERROR: 519
Note : Reset the product to accept the new algo.
+VIP: (1)
OK
5.15 Ring Melody Playback +CRMP
Description
This command allows a melody to be played. All melodies are manufacturer
defined.
For incoming voice, data or fax calls, 10 manufacturer-defined melodies can be
played back (in a loop).
Note:
loop melodies (for voice/data/fax call) must be stopped by a +CRMP command
with the <index> field set to 0 (example: +CRMP=0,,,0).
When the <volume> parameter is given, this overwrites the <sound level>
value of the +CRSL command. If the <volume> parameter is not given, the
<sound level> value of +CRSL is used as default value.
This specific command is used to select the speaker and the microphone set.
Syntax:
Command syntax: AT+TFSPEAKER=<ActiveSpkMic>
Command Possible responses
AT+TFSPEAKER=0
Note: receiver
AT+TFSPEAKER=1
Note: headset
AT+TFSPEAKER=2
Note: hand free
AT+TFSPEAKER?
AT+TFSPEAKER=?
Defined values:
OK
Note: Command valid
OK
Note: Command valid
OK
Note: Command valid
+SPEAKER: 0
OK
Note: receiver are active
+SPEAKER: (0-2)
OK
<ActiveSpkMic>
0: earphone and aux MIC
1: receiver and main MIC
2: hand free and main MIC
Page: 43 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
FLYFOT-MG260-MODULE
6 Network service commands
6.1 Signal Quality +CSQ
Description :
This command is used to ascertain the received signal strength indication (<rssi>) and the channel
bit error rate (<ber>) with or without a SIM card inserted.
Syntax :
Command syntax : AT+CSQ
Command Possible responses
AT+ C S Q
AT+CSQ=? +CSQ:(0~31),(0~7)
AT+CSQ? +CME ERROR: 3
Defined values :
<rssi> :
0: -113 dBm or less
1: -111 dBm
2 to 30: -109 to –53 dBm
31: -51dBm or greater
99: not known or not detectable
<ber> : 0…7: as RXQUAL values in the table GSM 05.08
99: not known or not detectable
Notes: <ber> is not valid and only response “99”
+CSQ: <rssi>,<ber>
OK
Note : <rssi>,<ber> as defined below
OK
Note : get parameter range
Note : not support
6.2 Operator selection +COPS
Description :
There are three possible ways of selecting an operator (PLMN):
1) The product is in manual mode. It then tries to find the operator specified by the application and if
found, tries to register.
Page: 44 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
2) The product is in automatic mode. It then tries to find the home operator and if found, tries to register.
If not found, the product automatically searches for another network.
3) The product enters into manual/automatic mode, and then tries to find an operator as specified by the
application (as in manual mode). If this attempt fails it enters automatic mode. If this is successful, the
operator specified by the application is selected. The mobile equipment then enters into automatic mode.
Note:
The read command returns the current mode and the currently selected operator. In manual mode, this
PLMN may not be the one set by the application (as it is in the search phase).
These commands are not allowed during one communication.
Syntax :
To force an attempt to select and register on a network, the application must
send the following command:
Command syntax
Possible responses for AT+COPS=<mode>:
OK (Network is selected with full service)
+CME ERROR: 30 (No network service),
+CME ERROR: 32 (Network not allowed – emergency calls only)
+CME ERROR: 3 (not allowed during one Communication)
+CME ERROR: 4 (Incorrect parameters)
Response syntax for AT+COPS?:
+COPS: <mode> [, <format>, <oper> ]
Response syntax for AT+COPS=?:
+COPS: [list of supported (<stat>, long alphanumeric <oper>, short
alphanumeric <oper>s, numeric <oper>) s]
If an incoming call occurs during a PLMN list request, the operation is aborted
(+CME ERROR: 520) and the unsolicited RING appears
: AT+COPS=<mode>, [<format> [ , <oper> ] ]
FLYFOT-MG260-MODULE
Command Possible responses
AT+ C O PS?
Note : Ask for current PLMN
AT+COPS=?
Note : Ask for PLMN list
AT+COPS=1,2,46000
Note : Ask for registration on China
Telecom network
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
+COPS: 0,2,46000
OK
Note : Home PLMN is China Telecom
+COPS:(2,"CHINA MOBILE","CMCC","46000"),
(3,"CHN-CUGSM","CU-GSM","46001")
OK
Note : detect current available PLMN
OK
Note : register successfully
Page: 45 / 246
AT+COPS=0
Note : Ask for registration on home
network
AT+COPS=3,0
Note : Set <format> to long
alphanumeric
AT+COPS=2
Note : Ask for deregistration from
network
AT+COPS
Defined values :
The parameters values are the following ones:
<mode>
0: automatic (default value)
1: manual
2: deregistration ; ME will be unregistered until <mode>=0 or 1 is selected.
3: set only <format> (for read command AT+COPS?)
4: manual / automatic (<oper> shall be present), if manual selection fails, automatic mode is entered.
<format>: format of <oper> field
0: long alphanumeric format <oper>
1: short alphanumeric format <oper>
2: numeric <oper> (default value)
<stat>: status of <oper>
0: unknown
1: available
2: current
3: forbidden
FLYFOT-MG260-MODULE
OK
Note : Succeeded
OK
Note: Succeeded
OK
Note : Succeeded
+CME ERROR: 3
Note : not support
<oper>: operator identifier (MCC/MNC in numeric format only for operator selection)
The long alphanumeric format can be up to 16 characters long (see appendix 19.12 for operator names
description, field is “Name”)
The short alphanumeric format can be up to 8 characters long.
6.3 Network re gistration +CREG
Description
This command is used by the application to ascertain the registration status of the product.
Page: 46 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
Syntax :
Command syntax : AT+CREG= <mode>
Response syntax :
Command Possible responses
+CREG : <mode>, <stat> [ ,<lac>,<ci> ] for AT+CREG? Command only
FLYFOT-MG260-MODULE
AT+CREG?
AT+CREG=1
Note : Enable network registration unsolicited result
code
AT+CREG=?
AT+CREG
Defined values :
<mode>
0: Disable network registration unsolicited result code (default)
1: Enable network registration code result code +CREG : <stat>
2: Enable network registration and location information unsolicited result
code +CREG: <stat>,<lac>,<ci> if there is a change of network cell.
<stat>
0: not registered, ME is not currently searching for a new operator.
1: registered, home network.
2: not registered, ME currently searching for a new operator to register to.
3: registration denied.
4: unknown.
5: registered, roaming.
<lac>: string type; two byte location area code in hexadecimal format (e.g. “00C3” equals 195 in decimal).
<ci>: string type; two byte cell ID in hexadecimal format.
+CREG: <mode>,<stat>
OK
Note : As defined here-above
OK
Note : Command valid
+CREG: (0-2)
Note : 0,1,2 <mode> values are supported
+CME ERROR: 3
Note : not support
6.4 Preferr ed operator list +CPOL
Description :
This command is used to edit (or update) the SIM preferred list of networks. This list is read in the
SIM file selected by the command AT+CPLS.
Page: 47 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
Note: Write at location 22 a phone number exceeding
the limit (20 digits)
AT+CPBW=22,"2021234567",129,"LONGLONG
AGOTHERELIVEAKING"
Note : Write at location 22 along text (11 characters)
AT+CPBW=22,"02012345678",129,"80ABC"
Note: write location
+CPBW: (1-100),20,(129,145),12
OK
Note :+CPBS=”SM” 100 locations, phone
number = 20 digits max, TON/NPI of 129 or
145, text length = 12
+CPBW: (1-100),19,(129,145),30
OK
Note : +CPBS=”SM” 100 locations, phone
number = 19 digits max, TON/NPI of 129 or
145, text length = 30
+CME ERROR: 3
Note: The product can not support this
command
OK
Note: Location 1 erased
OK
Note: Location 1 written
OK
Note: Location 1 overwritten
OK
Note: First location available is written
+CME ERROR: 26
Note: Phone number too long
+CME ERROR: 24
Note: Text too long
OK
Note: Location 22 is written. The string has a
wrong UCS2 format, it is therefore considered
Page: 64 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
AT+CPBW=23,"02112345678",129,"804E095F20
"
Note : write location 23 (UCS2 format for the
<text> field)
When the fixed dialing phonebook (FDN) is locked, this command is not allowed. Moreover, when the
FDN is unlocked, PIN2 is required to write in the FDN phonebook.
But if PIN2 authentication has been performed during the current session, the +CPBW command with
FDN is allowed.
Defined valuess :
<index> integer type value depending on the capacity of the phonebook memory.
<number> phone number in ASCII format.
<type> TON/NPI (Type of address byte in integer format).
Note:
for the <type> parameter, all values are allowed from 0 to 255,but the MSB will be set to 1 in all cases (ex :
a <type> value of 17 will be written as 145).
<text>string type.
Note 1:
For the <text> parameter all strings starting with “80”, “81” or “81” are considered in UCS2 format. See
the APPENDIX E (Coding of Alpha fields in the SIM for UCS2).
Note 2:
The +CSCS (Select Character set) command does not affect the format for phonebook entries.
FLYFOT-MG260-MODULE
as an ASCII string
OK
Note: Location 23 is written
8.5 Phonebook phone search +CPBP
Description :
This specific command orders the product to search the phonebook for an item with the same phone
number as that defined in the parameter.
Syntax :
Command syntax : AT+CPBP=<PhoneNumber>
Command Possible responses
AT+CPBP=”+331290101”
Note : Search entries corresponding to this phone
number
AT+CPBP=”+331290101”
Note : Search entries corresponding to this phone
number
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
+CPBP : 15,”+331290101”,145,”Eric”
OK
Note : Display the entry corresponding to the
specified phone number
+CPBP : 15,”01290101”,129,”Eric”
OK
Note : Display the entry corresponding to the
Page: 65 / 246
specified phone number
AT+CPBP=”01290202”
Note : Search entries corresponding to this phone
number
AT+CPBP=”+331290101”
Note : Search entries corresponding to this phone
number
AT+CPBP=”0129”
Note : Search entries corresponding to this phone
number
AT+CPBP=?
Note : Get possible value
AT+CPBP
AT + CP B P ?
FLYFOT-MG260-MODULE
+CPBP : 15,”+331290202”,145,”David”
OK
Note : Display the entry corresponding to the
specified phone number
+CPBP :
15,”+331290101”,145,”8045682344FFFF ”
(UCS2 format)
OK
Note : Display the entry corresponding to the
specified phone number
+CME ERROR: 22
Note : Entry not found
OK
Note : No parameter but this command is valid
+CME ERROR: 3
Note: The product can not support this
command
ERROR
Note: The product can not support this
command
Defined values :
<PhoneNumber>
coded according to GSM 07.07 or GSM 07.05.
8.6 Move action in phone book +CPBN
Description
This specific command instructs the product to make a forward or backward move in the phonebook (in
alphabetical order).
This command is not allowed for the “EN” phonebook - which does not contain alphanumeric fields.
Syntax :
Command syntax : AT+CPBN=<mode>
Command Possible responses
AT + CP B N =?
Note : Test command
AT+CPBN? +CME ERROR: 3
+CPBN: (0-5)
OK
Note : Possible modes
Page: 66 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
AT+CPBN Note: The product can not support this
AT + CP B N =0
Note : Read the first location
AT + CP B N =1
Note : Read the last location
AT + CP B N =2
Note : Read the next location
AT + CP B N =3
Note : Read the previous location
AT + CP B N =4
Note : Get the last location read
AT + CP B N =5
Note : Get the last location write
AT+CPBN=6 +CME ERROR: 3
AT + CP B N
AT + CP B N ?
FLYFOT-MG260-MODULE
command
+CPBN: 8,"13521835820",129,""
OK
Note : Display the first location
+CPBN: 2,"13511015868",129,"YING"
OK
Note : Display the last location
+CPBN: 8,"13521835820",129,""
OK
Note : Display Next valid item in alphabetical
order
+CPBN: 2,"13511015868",129,"YING"
OK
Note : Display Next valid item Previous valid
item in alphabetical order
+CPBN: 2,"13511015868",129,"YING"
OK
Note : Display the last location read
+CPBN:
23,"02112345678",129,"804E095F20FFFF"
OK
Note : Display
Note: The value exceed
+CME ERROR: 3
Note: The product can not support this
command
the last location write
the limit (0~5)
Page: 67 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
Using mode 4 and 5 with +CPBF command and CPBW :
Command Possible responses
FLYFOT-MG260-MODULE
AT+CPBF=”Er”
Note : Find ”Er” in phonebook
AT+ C P BN=2
Note : Read the next location
AT+CPBF=”Er”
Note : Find ”Er” in phonebook
AT+ C P BN=4
Note : Get the last location read
AT+CPBW=,”0146290800”,129,”WM”
Note : Write an item at the first location
available
AT+ C P BN=5
Note : Get the last location write
AT+ C P BN=4
Note : Get the last item read
AT+CPBF=”800041FFFF”
Note : Find”800041” in phonebook
AT+ C P BN=4
Note : Get the last location read
+CPBF : 15,”+331290101”,145,”Eric”
OK
Note : Display the location
+CPBN : 5,”+33147658987”,145,”Frank”
OK
Note : Display the following location
+CPBF : 15,”+331290101”,145,”Eric”
OK
Note : Display the location
+CPBF : 15,”+331290101”,145,”Eric”
OK
Note : Display the last location read
OK
Note : No information about this location
AT+CPBN=38,”0146290800,129,”WM”
Note : Display the last item written with its
location
AT+CPBN=38,”0146290800,129,”WM”
Note : Now the last item read is the last
written item too
+CPBF :
15,”+3312345”,145,”8000414339FFFF”
OK
Note : Display this location
+CPBF :
15,”+3312345”,145,”8000414339FFFF”
OK
Note : Display the last location read
Please note that the AT+CPBN=5 command is useful after an AT+CPBW command used without a
location.
Defined values :
<mode>
0: First item
1: Last item
2: Next valid item in alphabetical order
3: Previous valid item in alphabetical order
Page: 68 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
4: Last item read (usable only if a read operation has been performed on the current phonebook since the
end of initialization)
5: Last item written (usable only if a write operation has been performed on the current phonebook since
the end of initialization)
8.7 Subscriber number +CNUM
Description:
This command returns the subscriber MSISDN(s).
If the subscriber has different MSISDNs for different services, each MSISDN is returned in a separate line.
Syntax:
Command syntax: AT+CNUM
Response syntax
Command Possible responses
: +CNUM : <alpha1>, <number1>, <type1>
<CR><LF> +CNUM : <alpha2>, <number2>, <type2> ….
FLYFOT-MG260-MODULE
AT + CN U M = ?
Note : Test command
AT + CN U M ?
AT + CN U M = 1
AT + CN U M
Note : Get MSISDNs
Defined values :
<alphax> optional alphanumeric string associated with <numberx>
<numberx> string type phone number with format as specified by <typex>
<typex> type of address byte in integer format
8.8 FLYFO T Phonebook Character Set +WPCS
Description :
This specific command informs the ME which character set is used by the TE for the phonebooks. The ME
can convert each character of entered or displayed strings. This is used to read or write phonebook entries.
See also +CSCS for the short messages character sets.
OK
Note : No parameter but this command is valid
+CME ERROR: 3
Note: The product can not support this
command
+CNUM :“Phone”,“0612345678”,129
Note : MSISDNs
Syntax :
Command syntax : AT+WPCS=<Character Set>
Page: 69 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
Command Possible responses
FLYFOT-MG260-MODULE
AT+WPCS=”TRANSPARENT”
Note : Transparent mode
AT+WPCS=?
Note : Get possible values
AT + WP C S ?
Note : Get current value
AT+WPCS
Defined values :
<Character Set>
“TRANSPARENT”: Transparent mode. The strings are displayed and entered as they are stored in SIM.
“HEX”: Hexadecimal mode. No character set used; the user can read or write hexadecimal values.
AT+WPCS=”HEX” is default value.
OK
Note : Command valid
+WPCS:
("TRANSPARENT","HEX")
OK
Note : Possible values
+WPCS: "TRANSPARENT"
Note : read current value
+CME ERROR: 3
Note: The product can not support this command
Page: 70 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
FLYFOT-MG260-MODULE
9 Short Messages commands
Note: At present, MG260 only support “SM” storage.
9.1 Parameters definition
<da> Destination Address, coded like GSM 03.40 TP-DA
<dcs> Data Coding Scheme, coded like in document [5].
<dt> Discharge Time in string format :
Day [01-31], Hour, Minute, Second and Time Zone [quarters of an hour] )
<fo> First Byte, coded like SMS-SUBMIT first byte in document [4],
Default value is 17 for SMS-SUBMIT
<index> Place of storage in memory.
<length> PDU mode (+CMGF=0): length of the TP data unit in bytes
<mem1> Memory used to list, read and delete messages (+CMGL, +CMGR and +CMGD).
<mem2> Memory used to write and send messages (+CMGW, +CMSS).
<mid> CBM Message Identifier.
<mr> Message Reference.
<oa> Originator Address.
<pid> Protocol Identifier.
<pdu> For SMS : GSM 04.11 SC address followed by GSM 03.40 TPDU in hexadecimal format,
coded as specified in doc [4] For CBS : GSM 03.41 TPDU in hexadecimal format
<ra> Recipient Address.
<sca> Service Center Address
<scts> Service Center Time Stamp in string format :
<sn> CBM Serial Number
<st> Status of a SMS-STATUS-REPORT
<stat> Status of message in memory.
<tooa> Type-of-Address of <oa>.
<tora> Type-of-Address of <ra>.
<tosca> Type-of-Address of <sca>.
<total1> Number of message locations in <mem1>.
<total2> Number of messages locations in <mem2.
<used1> Total number of messages locations in <mem1>.
<used2> Total number of messages locations in <mem2.
<vp> Validity Period of the short message, default value is 167
Page: 71 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
9.2 Select message ser vice +CSMS
Description:
The supported services are originated (SMS-MO) and terminated short message (SMS-MT) +
Cell Broadcast Message (SMS-CB) services.
Syntax:
Command syntax : AT+CSMS=<service>
Command Possible responses
FLYFOT-MG260-MODULE
AT+CSMS=0
Note : SMS AT command Phase 2 version 4.7.0
AT+CSMS=1
Note : SMS AT command Phase 2 +
AT+CSMS?
Note : Current values ?
AT+CSMS=?
Note : Possible services
AT+CSMS +CMS ERROR: 3
Defined values:
<service>
0: SMS AT commands are compatible with GSM 07.05 Phase 2 version 4.7.0.
1: SMS AT commands are compatible with GSM 07.05 Phase 2 + version.
+CSMS: 1,1,1
OK
Note : SMS-MO, SMS-MT
+CMS ERROR: 303
Note : SMS-MO, SMS-M
+CSMS: 0,1,1,1
OK
Note : GSM 03.40 and 03.41 (SMS AT
command Phase 2 version 4.7.0
+CSMS: (0,1)
OK
Note: action command is not supported.
9.3 Preferred Message Storage +CPMS
Description:
This command allows the message storage area to be selected (for reading, writing, etc).
At present MG260 only support “SM” storage.
Syntax:
Command syntax: AT+CPMS=<mem1>,[<mem2>]
Page: 72 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
Command
FLYFOT-MG260-MODULE
Possible responses
AT+CPMS=?
Notes: List possible parameters.
AT+CPMS=”BM”
Notes: Select CBM message storage
AT+CPMS=”SR”
Notes: set status report storage
AT + CP M S ?
Note : Read
AT+CPMS +CMS ERROR: 3
+CPMS: ("SM")
Note: Read, list, delete: SMS, CBM or SMS
Status Report
Write, send: SMS
+CME ERROR 3
Note:At present MG260 MODULE, only
support “SM” storage.
+CME ERROR 3
Note:At present MG260 MODULE, only
support “SM” storage.
+CPMS: "SM",3,10,"SM",3,10
OK
Note : Read, write SMS from/to SIM 3 SMS are
stored in SIM. 10 is the total
in SIM
Note: action command is not supported.
memory available
Defined values :
<mem1>: Memory used to list, read and delete messages. It can be:
-“SM”: SMS message storage in SIM (default)
-“BM”: CBM message storage (in volatile memory).
-“SR” : Status Report message storage (in SIM if the EF-SMR file exists,
otherwise in the ME non volatile memory)
Note :
“SR” ME non volatile memory is cleared when another SIM card is inserted. It
is kept, even after a reset, while the same SIM card is used.
<mem2>: Memory used to write and send messages
-“SM” : SMS message storage in SIM (default).
If the command is correct, the following message indication is sent:
+CPMS: <used1>,<total1>,<used2>,<total2>
When <mem1> is selected, all following +CMGL, +CMGR and +CMGD
commands are related to the type of SMS stored in this memory.
Page: 73 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
9.4 Save Settings +CSA S
Description:
All settings specified by the +CSCA and +CSMP commands are stored in EEPROM if the SIM card is
a Phase 1 card or in the SIM card if it is a Phase 2 SIM card.
Syntax:
Command Possible responses
FLYFOT-MG260-MODULE
AT+CSAS
Note: Store +CSAS parameter
AT+CSAS?
AT+CSAS=?
Defined values:
No parameter
9.5 Restore settings +CRES
Description:
All settings specified in the +CSCA command is restored from EEPROM if the SIM card is Phase 1 or
from the SIM card if it is a Phase 2 one.
Syntax:
Command Possible responses
OK
Note: Parameter Stored
+CMS ERROR: 3
Note: not supported.
AT+CRES
Note: Restore +CSAS parameter
AT+CRES?
AT+CRES=?
Defined values:
No parameter
9.6 New message indication +CNMI
Description:
This command selects the procedure for message reception from the network.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
:
Page: 77 / 246
and SMS-STATUS-REPORT, may be followed by other <CR><LF>+CMGL:<index>…)
Command Possible responses
FLYFOT-MG260-MODULE
AT+CMGL=4
Note : List all messages in pdu mode
AT+CMGL=1
Note : List read messages in PDU mode
AT+CMGL=? +CMGL: (0-4)
AT+CMGL
AT+CMGL?
+CMGL: 3,1,,23
0891683108100005F0040D91683185716393
F90000500142907350230331D90C
+CMGL: 1,1,,24
0891683108100005F0040D91683185716393
F900005001429042802304B0182C06
+CMGL: 2,1,,34
0891683108100005F0240D91683185716393
F900005011525151012310F3F61C442FCFE9
20F7DB0502C570
OK
+CMGL: 6,1,,34
0891683108100005F0240D91683185716393
F900005011525131902310F3F61C442FCFE9
20F7DB05028162
+CMGL: 5,1,,21
0891683108100005F0240D91683185716393
F90000501152514054230161
OK
OK
+CMS ERROR: 3
Note: not supported.
Defined values
Note :
For SMS Status Reports, only “ALL” / 4 and “READ” / 1 values of the <stat>
parameter will list messages ; other values will only return OK.
9.9 Send message +CMGS
Description :
The <address> field is the address of the terminal to which the message is sent. To send the message,
Page: 78 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
simply type, <ctrl-Z> character (ASCII 26). The text can contain all existing characters except <ctrl-Z>
and <ESC> (ASCII 27). This command can be aborted using the <ESC> character when entering text. In
PDU mode, only hexadecimal characters are used (‘0’…’9’,’A’…’F’).
Syntax :
Command syntax in PDU mode :
AT+CMGS= <length> <CR>
PDU is entered <ctrl-Z / ESC >
Command Possible responses
FLYFOT-MG260-MODULE
AT+CMGS=.28.<CR>
0031000BA13105119226F40000AD0AA8C3F6
30885E9ED301 <ctrl-Z>
Note : Send a message in PDU mode
AT+CMGS=? +CMGS:
AT+CMGS
AT+CMGS?
The message reference, <mr>, which is returned to the application is allocated by the product. This number
begins with 0 and is incremented by one for each outgoing message (successful and failure cases); it is
cyclic on one byte (0 follows 255).
Note:
this number is not a storage number – outgoing messages are not stored.
Defined values :
See above paragraphs.
+CMGS: <mr>
OK
Note : Successful transmission
OK
+CMS ERROR: 3
Note: not supported.
9.10 Write Message to Memory +CMGW
Description :
This command stores a message in memory (either SMS-SUBMIT or SMSDELIVERS). The memory
location <index> is returned (no choice possible as with phonebooks +CPBW).
Text or PDU is entered as described for the Send Message +CMGS command.
Syntax :
Command syntax in PDU mode :
AT+CMGW= <length> [,<stat>] <CR>
give PDU<ctrl-Z / ESC>
Response syntax
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
:
Page: 79 / 246
+CMGW: <index> or +CMS ERROR: <err> if writing fails
Command Possible responses
FLYFOT-MG260-MODULE
AT+CMGW=.28.<CR>
0031000BA13105119226F40000AD0AA8C3F6
30885E9ED301 <ctrl-Z>
Note : Write a message in PDU mode
AT+CMGW=? OK
AT+CMGW
AT+CMGW?
Defined values :
None.
9.11Send Message From Stor age +CMSS
Description :
This command sends a message stored at location value <index>.
+CMGW: 4
OK
Note : Message stored in index 4
+CMS ERROR: 3
Note: not supported.
Syntax :
Command syntax: AT+CMSS=<index>[,<da> [,<toda>] ]
Response syntax
+CMSS : <mr> or +CMS ERROR: <err> if sending fails
If a new recipient address <da> is given, it will be used instead of the one stored with the message.
Command Possible responses
AT+CMGW=25<CR>
AT+CMSS=5, 13901011234
Note : Send the message 5 to a different
destination number
AT+CMSS=5, 13901011234, 129
Note : Send the message 5 to a different
destination number and different <toda>
AT+CMSS
AT+CMSS?
:
+CMSS: <mr>
OK
Note: Message stored with index 25 is send
successfully
AT+CMSS:<mr>
OK
Note : Successful transmission
+CMSS :<mr>
OK
Note : Successful transmission
+CMS ERROR: 3
Note: not supported.
Page: 80 / 246
This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.
AT+CMSS=?
Defined values
<index>
<da>
<toda>
<mr>
See above descriptions.
9.12 Delete message +CMGD
Description :
This command is used to delete one or several messages from preferred message storage (“BM” SMS