Sending DATA through GPRS with OpenAT ADL


Hi, i´m just starting with wavecom and im a little bit lost. I understood the PING Sample that cames with the product but I still don´t have a clue where to start sending data through GPRS.

Can I send a String of Data to a website that will handle the data with PHP or ASP?

Can anyone give me a light?


Henrique Sanábio Vilela


Hello Henrique,

Welcome to the Wavecom Open AT World :smiley:

Your questions:


I’ll try to enlighten you…

First of all GPRS is only a bearer service thats quite unusable if you do not use any other protocol on top of it.

The TCP/IP stack from Wavecom is a nice pile of protocols specially written for the OpenAT environment and they are easy to use and work fairly well for basic applications.

It sounds like you do not have basic knowledge about TCP/IP protocols so I suggest you go through a TCP/IP tutorial (there’s alot of stuff like that on the Internet, just google for “TCP/IP Tutorial” )

I also recommend you to play around with the modem and the AT-command controlled TCP/IP stack from Wavecom before you continue with the embedded application in OpenAT.
That will give you understanding about whats going on before a GPRS/TCP/IP application is up-and-running.

One simple application for you to try (to transfer data from one end to another) is to set up a modem (with embedded TCP/IP stack) as a TCP server and to make a connection to it from a PC based client (prefferably a standard Telnet application).

Just make sure that the units allocated IP address is on the same net as your PC (prefferably the IP is dynamically allocated on the Public Internet, its like that with many standard GPRS subscriptions).
But if you have some speciel M2M subscription with static IP and a VPN from your PC, its even better.

After the unit is up-and-running as a listening server, you could try to connect to it from a standard telnet application program on your PC (I’m assuming that your PC has got a connection to the same network as your modem).


//The commands used on the server modem with AT-controlled stack is
AT#APNPW            // APN password
AT#APNUN            // username
AT#APNSERV        // APN server
AT#TCPPORT        // TCP port number (must be same on both client and server)
AT#TCPSERV        // configure to to accept all incoming requests
AT#CONNECTIONSTART    // activate the unit on GPRS network (to get an IP address)
AT#LTCPSTART     // to start listening

Now you can use the Telnet program to set up a TCP Socket session to your GPRS modem (to the Port and IP address that your modem has). After the session is active, you can send asynchronous data to/and from the telnet and the modem.

As you might understand, its really important that you know what kind of GPRS subscriptions you are using and that you understand the access the modem have to the packet switched network.

An embedded application in Open AT works the same way except that the application controls the TCP/IP stack via the API instead of a user via AT-commands.

Basically, to do the same stuff as above, but via the API, you need to:

  1. register on the GPRS network
  2. ed_DialupSetConfig
  3. ed_DialupConnectionStart
  4. ed_SocketSetConfig
  5. ed_SocketLTCPStart
  6. then you need to get control of the serial interface dataflow and also the data from the air interface if you want to transfer data between the two interfaces…

Of course you need to take care of every result/callback/event that can occur during the setup but, that you will have read yourself in the documentation :smiley:

Just keep asking if there’s something more you want to know but avoid posting the same questions in multiple forums :wink:

I hope that’ll help more than leaving you even more confused.





Yes, don’t post the same question on other forums. :stuck_out_tongue:

Dear Snooze (alias Andersen) was very kind to offer you a deep-through answer. At least you can thank it. :slight_smile:

Best Regards,



Hi TOM and Snooze, sorry about the double post.

I don´t know which POST you´re going to see this reply… so I´ll leave it on both ok (with some changes)?

I followed the recommendations and now I bring you some questions.

I studied the Socket Sample and some TCP/IP tutorials.
As well I took a deep look in the “Open AT IP Connectivity Development Guide”.

Unfortunately I couldn’t realize how to send a “GET” command/string to a internet website.

I walked through all the steps from GPRS/TCP/IP settings to server connection.

Summarizing I want to send GPS coordinates to a Website through GET command. eg.: “” (Suppose the string has already been built).

Something like a website script people use nowdays.

As I access that string URL the webserver will do all the work with the value of the latitude.

Thanks to you all!

Best Regards,