3G SARA Click Board
3G SARA Click Board
The 3G SARA Click Board™ is a versatile cellular network communication solution, featuring the compact 3.75G UMTS/HSPA SARA U-201 modem from u-blox. This module includes a full set of options for cellular networking and communication, such as the network indication, full embedded TCP/UDP stack, HTTP and HTTPS transfer protocols, IPv4/IPv6 dual-stack support, antenna detection, jamming signal detection, and more.
The 3G SARA Click Board™ also features the HSPA data-rates of 7.2 Mb/s (downlink) and 5.76 Mb/s (uplink), as well as the ability to maintain the voice call during the data transfer (3G). Onboard 16bit audio CODEC IC adds high-quality voice communication capability.
Software Support
We provide the library for the 3G SARA Click Board™ on our LibStock page, as well as the demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided Click Board™ library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
The library carries a generic command parser adopted for AT command based modules.
Generic parser.
Key functions:
c3gsara_cmdSingle
- Sends the provided command to the module.c3gsara_setHandler
- Handler assignation to the provided command.c3gsara_modulePower
- Turn the module on.
Example Description
Example demo application waits for the call. After the call is received the parser will get hangup call.
This code snippet shows how a generic parser should be properly initialized. Before initialization module must be turned on, and hardware flow control should be also added.
Commands:
- The first command negotiates the baud rate with the module.
- The second command turns the echo off.
- The third command enables hardware flow control - necessary in case of UART polling.
- The fourth command sets the setup default message format.
// MODULE POWER ON c3gsara_hfcEnable( true ); c3gsara_modulePower( true ); // MODULE INIT c3gsara_cmdSingle( "AT" ); c3gsara_cmdSingle( "ATE0" ); c3gsara_cmdSingle( "AT+IFC=2,2" ); c3gsara_cmdSingle( "AT+CMGF=1" );
Along with the demo application, timer initialization functions are provided. Note that timer is configured according to default development system and MCUs, changing the system or MCU may require an update of timer init and timer ISR functions.
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- String
- Conversion
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The 3G SARA Click Board™ is supported by the mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click Board™ demo applications, the mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
3G SARA Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.