gnssmax 2.0.0.0
Main Page

GNSS MAX click

GNSS MAX Click is a compact add-on board that provides fast positioning capability. This board features the MAX-M10S, an ultra-low-power GNSS receiver for high-performance asset-tracking from u-blox. The MAX-M10S supports the concurrent reception of four GNSS (GPS, GLONASS, Galileo, and BeiDou), which maximizes the position availability, particularly under challenging conditions such as in deep urban canyons. It is built on the u-blox M10 GNSS platform, which provides exceptional sensitivity and acquisition times for all L1 GNSS systems. It also comes with a configurable host interface, and advanced jamming and spoofing detection.

click Product page


Click library

  • Author : Luka Filipovic
  • Date : Jun 2021.
  • Type : UART type

Software Support

We provide a library for the GNSSMAX 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 GNSSMAX Click driver.

Standard key functions :

Example key functions :

Example Description

‍This example showcases device abillity to read data outputed

from device and show it's coordinates and altitude when connected.

The demo application is composed of two sections :

Application Init

‍Initializes host communication modules, additioaln GPIO's used

for control of device and resets device.

void application_init ( void )
{
log_cfg_t log_cfg;
gnssmax_cfg_t gnssmax_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
Delay_ms ( 500 );
// Click initialization.
gnssmax_cfg_setup( &gnssmax_cfg );
GNSSMAX_MAP_MIKROBUS( gnssmax_cfg, MIKROBUS_1 );
err_t init_flag = gnssmax_init( &gnssmax, &gnssmax_cfg );
if ( init_flag == UART_ERROR )
{
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
gnssmax_default_cfg( &gnssmax );
log_info( &logger, " Application Task " );
Delay_ms ( 500 );
}
@ GNSSMAX_OK
Definition gnssmax.h:154
#define GNSSMAX_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition gnssmax.h:92
void application_init(void)
Definition main.c:108
err_t last_error_flag
Definition main.c:61

Application Task

‍Reads data from device and wait's untill device is connected.

While not connected it will log '.'. When conneceted and received data for latitude, longitude, and altitude it will log that data parsed from "GNGGA" command.

void application_task ( void )
{
gnssmax_process();
err_t error_flag = gnssmax_element_parser( RSP_GNGGA, RSP_GNGGA_LATITUDE_ELEMENT,
latitude_data );
error_flag |= gnssmax_element_parser( RSP_GNGGA, RSP_GNGGA_LONGITUDE_ELEMENT,
longitude_data );
error_flag |= gnssmax_element_parser( RSP_GNGGA, RSP_GNGGA_ALTITUDE_ELEMENT,
altitude_data );
if ( error_flag == GNSSMAX_OK )
{
{
log_printf( &logger, "\r\n" );
}
log_printf( &logger, ">Latitude:\r\n - deg: %.2s \r\n - min: %s\r\n",
latitude_data, &latitude_data[ 2 ] );
log_printf( &logger, ">Longitude:\r\n - deg: %.3s \r\n - min: %s\r\n",
longitude_data, &longitude_data[ 3 ] );
log_printf( &logger, ">Altitude:\r\n - %sm\r\n",
altitude_data );
log_printf( &logger, "----------------------------------------\r\n" );
}
else if ( error_flag < GNSSMAX_ERROR )
{
{
log_printf( &logger, "Waiting for data " );
}
log_printf( &logger, "." );
}
if ( error_flag != GNSSMAX_ERROR )
{
last_error_flag = error_flag;
gnssmax_clear_app_buf( );
}
}
@ GNSSMAX_ERROR
Definition gnssmax.h:155
void application_task(void)
Definition main.c:146
#define RSP_GNGGA_LONGITUDE_ELEMENT
Definition main.c:47
#define RSP_GNGGA_LATITUDE_ELEMENT
Definition main.c:46
#define RSP_GNGGA_ALTITUDE_ELEMENT
Definition main.c:48
#define RSP_GNGGA
Definition main.c:42

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

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.