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
ENTER PINCODE
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
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.
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.
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.
Related
Hello, I do know here is all about XDA, my problem is about smatphone. But at this moment i cann't find another place to ask my question, execuse me.
I have written a programm to send AT to gsm modem on xda1, i would like to let the program running on a smartphone, because the OperationSystems of both are fast same.
With Port "COM2" comes Error by CreateFile. I changed the Port to 9 and CreateFile runns like OK. But now by sending at- command, I use the WaitCommEvent function, and the smartphone is blocked on it.
Code:
if (!WaitCommEvent(hCom, &event, NULL))
{
return -12;
}
i have searched this problem on google, and many other people have the same problem. but I didn't find the reason and answer,yet.
So i would likt to ask here, what is the problem and how can I go through it?
thanks a lot
:?:
your first question: why you can not open com:2 ?
my answer: you can open com:2 ,but you have to set the second
parametre of createfile() to 0 which means you can not do any read or
write. So i think it may be useless for you.
if you know how serial driver is written, you will know that there are
two kinds of serial driver which are "Single access" and "multiple access".
If your serial driver is a "single access" one, and windows ce has already
open com:2 when you turn on your smartphone, i think you will not be
able to open com:2 anymore because your smartphone system had it.
solution: you might have to write a serial driver yourself. Because the
serial driver of your smartphone is not written by microsoft, it is written
by the OEM manufacturer of your smartphone, and it is part of the BSP.
//////////////////////////////////////////////////////////////////////////////
your second question: why your program block?
well, i do not know whether com:9 supports gsm AT commands or com AT
commands. if it does not, there will be no response, and your program will
block.
Hi,
I'm trying to put together a program for sending AT Commands over a serial connection from my PC to the XDA. Unfortunately my XDA doesn't respond to any of the commands, and in fact doesn't seem to be able to see any serial port data at all.
Does anyone know if there are settings I need to change to allow the XDA to be able to receive Serial data?
Thanks,
Simon
sure thing, the ultimate aim is to be able to send a command from a Destop PC to the XDA to get it to send an SMS. The specific method for doing this isn't too important, but atm AT Commands seems to be the most promising method.
Any advice you can give would be much appreciated.
Thanks,
Simon
After many tries I think i´m to stupid th use this little program.
I´ve connected my Vario II in bootloader mode ,Activesync is disabled.USB is selected.All other checkboxes are default.
I´ve got the "USB" prompt.
If I use the "rtask b" command to enter the GSM AT command interface, I can´t make any inputs in MTTY.I can´t even go back with "returoR" to normal bootloader.
If I disconnect the USB cable the Hermes didn´t change from USB to serial.
What did I wrong?
It´s Hermes 300; IPL-1.01; SPL-1.04
Thanks for your replies
scorpio16v
When you type 'rtask b' and go to GSM bootloader you have no "local echo", that means what you type is not printed on the screen.
To enable local echo you have to type "ate 1" and press enter, also it is good to type "atv 1" for better responses.
To exit, you have to type "retuoR", but sometimes 3 times before it exits.
pof said:
To exit, you have to type "retuoR", but sometimes 3 times before it exits.
Click to expand...
Click to collapse
Thanks pof
The word "returoR" semms to be a mistake in the Wiki.
thanks, fixed
not sure why .. all i got is "cmd" instead of "usb" ... ?
when i try to conect mtty with my hermes, it open a window when usb is selected and all other radio default..it shows CLIENT CLEINT
and doesnt allow to enter any command..i can copy paste but command has no effect..what is wrong..i have disabled usb connection from active sync
Hi. Please tell me a metod to reset call duration at HTC TyTN.
This is for personel use, not to resell on ebay as "NEW"...
How to reset call timer (if you want to know reason why you want to do this, please do additional research)
a). Please make sure that you are SuperCID and you understand the importance of hard spl as this maybe a dangerious operation for you.
b). Make sure that you have SPL 1.10 Olipro (this one works for me, higher version seems not work)
c). Download Mtty.exe and save it to your computer.
d). Open connection setting of your activesync or WMDC on your PC and disable "Allow USB connection".
e). Put your device into Bootloader mode and connect to your PC via USB
f). Run Mtty.exe from your PC
g). Select "USB" in port box and then click OK
h). Press Enter once or twice to let the screen dispay "USB>" or "CMD>"
i). Type "rtask b" and Enter then it should show result "0"
j). then type "ate1" and Enter then it should show result "0"
k).then type "atv1" and Enter then it should show result "OK"
l). then type "[email protected]=270f,270f" and Enter then it should show result "OK"
Restart you PPC.... you call timer should be 00.00.00
Cheers....
Where I finde Mtty.exe? Please help.
On the top bar is a little thing called "search", try there....
hello can you say me if this method work for htc tytn 2? thank you
thanks ultramag ...quick answer... some months ago i was curious and had to read many threads to even undestand. thanks
Hello all,
I am trying to write and application that opens a connection to the serial port, GPRS modem, and sends AT commands and receives any response.
I have a few questions;
1- I can open connection to 2 ports, named COM1 (or COM2 depending on the device) and COM9 (or COM3 depending on device). How can I be sure the device I am connected to is the GPRS modem?
2- When I try to write data, I have 2 results - first, device freezes without any response, and second, I get an IOException error.
Can anyone help me please?
I am using C# and Visual Basic .NET
Thanks,