Outils pour utilisateurs

Outils du site


francois:huawei_e220

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
francois:huawei_e220 [2015/12/19 09:18] – francoisfrancois:huawei_e220 [2020/12/17 09:31] (Version actuelle) – francois
Ligne 3: Ligne 3:
 <code bash> <code bash>
 picocom /dev/ttyUSB0 -b 115200 -l picocom /dev/ttyUSB0 -b 115200 -l
-<code/>+</code>
  
 ===== Configure the modem ===== ===== Configure the modem =====
Ligne 15: Ligne 15:
  
 ===== Set the pin code ===== ===== Set the pin code =====
 +  AT+CPIN=1234
  
 Next, we configure the modem to NOT ask for the SIM PIN any more. Replace xxxx with your PIN! Of course this step needs a SIM card inserted in the modem. Next, we configure the modem to NOT ask for the SIM PIN any more. Replace xxxx with your PIN! Of course this step needs a SIM card inserted in the modem.
Ligne 20: Ligne 21:
  
 You can re-enable the PIN constraint with  You can re-enable the PIN constraint with 
-  AT+CLCK=”SC”,1,”xxxx+  AT+CLCK=”SC”,1,”xxxx"
  
 ===== Modes of operation ===== ===== Modes of operation =====
Ligne 35: Ligne 36:
  
 There are 4 modes that can be selected for operation: There are 4 modes that can be selected for operation:
-  * Only GPRS/EDGE: 13,1,3FFFFFFF,2,4 +  * Only GPRS/EDGE: ''13,1,3FFFFFFF,2,4'' 
-  * Only 3G: 14,2,3FFFFFFF,2,4 +  * Only 3G: ''14,2,3FFFFFFF,2,4'' 
-  * Preferred GPRS/EDGE: 2,1,3FFFFFFF,2,4 +  * Preferred GPRS/EDGE: ''2,1,3FFFFFFF,2,4'' 
-  * Preferred 3G: 2,2,3FFFFFFF,2,4+  * Preferred 3G: ''2,2,3FFFFFFF,2,4''
  
 All we need to do is activate the mode we need: “Only GPRS/EGDE” in this case. In picocom type: All we need to do is activate the mode we need: “Only GPRS/EGDE” in this case. In picocom type:
Ligne 44: Ligne 45:
  
 Pay attention that there are no spaces after the commas and type in the correct number of “F”s. Pay attention that there are no spaces after the commas and type in the correct number of “F”s.
 +
 +==== AT^SYSCFG Huawei command reference ====
 +
 +To see the supported values, you can query your own modem sending the ''AT^SYSCFG=?'' command.
 +
 +**''AT^SYSCFG=$mode,$acqOrder,$band,$roam,$srvDomain''**
 +
 +**$mode**
 +  * 2=Auto-Select
 +  * 13=GSM only
 +  * 14=WCDMA only
 +  * 16=no Change
 +
 +**$acqOrder**
 +  * 0=Automatic
 +  * 1=GSM prefered
 +  * 2=WCDMA prefered
 +  * 3=no Change
 +
 +**$band**
 +  * 3fffffff = All
 +  * other (query list with "AT^SYSCFG=?")
 +
 +**$roam**
 +  * 0=Not Supported
 +  * 1=Supported
 +  * 2=no Change
 +
 +**$srvDomain**
 +  * 0=Circuit-Switched only
 +  * 1=Packet-Switched only
 +  * 2=Circuit- & Packet-Switched
 +  * 3=Any
 +  * 4=no Change
  
 ===== Sending and receiving SMS ===== ===== Sending and receiving SMS =====
Ligne 85: Ligne 120:
 The flag value can be one of the following: The flag value can be one of the following:
  
-  0 – Only delete SMS at index given +  * 0 – Only delete SMS at index given 
-  1 – Ignore index and delete all “received read” SMS +  * 1 – Ignore index and delete all “received read” SMS 
-  2 – Ignore index and delete all “received read” or “stored sent” SMS +  * 2 – Ignore index and delete all “received read” or “stored sent” SMS 
-  3 – Ignore index and delete all “received read” or “stored sent” or “stored unsent” SMS +  * 3 – Ignore index and delete all “received read” or “stored sent” or “stored unsent” SMS 
-  4 – Ignore index and delete all SMS+  * 4 – Ignore index and delete all SMS
  
 Lastly, we are going to send an SMS. This is done with the command “CMGS”. The syntax is: Lastly, we are going to send an SMS. This is done with the command “CMGS”. The syntax is:
Ligne 97: Ligne 132:
  
 Beware: I just spent one hour debugging, because I did get the “ERROR: 330” message despite the fact that “CSCA” did return the correct number. In the end I decided to just write the number again to the modem and give it a try. And it worked. I just have no idea why… Beware: I just spent one hour debugging, because I did get the “ERROR: 330” message despite the fact that “CSCA” did return the correct number. In the end I decided to just write the number again to the modem and give it a try. And it worked. I just have no idea why…
 +
 +===== ^BOOT =====
 +
 +In AT Command Interface Specification, Huawei mention that ^BOOT unsolicited command only for the Huawei specified client, nothing specific.
 +
 +You can disable all unsolicited result by the following AT command:
 +
 +  AT^CURC=0
 +
 +To enable it back just change 0 to 1:
 +
 +  AT^CURC=1
 +
 +
francois/huawei_e220.1450516713.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki