francois:huawei_e220
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| francois:huawei_e220 [2015/12/19 09:13] – francois | francois:huawei_e220 [2020/12/17 09:31] (Version actuelle) – francois | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Modem Huawei E220 ====== | ====== Modem Huawei E220 ====== | ||
| + | |||
| + | <code bash> | ||
| + | picocom / | ||
| + | </ | ||
| ===== Configure the modem ===== | ===== Configure the modem ===== | ||
| Ligne 11: | 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 16: | Ligne 21: | ||
| You can re-enable the PIN constraint with | You can re-enable the PIN constraint with | ||
| - | AT+CLCK=”SC”, | + | AT+CLCK=”SC”, |
| ===== Modes of operation ===== | ===== Modes of operation ===== | ||
| Ligne 31: | 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, | + | * Only GPRS/ |
| - | * Only 3G: 14, | + | * Only 3G: '' |
| - | * Preferred GPRS/EDGE: 2, | + | * Preferred GPRS/ |
| - | * Preferred 3G: 2, | + | * Preferred 3G: '' |
| All we need to do is activate the mode we need: “Only GPRS/ | All we need to do is activate the mode we need: “Only GPRS/ | ||
| Ligne 40: | 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 '' | ||
| + | |||
| + | **'' | ||
| + | |||
| + | **$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 " | ||
| + | |||
| + | **$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 48: | Ligne 87: | ||
| One word about AT-commands before we begin: | One word about AT-commands before we begin: | ||
| - | AT+CMD? outputs the current configuration for CMD in the form “+CMD=xxx” | + | |
| - | AT+CMD=xxx sets the parameters for CMD | + | |
| The command for SMS mode is “CMGF”: | The command for SMS mode is “CMGF”: | ||
| - | AT+CMGF? | + | |
| - | AT+CMGF=1 | + | |
| - | AT+CMGF=0 | + | |
| So set the modem to text mode first. It should respond with “OK”. Next we use the command “CMGL” to read all messages. This command takes one parameter that is used to configure if we want to get all messages, only new messages etc. Here is a list: | So set the modem to text mode first. It should respond with “OK”. Next we use the command “CMGL” to read all messages. This command takes one parameter that is used to configure if we want to get all messages, only new messages etc. Here is a list: | ||
| Ligne 81: | 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 | + | |
| - | 1 – Ignore index and delete all “received read” 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 | + | |
| - | 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 93: | 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, | ||
| + | |||
| + | 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.1450516421.txt.gz · Dernière modification : (modification externe)
