{"id":31419,"date":"2019-09-09T23:15:58","date_gmt":"2019-09-10T06:15:58","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=31419"},"modified":"2019-09-14T06:48:05","modified_gmt":"2019-09-14T13:48:05","slug":"tutorial-for-nmea-gps","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/tutorial-for-nmea-gps\/","title":{"rendered":"Tutorial for NMEA GPS"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What is NMEA GPS?<\/h2>\n\n\n\n<p>NMEA is an acronym for National Marine Electronics Association. All GPS manufacturers, including the cellular module vendors support the standard <strong>NMEA GPS<\/strong> data format. This data format enables application developers to use their GPS application across many different GPS devices. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What interfaces are supported for NMEA GPS?<\/h2>\n\n\n\n<p><strong>NMEA GPS<\/strong> is supported across variety of interfaces such as USB, RS-232, Bluetooth, UHF, Bluetooth and others.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How is NMEA GPS supported on cellular modules?<\/h2>\n\n\n\n<p>In cellular modules that supports GPS feature, <strong>NMEA GPS<\/strong> data is generally made available through one of the serial ports. In addition to modem and diagnostics data port, modules that support GPS feature will make NMEA GPS data available through the NMEA port.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to find the NMEA port in cellular Modules?<\/h2>\n\n\n\n<p>Once the manufacturer provided device drivers are installed on the host PC, the NMEA port can be located in the Device Manager.<\/p>\n\n\n\n<p>Examples of locating NMEA Ports,<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/m2msupport.net\/m2msupport\/find-nmea-port-in-sierra-wireless-modules\/\">Find NMEA port in Sierra Wireless Modules<\/a><\/li><li>Find NMEA port in Simcom modules<\/li><\/ul>\n\n\n\n<p>NMEA ports in other cellular module manufactures can be similarly located after installing the Windows device drivers that is provided by the manufacturer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to read data from the NMEA port?<\/h2>\n\n\n\n<p>To read NMEA GPS data,<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Find an application such as <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\">AT Command Tester<\/a> that can parse data from the NMEA port.<\/li><li>Connect the GPS device over the interface that is supported by the device.<\/li><li> Display <strong>NMEA GPS<\/strong> data read from the NMEA port.<\/li><\/ul>\n\n\n\n<p>Example of reading GPS data from NMEA port,<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/m2msupport.net\/m2msupport\/read-nmea-gps-data-from-sierra-wireless-modules\/\">Read <\/a><strong><a href=\"https:\/\/m2msupport.net\/m2msupport\/read-nmea-gps-data-from-sierra-wireless-modules\/\">NMEA GPS<\/a><\/strong><a href=\"https:\/\/m2msupport.net\/m2msupport\/read-nmea-gps-data-from-sierra-wireless-modules\/\"> data from Sierra Wireless Module<\/a> using the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\">AT Command Tester tool<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What is a NMEA sentence?<\/h2>\n\n\n\n<p>GPS devices transmit location information in NMEA standard. The ascii-formatted data are called sentences. There are many sentence types, each convey specific information about the GPS data.<\/p>\n\n\n\n<p>Example of NMEA Sentences,<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>GSV &#8211; Satellite Data <ul><li>$GPGSV,3,3,12,27,21,097,29,30,16,264,31,46,,,36,06,,,*7E <\/li><\/ul><\/li><li>GGA &#8211; Fix Data <ul><li>$GPGGA,054851.0,3300.684396,N,11706.839925,W,1,08,0.7,180.5,M,-25.0,M,,*61 <\/li><li>GSV &#8211; Satellite Data <\/li><\/ul><ul><li>$GPGSV,3,3,12,27,21,097,29,30,16,264,31,46,,,36,06,,,*7E <\/li><\/ul><\/li><li>GGA &#8211; Fix Data <ul><li>$GPGGA,054851.0,3300.684396,N,11706.839925,W,1,08,0.7,180.5,M,-25.0,M,,*61 <\/li><\/ul><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to parse GPS information from NMEA data?<\/h2>\n\n\n\n<p>By using a tool such as <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\">AT Command Tester<\/a>, the GPS data can be parses from the NMEA sentences. The tool displays the parsed GPS data from the NMEA sentences.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"853\" height=\"735\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/09\/nmea_overview.png\" alt=\"\" class=\"wp-image-31835\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/09\/nmea_overview.png 853w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/09\/nmea_overview-300x258.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/09\/nmea_overview-768x662.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2019\/09\/nmea_overview-600x517.png 600w\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" \/><\/figure>\n\n\n\n<p>Let us look at on how to get some of the key GPS data from the NMEA sentences,  <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Latitude<\/strong> &#8211; Read the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-gps-latitude-from-nmea-gpgga-sentence\/\">NMEA Latitude<\/a> in degrees.<\/li><li><strong>Longitude<\/strong> &#8211; Read the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-gps-longitude-from-the-nmea-gpgga-sentence\/\">NMEA Longitude<\/a> in degrees.<\/li><li><strong>Altitude<\/strong> &#8211; Read the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-gps-altitude-from-the-nmea-gpgga-sentence\/\">NMEA Altitude<\/a> data in meters.<\/li><li><strong>GPS Fix quality<\/strong> &#8211; Read the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-gps-fix-quality-from-the-gpgga-sentence\/\">NMEA GPS Fix Quality<\/a>, it returns if GPS fix has been acquired.<\/li><li><strong>Satellites in view<\/strong> &#8211; Read the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-number-of-satellites-in-view-from-the-gpgga-sentence\/\">number of satellites <\/a>in view for the GPS device.<\/li><li><strong>GPS Fix Mode<\/strong> &#8211; Read the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-gps-fix-mode-from-nmea-gpgsa-sentence\/\">GPS Fix Mode<\/a> &#8211; No Fix, 2D, 3D.<\/li><li><strong>HDOP <\/strong>&#8211; Get the<a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-nmea-hdoprelative-accuracy-from-the-nmea-gpgga-sentence\/\"> Horizontal Dilution of Precisio<\/a>n (HDOP).<\/li><li><strong>GPS Mod<\/strong>e &#8211; Get the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-gps-mode-manual-or-automatic-from-the-nmea-gpgsa-sentence\/\">GPS Mode<\/a> &#8211; Manual or Automatic.<\/li><li><strong>Ground speed<\/strong> &#8211; Get the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-gps-ground-speed-from-the-nmea-gpvtg-sentence\/\">GPS Ground Speed<\/a> in km\/hr.<\/li><li><strong>Overground speed<\/strong> &#8211; Get the<a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-gps-overground-speed-from-the-gpvtg-sentence\/\"> GPS Overground speed<\/a> in knots.<\/li><li><strong>Satellite ID <\/strong>&#8211; Get the<a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-gps-satellite-id-from-the-nmea-gpgsv-sentence\/\"> Satellite IDs<\/a> in the view of the GPS device.<\/li><li><strong>Satellite Azimuth<\/strong> &#8211; Get the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-azimuth-of-satellites-in-view-from-the-nmea-gpgsv-sentence\/\">Azimuths of Satellites<\/a> in view in degrees.<\/li><li><strong>Satellite Elevation<\/strong> &#8211; Get the<a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-elevation-of-satellites-in-view-from-the-gpgsv-sentence\/\"> elevation of the satellites<\/a> in view in degrees.<\/li><li><strong>Satellite signal-to-noise ratio<\/strong> &#8211; Get the <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-signal-to-noise-ratio-of-the-satellites-in-view-from-the-nmea-gpgsv-sentence\/\">SNR of the satellites<\/a> in view in db.<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is NMEA GPS? NMEA is an acronym for National Marine Electronics Association. All GPS manufacturers, including the cellular module vendors support the standard NMEA GPS data format. This data format enables application developers to use their GPS application across &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/tutorial-for-nmea-gps\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"software_howto.php","meta":{"footnotes":""},"class_list":["post-31419","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/31419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=31419"}],"version-history":[{"count":36,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/31419\/revisions"}],"predecessor-version":[{"id":31838,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/31419\/revisions\/31838"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=31419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}