Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AT组件中的SIM7600在只有4G情况下无法连接的问题 #184

Open
weizhiX opened this issue Aug 3, 2022 · 0 comments
Open

AT组件中的SIM7600在只有4G情况下无法连接的问题 #184

weizhiX opened this issue Aug 3, 2022 · 0 comments

Comments

@weizhiX
Copy link

weizhiX commented Aug 3, 2022

问题描述:
在一个只有4g信号环境中,或者使用只开通4G的物联网卡的情况下,使用AT组件会初始化设备失败导致无法连接网络。
原因是AT组件中对AT+CREG和AT+CGRAG进行了判断。如果返回的不对就会直接退出初始化,CGREG是LTE这块业务的,CREG是2G这块业务的,如果遇到现场环境没有2G只有4G的实惠,CREG的返回就不会是0,1或者是0,5,程序会判断联网失败直接退出,所以后续即使有4G信号能通讯也是不行了。
如果直接屏蔽了CREG的判断和退出,那么就是可以正常是用4G的。
建议对AT+CREG和AT+CGRAG判断时,不要直接go exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant