We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2024-10-31
Package Version: 2.1.0.6
mikroSDK Library: 2.0.0.0
Category: GSM/LTE
Downloaded: 51 times
Not followed.
License: MIT license
AnyNet 3G-EA Click is a cellular to AWS gateway device, which provides developers with the complete solution for various IoT applications, by using the AWS IoT and Cloud Storage services for the data storage, analyzing and processing. AnyNet Click board™ provides a secure connection with the AWS over the air (OTA), by utilizing the Quectel UG95-EA 3G module, offering worldwide UMTS/HSPA and GSM/GPRS/EDGE coverage Eseye ES4623 embedded SIM card, that can work with more than 235 cellular operators from all over the world. An Eseye embedded sim card can work with more than 235 cellular operators from all over the world. The AnyNet 3G Click can be used as an AWS IoT button with almost no configuration.
Do you want to subscribe in order to receive notifications regarding "AnyNet 3G-EA Click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "AnyNet 3G-EA Click" changes.
Do you want to report abuse regarding "AnyNet 3G-EA Click".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
5402_anynet_3g_ea_cli.zip [632.34KB] | mikroC AI for ARM GCC for ARM Clang for ARM mikroC AI for PIC mikroC AI for PIC32 XC32 GCC for RISC-V Clang for RISC-V mikroC AI for dsPIC XC16 |
|
AnyNet 3G-EA Click is a cellular to AWS gateway device, which provides developers with the complete solution for various IoT applications, by using the AWS IoT and Cloud Storage services for the data storage, analyzing and processing. AnyNet Click board™ provides a secure connection with the AWS over the air (OTA), by utilizing the Quectel UG95-EA 3G module, offering worldwide UMTS/HSPA and GSM/GPRS/EDGE coverage Eseye ES4623 embedded SIM card, that can work with more than 235 cellular operators from all over the world. An Eseye embedded sim card can work with more than 235 cellular operators from all over the world. The AnyNet 3G Click can be used as an AWS IoT button with almost no configuration.
We provide a library for the ANYNET3GEA Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for ANYNET3GEA Click driver.
anynet3gea_cfg_setup
Config Object Initialization function.
void anynet3gea_cfg_setup ( anynet3gea_cfg_t *cfg );
anynet3gea_init
Initialization function.
err_t anynet3gea_init ( anynet3gea_t *ctx, anynet3gea_cfg_t *cfg );
anynet3gea_send_cmd
This function sends a specified command to the Click module.
void anynet3gea_send_cmd ( anynet3gea_t *ctx, uint8_t *cmd );
anynet3gea_send_cmd_with_par
This function sends a command with specified parameter to the Click module.
void anynet3gea_send_cmd_with_par ( anynet3gea_t *ctx, uint8_t *at_cmd_buf, uint8_t *param_buf );
anynet3gea_send_cmd_check
This function checks the command status.
void anynet3gea_send_cmd_check ( anynet3gea_t *ctx, uint8_t *at_cmd_buf );
This example demonstrates the use of AnyNet 3G-EA Click board.
The demo application is composed of two sections :
Initializes the driver and sends a few AT commands to test the communication and configure the Click board.
void application_init ( void )
{
log_cfg_t log_cfg; /**< Logger config object. */
anynet3gea_cfg_t anynet3gea_cfg; /**< Click config object. */
/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
// Click initialization.
anynet3gea_cfg_setup( &anynet3gea_cfg );
ANYNET3GEA_MAP_MIKROBUS( anynet3gea_cfg, MIKROBUS_1 );
if ( UART_ERROR == anynet3gea_init( &anynet3gea, &anynet3gea_cfg ) )
{
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
anynet3gea_process( );
anynet3gea_clear_app_buf( );
// Check communication
anynet3gea_send_cmd( &anynet3gea, ANYNET3GEA_CMD_AT );
error_flag = anynet3gea_rsp_check( ANYNET3GEA_RSP_OK );
anynet3gea_error_check( error_flag );
// Query VERSION info for the AnyNet AWS IoT code
anynet3gea_send_cmd( &anynet3gea, ANYNET3GEA_CMD_AWSVER );
error_flag = anynet3gea_rsp_check( ANYNET3GEA_RSP_OK );
anynet3gea_error_check( error_flag );
// Query IMEI of the modem on the board
anynet3gea_send_cmd( &anynet3gea, ANYNET3GEA_CMD_GSN );
error_flag = anynet3gea_rsp_check( ANYNET3GEA_RSP_OK );
anynet3gea_error_check( error_flag );
// Query ICCID of the SIM
anynet3gea_send_cmd( &anynet3gea, ANYNET3GEA_CMD_QCCID );
error_flag = anynet3gea_rsp_check( ANYNET3GEA_RSP_OK );
anynet3gea_error_check( error_flag );
// Check AWS State
anynet3gea_send_cmd_check( &anynet3gea, ANYNET3GEA_CMD_AWSSTATE );
error_flag = anynet3gea_rsp_check( ANYNET3GEA_RSP_OK );
anynet3gea_error_check( error_flag );
// Open AWS topic
#define AWS_TOPIC_OPEN "0,\"MY_TOPIC_OPEN\""
anynet3gea_send_cmd_with_par( &anynet3gea, ANYNET3GEA_CMD_AWSPUBOPEN, AWS_TOPIC_OPEN );
error_flag = anynet3gea_rsp_check( ANYNET3GEA_RSP_OK );
anynet3gea_error_check( error_flag );
// Subscribe to AWS topic
#define AWS_TOPIC_SUBSCRIBE "0,\"MY_TOPIC_SUBSCRIBE\""
anynet3gea_send_cmd_with_par( &anynet3gea, ANYNET3GEA_CMD_AWSSUBOPEN, AWS_TOPIC_SUBSCRIBE );
error_flag = anynet3gea_rsp_check( ANYNET3GEA_RSP_OK );
anynet3gea_error_check( error_flag );
anynet3gea_clear_app_buf( );
log_info( &logger, " Application Task " );
}
Reads all the received data and logs them to the USB UART.
void application_task ( void )
{
anynet3gea_process( );
anynet3gea_log_app_buf( );
anynet3gea_clear_app_buf( );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.