Sample - WIP Sample
Changes
Dependencies
This sample depends on the following libraries :
Application Description
Configuration parameters are hard-coded at the beginning of the
source file. The following constants are to be customized:
- OVER_PPP / OVER_GPRS: exactly one of these two macros has
to be defined, to decide which connection mode is selected
- PEER_STRADDR: the address of the peer to which UDP
packets are sent. Must be given in numeric form,
i.e. "123.124.125.126" and not
"mycomputer.mydomain.com".
- PEER_PORT: port to which packets are sent.
- SENDING_INTERVAL: time to wait, in tenth of seconds,
between two packet sendings.
- MSG: The message sent in the UDP packet.
In PPP mode:
- PPP_BEARER: name of the physical bearer to use.
- PPP_PASSWORD: password to be given by the PPP client
during authentication (all user ids are accepted).
- PPP_LOCAL_STRADDR: IP address of the module, i.e. the PPP
server.
- PPP_DEST_STRADDR: IP address of the PPP client.
In GPRS mode:
- GPRS_APN: network provider APN.
- GPRS_LOGIN: login name
- GPRS_PASSWORD: password
- GPRS_PINCODE: PIN code of the SIM card, or NULL if no PIN
code is required.
The sample will initialize the module, the SIM card and the GPRS
card, or the PPP server. Once the GPRS stack is ready (or a client
connected successfully to the PPP server), the text MSG will
be send every SEND_INTERVAL*0.1 seconds to the computer whose
IP address is PEER_STRADDR, on port PEER_PORT.
Updated : Thu Aug 24 13:06:46 CEST 2006