Internet Service Information: Http Send Data - CalAmp 819-GPRS series User Manual

Gsm gprs serial cellular data modem
Table of Contents

Advertisement

Open the connection by typing AT^SISO=0. A response should display showing that the
connection was successful, as shown below;
^SIS: 0, 3, 2201, "HTTP Response:HTTP/1.1 200 OK"
^SISR: 0, 1
The ^SISR: 0, 1 response indicates that there is data available and can be read by sending the
AT^SISR command. Send the AT^SISR commend requesting 1500 bytes of data.
AT^SISR=0,1500
The response will produce 1500 bytes of data (mostly html text) and another ^SISR: 0, 1 at the
end, indicating more data is available. Send the AT^SISR=0,1500 command until the response
reads ^SISR: 0, 2, indicating the data transfer is complete.
Check the connection state by typing AT^SISO?. An example output response is shown below;
^SISO: 0, "Http","6","1","9533","0","10.192.72.82:0","209.131.36.158:80"
^SISO: 1, ""
^SISO: 2, ""
^SISO: 3, ""
^SISO: 4, ""
^SISO: 5, ""
^SISO: 6, ""
^SISO: 7, ""
^SISO: 8, ""
^SISO: 9, ""
OK
To close the connection, type AT^SISC=0.

Internet Service Information: HTTP send data

In this example, HTTP data is sent to a fictitious server located at
http://myserver.com/mydir/myfile. Use the AT^SISS command to configure the connection profile.
AT^SISS=0,alphabet,1
AT^SISS=0,srvType,HTTP
AT^SISS=0,conId,0
AT^SISS=0,address,"http://myserver.com/mydir/myfile"
AT^SISS=0,hcMethod,1
AT^SISS=0,hcProp,"Content-Type: application/x-www-form-urlencoded" (or any other HTTP
properties)
To send data less than 128 bytes the AT^SISS=0,hcContent,"your data" can be used to send data
without using the AT^SISW command.
To send data larger than 128 bytes, first specify the size of the data by typing the following
command:
AT^SISS=0,hcContLen,xx where xx specifies the total amount of data to be sent.
Open the connection by typing, AT^SISO=0.
Check the connection state by typing, AT^SISO?.
001-0003-829 Revision 1
Page 27 of 65

Advertisement

Table of Contents
loading

Table of Contents