{"id":2829,"date":"2023-04-13T16:05:46","date_gmt":"2023-04-13T15:05:46","guid":{"rendered":"https:\/\/avionicsduino.com\/?page_id=2829"},"modified":"2024-02-25T21:53:44","modified_gmt":"2024-02-25T20:53:44","slug":"u-blox-neo-m9n-gnss-configuration","status":"publish","type":"page","link":"https:\/\/avionicsduino.com\/index.php\/en\/u-blox-neo-m9n-gnss-configuration\/","title":{"rendered":"U-Blox NEO-M9N GNSS Configuration"},"content":{"rendered":"\n<p style=\"font-size:10px\">(U-Blox NEO-M9N GNSS Configuration: Last updated by Benjamin on February 25, 2024)<\/p>\n\n\n\n<p><a href=\"https:\/\/avionicsduino.com\/index.php\/en\/the-ahrs\/\" title=\"AvionicsDuino AHRS\">Our AHRS<\/a> uses the NEO-M9N GNSS receiver from the Swiss manufacturer U-Blox. This receiver provides exceptional sensitivity and acquisition times. It simultaneously uses four satellite constellations: GPS, Galileo, Beidou, and Glonass. Combined with jamming and spoofing events detection and advanced filtering algorithms, the high number of visible satellites (allowing the receiver to select the best signals) provides the system with meter-level accuracy.<\/p>\n\n\n\n<p>The NEO-M9N may communicate with its environment by simultaneously using one or more of the following ports: USB-C, UART, I2C, and SPI.<\/p>\n\n\n\n<p>This receiver uses standard NMEA and RTCM protocols and the proprietary UBX protocol. The latter is bidirectional. It allows the output of UBX messages used for navigation (these messages are the equivalent of NMEA sentences well known to GPS users) and the reception of UBX configuration messages from a computer or a microcontroller. The term \u201cmessage\u201d is omnipresent in the U-Blox GNSS ecosystem. This receiver has countless configuration options to meet the needs of all users. This significant number of functionalities gives it an apparent complexity that can be disconcerting at first sight. The volume of documentation (several hundred pages) contributes to this impression of complexity.<\/p>\n\n\n\n<p>This page aims to allow the reader to configure his GNSS receiver easily using the u-Center software from U-Blox to integrate it seamlessly into the AHRS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing the U-Center software<\/h3>\n\n\n\n<p>First, download the U-Center version adapted to the NEO-M9N from <a href=\"https:\/\/www.u-blox.com\/en\/product\/u-center\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"u-center download page\">this page<\/a>. The installation program guides you through the necessary steps for a successful program installation. The reader can refer to the <a href=\"https:\/\/content.u-blox.com\/sites\/default\/files\/u-center_Userguide_UBX-13005250.pdf\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"u-center user guide\">U-Center user guide<\/a>.<\/p>\n\n\n\n<p>When the installer has completed, exit the U-Center. Connect the GNSS receiver to the computer via a USB-A to USB-C cable. The receiver is then powered through the USB port; it is automatically recognized by the computer, which displays the usual configuration messages for a new device until it is declared ready to use. Connect an antenna to the receiver, and wait for the fix (the blue LED starts flashing). A cold start takes no longer than one minute if the antenna has an unobstructed view of the sky. Then, launch the u-Center application.<\/p>\n\n\n\n<p>A slight peculiarity of this software: when the mouse pointer hovers over an option or a button, a description of this element may sometimes only be displayed at the bottom left of the window, in the status bar, without a tooltip message, so remember to look there.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Receiver connection to the U-Center<\/h3>\n\n\n\n<p><br><a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/Connexion-du-GNSS-au-U_Center.mp4\" title=\"Receiver connection to the U-Center\">This video<\/a> shows the U-Center interface in Windows and how to establish the connection, configure the transmission speed, and then view the sentences or messages sent by the GNSS receiver in the text console.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Essential options in the View menu<\/h3>\n\n\n\n<p>Five options in the View menu are particularly helpful.<\/p>\n\n\n\n<p>\u2013 The <em><strong>Text Console<\/strong><\/em> option can almost do without any comments. If the GNSS receiver has been configured (see below) to output NMEA sentences (messages) on the USB port (this is the case with the factory settings), they are displayed in plain text in this console. You can lock\/unlock scrolling with the small yellow padlock at the bottom left of the console. There are other buttons next to the padlock. See descriptions in the status bar when hovering over them with the mouse pointer. If the receiver is configured to output UBX messages on the USB port, these binary messages do not appear in the text console.<\/p>\n\n\n\n<p>\u2013 The <strong><em>Packet Console<\/em><\/strong> option displays the name, size, and nature (but not the content) of all the messages sent or received by the receiver on its USB port. In the initial factory configuration, we see in <a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/Packet-console.mp4\" title=\"Packet Console video\">this video<\/a> that there are only NMEA messages (a lot of them&#8230;) and no UBX messages. We will see below how to add UBX messages to one of the receiver outputs.<\/p>\n\n\n\n<p>\u2013 The <strong><em>Binary Console<\/em><\/strong> option displays all messages transmitted on the USB port in binary and ASCII formats.<\/p>\n\n\n\n<p>\u2013 The <strong><em>Message View<\/em><\/strong> option opens a window where all possible messages are listed. There are different sections for the NMEA and UBX protocols. For example, if you click in the NMEA protocol on the GxRMC message (active with the factory settings), the box on the right displays a complete dynamic decoding of the RMC sentences; see <a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/Message-view.mp4\" title=\"Message View video\">this video<\/a>. By default, the message output frequency is 1 HZ. We will see later how to modify this frequency.<\/p>\n\n\n\n<p>\u2013 The <strong><em>Generation 9 Configuration View<\/em><\/strong> option allows you to configure the GNSS receiver. It is better to use this option for the NEO-M9N rather than the plain Configuration View option, which should be reserved for previous generations of U-Blox receivers. Before exploring this option, there are two essential things to know. The first involves resetting the receiver to the factory settings, saving the current settings, and loading a previous configuration. The second one is about the receiver\u2019s memories.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Resetting the receiver to the factory settings<\/h3>\n\n\n\n<p>Just click on the button indicated by the red arrow in the figure below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"423\" height=\"178\" src=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/UBlox_Retour_Config_Usine.png\" alt=\"\" class=\"wp-image-2734\" style=\"width:423px;height:178px\" srcset=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/UBlox_Retour_Config_Usine.png 423w, https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/UBlox_Retour_Config_Usine-300x126.png 300w\" sizes=\"auto, (max-width: 423px) 85vw, 423px\" \/><\/figure>\n<\/div>\n\n\n<p>This option is very helpful. It allows you to perform all the configuration tests you want, with the assurance of being able to return to the initial configuration that works well if things go wrong.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Backing up and restoring a configuration<\/h3>\n\n\n\n<p>The two buttons to the left of the one indicated by the red arrow in the above figure are used to save the current receiver configuration in BBR\/Flash memory  (see below the paragraph about memories) or to revert to the last saved one (and only the last one). You can save multiple configurations, give them custom names, or load them using the <strong>Tools -&gt; Receiver Configuration<\/strong> menu. To do this, the reader can refer to pages 64-65 of the u-Center user guide. See the link to this guide at the bottom of this page.<\/p>\n\n\n\n<p>To quickly configure your GNSS using the configuration file that you can download from the <a href=\"https:\/\/avionicsduino.com\/index.php\/en\/the-ahrs\/\" title=\"AHRS page\">AHRS page<\/a>, you must open the Tools -&gt; Receiver Configuration menu, then select the desired file, and in the \u201cLoad configuration\u201d box, click on the button \u201cTransfer file -&gt; GNSS\u201d.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"409\" height=\"326\" src=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2024\/02\/LoadConfigurationGNSS.png\" alt=\"\" class=\"wp-image-3891\" srcset=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2024\/02\/LoadConfigurationGNSS.png 409w, https:\/\/avionicsduino.com\/wp-content\/uploads\/2024\/02\/LoadConfigurationGNSS-300x239.png 300w\" sizes=\"auto, (max-width: 409px) 85vw, 409px\" \/><\/figure>\n<\/div>\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-bright-red-color\">Warning<\/mark><\/strong>: the \u201cStore configuration into BBR\/Flash\u201d checkbox is grayed out and inactive. This checkbox is only usable by older GNSS models. Therefore, the configuration file is only loaded into volatile RAM memory after clicking the \u201cTransfer file -&gt; GNSS\u201d button. For the next time the GNSS is powered on, saving it in BBR\/Flash memory is essential.<\/p>\n\n\n\n<p>To do this, click the button where the green arrow points in the figure below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"451\" height=\"122\" src=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2024\/02\/SaveConfigGNSSFlash.png\" alt=\"\" class=\"wp-image-3894\" srcset=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2024\/02\/SaveConfigGNSSFlash.png 451w, https:\/\/avionicsduino.com\/wp-content\/uploads\/2024\/02\/SaveConfigGNSSFlash-300x81.png 300w\" sizes=\"auto, (max-width: 451px) 85vw, 451px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">NEO-M9N memories<\/h3>\n\n\n\n<p>There are four different memory types inside the receiver.<\/p>\n\n\n\n<p>\u2013 The <strong>ROM<\/strong> (Read Only Memory) contains a copy of the firmware.<\/p>\n\n\n\n<p>\u2013 The <strong>RAM<\/strong> (Random Access Memory) is where the system&rsquo;s temporary data or run-time data is stored. It also contains a copy of the firmware and the configuration parameters. It is erased when the receiver is switched off.<\/p>\n\n\n\n<p>\u2013 The <strong>BBR<\/strong> (Battery Backed RAM) is an area of RAM that continues to be powered by a battery after the receiver is turned off. Configuration parameters stored in BBR will be saved as long as the battery charge level allows it to power the BBR.<\/p>\n\n\n\n<p>\u2013 The <strong>Flash Memory<\/strong> is non-volatile. It also contains a copy of the firmware, which can be updated on the U-Blox site. This copy is used when the system is powered up. During boot, the copy in ROM will be used if a valid flash firmware image is undetected. Configuration parameters may also be stored in flash memory.<\/p>\n\n\n\n<p>When modifying configuration parameters, the U-Center allows selecting in which memory these modifications must be saved.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Adding or removing messages on a receiver output<\/h3>\n\n\n\n<p>In <a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2024\/02\/ActivationUBXNAVPVT.mp4\" title=\"Output messages configuration\">this video<\/a>, the UBX-NAV-PVT message is added to the UART1 output. Messages appearing in gray are not available on the NEO M9N model. Note a U-Center bug: the UART2 output options should be grayed out since only one UART is available on the NEOM9N.<\/p>\n\n\n\n<p>For the AHRS to work properly, several other UBX-NAV messages must also be activated on the UART1 output. The reader will find the list at the bottom of the AHRS page. Their activation is done in the same way.<\/p>\n\n\n\n<p>Concerning the UBX-NAV-PVT message, one of the most used, the curious reader can find its binary description on page 136 of the \u201cInterface Description Guide\u201d; a link to this guide is at the bottom of this page. The structure of UBX messages is explained in chapter 3 of this guide, page 43. The data types used are described in paragraph 3.3.5, page 44.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Modifying message output frequency<\/h3>\n\n\n\n<p>Demonstration in <a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/CFG_RATE.mp4\" title=\"Configuring output message frequency\">this video<\/a>. A CFG-RATE-MEAS configuration message (MEAS for measurements) must be sent to the receiver. \u201cMeasurements\u201d are calculated from received satellite data. By default, a measurement is performed every 1000 ms. Instead, in the video, we will ask the GNSS receiver to provide us with 20 measurements per second,  so one measurement every 50 ms. Also, by default, the receiver sends a \u201cnavigation solution\u201d to the relevant output (i.e., a series of NMEA and\/or UBX messages containing the measurement results) at each measurement cycle. You can ask the GNSS to send a navigation solution only every x measurement cycles; this is the purpose of the CFG-RATE-NAV message. So if we also send a CFG-RATE-NAV message, for example, 5, we will have 20 measurements per second but only four navigation solutions per second, which would, in practice, be of no interest to our AHRS. We, therefore, leave CFG-RATE-NAV on 1 by default.<\/p>\n\n\n\n<p>At the end of the video, after sending the 50 ms CFG-RATE-MEAS message to the receiver (only in RAM), we actually obtain 20 UBX-NAV-PVT messages, 20 NMEA-RMC sentences and 20 NMEA- VTG sentences per second.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring outputs<\/h3>\n\n\n\n<p>There are many options for configuring outputs. In <a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/ConfigUART1_GNSS.mp4\" title=\"UART baud rate configuration\">this video<\/a>, we see how to configure the baud rate of the UART port, which is used in the AHRS for communication between the GNSS receiver and the Teensy 4.0 board. The other UART  settings are standard, and default options need not be changed. The curious reader may discover the settings of the different outputs, I2C and SPI, not used in the AHRS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">References<\/h3>\n\n\n\n<p><a href=\"https:\/\/content.u-blox.com\/sites\/default\/files\/u-center_Userguide_UBX-13005250.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">U-Center User Guide<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/Ublox-neo-m9n-chip-datasheet.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">NEO-M9N: u-blox M9 standard precision module Data sheet<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/sparkfun-gps-breakout-neo-m9n-ufl-schematics.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Sparkfun neo-m9n ufl breakout board schematics<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/NEO-M9N_Interface_description_UBX-19035940.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">NEO-M9N Interface description<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/avionicsduino.com\/wp-content\/uploads\/2023\/04\/NEO-M9N_Integration_manual_UBX-19014286.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">NEO-M9N Integration manual<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(U-Blox NEO-M9N GNSS Configuration: Last updated by Benjamin on February 25, 2024) Our AHRS uses the NEO-M9N GNSS receiver from the Swiss manufacturer U-Blox. This receiver provides exceptional sensitivity and acquisition times. It simultaneously uses four satellite constellations: GPS, Galileo, Beidou, and Glonass. Combined with jamming and spoofing events detection and advanced filtering algorithms, the &hellip; <a href=\"https:\/\/avionicsduino.com\/index.php\/en\/u-blox-neo-m9n-gnss-configuration\/\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;U-Blox NEO-M9N GNSS Configuration&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-2829","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/avionicsduino.com\/index.php\/wp-json\/wp\/v2\/pages\/2829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avionicsduino.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/avionicsduino.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/avionicsduino.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/avionicsduino.com\/index.php\/wp-json\/wp\/v2\/comments?post=2829"}],"version-history":[{"count":38,"href":"https:\/\/avionicsduino.com\/index.php\/wp-json\/wp\/v2\/pages\/2829\/revisions"}],"predecessor-version":[{"id":4031,"href":"https:\/\/avionicsduino.com\/index.php\/wp-json\/wp\/v2\/pages\/2829\/revisions\/4031"}],"wp:attachment":[{"href":"https:\/\/avionicsduino.com\/index.php\/wp-json\/wp\/v2\/media?parent=2829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}