Gsmgps Click example.
Description
This example reads and processes data from GSM-GPS click.
The demo application is composed of two sections :
Application Init
Initializes the driver and powers up the module, then sets default configuration for connecting the device to network.
Application Task
Waits for the device to connect to network, then waits for the GPS position fix. Once it get a fix, it sends an SMS with GPS info to the selected phone number approximately every 40 seconds.
Additional Function
- static void gsmgps_clear_app_buf ( void )
- static void gsmgps_error_check( err_t error_flag )
- static void gsmgps_log_app_buf ( void )
- static void gsmgps_check_connection( void )
- static err_t gsmgps_rsp_check ( void )
- static err_t gsmgps_process ( void )
- static void gps_parser_application ( void )
- Note
- In order for the example to work, user needs to set the phone number to which he wants to send an SMS, and also will need to set an APN and SMSC (required for PDU mode only) of entered SIM card. Enter valid data for the following macros: SIM_APN, SIM_SMSC and PHONE_NUMBER_TO_MESSAGE. E.g. SIM_APN "vipmobile" SIM_SMSC "+381610401" PHONE_NUMBER_TO_MESSAGE "+381659999999"
- Author
- MikroE Team