Using the Modem’s Internal Protocol Stack to Establish a Data Connection
To send data using the modem’s internal protocol stack, you must be connected to the
modem’s serial port, either through the DE-9 connector or the modem’s header. The
internal protocol stack does not work over the USB connection.
To establish the connection, you must first register the modem on the network for an IP
connection. When using the internal stack you must register the modem every time the
modem powers off or resets itself. To register enter the command:
AT^IPINIT=”<apn>”
Where apn, is the apn of your service provider. For example if you were using the
default AT&T apn of broadband, the command would be
AT^IPINIT=”broadband”
If the modem is already registered, the modem will respond as follows:
+CME ERROR: The network has been opened already
To check that the modem is registered, and to find out the modem’s IP address, enter
the following command:
AT^IPINIT?
The modem responds with:
^IPINIT: 1, “10.56.134.128”, “broadband”, “172.26.38.1”, “172.26.38.2”
Where 10.56.134.128 is the IP address of the modem, broadband is the APN, and the
last 2 IP addresses are the primary and secondary DNS addresses.
What you do next depends on whether you want to send data or receive it. You can set
the modem to listen for data at the same time you are sending data. To learn how to
receive data on your modem, go to Receiving Data on your Modem
. To learn how to
send data, go to Sending Data with your Modem
.
Receiving Data on your Modem
Receiving data on your modem is done by setting up a listening server. A listening
server can look for either TCP or UDP data on your modem. The listening server can
19