arduino-libraries / MKRGSM

GNU Lesser General Public License v2.1
55 stars 51 forks source link

2G fallback not working #81

Closed StefanOelsner closed 5 years ago

StefanOelsner commented 5 years ago

Hi, I'm using the MKR 1400 in a car to monitor temperature, battery charge etc. The communication is based around SMS. The problem I'm having isn't related to my code, it is also present with the built in examples (ReceiveSMS for example). The library seems to break down, when there is no 3G-coverage. 2G is present with good signal strength. 2G-fallback should be possible as in the description.

I'm running the code from the example sketch receiveSMS. When calling gsmAccess.begin() it's stuck until it times out. On 3G this is not an issue.

I also simulated this behavior by changing the Radio Access Technology to GSM only (AT+URAT=0,0). The same problem arises even though there is good 2G-coverage. I put GSM into verbose mode. This is the ouptut when 3G-network is not available:

///Working with 3G available/// OK AT+IPR=921600

OK AT

OK AT+UPSV=3

OK AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

+CPIN: READY

OK AT+CMGF=1

OK AT+UDCONF=1,1

OK AT+CTZU=1

OK AT+UDTMFD=1,2

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,1

OK AT+UCALLSTAT=1

OK GSM initialized Waiting for messages ///Working with 3G available///

///Not working with 2G available/// OK AT+IPR=921600

OK AT

OK AT+UPSV=3

OK AT

OK AT+IPR=921600

OK AT

OK AT+UPSV=3

OK AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

ERROR AT+CPIN?

+CPIN: READY

OK AT+CMGF=1

OK AT+UDCONF=1,1

OK AT+CTZU=1

OK AT+UDTMFD=1,2

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK AT+CREG?

+CREG: 0,0

OK ///Not working with 2G available///

Has anybody come across this issue and has a fix?

Thank you so much!

StefanOelsner commented 5 years ago

Closing due to overlap with issue #66