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

I need an sim card insert and remove event when using bg96 and ppos lib which is used in esp-idf v 4.3 (IDFGH-9996) #281

Closed
radhikapatel15 opened this issue Apr 26, 2023 · 5 comments

Comments

@radhikapatel15
Copy link

radhikapatel15 commented Apr 26, 2023

Is your feature request related to a problem?

No response

Describe the solution you'd like.

I want the sim insert and remove events and also an event when modem fails for esp-idf v4.3

Describe alternatives you've considered.

I have tried adding additional events to the modem events but that did not work

Additional context.

No response

@github-actions github-actions bot changed the title I need an sim card insert and remove event when using bg96 and ppos lin=b which isused in esp-idf v 4.3 I need an sim card insert and remove event when using bg96 and ppos lin=b which isused in esp-idf v 4.3 (IDFGH-9996) Apr 26, 2023
@radhikapatel15 radhikapatel15 changed the title I need an sim card insert and remove event when using bg96 and ppos lin=b which isused in esp-idf v 4.3 (IDFGH-9996) I need an sim card insert and remove event when using bg96 and ppos lib which is used in esp-idf v 4.3 (IDFGH-9996) Apr 26, 2023
@david-cermak
Copy link
Collaborator

I think you get a lost connection event immediately after removing a SIM card.
So, as a workaround you can listen to already supported events and just check (with AT commands) if the card has or hasn't been removed/inserted.
The correct solution would probably be to listen to URC messages in the modem library, but that would need some work (and probably some customization) to make it universally working for most devices.

@radhikapatel15
Copy link
Author

Thanks for your reply, But what u are saying will conflict when the server connection is also lost .
And for the workaround can share any sample code for it ? using bg96 and ppos lib for esp-idf v4.3?

@diplfranzhoepfinger
Copy link
Contributor

ah, cool. i will try this !

@david-cermak david-cermak added this to the modem-v1.2.0 milestone Nov 28, 2023
@david-cermak
Copy link
Collaborator

Should be handled by an URC message, will be added in v1.2.0

@david-cermak
Copy link
Collaborator

URC handling has been merged in #620

will be published as v1.2.0 in #688

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

No branches or pull requests

4 participants