问题描述
使用AT+CGDCONT命令设置modem默认APN(例如:CID1)。
解决方法
1.查看设备modem APN:AT+CGDCONT可以用于查看或修改APN。
例如,查看当前设备APN:
AT+CGDCONT?
CGDCONT:1,“IPV4V6”,“internet”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0 APN Name “internet”
CGDCONT:2,“IPV6”,“ims”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0
CGDCONT:3,“IPV4V6”,“sos”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,1
CGDCONT: 4,“IP”,“plus.acs.jp”,“0.0.0.0”,0,0,0,0
CGDCONT: 5,“IP”,“plus.acs.jp”,“0.0.0.0”,0,0,0,0
2.修改modem APN
使用“AT+CGDCONT=”来修改APN 参数,
例如:
AT+CGDCONT=1,“IP”,“internet”,“10.1.1.4”,0,0
参数分别表示【顺序】、【IP类型】、【APN名】、【address】
3.导出profile
高通平台利用QPST;可能有的版本user版本打不开QPST。
modem APN存储在EFS的Data_Profiles,可以使用QPST工具的EFS explorer,将修改后的profile文件导出.
详细路径:
/Data_Profiles/Profile*
4.导入到modem_proc
每个MBN都内置的自己的profile,其路径是modem_proc\datamodem\datacfg\efs\xxx\Profilex
将导出的profile文件替换到上述路径。
5,编辑mbn,把相应的profile添加进去:
如:
同时,注意修改MBN version,使MBN可以更新。