GSM/GNSS Click Board
GSM/GNSS Click Board
The GSM/GNSS Click Board™ combines GPS/GLONASS location tracking with GSM module capability for mobile communication. The Click Board™ features Quectel's MC60 quad-band module.
The GSM/GNSS Click Board™ runs on either 3.3V or 5V power supply and communicates with the target MCU over UART interface, and the following MikroBUS pins: AN, RST, PWM, INT.
Software Support
NOTES ON THE DEMO/LIBRARY
The demo initialises and configures the GSM/GNSS Click Board™ and waits for a new message to arrive. When the message is received, the text and the number of the sender are shown on the display. In the initialisation procedure, it waits for the SIM card to be ready. When the SIM card is ready, it runs the AT process and waits for the URC message from ME. The +CMT message signalises that the message is received.
The demo uses the AT engine library for communication with GSM/GNSS module.
The demo doesn't use default autobauding, instead the module is externally configured to 9600 bps with AT+IPR command and AT&W command to store current parameters to the user defined profile.
To provide the needed current level the external power supply is used on the EasyAVR v7 development board.
- HEXIWEAR EXAMPLE
The Hexiwear example has predefined messages which can be selected and sent. Also, the example uses GNSS module to acquire location from where the message is being sent. The location is appended at the end of every message in the form of a Google map link.
Code examples that demonstrate the usage of GSM/GNSS click with MikroElektronika hardware are available on Libstock.
CODE SNIPPET
The code snippet shows minimal initialisation code to work with the GSM/GNSS Click Board™ and AT engine.
01: static void system_init( void ) 02: { 03: // Set RST pin as output. 04: GPIO_Digital_Output( &GPIOC_ODR, _GPIO_PINMASK_2 ); 05: 06: UART3_Init_Advanced( 07: GSM_GNSS_MODEM_BAUD_RATE, 08: _UART_8_BIT_DATA, 09: _UART_NOPARITY, 10: _UART_ONE_STOPBIT, 11: &_GPIO_MODULE_USART3_PD89 12: ); 13: 14: // Timer initialisation. Timer is used by AT engine. 15: RCC_APB1ENR.TIM2EN = 1; 16: TIM2_CR1.CEN = 0; 17: TIM2_PSC = 1; 18: TIM2_ARR = 35999; 19: NVIC_IntEnable(IVT_INT_TIM2); 20: TIM2_DIER.UIE = 1; 21: TIM2_CR1.CEN = 1; 22: 23: // UART interrupt initialisation. 24: RXNEIE_USART3_CR1_bit = 1; 25: NVIC_IntEnable( IVT_INT_USART3 ); 26: 27: EnableInterrupts(); 28: 29: at_init( 30: gsm_gnss_click_default_event, 31: UART3_Write, 32: at_buffer, 33: AT_BUFFER_SIZE 34: ); 35: }
GSM/GNSS Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.