1# Modem regular expressions (left) and replies (rest of line after 2# whitespace) 3 4# Generic GSM stuff 5 6# sets CONNECT response 7X4 8 9# sets DCD mode 10&C1 11# Product ID 12I[01]? Fake modem software implementation. 13# Capabilities 14\+GCAP +CGSM,+FCLASS,+DS 15# Serial number 16\+C?GSN 123456789 17# Manufacturer 18\+C?GMI Fake Modem Software, Inc. 19# Module ID 20\+C?GMM Fake Modem 21# Module revision 22\+C?GMR v0.1 23# Read PIN state 24\+CPIN\? +CPIN: READY 25# Set/get flow control mode 26\+IFC=2,2 27\+IFC\? 2,2 28# Set new SMS message indication 29\+CNMI=[0123] 30# Set preferred SMS message storage 31\+CPMS=.* 32# Get supported indicators 33\+CIND? +CIND: ("service",(0-1)),("call",(0-1)),("callsetup",(0-3)) 34# Get supported character sets 35\+CSCS=\? +CSCS: ("GSM","HEX","IRA","PCCP","PCDN","UCS2","8859-1") 36# Set/get character set 37\+CSCS="UCS2" 38\+CSCS\? +CSCS: "UCS2" 39# Enable/disable "+CME ERROR" errors 40\+CMEE=[012] 41# Enable/disable event reporting via unsolicited result codes 42\+CMER=[0-9,]* 43# Enable/disable network registration unsolicited result codes 44\+CREG=[012] 45\+CGREG=[012] 46# Check network registration 47# (2,2) is "not registered, searching" 48# (2,1) is "registered, home network" 49\+CREG\? +CREG: 2,1 50\+CGREG\? +CGREG: 2,1 51# Register on GSM network 52\+COPS=.* 53# Query currently registered network 54\+COPS\? +COPS: 0,0,"",0 55# Signal quality and error rate 56\+CSQ +CSQ: 27,0 57 58 59# SIM card queries 60# ICCID 61\+CRSM=176,12258,0,0,10 21436587092143658709 62# SPN 63\+CRSM=176,28486,0,0,17 +CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" 64# Subscriber number 65\+CNUM +CNUM: "004D0073006900730064006E0031","18572842562",129,116,4 66# IMSI 67\+CIMI 310260436187036 68 69# Eat up whitespace 70\s+ 71