在linux中运行quectel-CM拨号程序,刚开机第一次一定能够成功,但是第二次和之后就再也获取不到ip地址了,具体输出的日志如下:
[11-13_13:51:13:396] QConnectManager_Linux_V1.6.7
[11-13_13:51:13:399] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x903, bus=0x001, dev=0x006
[11-13_13:51:13:400] Auto find qmichannel = /dev/ttyUSB1
[11-13_13:51:13:400] Auto find usbnet_adapter = usb0
[11-13_13:51:13:401] netcard driver = cdc_ether, driver version = 22-Aug-2005
[11-13_13:51:13:401] Modem works in ECM_RNDIS_NCM mode
[11-13_13:51:13:439] atc_fd = 7
[11-13_13:51:13:439] AT> ATE0Q0V1
[11-13_13:51:13:442] AT< OK
[11-13_13:51:14:442] AT> AT+QCFG="usbnet"
[11-13_13:51:14:444] AT< +QCFG: "usbnet",1
[11-13_13:51:14:444] AT< OK
[11-13_13:51:14:444] AT> AT+QNETDEVCTL=?
[11-13_13:51:14:446] AT< +QNETDEVCTL: (0,1,3),(1-15),(0-1)
[11-13_13:51:14:446] AT< OK
[11-13_13:51:14:446] AT> AT+CGREG=2
[11-13_13:51:14:448] AT< OK
[11-13_13:51:14:448] AT> AT+CEREG=2
[11-13_13:51:14:449] AT< OK
[11-13_13:51:14:450] AT> AT+C5GREG=2
[11-13_13:51:14:451] AT< ERROR
[11-13_13:51:14:451] AT> AT+QNETDEVSTATUS=?
[11-13_13:51:14:452] AT< ERROR
[11-13_13:51:14:453] AT> AT+QCFG="NAT"
[11-13_13:51:14:454] AT< +QCFG: "nat",1
[11-13_13:51:14:454] AT< OK
[11-13_13:51:14:454] AT> AT+CGMR
[11-13_13:51:14:456] AT< EC801ECNCGR03A04M02
[11-13_13:51:14:456] AT< OK
[11-13_13:51:14:456] AT> AT+CPIN?
[11-13_13:51:14:458] AT< +CPIN: READY
[11-13_13:51:14:458] AT< OK
[11-13_13:51:14:458] AT> AT+QCCID
[11-13_13:51:14:460] AT< +QCCID: 89860812192370591758
[11-13_13:51:14:460] AT< OK
[11-13_13:51:14:460] requestGetICCID 89860812192370591758
[11-13_13:51:14:461] AT> AT+CIMI
[11-13_13:51:14:462] AT< 460088243901758
[11-13_13:51:14:462] AT< OK
[11-13_13:51:14:462] requestGetIMSI 460088243901758
[11-13_13:51:14:463] AT> AT+QICSGP=1
[11-13_13:51:14:465] AT< +QICSGP: 1,"","","",0
[11-13_13:51:14:465] AT< OK
[11-13_13:51:14:466] requestGetProfile[1] ///0/IPV4
[11-13_13:51:14:466] AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?;+COPS=3,2;+COPS?
[11-13_13:51:14:470] AT< +COPS: 0,0,"CHINA MOBILE",7
[11-13_13:51:14:470] AT< +COPS: 0,1,"CMCC",7
[11-13_13:51:14:471] AT< +COPS: 0,2,"46000",7
[11-13_13:51:14:471] AT< OK
[11-13_13:51:14:471] AT> AT+CEREG?
[11-13_13:51:14:473] AT< +CEREG: 2,1,"821A","5D51281",7
[11-13_13:51:14:473] AT< OK
[11-13_13:51:14:473] AT> AT+QNETDEVCTL?
[11-13_13:51:14:475] AT< +QNETDEVCTL: 0,0,0,0
[11-13_13:51:14:476] AT< OK
[11-13_13:51:14:476] AT> at+cops?
[11-13_13:51:14:478] AT< +COPS: 0,2,"46000",7
[11-13_13:51:14:478] AT< OK
[11-13_13:51:14:478] AT> at+qeng="servingcell"
[11-13_13:51:14:481] AT< +QENG: "servingcell","NOCONN","LTE","TDD",460,00,5D51281,394,38400,39,5,5,821A,-75,-6,-49,22,53
[11-13_13:51:14:481] AT< OK
[11-13_13:51:14:482] ip addr flush dev usb0
[11-13_13:51:14:498] ip link set dev usb0 down
[11-13_13:51:14:515] AT> AT+CGACT?
[11-13_13:51:14:517] AT< +CGACT: 1,1
[11-13_13:51:14:517] AT< +CGACT: 2,0
[11-13_13:51:14:517] AT< OK
[11-13_13:51:14:517] AT> AT+QNETDEVCTL=1,1,1
[11-13_13:51:14:521] AT< OK
[11-13_13:51:14:521] AT> AT+CGPADDR=1
[11-13_13:51:14:641] AT< +QNETDEVSTATUS: 1
[11-13_13:51:14:724] AT< +CGPADDR: 1,"10.157.100.235"
[11-13_13:51:14:724] AT< OK
[11-13_13:51:14:724] requestGetIPAddress 10.157.100.235
[11-13_13:51:14:724] AT> at+cops?
[11-13_13:51:14:726] AT< +COPS: 0,2,"46000",7
[11-13_13:51:14:726] AT< OK
[11-13_13:51:14:727] AT> at+qeng="servingcell"
[11-13_13:51:14:730] AT< +QENG: "servingcell","NOCONN","LTE","TDD",460,00,5D51281,394,38400,39,5,5,821A,-76,-6,-49,25,52
[11-13_13:51:14:730] AT< OK
[11-13_13:51:14:730] AT> AT+QNETDEVCTL?
[11-13_13:51:14:732] AT< +QNETDEVCTL: 1,1,1,1
[11-13_13:51:14:732] AT< OK
[11-13_13:51:14:732] AT> AT+CGACT?
[11-13_13:51:14:734] AT< +CGACT: 1,1
[11-13_13:51:14:734] AT< +CGACT: 2,0
[11-13_13:51:14:734] AT< OK
[11-13_13:51:14:735] ip link set dev usb0 up
[11-13_13:51:14:760] busybox udhcpc -f -n -q -t 5 -i usb0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing
[11-13_13:51:30:346] ERROR: IP from udhcpc (0.0.0.0) is different to IP from ATC (10.157.100.235)!
[11-13_13:51:30:347] netcard carrier = 0
[11-13_13:51:30:347] AT> at+cops?
[11-13_13:51:30:349] AT< +COPS: 0,2,"46000",7
[11-13_13:51:30:349] AT< OK
[11-13_13:51:30:349] AT> at+qeng="servingcell"
[11-13_13:51:30:357] AT< +QENG: "servingcell","NOCONN","LTE","TDD",460,00,5D51281,394,38400,39,5,5,821A,-72,-6,-46,30,56
[11-13_13:51:30:357] AT< OK
[11-13_13:51:30:357] AT> AT+QNETDEVCTL?
[11-13_13:51:30:359] AT< +QNETDEVCTL: 1,1,1,1
[11-13_13:51:30:359] AT< OK
[11-13_13:51:30:360] AT> AT+CGACT?
[11-13_13:51:30:361] AT< +CGACT: 1,1
[11-13_13:51:30:362] AT< +CGACT: 2,0
[11-13_13:51:30:362] AT< OK
[11-13_13:51:45:377] AT> at+cops?
[11-13_13:51:45:379] AT< +COPS: 0,2,"46000",7
[11-13_13:51:45:379] AT< OK
[11-13_13:51:45:379] AT> at+qeng="servingcell"
[11-13_13:51:45:395] AT< +QENG: "servingcell","NOCONN","LTE","TDD",460,00,5D51281,394,38400,39,5,5,821A,-80,-9,-50,11,48
[11-13_13:51:45:395] AT< OK
[11-13_13:51:45:395] AT> AT+QNETDEVCTL?
[11-13_13:51:45:397] AT< +QNETDEVCTL: 1,1,1,1
[11-13_13:51:45:397] AT< OK
[11-13_13:51:45:397] AT> AT+CGACT?
[11-13_13:51:45:399] AT< +CGACT: 1,1
[11-13_13:51:45:399] AT< +CGACT: 2,0
[11-13_13:51:45:399] AT< OK
[11-13_13:52:00:405] AT> at+cops?
[11-13_13:52:00:407] AT< +COPS: 0,2,"46000",7
[11-13_13:52:00:407] AT< OK
[11-13_13:52:00:408] AT> at+qeng="servingcell"
[11-13_13:52:00:418] AT< +QENG: "servingcell","NOCONN","LTE","TDD",460,00,5D51281,394,38400,39,5,5,821A,-76,-7,-49,28,52
[11-13_13:52:00:418] AT< OK
[11-13_13:52:00:418] AT> AT+QNETDEVCTL?
[11-13_13:52:00:420] AT< +QNETDEVCTL: 1,1,1,1
[11-13_13:52:00:420] AT< OK
[11-13_13:52:00:420] AT> AT+CGACT?
[11-13_13:52:00:422] AT< +CGACT: 1,1
[11-13_13:52:00:422] AT< +CGACT: 2,0
[11-13_13:52:00:422] AT< OK