By embracing the strength of GSM networks, we empower you to communicate with confidence and reliability, shaping a future of endless possibilities
A
A
Hardware Overview
How does it work?
GSM3 Click is based on the SIM800H, a GSM/GPRS module from SIMCom. This module is GSM Phase 2/2+ compliant, featuring a full set of cellular networking and communication options. It has a network status indication, jamming detection, and embedded internet protocols, including TCP/IP, UDP, FTP, PPP, HTTP, E-mail, MMS, and more. It also features advanced voice/audio functions, including the FM radio interface. The GPRS multislot class 12 implementation allows four uplink and four downlink slots, with five open slots. Data communication speed is rated at 85.6 kbps for both uplink and downlink connection. An outstanding feature of this module is the support for the Bluetooth 3.0+ EDR protocol. The SIM800H covers frequencies of 850/900 MHz (2W of TX power) and 1800/1900 MHz (1W of TX power). The module consists of several internal blocks or sections, such as an antenna switching section, RF transceiver section (BT, FM, and GSM), memory, power management, analog section (audio, ADC), and most importantly - the cellular baseband processor. Its interface consists of several lines that report the device and network status, SIM card interface lines, UART interface lines, and device control lines. These lines are routed to the respective elements of the Click board™. The SIM800H is powered by around 4V through the onboard LDO over the 5V mikroBUS™ power rail, no matter the chosen DATA LEVEL. Digital sections of the SIM800H are internally supplied by 2.8V, so it is necessary to condition the communication bus lines that connect the host MCU with the module. For this purpose, the GSM3 comes with the TXB0106, a 6-bit bi-directional level shifting and voltage translator with automatic
direction sensing, from Texas Instruments. To communicate with the host MCU, GSM3 Click uses a UART interface with commonly used UART RX and TX pins, supporting standard baud rates ranging from 1200bps to 115.2kbps. The automatic baud rate detection is supported for baud rates up to 57.6kbps and is set by default. The baud rate settings are stored in the internal non-volatile memory, so once stored, these settings will be retained between power cycles. In addition to the UART interface, the GSM3 Click includes hardware flow control pins RTS and CTS. A red LED labeled NET indicates the network status (network search/not registered, registered to the network, and communication established). A yellow LED labeled STAT is used to indicate the device status. When it is lit, the device is operational. It also signals that the internal module initialization is finished and that the module is ready to work. Besides LED, this status is routed via the STA pin to the host MCU. The PWRKEY pin is routed to the mikroBUS™ PWK pin and is used to manually power up/down the Click board™. Asserting this pin to a LOW logic level for at least 1s will toggle the power state of the SIM800H module. To properly detach from the network and store the working parameters in its non-volatile memory, the module should be safely powered off using the PWK (PWRKEY) pin or by issuing the AT+CPOWD=1 command. Abrupt termination of the power supply might lead to a loss of the current parameter settings and improper detachment from the network. If these methods don't work, the RST pin with the LOW logic state can also reset the module. One of the stand-out features of this Click board™ is the support for the
Bluetooth 3.0+ EDR protocol via the 2.4GHz RUFA SMD antenna from Antenova. For GSM/GPRS communication, the GSM3 Click board comes equipped with the SMA connector, while an appropriate antenna can be purchased at the MIKROE shop. The Micro SIM card holder on the back of the Click board™ is used to install a microSIM card. This device cannot be used without a valid SIM card, which allows connection to the cellular network. Both 1.8V and 3V SIM card types are supported, with fast 64kbps SIM card communication speed (GSM Phase 2+). The SIM800H module also offers extensive audio features, including half rate, full rate, enhanced full rate, adaptive multi-rate voice codecs, superior echo cancellation, and is configurable with the AT commands. The audio DSP section is integrated into the module and requires only a few external components. The headset can be connected via the connection pad on the side of the Click board™. The pad also offers an FM antenna connection, allowing listening to the FM radio transmissions. A headset with an integrated FM antenna inside the cable can be used. The functions of the FM radio receiver can be adjusted via the AT commands. The incoming call interrupts the FM receiver's signal and is redirected to the headset instead. This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the DATA LEVEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Features overview
Development board
Nucleo-64 with STM32G474R MCU offers a cost-effective and adaptable platform for developers to explore new ideas and prototype their designs. This board harnesses the versatility of the STM32 microcontroller, enabling users to select the optimal balance of performance and power consumption for their projects. It accommodates the STM32 microcontroller in the LQFP64 package and includes essential components such as a user LED, which doubles as an ARDUINO® signal, alongside user and reset push-buttons, and a 32.768kHz crystal oscillator for precise timing operations. Designed with expansion and flexibility in mind, the Nucleo-64 board features an ARDUINO® Uno V3 expansion connector and ST morpho extension pin
headers, granting complete access to the STM32's I/Os for comprehensive project integration. Power supply options are adaptable, supporting ST-LINK USB VBUS or external power sources, ensuring adaptability in various development environments. The board also has an on-board ST-LINK debugger/programmer with USB re-enumeration capability, simplifying the programming and debugging process. Moreover, the board is designed to simplify advanced development with its external SMPS for efficient Vcore logic supply, support for USB Device full speed or USB SNK/UFP full speed, and built-in cryptographic features, enhancing both the power efficiency and security of projects. Additional connectivity is
provided through dedicated connectors for external SMPS experimentation, a USB connector for the ST-LINK, and a MIPI® debug connector, expanding the possibilities for hardware interfacing and experimentation. Developers will find extensive support through comprehensive free software libraries and examples, courtesy of the STM32Cube MCU Package. This, combined with compatibility with a wide array of Integrated Development Environments (IDEs), including IAR Embedded Workbench®, MDK-ARM, and STM32CubeIDE, ensures a smooth and efficient development experience, allowing users to fully leverage the capabilities of the Nucleo-64 board in their projects.
Microcontroller Overview
MCU Card / MCU
Architecture
ARM Cortex-M4
MCU Memory (KB)
512
Silicon Vendor
STMicroelectronics
Pin count
64
RAM (Bytes)
128k
You complete me!
Accessories
Click Shield for Nucleo-64 comes equipped with two proprietary mikroBUS™ sockets, allowing all the Click board™ devices to be interfaced with the STM32 Nucleo-64 board with no effort. This way, Mikroe allows its users to add any functionality from our ever-growing range of Click boards™, such as WiFi, GSM, GPS, Bluetooth, ZigBee, environmental sensors, LEDs, speech recognition, motor control, movement sensors, and many more. More than 1537 Click boards™, which can be stacked and integrated, are at your disposal. The STM32 Nucleo-64 boards are based on the microcontrollers in 64-pin packages, a 32-bit MCU with an ARM Cortex M4 processor operating at 84MHz, 512Kb Flash, and 96KB SRAM, divided into two regions where the top section represents the ST-Link/V2 debugger and programmer while the bottom section of the board is an actual development board. These boards are controlled and powered conveniently through a USB connection to program and efficiently debug the Nucleo-64 board out of the box, with an additional USB cable connected to the USB mini port on the board. Most of the STM32 microcontroller pins are brought to the IO pins on the left and right edge of the board, which are then connected to two existing mikroBUS™ sockets. This Click Shield also has several switches that perform functions such as selecting the logic levels of analog signals on mikroBUS™ sockets and selecting logic voltage levels of the mikroBUS™ sockets themselves. Besides, the user is offered the possibility of using any Click board™ with the help of existing bidirectional level-shifting voltage translators, regardless of whether the Click board™ operates at a 3.3V or 5V logic voltage level. Once you connect the STM32 Nucleo-64 board with our Click Shield for Nucleo-64, you can access hundreds of Click boards™, working with 3.3V or 5V logic voltage levels.
Rubber Antenna GSM/GPRS Right Angle is the perfect companion for all GSM Click boards™ in our extensive lineup. This specialized antenna is designed to optimize your wireless connectivity with impressive features. With a wide frequency range spanning 824-894/1710-1990MHz or 890-960/1710-1890MHz, it can handle various frequency bands, ensuring a seamless and reliable connection. The antenna boasts an impedance of 50 Ohms and a gain of 2dB, enhancing signal reception and transmission. Its 70/180MHz bandwidth provides flexibility for diverse applications. The vertical polarization further enhances its performance. With a maximum input power capacity of 50W, this antenna ensures robust communication even under demanding conditions. Measuring a compact 50mm in length and featuring an SMA male connector, the Rubber Antenna GSM/GPRS Right Angle is a versatile and compact solution for your wireless communication needs.
Used MCU Pins
mikroBUS™ mapper
Take a closer look
Click board™ Schematic
Step by step
Project assembly
Track your results in real time
Application Output
This Click board can be interfaced and monitored in two ways:
Application Output
- Use the "Application Output" window in Debug mode for real-time data monitoring. Set it up properly by following this tutorial.
UART Terminal
- Monitor data via the UART Terminal using a USB to UART converter. For detailed instructions, check out this tutorial.
Software Support
Library Description
This library contains API for GSM3 Click driver.
Key functions:
gsm3_set_sim_apn
- This function sets APN for sim cardgsm3_send_sms_text
- This function sends text message to a phone number.gsm3_send_sms_pdu
- This function sends text message to a phone number in PDU mode
Open Source
Code example
The complete application code and a ready-to-use project are available through the NECTO Studio Package Manager for direct installation in the NECTO Studio. The application code can also be found on the MIKROE GitHub account.
/*!
* \file
* \brief Gsm3 Click example
*
* # Description
* This example reads and processes data from GSM 3 clicks.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initializes driver and wake-up module.
*
* ## Application Task
* Reads the received data and parses it.
*
* ## Additional Function
* - gsm3_process ( ) - The general process of collecting presponce
* that sends a module.
*
*
* \author MikroE Team
*
*/
// ------------------------------------------------------------------- INCLUDES
#include "board.h"
#include "log.h"
#include "gsm3.h"
#include "string.h"
#define PROCESS_COUNTER 10
#define PROCESS_RX_BUFFER_SIZE 500
#define PROCESS_PARSER_BUFFER_SIZE 1000
// ------------------------------------------------------------------ VARIABLES
#define DEMO_APP_RECEIVER
//#define DEMO_APP_TRANSMITER
static gsm3_t gsm3;
static log_t logger;
static char current_parser_buf[ PROCESS_PARSER_BUFFER_SIZE ];
static uint8_t send_data_cnt = 0;
// ------------------------------------------------------- ADDITIONAL FUNCTIONS
static void gsm3_process ( void )
{
int32_t rsp_size;
uint16_t rsp_cnt = 0;
char uart_rx_buffer[ PROCESS_RX_BUFFER_SIZE ] = { 0 };
uint16_t check_buf_cnt;
uint8_t process_cnt = PROCESS_COUNTER;
// Clear parser buffer
memset( current_parser_buf, 0 , PROCESS_PARSER_BUFFER_SIZE );
while( process_cnt != 0 )
{
rsp_size = gsm3_generic_read( &gsm3, &uart_rx_buffer, PROCESS_RX_BUFFER_SIZE );
if ( rsp_size > 0 )
{
// Validation of the received data
for ( check_buf_cnt = 0; check_buf_cnt < rsp_size; check_buf_cnt++ )
{
if ( uart_rx_buffer[ check_buf_cnt ] == 0 )
{
uart_rx_buffer[ check_buf_cnt ] = 13;
}
}
log_printf( &logger, "%s", uart_rx_buffer );
// Storages data in parser buffer
rsp_cnt += rsp_size;
if ( rsp_cnt < PROCESS_PARSER_BUFFER_SIZE )
{
strncat( current_parser_buf, uart_rx_buffer, rsp_size );
}
// Clear RX buffer
memset( uart_rx_buffer, 0, PROCESS_RX_BUFFER_SIZE );
}
else
{
process_cnt--;
// Process delay
Delay_ms( 100 );
}
}
}
// ------------------------------------------------------ APPLICATION FUNCTIONS
void application_init ( void )
{
log_cfg_t log_cfg;
gsm3_cfg_t cfg;
/**
* 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.
gsm3_cfg_setup( &cfg );
GSM3_MAP_MIKROBUS( cfg, MIKROBUS_1 );
gsm3_init( &gsm3, &cfg );
gsm3_module_power( &gsm3 );
gsm3_process( );
gsm3_send_command( &gsm3, GSM3_SINGLE_CMD_AT );
gsm3_process( );
gsm3_send_command( &gsm3, GSM3_SINGLE_CMD_AT );
gsm3_process( );
gsm3_send_command( &gsm3, GSM3_SINGLE_CMD_AT );
gsm3_process( );
gsm3_send_command( &gsm3, GSM3_SINGLE_CMD_ATE0 );
gsm3_process( );
gsm3_send_command( &gsm3, "AT+IFC=2,2" );
gsm3_process( );
gsm3_send_command( &gsm3, "AT+CMGF=1" );
gsm3_process( );
Delay_ms( 2000 );
}
void application_task ( void )
{
gsm3_process( );
}
void main ( void )
{
application_init( );
for ( ; ; )
{
application_task( );
}
}
// ------------------------------------------------------------------------ END