User Manual Part 7

User Guide to Q4000/QPRO
Document Number 1135-4713 Rev G
THIS DOCUMENT CONTAINS CONFIDENTIAL AND PROPRIETARY INFORMATION OF QUAKE GLOBAL CORPORATION. IT MAY BE USED BY
RECIPIENT ONLY FOR THE PURPOSE FOR WHICH IT WAS TRANSMITTED AND WILL BE RETURNED UPON REQUEST OR WHEN NO LONGER NEEDED
BY RECIPIENT. DISCLOSURE TO UNAUTHORIZED THIRD PARTIES OR DUPLICATION WITHOUT THE EXPRESS WRITTEN PERMISSION OF QUAKE
GLOBAL IS PROHIBITED.
Page 117
CONFIDENTIAL
Information classified Confidential
-
Do not copy (See last page for obligations)
12.4.6 DemoAppTCP
The DemoAppTCP sample application demonstrates using TCP to send and receive GSM/GPRS
packets. It uses the Turnkey application structure to illustrate sending a TCP message over
GPS/GPRS to www.google.com. DemoAppTCP then displays the output on the Logger screen.
Note that this sample application uses network-specific calls.
1. Select the DemoAppTCP Workspace from the drop-down list at the top, left-hand corner of
the IAR IDE screen. Open the APL.c file, as shown below:
Figure 12-54: DemoAppTCP - Selecting the Workspace
2. Now build, load and execute DemoAppTCP. The instructions for building, loading and
executing the code are the same as in Section 12, except that after building the application,
the executable bin file is:
…/DemoAppTCP/exe/xxx-DemoAppTCP.bin
.
3. After startup, check the Logger output for the line APL DEMO: TCP. This indicates that the
correct DemoApp is running.
DemoAppTCP is based on the Turnkey sample application. The parameter
TK_XMIT_INTERVAL is used to control how often a web page is requested. This may be
modified from the MTS or Logger port or OTA. The web page is then displayed on the Logger
output as text data.