CXAPN Command - Cellular APN Configuration
Configure the Access Point Name (APN) to establish data connection with the GPRS/LTE cellular network.
What is it used for?
| Use case | Description |
|---|---|
| 📶 Internet connection | Establish cellular data connectivity |
| 🔄 Carrier change | Configure APN when changing SIM |
| 🌍 International roaming | Adjust APN for use in other countries |
| 📱 Dual SIM | Configure different APN for each SIM |
Commands
Configure
SCXAPxhost,username,passwordQuery
QCXAPxResponse
RCXAPxhost,username,passwordParameters
| Parameter | Description | Values |
|---|---|---|
| x | SIM index | N or 0 = SIM0, 1 = SIM1 (Dual SIM) |
| host | Carrier APN name | Text, max. 43 characters (e.g.: internet.ctimovil.com.ar) |
| username | Authentication username | Text max. 18 characters, or empty if not required |
| password | Authentication password | Text max. 18 characters, or empty if not required |
The command is configured per SIM: the actual syntax is >SCXAPN<host>,<user>,<pass><, where the SIM index comes right after SCXAP (N/0 = SIM0, 1 = SIM1). The three fields are comma-separated.
Incorrect APN = No connectivity. Always verify the correct APN with your carrier before configuring.
Hot re-apply (v1.09.24+): the configured APN is re-applied on every connection attempt (attach backoff retry), reading it from non-volatile memory. An APN change with SCXAPN takes effect on the next retry cycle without needing a device reset.
Carrier Configurations
Argentina
| Carrier | Command |
|---|---|
| Claro | >SCXAPNinternet.ctimovil.com.ar,,< |
| Movistar | >SCXAPNinternet.gprs.unifon.com.ar,wap,wap< |
| Personal | >SCXAPNgprs.personal.com,,< |
Mexico
| Carrier | Command |
|---|---|
| Telcel | >SCXAPNinternet.itelcel.com,,< |
| AT&T | >SCXAPNweb.attmex.mx,,< |
| Movistar | >SCXAPNinternet.movistar.mx,,< |
Chile
| Carrier | Command |
|---|---|
| Entel | >SCXAPNimovil.entelpcs.cl,entelpcs,entelpcs< |
| Claro | >SCXAPNbam.clarochile.cl,,< |
| Movistar | >SCXAPNweb.tmovil.cl,web,web< |
Colombia
| Carrier | Command |
|---|---|
| Claro | >SCXAPNinternet.comcel.com.co,,< |
| Movistar | >SCXAPNinternet.movistar.com.co,movistar,movistar< |
| Tigo | >SCXAPNweb.colombiamovil.com.co,,< |
Dual SIM Usage
For devices with Dual SIM (Smart IoT):
Configure SIM0 (primary)
>SCXAP0internet.ctimovil.com.ar,,<Configure SIM1 (backup)
>SCXAP1internet.gprs.unifon.com.ar,wap,wap<Query both SIMs
>QCXAP0<
>QCXAP1<Notes
- If the carrier does not require authentication, leave username and password empty:
...apn,,< - Verify correct APN with the cellular carrier
- Incorrect APN prevents data connectivity
Automatic APN
A device with no APN configured can obtain its own by asking the network. This is what lets a device arrive in a new country and connect without anyone looking up the carrier’s APN beforehand.
The order is conservative and changes nothing if an APN is already configured:
- With the APN empty, the device is first allowed to try as usual: the modem may carry its own profile that already works.
- Only if that connection fails is the context requested without an APN, so the network assigns the one for the subscription.
- Once active, the negotiated APN is stored.
If an APN is already configured, it is left alone. The feature only acts on devices that have none, so an existing installation does not change behaviour.
Enabling and disabling
>SCXAA1< → RCXAA1 enabled (factory default)
>SCXAA0< → RCXAA0 disabled
>QCXAA< → RCXAA[0|1]It ships enabled. It can be turned off over SMS, without a firmware update, if on some network you would rather force the APN by hand.
Compatibility
See Also
- CXSIM Command - SIM Configuration
- CXIP Command - Server Configuration