# You need to put this on /etc/chatscripts/3g.chat ABORT BUSY ABORT 'NO CARRIER' ABORT ERROR ABORT PUK REPORT CONNECT TIMEOUT 10 # Using AT&F messes up with some modem settings. # "" "AT&F" '' AT OK AT+CPIN? # You need to change 1234 with the PIN you use # This makes the chat script either not introduce the # PIN code if not necessary (if AT+CPIN? returns READY) # or introduce it immediately otherwise. READY-AT+CPIN=1234-READY AT OK "ATE1" OK 'AT+CGDCONT=1,"IP","$USE_APN"' SAY "Calling LTE/UMTS/GPRS" TIMEOUT 30 OK "ATD$DIALNUMBER" CONNECT ' '