TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137096 times)
  2. FAT32 Library (70236 times)
  3. Network Ethernet Library (56122 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42073 times)
  6. FT800 Library (41384 times)
  7. GSM click (29112 times)
  8. mikroSDK (26561 times)
  9. PID Library (26489 times)
  10. microSD click (25486 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

AnyNet 3G-AA click

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.1.0.4

mikroSDK Library: 2.0.0.0

Category: GSM/LTE

Downloaded: 24 times

Not followed.

License: MIT license  

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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "AnyNet 3G-AA click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "AnyNet 3G-AA click" changes.

Do you want to report abuse regarding "AnyNet 3G-AA click".

  • mikroSDK Library 1.0.0.0
  • Comments (0)

mikroSDK Library Blog


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.

anynet3gaa_click.png

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 );
  • anynet3gaa_init Initialization function.

    err_t anynet3gaa_init ( anynet3gaa_t *ctx, anynet3gaa_cfg_t *cfg );

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 );
  • 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 );
  • anynet3gaa_send_cmd_check This function checks the command status.

    void anynet3gaa_send_cmd_check ( anynet3gaa_t *ctx, uint8_t *at_cmd_buf );

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.


void application_init ( void ) 
{
    log_cfg_t log_cfg;  /**< Logger config object. */
    anynet3gaa_cfg_t anynet3gaa_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.
    anynet3gaa_cfg_setup( &anynet3gaa_cfg );
    ANYNET3GAA_MAP_MIKROBUS( anynet3gaa_cfg, MIKROBUS_1 );
    if ( UART_ERROR == anynet3gaa_init( &anynet3gaa, &anynet3gaa_cfg ) )
    {
        log_error( &logger, " Application Init Error. " );
        log_info( &logger, " Please, run program again... " );
        for ( ; ; );
    }

    anynet3gaa_process( );
    anynet3gaa_clear_app_buf( );

    // Check communication
    anynet3gaa_send_cmd( &anynet3gaa, ANYNET3GAA_CMD_AT );
    error_flag = anynet3gaa_rsp_check( ANYNET3GAA_RSP_OK );
    anynet3gaa_error_check( error_flag );

    // Query VERSION info for the AnyNet AWS IoT code
    anynet3gaa_send_cmd( &anynet3gaa, ANYNET3GAA_CMD_AWSVER );
    error_flag = anynet3gaa_rsp_check( ANYNET3GAA_RSP_OK );
    anynet3gaa_error_check( error_flag );

    // Query IMEI of the modem on the board
    anynet3gaa_send_cmd( &anynet3gaa, ANYNET3GAA_CMD_GSN );
    error_flag = anynet3gaa_rsp_check( ANYNET3GAA_RSP_OK );
    anynet3gaa_error_check( error_flag );

    // Query ICCID of the SIM
    anynet3gaa_send_cmd( &anynet3gaa, ANYNET3GAA_CMD_QCCID );
    error_flag = anynet3gaa_rsp_check( ANYNET3GAA_RSP_OK );
    anynet3gaa_error_check( error_flag );

    // Check AWS State
    anynet3gaa_send_cmd_check( &anynet3gaa, ANYNET3GAA_CMD_AWSSTATE );
    error_flag = anynet3gaa_rsp_check( ANYNET3GAA_RSP_OK );
    anynet3gaa_error_check( error_flag );

    // Open AWS topic
    #define AWS_TOPIC_OPEN "0,\"MY_TOPIC_OPEN\""
    anynet3gaa_send_cmd_with_par( &anynet3gaa, ANYNET3GAA_CMD_AWSPUBOPEN, AWS_TOPIC_OPEN );
    error_flag = anynet3gaa_rsp_check( ANYNET3GAA_RSP_OK );
    anynet3gaa_error_check( error_flag );

    // Subscribe to AWS topic
    #define AWS_TOPIC_SUBSCRIBE "0,\"MY_TOPIC_SUBSCRIBE\""
    anynet3gaa_send_cmd_with_par( &anynet3gaa, ANYNET3GAA_CMD_AWSSUBOPEN, AWS_TOPIC_SUBSCRIBE );
    error_flag = anynet3gaa_rsp_check( ANYNET3GAA_RSP_OK );
    anynet3gaa_error_check( error_flag );
    anynet3gaa_clear_app_buf( );

    log_info( &logger, " Application Task " );
}

Application Task

Reads all the received data and logs them to the USB UART.


void application_task ( void ) 
{
    anynet3gaa_process( );
    anynet3gaa_log_app_buf( );
    anynet3gaa_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:

  • 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.


ALSO FROM THIS AUTHOR

Rotary R 2 click

0

Rotary R 2 Click is a compact add-on board that allows you to add a precision input knob to your design. This board features the TLC5925, a low-power 16-channel constant-current LED sink driver from Texas Instruments that, combined with a high-quality rotary encoder from ALPS, the EC12D1564402, allows you to add a precision input knob to your design. It also features an LED ring composed of 16 individual red LEDs that can visually represent the encoder position and more.

[Learn More]

Color 7 click

0

Color 7 click is a very accurate color sensing Click board which features the TCS3472 color light to digital converter with IR filter, from ams.

[Learn More]

I2C isolator click

0

I2C Isolator click carries ISO1540, a low-power, bidirectional isolator compatible with I2C interfaces. On the board, the Texas Instruments chip is connected to two sets of I2C pins, one on the mikroBUS connector (SDA, SCL), the other on the upper edge of the board (SCL2, SDL2).

[Learn More]