Sim plug-and-play
Hi,
I'm using ofono 0.48 with a cinterion modem and I want enable an plug-and-play sim. Basically when I insert a sim into the modem, I want to do an pin check and then continue with other procedures. I was think of creating a notify function when AT^SCKS function returns 1 (sim inserted). The thing is I dont know where to capture the response from that command. Can anyone give me a suggetion?
Thank you,
Cornel
Hi Cornel,
Quoted 3 lines · Cornel Spinu
Hi,
I'm using ofono 0.48 with a cinterion modem and I want enable an plug-and-play
That version is over a year old, I strongly suggest using something much more recent.
Quoted 3 lines
sim. Basically when I insert a sim into the modem, I want to do an pin check and then continue with other procedures. I was think of creating a notify function when AT^SCKS function returns 1 (sim inserted). The thing is I dont know where
I'm not really sure what you're asking, you'll have to provide more details. What does AT^SCKS do? Is that an unsolicited notification or something you have to poll?
Quoted 2 lines
to capture the response from that command. Can anyone give me a suggetion?
You can see an example of how SIM hot-swap is implemented in e.g. plugins/ifx.c. Just grep for XSIM.
Regards,
-Denis
Hi Denis,
Thank you for your reply.
I will look into ifx.c as an example, try to implement
something like that on cinterion side,
and return with a response with my progress.
Thanks,
Cornel
Quoted 12 lines · Cornel Spinu
Hi Denis,
Thank you for your reply.
I will look intoifx.cas an example, try to implement
something like that on cinterion side,
and return with a response with my progress.Thanks,
Cornel
I've done the implemention based on that example. Everything seems to be working good. Only issue left is that sometimes i get sim busy, but this is related to the external sim holder i am using. due to the low connection speed.
Thank you,
Cornel