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
- LOCAL_PORT: the port number on which UDP packets are
expected.
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), every UDP packets received
on port LOCAL_PORT will be displayed on the debug output.
Updated : Thu Aug 24 13:06:46 CEST 2006