AnyNet 3G-AA click
AnyNet 3G-AA 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-AA 3G module, offering UMTS/HSPA coverage for the North American region, Eseye ES4623 embedded SIM card, that can work with all the major cellular operators within the NA region. The AnyNet 3G click can be used as an AWS IoT button with almost no configuration.
click Product page
Click library
- Author : Stefan Filipovic
- Date : May 2023.
- Type : UART type
Software Support
We provide a library for the ANYNET3GAA 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.
Library Description
This library contains API for ANYNET3GAA Click driver.
Standard key functions :
anynet3gaa_cfg_setup
Config Object Initialization function.
void anynet3gaa_cfg_setup(anynet3gaa_cfg_t *cfg)
AnyNet 3G-AA configuration object setup function.
AnyNet 3G-AA Click configuration object.
Definition anynet3gaa.h:158
anynet3gaa_init
Initialization function.
err_t anynet3gaa_init(anynet3gaa_t *ctx, anynet3gaa_cfg_t *cfg)
AnyNet 3G-AA initialization function.
AnyNet 3G-AA Click context object.
Definition anynet3gaa.h:135
Example key functions :
anynet3gaa_send_cmd
This function sends a specified command to the click module.
void anynet3gaa_send_cmd(anynet3gaa_t *ctx, uint8_t *cmd)
Send command function.
anynet3gaa_send_cmd_with_par
This function sends a command with specified parameter to the click module.
void anynet3gaa_send_cmd_with_par(anynet3gaa_t *ctx, uint8_t *at_cmd_buf, uint8_t *param_buf)
Send command function with parameter.
anynet3gaa_send_cmd_check
This function checks the command status.
void anynet3gaa_send_cmd_check(anynet3gaa_t *ctx, uint8_t *at_cmd_buf)
Check the sent command.
Example Description
This example demonstrates the use of AnyNet 3G-AA click board.
The demo application is composed of two sections :
Application Init
Initializes the driver and sends a few AT commands to test the communication and configure the click board.
{
log_cfg_t log_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
{
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
anynet3gaa_process( );
anynet3gaa_clear_app_buf( );
anynet3gaa_error_check( error_flag );
anynet3gaa_error_check( error_flag );
anynet3gaa_error_check( error_flag );
anynet3gaa_error_check( error_flag );
anynet3gaa_error_check( error_flag );
#define AWS_TOPIC_OPEN "0,\"MY_TOPIC_OPEN\""
anynet3gaa_error_check( error_flag );
#define AWS_TOPIC_SUBSCRIBE "0,\"MY_TOPIC_SUBSCRIBE\""
anynet3gaa_error_check( error_flag );
anynet3gaa_clear_app_buf( );
log_info( &logger, " Application Task " );
}
#define ANYNET3GAA_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition anynet3gaa.h:119
#define ANYNET3GAA_CMD_AT
AnyNet 3G-AA control commands.
Definition anynet3gaa.h:73
#define ANYNET3GAA_RSP_OK
AnyNet 3G-AA device response for AT commands.
Definition anynet3gaa.h:89
#define ANYNET3GAA_CMD_AWSSUBOPEN
Definition anynet3gaa.h:82
#define ANYNET3GAA_CMD_AWSSTATE
Definition anynet3gaa.h:78
#define ANYNET3GAA_CMD_GSN
Definition anynet3gaa.h:75
#define ANYNET3GAA_CMD_QCCID
Definition anynet3gaa.h:74
#define ANYNET3GAA_CMD_AWSPUBOPEN
Definition anynet3gaa.h:80
#define ANYNET3GAA_CMD_AWSVER
Definition anynet3gaa.h:76
void application_init(void)
Definition main.c:91
#define AWS_TOPIC_SUBSCRIBE
Application Task
Reads all the received data and logs them to the USB UART.
{
anynet3gaa_process( );
anynet3gaa_log_app_buf( );
anynet3gaa_clear_app_buf( );
}
void application_task(void)
Definition main.c:163
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.AnyNet3GAA
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.