GPRS Connection

G

Guest

Hello

in our project we are using an Option-Globetrotter GPRS card. To set up an internet connection with a Windows CE device you have to send a few AT Command Strings and dial manually out of a terminal application. This works, and I can set up a connection. The Instructions can be found here: http://www.option.com/support/globetrotter/wince_general_setup.shtm

Now I want to do the same programmatically on a Windows CE .NET 4.2 device from a .NET Compact Framework project. Does any one have an idea how to send the AT commands and get the GPRS card connected

Thanks in advanc

Marc
 
A

Alberto Silva - MVP

Hi,
I assume that the 'Option-Globetrotter GPRS card' creates a virtual COM
port. That virtual COM port is where you must send the AT commands.
If you don't know how to use a serial port from c# or vb.net, take a look at
www.opennetcf.org

Regards,
Alberto Silva

Marc Ambrosius said:
Hello,

in our project we are using an Option-Globetrotter GPRS card. To set up an
internet connection with a Windows CE device you have to send a few AT
Command Strings and dial manually out of a terminal application. This works,
and I can set up a connection. The Instructions can be found here:
http://www.option.com/support/globetrotter/wince_general_setup.shtml
Now I want to do the same programmatically on a Windows CE .NET 4.2 device
from a .NET Compact Framework project. Does any one
 
G

Guest

Thank you for your reply, the Serial assembly from Opennetcf was very helpful. Now I am missing just one final step
If I type the AT commands manually into the terminal application, I have to click "continue" after I see "CONNECT" on the screen to start the authentication procedure. Without doing this, the connections stops with NO CARRIER. The same happens in my code. So how can I do what "continue" does

Thanks in advanc

Mar

----- Alberto Silva - MVP wrote: ----

Hi
I assume that the 'Option-Globetrotter GPRS card' creates a virtual CO
port. That virtual COM port is where you must send the AT commands
If you don't know how to use a serial port from c# or vb.net, take a look a
www.opennetcf.or

Regards
Alberto Silv

Marc Ambrosius said:
internet connection with a Windows CE device you have to send a few A
Command Strings and dial manually out of a terminal application. This works
and I can set up a connection. The Instructions can be found here
http://www.option.com/support/globetrotter/wince_general_setup.shtmfrom a .NET Compact Framework project. Does any on
 
A

Alberto Silva - MVP

Try to send a carriage return (CR) character.

Alberto Silva

Marc Ambrosius said:
Thank you for your reply, the Serial assembly from Opennetcf was very
helpful. Now I am missing just one final step:
If I type the AT commands manually into the terminal application, I have
to click "continue" after I see "CONNECT" on the screen to start the
authentication procedure. Without doing this, the connections stops with NO
CARRIER. The same happens in my code. So how can I do what "continue" does?
 
G

Guest

I do send a CR. After showing "CONNECT" you can see some garbage characters coming to the screen. This is when you normally press "continue" or "OK" in your terminal application. After some lines of garbage it says "NO CARRIER". Any idea what I can send or do?

Thanks again,

Marc

----- Alberto Silva - MVP wrote: -----

Try to send a carriage return (CR) character.

Alberto Silva

Marc Ambrosius said:
Thank you for your reply, the Serial assembly from Opennetcf was very
helpful. Now I am missing just one final step:
If I type the AT commands manually into the terminal application, I have
to click "continue" after I see "CONNECT" on the screen to start the
authentication procedure. Without doing this, the connections stops with NO
CARRIER. The same happens in my code. So how can I do what "continue" does?
 
D

Darren Beckley

Don't send the last command (ATD*99#) directly to the serial port. Instead,
use RAS API to dial up a connection that uses *99# as the phone number. Take
a look at RasDial() in the help. I have not used RAS API from .NET CF, but I
think you are going to have to P/Invoke that too. Remember to close the COM
port before you attempt to use RAS.

FYI, ATD is the dial command, and ATD*99# is a modem compatability command
that tells the GPRS module to start GPRS but make it look like a normal PPP
session to the computer/device. This is why you see CONNECT straight away -
its pretending that you have "connected" to a remote modem so that dial-up
networking software will start doing the PPP session stuff.

Hope that helps,
Darren

Marc Ambrosius said:
Thank you for your reply, the Serial assembly from Opennetcf was very
helpful. Now I am missing just one final step:
If I type the AT commands manually into the terminal application, I have
to click "continue" after I see "CONNECT" on the screen to start the
authentication procedure. Without doing this, the connections stops with NO
CARRIER. The same happens in my code. So how can I do what "continue" does?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top