I have to make a Internet Connection with modem Siemens M20T (Gsm/Gprs
modem), and i have to use AT Commands.
How can i do?
the command ATD*99# is of course not sufficient.
I hope somebody can help me.
Regards,
Lewix
I don't know the M20T but i try following sequence:
AT+CGDCONT=1,"IP","APN"
ATD*99***1#
Replace APN through the name of the APN of your provider.
Example:
at+cgdcont=1,"IP","web.vodafone.de"
OK
atd*99***1#
CONNECT
~ÿ}#À!}!}"} }=}!}$}&@}#}%Â#€}%}&¡ò]Y}"}&}
Maybe there is more to do:
AT+CGATT=1 attach to GPRS network (normally includes in atd*99#)
AT+CGATT? should return +CGATT: 1
AT+CGDCONT=1,"IP","APN" context definition (explained above)
AT+CGACT=1 PDP context activation
AT+CGDATA="PPP",1 enter data mode
Regards
--
Andreas Hezel
__________________________________________________________
**********************************************************
Andreas Hezel ---> Mail: Andrea...@gmx.de
**********************************************************
Hello!
Thanks for your answer.
Ok this evening i try your code!
With your code i will able to connect my pc to internet? My goal is
this.
Thanks
Lewix
>
> Hello!
> Thanks for your answer.
> Ok this evening i try your code!
> With your code i will able to connect my pc to internet? My goal is
> this.
Tell me more about what you are doing. I am nut sure that the M20T
supports GPRS.
Wich OS do you use on your PC? (Win/Linux which Version?) It's difficult
to help if you don't know everything.
I have written the AT Commands to open a GPRS Connection. If you want a
normal Dial In Connection dial with ATDnumber the number of your
internet provider.
--
Andreas Hezel
__________________________________________________________
**********************************************************
Andreas Hezel ---> Mail: Andrea...@gmx.de
**********************************************************
Hi!
Yes Siemens M20T is a Gsm/Gprs modem.
The OS is Ms Windows (XP).
I have to develop an application (in C# but if needed i know well also
C++) which automatically connect to internet by this device.
I have no driver of this modem, so i have to comunicate by serial port
with AT Commands.
If I send (for debug i use Hyper Terminal) ATD*99# the string CONNECT
appears, after many binary chars, but after 10 seconds appears the
string "NO CARRIER". Maybe i have to make a chap autentication to the
provider?
My Gprs provider (i live in Italy) is Vodafone, i use APN="internet".
Thanks really for your help, i will offer a beer :)
Lewix
> I have to develop an application (in C# but if needed i know well also
> C++) which automatically connect to internet by this device.
> I have no driver of this modem, so i have to comunicate by serial port
> with AT Commands.
I don't know if it is not easier to use the Windows dial up Network you
can use a standard modem driver, dial ATD*99# and enter +cgdcont... to
the modem init string in the modem options?
There i have seen a interface to use the Win DUN in C but i have no
experience with it and it is not free :-(
http://www.marshallsoft.com/mdd_4c.htm
> If I send (for debug i use Hyper Terminal) ATD*99# the string CONNECT
> appears, after many binary chars, but after 10 seconds appears the
> string "NO CARRIER". Maybe i have to make a chap autentication to the
> provider?
That sounds good. Now you have to connect your pp to make the
authentication.
--
Andreas Hezel
__________________________________________________________
**********************************************************
Andreas Hezel ---> Mail: Andrea...@gmx.de
**********************************************************