1.Querying the USB network type of the current EC25 Modem
Execute get_ec25_network1_type.sh script , Get the network type of the current EC25 Modem .
Note:
If the usb net is not 1, you need to perform the 2 step.
2.Set EC25 module to ECM mode through AT command
Execute set_ec25_network1_type.sh script , Set the USB network type to 1。
Node :
In the other window, you can see the printed information of EC25 module. After execution, you need to restart the Debain system.
It only needs to be set once, and the network will be automatically connected after restart.
It is not necessary to execute qcm, which is different from the previous Internet dialing method.
3.Query the current network node
Check whether the network node has usb0 and ip address through sudo ifconfig。
Node: Under normal, you can access the Internet with existing the usb0 and ip address
4.Possible problems
4.1 Unable to access the Internet after setting step 2
Basically, domestic APNs have automatic error correction, which has little impact if they are mismatched. If foreign APNs are not correct, they may not be able to reside on the network
For example, when I use China Mobile Card in China, the corresponding APN is CMNET
If you cannot access the Internet, you need to replace it with the corresponding SIM operator and APN and replace the CMNET string
echo -e "AT+QICSGP=1,1,\"internet\"\r\n" >/dev/ttyUSB2
3.改apn(这一步供应商说每次开机需要设置)
sudo busybox microcom /dev/ttyUSB2
AT+CIMI //查询当前SIM卡运营商,40177对应internet
AT+QICSGP="internet" //设置当前拨号apn为哈萨克斯坦Tele2 Internet,这一步设置完就生效
AT+QICSGP=1 //查询当前模块设置APN
ref:
https://blog.csdn.net/wds1181977/article/details/78862285/
4.2 There is IP but no Internet access
Remember to insert the antenna into the 4G module
4.3 Start up and run settings apn
echo -e "AT+QICSGP=1,1,\"internet\"\r\n" > /dev/ttyUSB2
sudo vi ~/.profile +24
add File Path , Restart will automatically execute
as : /home/linaro/Desktop/set_ec25_apn_internet.sh