====== Commandes AT ======
Voici plein d'essais des commandes ''AT'', testée avec le modem MC7304 sur la [[percepto]].
===== Voir des informations sur le modem =====
ATI
Manufacturer: Sierra Wireless, Incorporated
Model: MC7304
Revision: SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 21:30:23
IMEI: 356853052724095
IMEI SV: 18
FSN: J3625307860210
+GCAP: +CGSM,+FCLASS,+DS
OK
===== D'autres informations (?) =====
AT&V
&C: 2; &D: 2; &E: 0; &F: 0; &S: 0; &W: 0; E: 1; L: 0; M: 0; Q: 0; V: 1;
X: 1; Z: 0; \Q: 3; \S: 0; \V: 0; O: 0; S0: 0; S2: 43; S3: 13; S4: 10;
S5: 8; S6: 2; S7: 0; S8: 2; S9: 6; S10: 14; S11: 95; S30: 0; S103: 1;
S104: 1; ^PREFMODE: 0; ^DSCI: 0; ^CPIN: ,; ^HSMSSS: 0,0,0,0
OK
===== ATD =====
ATD*99***1#
CONNECT 100000000
Note: J'ai bloqué le modem et du redémarrer après?
===== Mettre le code pin =====
AT+CPIN=1234
===== Voir si le code pin est demandé ou non =====
(note: 0 = pas de code pin, 1 = code pin demandé)
AT+CLCK="SC",2,"1234"
+CLCK: 0
OK
===== Ne plus demander le code pin dans le futur =====
AT+CLCK="SC",0,"1234"
OK
===== Réactiver le code pin =====
AT+CLCK="SC",1,"1234"
OK
===== USERID - Error pour l'instant ? =====
Normalement :
AT#USERID="votreuserid"
Essais:
AT+USERID="votreuserid"
ERROR
AT#USERID="votreuserid"
ERROR
===== PASSW - Error pour l'instant ? =====
AT#PASSW="base"
===== Get software version =====
AT+CGMR
SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 21:30:23
OK
===== get SIM IMSI number =====
AT+CIMI
206201005793173
OK
===== get device IMEI =====
AT+CGSN
356853052724095
OK
===== Choisir le "mode" =====
0 : low power mode
1 : online
4 : offline
6 : reset device
7 : turn off radio
AT+CFUN=1
OK
===== information sur le modem =====
AT+CGMI
Sierra Wireless, Incorporated
OK
===== voir la puissance du signal =====
AT+CSQ
+CSQ: 8,99
OK
===== lister les réseaux disponibles =====
AT+COPS=?
+COPS: (2,"BASE","BASE","20620",0),(3,"BEL PROXIMUS","PROXI","20601",0),(3,"B mobistar","mobi*","20610",0),(3,"BEL PROXIMUS","PROXI","20601",2),,(0,1,2,3,4),(0,1,2)
OK
===== reset the profile1 or profile0 =====
ATZ1
ERROR
ATZ0
OK
===== réutiliser la dernière commande => A/ =====
Exemple avec la commande ''AT+CSQ'' lancée juste avant.
AT+CSQ
+CSQ: 6,99
OK
A/
+CSQ: 6,99
OK
===== Envoyer un code "USSD" =====
AT+CUSD=1,"USSD-Command"
Si ça ne marche pas, ajouter ",15" à la fin.
AT+CUSD=1,"USSD-Command",15
===== Voir le crédit restant et sa validité (carte sim Base) =====
AT+CUSD=1,"*444*#",15
OK
+CUSD: 0,"Bal = 15.00 Euro valid until 22/09/2017 ",15
===== Mode PDU ou mode texte =====
Mode PDU :
AT+CMGF=0
Mode texte :
AT+CMGF=1
OK
===== Envoyer un sms : =====
Pour quitter l'édition du sms, il faut utiliser ''CTRL+Z''.
AT+CMGS="+32474834208"
> Yop
>
+CMGS: 0
OK
===== Voir tous les messages reçus : =====
AT+CMGL="ALL"
+CMGL: 0,"REC UNREAD","+32474834208",,"16/10/03,14:55:26+08"
Yip
OK
(refaire la même commande avec "A/" pour voir que le message est à présent "lu")
A/
+CMGL: 0,"REC READ","+32474834208",,"16/10/03,14:55:26+08"
Yip
OK
===== Voir les messages non-lus : =====
AT+CMGL="REC UNREAD"
+CMGL: 1,"REC UNREAD","+32474834208",,"16/10/03,14:57:09+08"
Yop
OK
===== Voir les messages lus : =====
AT+CMGL="REC READ"
+CMGL: 0,"REC READ","+32474834208",,"16/10/03,14:55:26+08"
Yip
+CMGL: 1,"REC READ","+32474834208",,"16/10/03,14:57:09+08"
Yop
OK
===== Supprimer un message : =====
AT+CMGD=
(voir messages précédents) :
On supprime le sms qui a l'index "1" (message: Yop) :
AT+CMGD=1
OK
On vérifie :
AT+CMGL="ALL"
+CMGL: 0,"REC READ","+32474834208",,"16/10/03,14:55:26+08"
Yip
OK
===== HWVER =====
AT^HWVER
Part=107 version=2.1
OK
===== SYSINFO =====
AT^SYSINFO
^SYSINFO: 2,3,0,3,1
OK
===== Reset the modem =====
AT!GRESET
OK
====== COMMANDES SPÉCIFIQUES AU MC7304 ======
===== BAND =====
AT!BAND?
Index, Name
00, All Bands
OK
===== GETRAT =====
AT!GETRAT?
!GETRAT: GSM
OK
===== Voir le statut du modem =====
==== 1) non-connecté ====
AT!GSTATUS?
!GSTATUS:
Current Time: 142 Temperature: 39
Bootup Time: 6 Mode: ONLINE
System mode: WCDMA PS state: Not attached
WCDMA band: WCDMA 2100
WCDMA channel: 10589
GMM (PS) state:DEREGISTERED NO IMSI
MM (CS) state: IDLE NO IMSI
WCDMA L1 state:L1M_PCH_SLEEP LAC: 1005 (4101)
RRC state: DISCONNECTED Cell ID: 03FA6381 (66741121)
RxM RSSI C0: -94 RxD RSSI C0: -106
RxM RSSI C1: -106 RxD RSSI C1: -106
OK
==== 2) juste après "CGDCONT" : ====
AT+CGDCONT=1,"IP","gprs.base.be"
OK
AT
OK
AT!GSTATUS?
!GSTATUS:
Current Time: 230 Temperature: 38
Bootup Time: 6 Mode: ONLINE
System mode: GSM PS state: Not attached
GSM band: GSM900
GSM channel: 75
GMM (PS) state:DEREGISTERED NO IMSI
MM (CS) state: IDLE NO IMSI
Serving cell: 2 (GSM 900 )
RX level (dBm):-89.8750 LAC: 1019 (4121)
GPRS state: GPRS IDLE Cell ID: 0000B91D (47389)
OK
==== 3) Connecté au GPRS ====
AT!GSTATUS?
!GSTATUS:
Current Time: 15608 Temperature: 38
Bootup Time: 0 Mode: ONLINE
System mode: GSM PS state: Attached
GSM band: GSM900
GSM channel: 978
GMM (PS) state:REGISTERED NORMAL SERVICE
MM (CS) state: IDLE NORMAL SERVICE
Serving cell: 978 (GSM 900 )
RX level (dBm):-94.2500 LAC: 026D (621)
GPRS state: GPRS STANDBY Cell ID: 000057B6 (22454)
OK
===== LTEINFO =====
AT!LTEINFO
!LTEINFO:
Not Available
OK
===== MODE =====
AT^MODE?
^MODE : 1
OK
===== GPSLOC =====
AT!GPSLOC?
Not Available
OK
===== GPSPOSMODE =====
AT!GPSPOSMODE=40
ERROR
===== GPSSTATUS =====
AT!GPSSTATUS?
Current time: 1980 01 06 6 04:49:23
1980 01 06 6 04:49:23 Last Fix Status = NONE
1980 01 06 6 04:49:23 Fix Session Status = NONE
No TTFF available
OK
===== Voir combien d'essais restant on peut faire avant de bloquer la carte sim =====
AT+CPINR
+CPINR: SIM PIN,3
+CPINR: SIM PUK,10
+CPINR: SIM PIN2,3
+CPINR: SIM PUK2,10
+CPINR: PH-FSIM PIN,255
+CPINR: PH-NET PIN,255
+CPINR: PH-NETSUB PIN,255
+CPINR: PH-SP PIN,255
+CPINR: PH-CORP PIN,255
+CPINR: PH-FSIM PUK,1
+CPINR: PH-NET PUK,1
+CPINR: PH-NETSUB PUK,1
+CPINR: PH-SP PUK,1
+CPINR: PH-CORP PUK,1
OK
===== Préciser la recherche précédente =====
AT+CPINR="SIM PIN"
+CPINR: SIM PIN,3
OK
===== Return ICCID ( Integrated Circuit Card ID) =====
AT!ICCID?
ICCID: 8932030000084344852
OK
===== Configure host device operating system information =====
AT!OSINFO?
OSName:
OSVersion:
OK
===== HOSTDEVINFO =====
AT!HOSTDEVINFO?
HostMan:
HostMod:
HostSwV:
HostPlasmaID:
OK
===== CNTI =====
AT*CNTI=?
*CNTI: (0,1,2)
OK
===== Quel est le minimum acceptable (data) =====
AT+CGEQMIN?
+CGEQMIN:
OK
===== CGEQREQ =====
AT+CGEQREQ?
+CGEQREQ:
OK
===== CGDATA =====
AT+CGDATA=?
+CGDATA: ("PPP")
OK
===== Sources =====
* [[https://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/|gsm-modem-tutorial (diafaan.com)]]
* [[http://www.astel.be//operateurs/BASE/astuces|astuces pour base (astel.be)]]
* Pour, par exemple, connaitre le code USSD à envoyer pour savoir son crédit ( "*444*#" )
* [[http://www.3g-modem-wiki.com/page/common+AT-commands|common AT commands (3g-modem-wiki.com)]]
* Beaucoup de commandes très utiles! (à précéder de ''AT'', par exemple "AT+CSQ".
* [[https://source.sierrawireless.com/resources/airprime/software/airprime-em73xx_mc73xx-at-command-reference/|airprime, em73xx and mc73xx AT command reference]]
* Manuel de référence pour (entre autre) le modem MC7304 de Sierra