modem.SEND_CMD('+CFUN=1')
Write : AT+CFUN=1
b'Receive : AT+CFUN=1\r\r\nOK\r\n'
1
>>> modem.SEND_CMD('+COPS=0')
Write : AT+COPS=0
b'Receive : AT+COPS=0\r\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CNMP=38')
Write : AT+CNMP=38
b'Receive : AT+CNMP=38\r\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CMNB=1')
Write : AT+CMNB=1
b'Receive : AT+CMNB=1\r\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CGREG?')
Write : AT+CGREG?
b'Receive : AT+CGREG?\r\r\n+CGREG: 0,2\r\n\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CNCFG=0,1,"%s"' % APN)
Write : AT+CNCFG=0,1,"simbase"
b'Receive : AT+CNCFG=0,1,"simbase"\r\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CGDCONT=1,"IP","%s"' % APN)
Write : AT+CGDCONT=1,"IP","simbase"
b'Receive : AT+CGDCONT=1,"IP","simbase"\r\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CGNAPN')
Write : AT+CGNAPN
b'Receive : AT+CGNAPN\r\r\n+CGNAPN: 0,""\r\n\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CNACT=0,1')
Write : AT+CNACT=0,1
b'Receive : AT+CNACT=0,1\r\r\nOK\r\n\r\n+APP PDP: 0,DEACTIVE\r\n'
3
>>> modem.SEND_CMD('+CSQ')
Write : AT+CSQ
b'Receive : AT+CSQ\r\r\n+CSQ: 20,99\r\n\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CSQ')
Write : AT+CSQ
b'Receive : AT+CSQ\r\r\n+CSQ: 18,99\r\n\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CSQ')
Write : AT+CSQ
b'Receive : AT+CSQ\r\r\n+CSQ: 18,99\r\n\r\nOK\r\n'
1
>>> modem.SEND_CMD('+CPIN?')
Write : AT+CPIN?
b'Receive : AT+CPIN?\r\r\n+CPIN: READY\r\n\r\nOK\r\n'