Using The Embedded Application Tcp/Ip Functions For Data Exchange; Overview Of Embedded Applications Tcp/Ip - Sony Ericsson Embedded Applications Application Note

Using the on board tcp/ip stack
Table of Contents

Advertisement

2 Using the Embedded Application TCP/IP
Functions for Data Exchange
2.1

Overview of Embedded Applications TCP/IP

LZT 123 8019 R1A
EMBEDDED APPLICATIONS FCT
The TCP/IP features provided by the embedded
application functions of the radio device are intended to
provide a subset of the features normally available at the
socket level when using a conventional TCP/IP stack, with
some simplification and customization based on the
specific features of the radio device.
The features allow the application-writer to create and
destroy UDP and TCP sockets, to control underlying
GPRS PDP contexts, to transfer data to and from the radio
device, and to interrogate IP status information about the
active link.
The socket interface is provided by a series of functions
outlined below:
pdpa()
Activate and deactivate a PDP context for TCP/IP over GPRS
ipo()
Open a UDP or TCP socket for data transfer
ipc()
Close a previously opened UDP or TCP socket
tcpc()
Connect to a TCP server specifying IP address and port
tcps()
Send data over a previously connected TCP socket
tcpr()
Receive data over a previously connected TCP socket
udps()
Send data over a UDP socket
udpr()
Receive data over a UDP socket
ipi()
Obtain IP-related information associated with the GPRS link
iprh()
Perform a text-to-IP-address hostname resolution
For full details of these functions, their parameters and
possible return values, refer to the syntax data in the
M2mpower IDE Help files.
The majority of the functions, with the exception of the
tcpc() function, will only return once the requested
operation is complete. More detail regarding tcpc() is
provided in later sections of this application note.
5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents