Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.hologram.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

AT commands help you diagnose connectivity, SIM, registration, signal, and SMS issues. This reference includes standard 3GPP commands and vendor variations with example outputs and actions.
Note: Responses vary by vendor and firmware. Use vendor AT manuals in parallel.

1. AT - Basic connectivity check

AT
ResponseMeaningNext steps
OKModem responsive
ERRORNot responding to basic cmdCheck serial, baud, power
No responseHost not connectedVerify hardware

2. Identify device: ATI / +CGMI / +CGMM / +CGMR / +CGSN / +GSN

ATI
AT+CGMI
AT+CGMM
AT+CGMR
AT+CGSN
AT+GSN
ATI
Quectel
BG96
Revision: BG96MAR02A07M1G
OK

3. +CPIN? - SIM status

AT+CPIN?
ResponseMeaningNext steps
+CPIN: READYSIM detected and unlocked
+CPIN: SIM PINPIN requiredEnter with AT+CPIN=“xxxx”
+CPIN: SIM PUKSIM blockedContact SIM provider
+CPIN: NOT INSERTEDSIM not detectedCheck tray/orientation
+CPIN: SIM FAILURESIM unreadableTry another SIM
+CPIN: PH-SIM PINSIM network lockUnlock with carrier code

4. +CCID - ICCID retrieval

AT+CCID
+CCID: 894450XXXXXXXXXXXXXX
OK

5. +CREG? / +CGREG? / +CEREG? - Registration status

AT+CREG?
AT+CGREG?
AT+CEREG?
StatMeaningCommon causesNext steps
0Not registeredModem off, antenna issueAT+CFUN=1, check +CPIN?
1Registered (home)Normal
2SearchingScanningWait / relocate
3Registration deniedSIM blocked or wrong RATCheck SIM/APN
4UnknownTransientRetry
5Registered (roaming)Normal for global SIMs
8Emergency onlyWeak coverageMove

6. +COPS - Operator selection

AT+COPS?
AT+COPS=?
AT+COPS=mode,format,oper,AcT
  • Modes: 0 Auto, 1 Manual, 2 Deregister, 4 Manual/auto fallback
  • Formats: 0 Long name, 1 Short name, 2 Numeric MCCMNC
  • AcT: 0 GSM, 2 UTRAN, 7 LTE, 8 LTE-M, 9 NB-IoT
+COPS: 0,0,"T-Mobile",8
+COPS: 1,2,"310260",7

7. +CSQ - Signal strength

AT+CSQ
RSSIdBmMeaningAction
0≤ -113No signalCheck antenna
1-9-111 to -93Very weakRelocate
10-14-91 to -81WeakExpect drops
15-19-79 to -69FairMay drop
20-24-67 to -57Good
25-30-55 to -45Strong
31≥ -51Excellent
99UnknownNot campedCheck registration

8. +CESQ - Extended signal quality

AT+CESQ
  • RSRP (dBm) = -140 + rsrp
  • RSRQ (dB) = -19.5 + (rsrq × 0.5)

9. +CGATT / +CGACT - Attach and activate PDP

AT+CGATT?
AT+CGATT=1
AT+CGACT?
AT+CGACT=1,1
ResponseMeaningNext steps
+CGATT: 1Attached
+CGATT: 0Not attachedCheck SIM, signal, registration

10. +CGDCONT - Define PDP context

AT+CGDCONT=<cid>,"<PDP_type>","<APN>"
AT+CGDCONT=1,"IP","hologram"

11. +CNMI - New SMS indication

AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>
AT+CNMI=2,1,0,1,1

12. +CMGF - SMS message format

AT+CMGF=<mode>
ModeMeaning
0PDU (raw hex)
1Text (human-readable)

13. +CSCA - SMSC address

AT+CSCA?
AT+CSCA="<SMSC_number>",<type>
+CSCA: "+1234567890",145

14. +CMGS - Send SMS

AT+CMGF=1
AT+CMGS="+1234567890"
>Hello World<CTRL+Z>
+CMGS: 45
OK

15. +CME ERROR - Equipment errors

+CME ERROR: 10   // SIM not inserted
+CME ERROR: 30   // No network service

16. +CMS ERROR - SMS errors

+CMS ERROR: 1   // Unassigned number
+CMS ERROR: 27  // Invalid SMSC

17. +CFUN - Functionality level

AT+CFUN?
AT+CFUN=<fun>[,<rst>]

18. +CGEREP - Packet domain event reporting

AT+CGEREP=<mode>,<bfr>

19. +CGPADDR - Show PDP address

AT+CGPADDR[=<cid>]

20. +CGCONTRDP - Read PDP context parameters

AT+CGCONTRDP=<cid>

21. +COPS=? - Network scan

+COPS: (1,"T-Mobile","TMO","310260",8),
       (1,"AT&T","ATT","310410",7)

22. +CSCON - RRC connection status

AT+CSCON?

23. +CEDRXS / +CPSMS - Power saving modes

AT+CEDRXS=<mode>,<AcT_type>,<eDRX_value>
AT+CPSMS=<mode>[,<Requested_PeriodicTAU>,<Requested_Active_Time>]

24. 3GPP reject cause codes

CodeMeaningAction
2IMSI unknownSIM not active
3Illegal MSContact provider
7GPRS not allowedSIM plan issue
15No suitable cellsMove/check bands
33Service option unsupportedAPN issue
40No EPS bearerLTE network problem

Appendix - Vendor-specific commands

Quectel

  • AT+QNWINFO - Network & RAT info
  • AT+QENG=“servingcell” - Serving cell
  • AT+QCSQ - Extended signal
  • AT+QCFG - RAT/band selection

SIMCom

  • AT+CSERVINFO - Service info
  • AT+CNETSCAN - Scan with metrics
  • AT+CSQEXT - Extended CSQ

u-blox

  • AT+URAT - RAT selection
  • AT+UBANDMASK - Band mask
  • AT+UCGED - Cell info