GSM/GNSS 2 Click Example.
Description
This example reads and processes data from GSM/GNSS 2 clicks.
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 GNSS position fix. Once it get a fix, it sends an SMS with GNSS info to the selected phone number approximately every 40 seconds.
Additional Function
- static void gsmgnss2_clear_app_buf ( void )
- static void gsmgnss2_error_check( err_t error_flag )
- static void gsmgnss2_log_app_buf ( void )
- static void gsmgnss2_check_connection( void )
- static err_t gsmgnss2_rsp_check ( void )
- static err_t gsmgnss2_process ( void )
- static void gnss_parser_application ( void )
- Note
- A passive GPS antenna is required for the GNSS to receive the position fix. It may take several minutes for the module to receive the fix. 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. Example. SIM_APN "vipmobile" SIM_SMSC "+381610401" PHONE_NUMBER_TO_MESSAGE "+381659999999"
- Author
- Mikroe Team