I am writing an application in which I need to make a GPRS connection.
Can someone please help me how I can setup this connection using C#.
thanks
EDIT I will need to connect a GPRS connection because I need to call a webservice.
I am writing an application in which I need to make a GPRS connection.
Can someone please help me how I can setup this connection using C#.
thanks
EDIT I will need to connect a GPRS connection because I need to call a webservice.
To make a GPRS connect using a dial up connection subsystem from .NET CF on PocketPC, you can use Connection Manager functions such as ConnMgrEnumDestinations, ConnMgrEstablishConnection and ConnMgrReleaseConnection. Check out http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_cnmn_connection_manager.asp for details. There are no classes available for this in .NET CF, but it can be done quite easily using P/Invoke if you have some experience with this. The following blog post covers this in detail and also contains some C# code: http://blogs.msdn.com/anthonywong/archive/2006/03/13/550686.aspx.
Another solution is using the Smart Device Framework by OpenNETCF.org that contains a wrapper class for the Connection Manager: http://www.opennetcf.org/downloads/bin/SmartDeviceFramework14.zip It is free for any commercial or noncommercial purpose up to the version 1.4. It also includes the source code, so you might either use it as is or as a reference for your own implementation if you prefer.
(solution taken from our website at http://forum.rebex.net/questions/503/how-to-establish-a-gprs-connection-for-ftp-use-on-net-cf)
This page might help...
Is it really important to explicitly create that connection? If you initiate any outgoing (eg. not localhost) connection (like a HttpWebRequest), the OS will automatically connect to the Internet using the preferred connection, which can be GPRS.
My colleague and I are mining the GPRS MODEM market for a module suitable for use with embedded Linux. During the market scan, we see that several vendors highlight that their MODEMs include an ...
I have a couple of questions about connectivity on Android, if anyone has any insight it would be great. 1) What is the default when an application wants to wirelessly connect? Is it wlan? And if ...
We re looking to develop a mobile website. On this mobile website, we d like to automatically populate a user s location (with proper fallback) based on their IP address. I m aware of geocoding a ...
I want to pull data from a device that is accessed via a serial protocol and has a GPRS modem attached which should allow transparent access over an IP connection. It seems to me that this approach is ...
Client written in .NET Compact Framework. Client connects a socket to the server over a GPRS connection. The server accepts the connection. Client sends 62 bytes of data and then closes the socket. ...
I need to enumerate and close individual GPRS connections on a Windows Mobile device. I ve tried the RAS API as suggested by this answer, however it doesn t work on all devices. RasEnumConnections ...
I m writing an application for android. My problem is that I want it to force the connection in GPRS and not use wi fi. I have a solution like below, but this causes the crash of the application at ...
How can I forcefully send data packets over gprs n/w eventhough wifi is on? How to create socket for gprs n/w in Android and to know gprs ip?