Linux下sim7600ce调试笔记
(2019-02-12 23:14:49)
标签:
it |
分类: Linux操作系统 |
文档链接:
sim7600ce拨号上网:
https://blog.csdn.net/qq_26600237/article/details/80009171
SIM7600CE 4G HAT
http://www.waveshare.net/wiki/SIM7600CE_4G_HAT
4G模块SIMCOM7100 LTE在ARM Linux下使用PPPD上网:
https://blog.csdn.net/sy373466062/article/details/51474346
==================================================================
参照《SIM7500_SIM7600 Linux NDIS 驱动调试 V2.00》文档修改驱动程序:
1、修改完成后上电启动内核会有如下打印:
<6>sunxi_emac Using MAC from SID:
02:22:ca:ff:93:84<6>sunxi_emac sunxi_emac.0: eth0: link up,
100Mbps, full-duplex, lpa 0x45E1
OK
<6>option 1-1:1.0: GSM modem (1-port) converter
detected
<6>usb 1-1: GSM modem (1-port) converter now attached to
ttyUSB0
<6>option 1-1:1.1: GSM modem (1-port) converter
detected
<6>usb 1-1: GSM modem (1-port) converter now attached to
ttyUSB1
<6>option 1-1:1.2: GSM modem (1-port) converter
detected
<6>usb 1-1: GSM modem (1-port) converter now attached to
ttyUSB2
<6>option 1-1:1.3: GSM modem (1-port) converter
detected
<6>usb 1-1: GSM modem (1-port) converter now attached to
ttyUSB3
<6>option 1-1:1.4: GSM modem (1-port) converter
detected
<6>usb 1-1: GSM modem (1-port) converter now attached to
ttyUSB4
# ls /dev/ttyU*
/dev/ttyUSB0 /dev/ttyUSB1
/dev/ttyUSB2 /dev/ttyUSB3
/dev/ttyUSB4
用网络登陆上机器,使用如下指令打开串口:
picocom -b 115200 /dev/ttyUSB3
此时即可使用AT指令测试模块:
AT
OK
AT+CPIN?
+CPIN: READY
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+CIMI
460090515808075
OK
AT+CGMI
SIMCOM INCORPORATED
OK
AT+CGMM
SIMCOM_SIM7600CE
OK
2、使能CONFIG_USBNET
ifconfig wwan0 up
ifconfig
echo "AT\$QCRMCALL=1,1" > /dev/ttyUSB3
或者:
echo "AT\$QCRMCALL=1,1" > /dev/ttyUSB2
(如果出现”udhcpc: sending
discover“,可以尝试等一会,等待模块准备好再udhcpc或者用ttyUSB2)
udhcpc -i wwan0
输出:
udhcpc: started, v1.27.2
udhcpc: sending discover
packetv4 coming ,,,
udhcpc: sending select for 10.110.181.188
packetv4 coming ,,,
udhcpc: lease of 10.110.181.188 obtained, lease time
7200
deleting routers
adding dns 221.6.4.66
adding dns 58.240.57.33
route del default dev wwan0
route add default dev wwan0
# ping www.baidu.com
packetv4 coming ,,,
PING www.baidu.com (103.235.46.39): 56 data bytes
packetv4 coming ,,,
64 bytes from 103.235.46.39: seq=0 ttl=47 time=286.367
ms
packetv4 coming ,,,
64 bytes from 103.235.46.39: seq=1 ttl=47 time=1479.563
ms
packetv4 coming ,,,
64 bytes from 103.235.46.39: seq=2 ttl=47 time=508.030
ms
前一篇:SIM7600CE-4G-HAT
后一篇:跟我一起写Makefile