Wavecom GR64 Application Note page 13

Embedded application remote download
Hide thumbs Also See for GR64:
Table of Contents

Advertisement

main()
{
int
prs
/* Create a pdp context */
result =
if
{
/* Activate a PDP context for IP use */
prtf
result =
}
if
{
int
/* Get this module's IP information */
prtf
val = ipi (0);
prtf
}
if
{
/* Open tcp socket */
prtf
result =
prtf
}
if
{
int
/* Listen on tcp socket */
prtf
result =
}
while
{
result = MyScript ();
prtf
RemoteMode ();
}
}
Gx64 APPLICATION NOTE
EA Remote Download
Page: 13/22
result;
(0);
pdpcont
(1, 1, "APN01A.ERICSSON.SE");
(!result)
("PDP context written.\r\n");
pdpa
(1,1);
(!result)
val;
("PDP context activated.\r\n");
("My IP address is: %d.%d.%d.%d\r\n",
val & 255, (val >> 8) & 255,
(val >> 16) & 255, (val >>24) & 255);
(!result)
("Opening Socket.\r\n");
ipo
(1, &socket);
("socket = %d.\r\n", socket);
(!result)
PORTNUM = 5001;
("Starting to listen at port number %d\r\n", PORTNUM);
tcpl
(socket, PORTNUM);
(1)
("MyScript result: %d\r\n", result);
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulged without prior written agreement.
Ce document est la propriété exclusive de WAVECOM. Il ne peut être communiqué ou divulgué à des tiers sans son autorisation préalable

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GR64 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Gs64

Table of Contents