pulkin / micropython

MicroPython implementation on Ai-Thinker GPRS module A9 (RDA8955)
https://micropython.org
MIT License
103 stars 30 forks source link

Using the PIN-protected SIM card in A9G? #78

Open wzab opened 3 years ago

wzab commented 3 years ago

In case if A9G is used in an unattended remote sensing device, there is a legal risk of abuse of SIM card extracted from the stolen device. That risk may be slightly mitigated by use of PIN-protected SIM card (of course it is still possible to sniff the PIN sent to the SIM card, but it is much more complicated than simply taking the SIM card and placing it in another device). I can see that A9G supports the PIN-related AT commands (AT+CPIN and others), but I can't see any way to access them from micropython. Is it possible to add such functionality? Or maybe I have overlooked something?

Best regards, Wojtek

pulkin commented 3 years ago

No there is nothing related to PIN here.

wzab commented 3 years ago

Can it be added? Where should I look for any possibility to add it? Regards, Wojtek

pulkin commented 3 years ago

Yes it can be added but it also requires a lot of work beyond mpy. This is how the modem command is implemented.