-
Notifications
You must be signed in to change notification settings - Fork 729
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
Problem with TinyGsmClient when there's no connection #315
Comments
What modem? |
hello sim800l
Sent from my Samsung Galaxy smartphone.
…-------- Original message --------
From: Sara Damiano <[email protected]>
Date: 8/2/19 12:42 (GMT+01:00)
To: vshymanskyy/TinyGSM <[email protected]>
Cc: Tomislav <[email protected]>, Author <[email protected]>
Subject: Re: [vshymanskyy/TinyGSM] Problem with TinyGsmClient when there's no connection (#315)
What modem?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#315?email_source=notifications&email_token=AH6ST2VWW2NHHL56X43LBS3QCQFQVA5CNFSM4IIYSEC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3NMRMA#issuecomment-517654704>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AH6ST2URIFEVVMQYRU4656TQCQFQVANCNFSM4IIYSECQ>.
|
I'm not really sure how to help you. If Could you post an AT log showing what's happening? |
hi. that is exactly the problem. sim thinks its connected but it isn't (isNetworkConnected behaves the same) and if you issue http request in this state everything freezes until the timeout . is there any reliable method of checking sim connectivity ? i would like to test it before issuing http requests so i can reconnect in advance if necessary.
Sent from my Samsung Galaxy smartphone.
…-------- Original message --------
From: Sara Damiano <[email protected]>
Date: 8/2/19 16:56 (GMT+01:00)
To: vshymanskyy/TinyGSM <[email protected]>
Cc: Tomislav <[email protected]>, Author <[email protected]>
Subject: Re: [vshymanskyy/TinyGSM] Problem with TinyGsmClient when there's no connection (#315)
I'm not really sure how to help you. If isGprsConnected() returns true, then the SIM800 thinks it is still attached to GPRS and still has an ip address. I don't know how to "tell" it otherwise.
Could you post an AT log showing what's happening?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#315?email_source=notifications&email_token=AH6ST2RDGPKF4Y2DQMAT6SDQCRDKRA5CNFSM4IIYSEC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3N7OBY#issuecomment-517732103>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AH6ST2UWOND63GVSFDC54C3QCRDKRANCNFSM4IIYSECQ>.
|
I don't know of any way. |
try to send AT+CIPSTATUS to gsm module, if its disconnected will response with ERROR or IP INITIAL |
Hello all, i need some assistance from you smart people :). I am having a trouble when trying to send http request and there's no gprs connection. modem.isGprsConnected() returns true but i have deliberately disconnected connection on the gsm operators portal so i know there's no connection even though method returns true. What i want to achieve is to automatically reconnect to the gprs in the case of connection drop for what ever reason it may be. Right now there's no way i can find out that there's no connection prior to calling http and receive a timeout. i want to establish a connection prior to http call if it is possible. What do you think would it be ok solution if i always connect to gprs prior to call and disconnect from it after the call. would it be too much of overhead ?
The text was updated successfully, but these errors were encountered: