TOP Contributors

  1. MIKROE (2658 codes)
  2. Alcides Ramos (355 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 (136935 times)
  2. FAT32 Library (70055 times)
  3. Network Ethernet Library (56013 times)
  4. USB Device Library (46328 times)
  5. Network WiFi Library (41936 times)
  6. FT800 Library (41259 times)
  7. GSM click (29046 times)
  8. mikroSDK (26451 times)
  9. PID Library (26435 times)
  10. microSD click (25391 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

GNSS 7 click

Rating:

5

Author: MIKROE

Last Updated: 2019-12-30

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: GPS/GNSS

Downloaded: 3709 times

Not followed.

License: MIT license  

Determine your current position with GNSS 7 click. It carries the NEO-M9N GNSS receiver module from u-blox.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "GNSS 7 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "GNSS 7 click" changes.

Do you want to report abuse regarding "GNSS 7 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

GNSS 7 click

GNSS 7 click

Native view of the GNSS 7 click board.

View full image
GNSS 7 click

GNSS 7 click

Front and back view of the GNSS 7 click board.

View full image

Library Description

Library carries generic command parser adopted for GPS-MNEA command based modules. Generic parser

Key functions:

  • gnss7_cmdSingle - Sends provided command to the module
  • gnss7_setHandle - Handler assignation to the provied command
  • gnss7_modulePower - Turn on module

Examples description

The application is composed of three sections :

  • System Initialization - Initializes all necessary GPIO pins, UART used for the communcation with GSM module and UART used for infromation logging
  • Application Initialization
  • Initializes driver, power on module and sends few command for the default module configuration
  • Application Task - running in parallel core state machine and checks for call flag. If call detected parser will hang up call.
void application_task ( )
{
    char *p_lat;
    char *p_long;
    char *p_alt;
    char rsp_com[ 50 ] = {0};

    gnss7_process( );

    if ( timer_cnt > 5000 )
    {
        p_flag++;
        if ( p_flag > 2 )
        {
            p_flag = 0;
        }
        timer_cnt = 0;
        disp_flag = 1;
    }

    if ( ( p_flag == 0 ) && ( disp_flag == 1) )
    {
        mikrobus_logWrite( " ---------------------------------------- ", _LOG_LINE );
        p_lat = gnss7_gps_parser( &demo_buf[ 0 ], &demo_cmd[ 0 ], 2 );

        if ( p_lat == 0 )
        {
            mikrobus_logWrite( " Latitude : No data available!", _LOG_LINE );
        }
        else
        {
            strcpy( &rsp_com[ 0 ], p_lat );
            mikrobus_logWrite( " Latitude : ", _LOG_TEXT );
            mikrobus_logWrite( rsp_com, _LOG_LINE );
        }
        disp_flag = 0;
        mikrobus_logWrite( " ---------------------------------------- ", _LOG_LINE );
    }

    if ( ( p_flag == 2 ) && ( disp_flag == 1) )
    {
        mikrobus_logWrite( " ---------------------------------------- ", _LOG_LINE );
        p_alt = gnss7_gps_parser( &demo_buf[ 0 ], &demo_cmd[ 0 ], 9 );
        if ( p_alt == 0 )
        {
            mikrobus_logWrite( " Altitude : No data available!", _LOG_LINE );
        }
        else
        {
            strcpy( &rsp_com[ 0 ], p_alt );
            mikrobus_logWrite( " Altitude : ", _LOG_TEXT );
            mikrobus_logWrite( rsp_com, _LOG_LINE );
        }
        disp_flag = 0;
        mikrobus_logWrite( " ---------------------------------------- ", _LOG_LINE );
    }

    if ( ( p_flag == 1 ) && ( disp_flag == 1 ) )
    {
        mikrobus_logWrite( " ---------------------------------------- ", _LOG_LINE );
        p_long = gnss7_gps_parser( &demo_buf[ 0 ], &demo_cmd[ 0 ], 4 );
        if ( p_long == 0 )
        {
            mikrobus_logWrite( " Longitude : No data available!", _LOG_LINE );
        }
        else
        {
            strcpy( &rsp_com[ 0 ], p_long );
            mikrobus_logWrite( " Longitude : ", _LOG_TEXT );
            mikrobus_logWrite( rsp_com, _LOG_LINE );
        }
        disp_flag = 0;
        mikrobus_logWrite( " ---------------------------------------- ", _LOG_LINE );
    }
}

All additional functions such as timer initialization and default handler.

Notes GPS:

  • The GPS module returns data in the form of NMEA responses
  • For example, we used the GGA response

For parsing, use the GPS Parser function to send the following form of arguments: The name of the NMEA response that you want to parse, the position of the data that you need. As a response - you will get a separate buffer with the requested data

Other mikroE Libraries used in the example:

  • UART
  • String
  • Conversions

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click 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.

ALSO FROM THIS AUTHOR

SRAM click

0

SRAM Click presents additional 1Mbit SRAM memory that can be added to device.

[Learn More]

Proximity 16 click

0

Proximity 16 Click is a compact add-on board that contains a close-range proximity sensing solution. This board features the VL53L5CX, a Time-of-Flight (ToF) multizone ranging sensor from STMicroelectronics. The VL53L5CX integrates a SPAD array, physical infrared filters, and diffractive optical elements (DOE) to achieve the best-ranging performance in various ambient lighting conditions with different cover glass materials. It allows absolute distance measurement, whatever the target color and reflectance, provides accurate ranging up to 400cm, and can work at fast speeds (60Hz). Also, multizone distance measurements are possible with either 4x4 or 8x8 separate zones with broad 63° diagonal software-configurable Field-of-View (FoV).

[Learn More]

GNSS RTK click

0

GNSS RTK Click is a compact add-on board used to enhance the precision of position data derived from satellite-based positioning systems. This board features the ZED-F9P, a multi-band GNSS module with integrated multi-band Real Time Kinematics (RTK) technology offering centimeter-level accuracy from U-blox. This module concurrently uses GNSS signals from all four GNSS constellations (GPS, GLONASS, Galileo, and BeiDou), and provides multi-band RTK with fast convergence times, reliable performance, and easy integration. It also includes moving base support, allowing both base and rover to move while computing a centimeter-level accurate position between them.

[Learn More]