一、问题描述:
1. 4G模块移植成功后,插入联通卡的情况下,4G模块的LTE(4G)模式正常,软重启,硬重启都能正常连接到网络
2. 电信,移动也可以正常识别卡,但是经常连接不到网络。有的时候移动网络那里已经选上LTE或是其他两种模式(3G,2G),看串口(logcat -b radio)也可以看到正常发送指令,但就是连接不到网络;
3. 有时候第一次开机(和切换运营商卡的时候)开机进入系统,串口出现“init: Service 'bootanim' (pid 391) killed by signal 9” ,并且ril-daemon不断重启,进入到移动网络选项里面选定模式之后ril-daemon重启才消失,消失之后(电信,移动)有的时候能连上网络,有的时候不行。
[ 22.877125] init: Service 'ril-daemon' (pid 1397) killed by signal 11
[ 22.877166] init: Service 'ril-daemon' (pid 1397) killing any children in process group
[ 24.075521] init: Starting service 'ril-daemon'...
[ 27.466095] init: Service 'ril-daemon' (pid 1441) killed by signal 11
[ 27.466126] init: Service 'ril-daemon' (pid 1441) killing any children in process group
[ 28.712044] init: Starting service 'ril-daemon'...
[ 31.723499] init: Service 'ril-daemon' (pid 1459) killed by signal 11
[ 31.723538] init: Service 'ril-daemon' (pid 1459) killing any children in process group
怀疑,APN设置有问题,查看:
out/target/product/rk3288/system/etc/apns-conf.xml
1. vendor/rockchip/common/phone/etc/apns-full-conf.xml
2. out/target/product/rk3288/system/etc/apns-conf.xml(与前者一样,是前者的输出文件)
发现连不上网络的时候依然可以在 “更多(无线和网络)-->移动网络-->接入点名称(APN)”里面找到三个接入点。所以暂时排除接入点设置问题。
参考:
2. CM12.1电信4G有福了,添加首选网络选项默认开机电信网络
5. Android 中 SystemProperties 使用方法
6. APN基础常识
7. 46011是什么网络