View Full Version : Enter PIN via C# or C++
augur
07-08-2006, 12:13 PM
Hi all!
Ok, I try it here...
Can anyone tell me, how to enter the PIN of the SIMCard to unlock my Blue Angle in C# or C++?
I would like to create a GPRS connection to the internet and have to enter the PIN first.
A code example would be nice.
Thank You
roycegerikchua
07-08-2006, 12:43 PM
if your using AT commands
i think the command to enter pin code is AT+CPIN
i'm using Vb6 but i think it is somewhat similar
Mscomm1.output = "AT+CPIN="XXXX"
XXXX is the pin code hope this helps :D
augur
07-08-2006, 02:24 PM
Thanks for Your answer!
But I already tried this.
To send an AT Command to the modem, I have to open the Com Port COM2. I also have to send the DeviceIoControl command. All AT-Commands return success, even the CPIN command, but nothing happens. If I want to connect to the net, the dialog appears to enter the PIN.
Thanks for Your help.
augur
07-08-2006, 02:25 PM
Thanks for Your answer!
But I already tried this.
To send an AT Command to the modem, I have to open the Com Port COM2. I also have to send the DeviceIoControl command. All AT-Commands return success, even the CPIN command, but nothing happens. If I want to connect to the net, the dialog appears to enter the PIN.
Thanks for Your help.
ATHelp
14-08-2006, 05:11 PM
Hi,
Have you tried to execute the "SimUnlockPhone" API in you app?
I don't know if this works but you can give it a try...
Regards.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.