4G LTE 3 E Click Example.
Description
Application example shows device capability of connecting to the network and sending SMS or TCP/UDP messages using standard "AT" commands.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger.
Application Task
Application task is split in few stages:
- C4GLTE3E_POWER_UP: Powers up the device, performs a factory reset and reads system information.
- C4GLTE3E_CONFIG_CONNECTION: Sets configuration to device to be able to connect to the network.
- C4GLTE3E_CHECK_CONNECTION: Waits for the network registration indicated via CEREG command and then checks the signal quality report.
- C4GLTE3E_CONFIG_EXAMPLE: Configures device for the selected example.
- C4GLTE3E_EXAMPLE: Depending on the selected demo example, it sends an SMS message (in PDU or TXT mode) or TCP/UDP message.
By default, the TCP/UDP example is selected.
Additional Function
- static void c4glte3e_clear_app_buf ( void )
- static void c4glte3e_log_app_buf ( void )
- static err_t c4glte3e_process ( c4glte3e_t *ctx )
- static err_t c4glte3e_read_response ( c4glte3e_t *ctx, uint8_t *rsp )
- static err_t c4glte3e_power_up ( c4glte3e_t *ctx )
- static err_t c4glte3e_config_connection ( c4glte3e_t *ctx )
- static err_t c4glte3e_check_connection ( c4glte3e_t *ctx )
- static err_t c4glte3e_config_example ( c4glte3e_t *ctx )
- static err_t c4glte3e_example ( c4glte3e_t *ctx )
- Note
- In order for the examples to work, user needs to set the APN and SMSC (SMS PDU mode only) of entered SIM card as well as the phone number (SMS mode only) to which he wants to send an SMS. Enter valid values for the following macros: SIM_APN, SIM_SMSC and PHONE_NUMBER. Example: SIM_APN "internet" SIM_SMSC "+381610401" PHONE_NUMBER "+381659999999"
- Author
- Stefan Filipovic