PPPoS of ESP-IDF falls back to 2G - cannot connect 4G
Posted: Tue Sep 20, 2022 9:08 am
Hi,
My setup is:
ESP-IDF v4.4.1,
Eclipse environment,
Board: LilyGo with modem SIM7000G
My goal is to implement PPPoS library (using the built-in example "pppos_client" from ESP-IDF) connect to internet on 4G (LTE) network, and run AWS-IOT application.
Initially this example offers working with two module types: BG96 and SIM800. Hence I have SIM7000G things shouldn't be so different.
So far I have achieved success (with little to no change) to the existing pppos library, by selecting SIM800. I had do send multiple AT in the beginning cause default baudrate of SIM7000 is "auto" so first couple of AT commands will not trigger any response, and that is fixed - problem solved.
I have pppos connectivity and I can successfully connect to the internet, and also my AWS-IOT library works fine through pppos.
The problem:
The problem is modem always connects with GPRS on 2G. If I previously set the modem to connect only on LTE (4G), when the pppos code kicks-in, somehow it magically drops the connection back to GPRS (2G). At least the LED state indicates that modem is actually on the 2G network.
My question is:
Does pppos library has anything to do with (re)instructing the modem to go on (2G) network in the several first instructions that it sends to the modem through ppp protocol, and if yes what do I have to change to achieve 4G (LTE) connection?
My hope is that pppos has nothing to do with the type of connection of the modem, and that my problem is eather with the modem pre-setup, or with my SIM card credentials. (my SIM work on my phone with 4G, but I dont exclude the possibility that the operator will not connect my SIM7000G to 4G intentionally - cause it can "see" that it is NOT A PHONE but M2M machine which falls back into another category of subscription - but that is yet to be researched...)
Experts in pppos, please drop your opinion, and any thoughts anyone?
Thanks in advance!
My setup is:
ESP-IDF v4.4.1,
Eclipse environment,
Board: LilyGo with modem SIM7000G
My goal is to implement PPPoS library (using the built-in example "pppos_client" from ESP-IDF) connect to internet on 4G (LTE) network, and run AWS-IOT application.
Initially this example offers working with two module types: BG96 and SIM800. Hence I have SIM7000G things shouldn't be so different.
So far I have achieved success (with little to no change) to the existing pppos library, by selecting SIM800. I had do send multiple AT in the beginning cause default baudrate of SIM7000 is "auto" so first couple of AT commands will not trigger any response, and that is fixed - problem solved.
I have pppos connectivity and I can successfully connect to the internet, and also my AWS-IOT library works fine through pppos.
The problem:
The problem is modem always connects with GPRS on 2G. If I previously set the modem to connect only on LTE (4G), when the pppos code kicks-in, somehow it magically drops the connection back to GPRS (2G). At least the LED state indicates that modem is actually on the 2G network.
My question is:
Does pppos library has anything to do with (re)instructing the modem to go on (2G) network in the several first instructions that it sends to the modem through ppp protocol, and if yes what do I have to change to achieve 4G (LTE) connection?
My hope is that pppos has nothing to do with the type of connection of the modem, and that my problem is eather with the modem pre-setup, or with my SIM card credentials. (my SIM work on my phone with 4G, but I dont exclude the possibility that the operator will not connect my SIM7000G to 4G intentionally - cause it can "see" that it is NOT A PHONE but M2M machine which falls back into another category of subscription - but that is yet to be researched...)
Experts in pppos, please drop your opinion, and any thoughts anyone?
Thanks in advance!