Vous êtes sur la page 1sur 10

12/6/2015

LescommandesAT

Accueil

>>CoursInformatique >>CoursRseauxetTlcommunication >>RseauxGSM

|ConceptsdebaseduGSM |Architectured'unrseauRadiomobileGSM |Spcificationsdesariens |VisitetechniquedesiteGSM |Les


commandeAT|
Chapitre5

LESCOMMANDESAT

1Gnralits
LescommandesATsontdfiniesdanslanormeGSM
07.07(pourlesSMScf.GSM07.05).ATestlabrviation
deATtention.Ces2caractressonttoujoursprsents
pourcommencerunelignedecommandesousformede
texte(codesASCII).Lescommandespermettentla
gestioncompltedumobile.

QualifsCAN2017enLive

MarocLybyeEndirectsur
Pcici!

Troisentitssontdfinies:
TE:TerminalEquipment(envoietafficheles
commandes.
TA:TerminalAdaptator(interfaceentre
lutilisateuretlemobile).
ME:MobileEquipment.

Schmadefonctionnement

CodesASCII
Engnral,ilfauttaperlescommandesATenMAJUSCULES(65,0x41,Aet84,0x54,T).Lacommande
ATtoutcoursdoitdonnerlarponse"OK".Lecaractre<CR>Carriagereturn(10,0x0A)(cf.commande
ATS4).Lecaractre<LF>Linefeed(13,0x0D)(cf.commandeATS3).

StructuredunecommandeAT

http://www.technologuepro.com/gsm/commande_at.htm

1/10

12/6/2015

LescommandesAT

Structuredunerponse

Commandesdebase(1)
ATI[<value>]:AffichagedesparamtresduTA.
ATZ[<value>]:Chargementdesparamtrespardfautmmorissparlutilisateur.
AT&F[<value>]:Chargementdesparamtrespardfautmmorissparlefabriquant.
ATE[<value>]:EchodescommandesAT(df.1).
ATQ[<value>]:Suppressiondursultat(df.0).

Slectiondaffichagedeserreurs
ATV[<value>]:Rponseverbeuse(df.1).
SileTAnacceptepaslacommande:
1:<CR><LF>ERROR<CR><LF>
0:4<CR>
AT+CMEE=[<n>]:dtaildeserreursduME:
0:ERROR
1:+CMEERROR:<err>(cf.9.2GSM07.07)
2:+CMEERROR:<VerboseErr>

Commandesdegestiondunappel
AT+CSTA=[<type>]:Slectiondutypedesnumrosdetlphone.
145:Numrotationinternationale(avec+).
129:Lesautrescas.
ATD<option>:Envoidunappelvocalouautre.
ATT:Numrotationfrquentielle.
ATP:Numrotationparimpulsions.
ATA:Dcrochelalignelorsdunappelencours.
http://www.technologuepro.com/gsm/commande_at.htm

2/10

12/6/2015

LescommandesAT

ATH:Raccrochelacommunicationencours.
AT+CHUP:VersionGSMdelacommandeH,(cf.+CVHU).

LesoptionsdelacommandeD
Lescaractresutilisables:1234567890*#+ABC
Lescaractresnonutiliss:D,TP!W@
Lescaractresspciaux:
Dslecaractre,unappelvocalestlanc
>recherchedunumrodanslannuaire.
Iouisupplementaryservicesubscription,cf.+CLIR.
Gougsupplementaryserviceinformation,cf.+CCUG.

Exemples
Appelnormal:ATD222[]
Recherchesdanslannuaire:
ATD><str>[I][G][]:Appelparlenomalphanumrique.
ATD>mem<n>[I][G][]:Appelparlenumrondelammoiremem(cf.+CPBS).
ATD><n>[I][G][]:Appelparlenumrodindicen.

Gestiondumodedappel
AT+CMOD=[<mode>]:Slectiondumodedappel.
0singlemode.
1alternatingvoice/fax(teleservice61).
2alternatingvoice/data(bearerservice61).
3voicefollowedbydata(bearerservice81).
Cf.aussiAT+CSNSet+FCLASS.
AT+CBST=[<speed>,[<name>][,<ce>]]]:Slectionduservicedetransport.
AT+CR=[<mode>]:Affichagedumodedappel(1enable,0disable).
ASYNC,SYNC,RELASYNC,RELSYNC,GPRS.
AT+CRC=[<mode>]:Affichagedumodedappeltendu(1enable,0disable).
ASYNC,SYNC,RELASYNC,RELSYNC.
FAX,VOICE,VOICE/xxx.
ALTVOICE/xxx,ALTxxx/VOICE.
ALTVOICE/FAX,ALTFAX/VOICE.
GPRS<PDP_type>,<PDP_addr>[,<L2P>]
AT+S0=[<n>]:Slectiondunombredesonneriesavantdcrochageautomatique.

Voixsuiviededonnes

Voixetdonnes

http://www.technologuepro.com/gsm/commande_at.htm

3/10

12/6/2015

LescommandesAT

VoixetFAX

Commandesgnrales
AT+CGMI:NomduconstructeurduME.
AT+CGMI
+CGMI:SAGEM
AT+CGMM:IdentificationdumodleduME.
AT+CGMM
+CGMM:G7XX
AT+CGMR:VersionetniveaudumodledeME
AT+CGMR
+CGMR:SAGEMOX1.0M
AT+CGSN:IdentificationIMEI.
AT+CGSN
+CMEERROR:22(notfound)

Fonctionsspcialesrseau
AT+CNUM:NumroMSISDNdelutilisateur.
AT+CREG:Informationsdenregistrementsurlerseau.
AT+COPN,AT+COPS:Listeetslectiondunoprateur.
AT+CLCK:BlocageoudblocageduME.
AT+CPWD:Dfinitiondumotdepassepour+CLCK.
AT+CLIP,AT+COLP:Identificationdelappel.
AT+CLIR:Restrictiondidentificationdelappel.
AT+CCUG:Groupementdappels.
AT+CCFC:Conditionsderenvoidappels.
AT+CCWA:Gestiondesappelsenattente.
http://www.technologuepro.com/gsm/commande_at.htm

4/10

12/6/2015

LescommandesAT

AT+CSSN:Affichagedesinformationsdeservicessupplmentaires.
AT+CLCC:Listedesappelsencours.

Exemple(1)
AT+CREG=1(validationdelaffichagedescodesdenregistrement)
OK
AT+CREG?
+CREG:1,1(LeMEestenregistrdanssonrseauhomePLMN)
OK
AT+COPS=3,2+COPS?+COPS=3,0+COPS?
+COPS:0,2,"24405"(demandeducodepays...
+COPS:0,0,"RADIOLINJA"etdunomdeloprateur)
OK
...userwanderstoanotherPLMN...
+CREG:2(sortiedurseaurecherchedunouveauPLNM)
+CREG:5(enregistranouveau,maispassurlehomePLMN)
AT+COPS=3,2+COPS?+COPS=3,0+COPS?
+COPS:0,2,"24491"(demandeducodepays...
+COPS:0,0,"TELIAMOBITEL"etdunomdeloprateur)
OK
lutilisateurperdlaconnexionplusderseau...
+CREG:0

Exemple(2)
AT+COPS=?
+COPS:(2,"RADIOLINJA","RL","24405"),(0,"TELE","TELE","24491")
OK
AT+COPS?
+COPS:0,0,"RADIOLINJA"
OK
AT+COPS=1,0,"TELE"
+CMEERROR:3(notallowed)

Exemple(3)
AT+CCWA=1,1+COLP=1(Gestiondesappelenattenteet
OKidentificationdesappels)
ATD9311234567(envoidunappelvocal)
+COLP:"+358311234567",145
OK
...conversation...
+CCWA:"+358317654321",145(unautreappelarrive)
AT+CHLD=2(miseenattentedu1erappel)
OK
...conversation...
AT+CHLD=1(raccrochele2meappel(actif))
OK
ATH(raccrochelepremierappel)
OK

Exemple(4)
AT+CLIP=1+CRC=1
OK
...
+CRING:VOICE
+CLIP:+35812345,145
sonnerie...
ATAdcrochage
OK
raccrochagedistant
NOCARRIER
http://www.technologuepro.com/gsm/commande_at.htm

5/10

12/6/2015

LescommandesAT

Commandesgnrales
AT+CGMI:NomduconstructeurduME.
AT+CGMI
+CGMI:SAGEM
AT+CGMM:IdentificationdumodleduME.
AT+CGMM
+CGMM:G7XX
AT+CGMR:VersionetniveaudumodledeME.
AT+CGMR
+CGMR:SAGEMOX1.0M
AT+CGSN:IdentificationIMEI.
AT+CGSN
+CMEERROR:22(notfound)

CommandesdegestionduME
AT+CPAS:EtatduME.
0:prt.
1:nondisponible.
2:inconnu.
3:lasonnerieestactive.
4:unappelestencours.
5:veille.
AT+CPIN:Contrledumotdepasse.
READY,SIMPIN,SIMPUK,etc
AT+CBC:Etatdelabatterie.
0:MEalimentparlabatterie
1:MEnonalimentparlabatterie.
2:pasdebatterie.
3:dfautdalimentation.
Suividupourcentagedechargerestante.
AT+CSQ:Qualitdusignal.
AT+CKPD:EmulationduclavierduME.
AT+CMEC:ContrleduclavieretdelcranduME.
AT+CDIS:EcrituredemessagesurlcranduME.
AT+CIND:GestiondesindicateursduME.
Battchg,signal,service,sounder,message,call,vox,roam,smsfull.
AT+CMER:AffichagedesmessagesduME.
AT+CCLK=<time>:MiselheureduME.
AT+CALA:GestiondelalarmeduME.
AT+CALM=<mode>:GestiondusonlalarmeduME.
0:modenormal
1:modesilencieux.
2:fabriquant...
AT+CRSL=<level>:GestiondeniveausonoredelasonnerieduME
AT+CVIB=<mode>:GestiondusystmedevibrationduME.
0:dvalid
1:valid.
16:fabriquant...
AT+CLVL=<level>:GestiondeniveauduhautparleurduME.

Exemple(1)
AT+CMEE=2+CREG=1(Affichagedeserreursetdesrapports)
OK
AT+CPAS(EtatduME)
+CPAS:5(LeMEestenveille)
OK
AT+CFUN=1(MiseenmarchecomplteduME)
+CMEERROR:SIMPINrequired(DemandeducodePIN)
AT+CPIN="1234"
+CMEERROR:incorrectpassword(MauvaiscodePIN)
AT+CPIN="4321"
OK(PINcorrect)
http://www.technologuepro.com/gsm/commande_at.htm

6/10

12/6/2015

LescommandesAT

Slectiondelammoiredelannuaire
AT+CPBS=<mem>:SlectiondelammoireduPB(PhoneBook).
DC:ListedesappelsduME.
EN:Listedesnumrosdurgence(SIMouME).
FD:ListedesnumrosfixesdelaSIM.
LD:ListeduderniernumroappeldelaSIM.
MC:Listedesnumrosdurgence(SIMouME).
ME:ListedesnumrosduME.
MT:ListedesnumroscombinedelaSIMetduME.
ON:ListedesnumrospropresdelaSIM.
RC:ListedesnumrosreussurleME.
SM:ListedesnumrosdelaSIM.
TA:ListedesnumrosduTA.

Lecture/crituredesentresduPB
AT+CPBR=<ind1>[,<ind2>]:LectureduPB.
AT+CPBF=<findtext>:RecherchedanslePB.
AT+CPBW=[<index>][,<number>[,<type>[,<text>]]]:EcrituredanslePB.
AT+CPBS=?
+CPBS:("ME","SM")(LesmmoirespossiblessontMEetSIM)
OK
AT+CPBS="ME"(selectiondelammoireduME)
OK
AT+CPBR=?(Lecturedesvaleurspossiblesdesindices)
+CPBR:(199),30,30
OK
AT+CPBR=1,99(Lecturedesentres,affichagedesentesnonnulles)
+CPBR:1,"931123456",129,"Ilkka"
+CPBR:2,"9501234567",129,""
+CPBR:4,"901234567",129,"Hesari"
OK
AT+CPBW=4+CPBW=3,"921123456",,"TS"(Effacementdelindex4etcrituresurlindex3)
OK

CommandesSMS
AT+CSMS=<service>:Slectionduservicedemessage.
AT+CPMS=<mem>:Slectiondelammoire.
AT+CPMS=?
+CPMS:("ME","MT","SM")
OK
AT+CMGF=[<mode>]:Slectionduformatdesmessages.
0:modePDU(dfaut).1:modeTexte.
AT+CCSA=<sca>[,<tosca>]:SlectiondeladresseduSMSC.
AT+CSCA?
00000000000000000000
ERROR
AT+CSCA=?
+CSCA:0..9#*+?
OK
AT+CSMP:GestiondesparamtresdumodeTexte.
AT+CSMP=?
+CSMP=(17),(71,167,173,255),(0),(0)
OK
AT+CSDH:AffichagedtailldumodeTexte.
AT+CSCB:SlectiondesmessagesCellBroadcast.
AT+CSAS:SauvegardedelaconfigurationSMS.
AT+CRES:RestorationdelaconfigurationSMS.
AT+CNMI:Indicationdenouveauxmessages.
AT+CNMI?
+CNMI=1,1,0,0,0
OK
AT+CMGL:Listedesmessages.
http://www.technologuepro.com/gsm/commande_at.htm

7/10

12/6/2015

LescommandesAT

AT+CMGF=1
OK
AT+CMGL
+CMGL:900,"RECREAD","+33617283871","01/09/21,13:48:45+00",51
Salutcbpensestukonvayarriveraveccesmodems
+CMGL:901,"RECREAD","20332","02/01/16,14:47:35+00",160
Mobicarteinfo:DsormaisvouspouvezutiliservotremobileenGuadeloupe,laRunion,
auMaroc,enSuisse.Plusd'infosau722(0,37E2,40F/min)ouorange.fr
+CMGL:902,"RECREAD","20328","02/01/17,09:19:10+00",136
Orangeinfo:lesrechargesmobicarteeneurosontarrives!Faitesvotrechoix:15E,
25E+5Eoffertsou35E+10Eofferts.Profitezen!
OK

ModePDU
AT+CMGF=0
OK
AT+CMGL
+CMGL:900,1,64
07913306091093F0240B913316273878F100001090123184540033D330BB4E078DC52078D93D2FCF
41F43A68FD7683EC61501E1496CBD3F6B21C14B697C7A071790E6ABFC9E5F61C
+CMGL:901,1,156
07913386094000F00405830233F239F120106141745300A0CDB7383D0ECBE96550DA6D7E83742062
61FE96B7C3E939C8FEAECF41F077DD5ED683EAF4343B3D2FCB41F6375D5E06B5DFE234BB0C2ABB41
C77A985C66BFEBF0320BF407B1C32069A1EE4EBFDD2C50B80E6A86E5EF310B547683A6F5F47C5E76
81A0ECFA1C443EA5DDE6F71C14AE836E32190AC69ADD8A2D198B0633BEDA69770AF4AE83DEF2B0FB
5C7699E5
OK

Lecturedesmessages
AT+CMGR=<index>:Lecturedesmessages.
AT+CPMS?
+CPMS:"ME",3,20
OK
AT+CMGR=901
+CMGR:"RECREAD","20332","02/01/16,14:47:35+00",160
Mobicarteinfo:DsormaisvouspouvezutiliservotremobileenGuadeloupe,laRunion,
auMaroc,enSuisse.Plusd'infosau722(0,37E2,40F/min)ouorange.fr
OK

EnvoideSMS
AT+CMGS=<da>[,<toda>]:Envoidemessages(terminsparCtrl+Z,0x1A,26).CancelparESC,
0x1B,27.
AT+CMSS=<index>[,<da>[,<toda>]]:Envoidemessagesdelammoire.
AT+CMGW:crituredemessages.
AT+CMGW="cb"
>Salutfromcb!!
>
+CMGW:903
OK
AT+CMGR=903
+CMGR:"STOUNSENT","cb",16
Salutfromcb!!
OK
AT+CMGD=<index>:Effacementdemessages.

Gnralits
SMS:ShortMessagesService.Leservicedemessagescourtsncessitelamiseenplaceduncertain
nombredeserveurssurlerseau(ServiceCentre,SC).Ilspermettentdesauveretderetransmettreles
SMSjusqucequeledestinatairepuisseeffectivementrecevoirlesmessages(siilnestpassurle
rseauparexemple).UnSCnefaitpaspartieintgrantedurseau,maisilestsouventintgrauMSC.

Fonctionnement
http://www.technologuepro.com/gsm/commande_at.htm

8/10

12/6/2015

LescommandesAT

LafonctionpasserelleSMSGMSCpermetderouterlesmessagesversleVMSC(MSCvisit)en
interrogeantleHLR.UnmessagemisdunmobileestluiacheminversleMSCquilafonctionnalit
SC.CeMSCportelenomdeSMSIWMSC(ShortMessageServiceInterWorkingMSC).Les
procduresdacheminementdesSMSsontsimilairescellesdesappelstlphoniques(MAP).

EnvoidunSMSdepuisunmobile

TransfertdunSMSversunmobile

http://www.technologuepro.com/gsm/commande_at.htm

9/10

12/6/2015

LescommandesAT

FacebookAccountSignUp
The World's #1 Online Community. Join for Free & Enjoy the Benefits!

Tags:CommandesAT,cours,Lecture,ecriture,envoie,messages,GSM,resaux,ModePDU,modetexte,AT+CMGR,communication,
transmission,satellite,osi,modele,numerique,telecommunication
Rvisle:29Sep2010|2010www.technologuepro.com

http://www.technologuepro.com/gsm/commande_at.htm

10/10