{"id":2886,"date":"2022-04-14T15:04:29","date_gmt":"2022-04-14T15:04:29","guid":{"rendered":"https:\/\/open-boat-projects.org\/?page_id=2886"},"modified":"2023-08-12T08:05:49","modified_gmt":"2023-08-12T08:05:49","slug":"ais-empfaenger-gns5851","status":"publish","type":"page","link":"https:\/\/open-boat-projects.org\/en\/ais-empfaenger-gns5851\/","title":{"rendered":"AIS receiver GNS5851"},"content":{"rendered":"<p>Udo found an interesting AIS receiver module for us that can be used to receive AIS signals. The data is output from the GNS5851 as an NMEA0183 data stream via a serial interface.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2887\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_1-300x175.png\" alt=\"\" width=\"200\" height=\"117\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_1-300x175.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_1-18x12.png 18w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_1.png 532w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/p>\n<p>Fig: GNS5851 AIS receiver (<a href=\"https:\/\/www.gns-electronics.de\/\" target=\"_blank\" rel=\"noopener\">gns-electronics.de<\/a>)<\/p>\n<p>The AIS receiver module GNS5851 has the following technical properties:<\/p>\n<ul>\n<li>Standard AIS NMEA1083 data stream<\/li>\n<li>Frequency: <span id=\"ContentPlaceHolder1_lblValues\">161.95 to 162.05MHz<\/span><\/li>\n<li>Channels A, B or A &amp; B (hopping)<\/li>\n<li>UART: 8N1, 115200 baud<\/li>\n<li>Sensitivity -117dBm<\/li>\n<li>Antenna Impedance: 50 ohms<\/li>\n<li>Supply voltage : 3.3V<\/li>\n<li>Power consumption : 20mA<\/li>\n<li>Logic level: 3.3V<\/li>\n<li>Temperature range: -40\u202680\u00b0C<\/li>\n<li>Shock resistant up to 50g<\/li>\n<li>Dimensions 26 x 15 x 3.3mm<\/li>\n<\/ul>\n<p>The exact technical data can be found here: <a href=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851-AIS-receiver-datasheet_0.91.pdf\" target=\"_blank\" rel=\"noopener\">GNS5851-AIS-receiver-datasheet_0.91<\/a><\/p>\n<p>The AIS receiver consists of an HF receiving unit, an AIS decoder and a CPU for data processing and communication. The module is very compact and contains all the important components for receiving AIS signals. You only need a power supply, an AIS antenna and can receive the NMEA telegrams of the AIS signals via a serial interface.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2888\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_2-300x106.png\" alt=\"\" width=\"600\" height=\"213\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_2-300x106.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_2-1024x363.png 1024w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_2-768x273.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_2-18x6.png 18w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_2.png 1510w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig: Block diagram (gns-electronics.de)<\/p>\n<p>The module can be controlled via 10 pins:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2889\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_3-300x184.png\" alt=\"\" width=\"500\" height=\"307\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_3-300x184.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_3-1024x629.png 1024w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_3-768x472.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_3-18x12.png 18w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/GNS5851_3.png 1238w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>Fig. Pin arrangement (gns-electronics.de)<\/p>\n<table style=\"height: 360px; width: 51.269%; border-collapse: collapse; border-color: #000000;\">\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; background-color: #9c9c9c; height: 24px;\">Pin code<\/td>\n<td style=\"width: 10.5692%; background-color: #9c9c9c; height: 24px;\">meaning<\/td>\n<td style=\"width: 12.8898%; background-color: #9c9c9c; height: 24px;\">I\/O<\/td>\n<td style=\"width: 20.794%; background-color: #9c9c9c; height: 24px;\">description<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">1<\/td>\n<td style=\"width: 10.5692%; height: 24px;\">RF GND<\/td>\n<td style=\"width: 12.8898%; height: 24px;\">ANT-G<\/td>\n<td style=\"width: 20.794%; height: 24px;\">antenna ground<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">2<\/td>\n<td style=\"width: 10.5692%; height: 24px;\">RF input<\/td>\n<td style=\"width: 12.8898%; height: 24px;\">ANTI<\/td>\n<td style=\"width: 20.794%; height: 24px;\">antenna input<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">3<\/td>\n<td style=\"width: 10.5692%; height: 24px;\">GND<\/td>\n<td style=\"width: 12.8898%; height: 24px;\">G<\/td>\n<td style=\"width: 20.794%; height: 24px;\">Dimensions<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">4<\/td>\n<td style=\"width: 10.5692%; height: 24px;\">VDD<\/td>\n<td style=\"width: 12.8898%; height: 24px;\">P<\/td>\n<td style=\"width: 20.794%; height: 24px;\">Power supply 3.3V<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">5<\/td>\n<td style=\"width: 10.5692%; height: 24px;\">F_IND<\/td>\n<td style=\"width: 12.8898%; height: 24px;\">O<\/td>\n<td style=\"width: 20.794%; height: 24px;\">frame indicator<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">6<\/td>\n<td style=\"width: 10.5692%; height: 24px;\">RESET<\/td>\n<td style=\"width: 12.8898%; height: 24px;\">I<\/td>\n<td style=\"width: 20.794%; height: 24px;\">Reset input (low active)<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\"><\/td>\n<td style=\"width: 10.5692%; height: 24px;\"><\/td>\n<td style=\"width: 12.8898%; height: 24px;\"><\/td>\n<td style=\"width: 20.794%; height: 24px;\">unused<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">8<\/td>\n<td style=\"width: 10.5692%; height: 24px;\"><\/td>\n<td style=\"width: 12.8898%; height: 24px;\"><\/td>\n<td style=\"width: 20.794%; height: 24px;\">unused<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">9<\/td>\n<td style=\"width: 10.5692%; height: 24px;\">UART TX<\/td>\n<td style=\"width: 12.8898%; height: 24px;\">O<\/td>\n<td style=\"width: 20.794%; height: 24px;\">TX transmit NMEA0183<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">10<\/td>\n<td style=\"width: 10.5692%; height: 24px;\">UART RX<\/td>\n<td style=\"width: 12.8898%; height: 24px;\">I<\/td>\n<td style=\"width: 20.794%; height: 24px;\">RX receiving<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">11<\/td>\n<td style=\"width: 10.5692%; height: 24px;\"><\/td>\n<td style=\"width: 12.8898%; height: 24px;\"><\/td>\n<td style=\"width: 20.794%; height: 24px;\">unused<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">12<\/td>\n<td style=\"width: 10.5692%; height: 24px;\"><\/td>\n<td style=\"width: 12.8898%; height: 24px;\"><\/td>\n<td style=\"width: 20.794%; height: 24px;\">unused<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">13<\/td>\n<td style=\"width: 10.5692%; height: 24px;\"><\/td>\n<td style=\"width: 12.8898%; height: 24px;\"><\/td>\n<td style=\"width: 20.794%; height: 24px;\">unused<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.01595%; height: 24px;\">14<\/td>\n<td style=\"width: 10.5692%; height: 24px;\"><\/td>\n<td style=\"width: 12.8898%; height: 24px;\"><\/td>\n<td style=\"width: 20.794%; height: 24px;\">unused<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Tab. Pin assignment<\/p>\n<h1>Circuit example with ESP32<\/h1>\n<p>The connection of the GNS5851 AIS receiver is very easy, since only a few connections are required. Since the ESP32 still has enough power reserves left, the following functions have been included in the circuit:<\/p>\n<ul>\n<li>Measurement of the 12V board supply voltage<\/li>\n<li>Temperature measurement with DS18B20<\/li>\n<li>Buzzer for alarm signal<\/li>\n<li>NMEA2000 CAN line driver<\/li>\n<\/ul>\n<p><a href=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/ESP32WifiAis_GNS5851.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2919\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/ESP32WifiAis_GNS5851-300x212.png\" alt=\"\" width=\"800\" height=\"566\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/ESP32WifiAis_GNS5851-300x212.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/ESP32WifiAis_GNS5851-1024x724.png 1024w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/ESP32WifiAis_GNS5851-768x543.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/ESP32WifiAis_GNS5851-1536x1086.png 1536w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/ESP32WifiAis_GNS5851-2048x1448.png 2048w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/ESP32WifiAis_GNS5851-18x12.png 18w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>Fig: AIS receiver circuit<\/p>\n<h1>software<\/h1>\n<p>In his workshop series, Andreas Koritnik has a project for a <a href=\"https:\/\/github.com\/AK-Homberger\/NMEA2000-AIS-Gateway\" target=\"_blank\" rel=\"noopener\"><strong>NMEA0183 to NMEA2000 AIS Gateway <\/strong><\/a>created for the ESP32. Originally, the AIS-NMEA0183 telegrams were read in via an RS422 interface. In our case, the transmit output pin 9 of the GNS5851 is connected to the serial receive pin GPIO16 of the ESP32. The software can then also be used for the GNS5851. Like the finished one <a href=\"https:\/\/github.com\/AK-Homberger\/NMEA2000-AIS-Gateway\/blob\/main\/MyAISToN2k-115200.ino.esp32.bin\" target=\"_blank\" rel=\"noopener\">Binary file for the GNS5851<\/a> Loaded into the ESP32 is described in detail on the project page.<\/p>\n<h1>casing<\/h1>\n<p>Udo also kindly provided CAD files for a case that you can see in the <a href=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Archiv.zip\">zip file<\/a> finds.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2911\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_NMEA2000_1-300x225.jpg\" alt=\"\" width=\"600\" height=\"450\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_NMEA2000_1-300x225.jpg 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_NMEA2000_1-16x12.jpg 16w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_NMEA2000_1.jpg 352w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig. Open housing AIS receiver<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2912\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_NMEA2000_2-229x300.jpg\" alt=\"\" width=\"600\" height=\"785\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_NMEA2000_2-229x300.jpg 229w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_NMEA2000_2-9x12.jpg 9w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_NMEA2000_2.jpg 269w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig. Finished AIS receiver<\/p>\n<h1>antenna<\/h1>\n<p>An AIS antenna can be set up very easily by yourself. You only need a few materials that can be easily processed. The idea came from Andreas Heger and became one of his website <a href=\"http:\/\/www.ankahe.de\/Notantenne.html\" target=\"_blank\" rel=\"noopener\">AIS emergency backup antenna<\/a> removed.<\/p>\n<table style=\"width: 41.4781%; border-collapse: collapse; border-style: hidden;\">\n<tbody>\n<tr>\n<td style=\"width: 5.6338%; border-style: hidden;\"><\/td>\n<td style=\"width: 7.32394%;\" rowspan=\"5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2895\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_Antenne_Aufbau-98x300.png\" alt=\"\" width=\"98\" height=\"300\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_Antenne_Aufbau-98x300.png 98w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_Antenne_Aufbau-4x12.png 4w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/AIS_Antenne_Aufbau.png 146w\" sizes=\"auto, (max-width: 98px) 100vw, 98px\" \/><\/td>\n<td style=\"width: 1.40845%; border-style: hidden;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 5.6338%; border-style: hidden;\">Radiator made of 10 mm copper tube<\/td>\n<td style=\"width: 1.40845%; border-style: hidden;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 5.6338%; border-style: hidden;\"><\/td>\n<td style=\"width: 1.40845%; border-style: hidden;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 5.6338%; border-style: hidden;\"><\/td>\n<td style=\"width: 1.40845%; border-style: hidden;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 5.6338%; border-style: hidden;\">Quarter Wave Matching Line (RG213)<\/td>\n<td style=\"width: 1.40845%; border-style: hidden;\">Feeder of any length (RG213)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Fig: Antenna structure<\/p>\n<p>The lower part of the antenna (27 + 4.3 cm) consists of a piece of RG213 antenna cable. At a distance of 4.3 cm, the shield is cut open in the RG123 cable and a cable outlet (feed line) is attached to the side. At the lower end of the antenna cable, the inner conductor and the outer braided shield are electrically connected to each other. The lower part with the antenna cable then forms a quarter-wave matching line. A 91.5 cm long rod is then soldered to the upper end of the antenna cable. Andreas used a 10 mm copper tube as a rod. This is of course also possible and is much more stable. He ended up putting everything together in a plastic tube to weatherproof it. Theoretically, the antenna could also be made from a single long piece of RG213 antenna cable by removing the braided shield in the upper part. However, you then have to think about how to mechanically stabilize the flexible inner conductor of the upper part.<\/p>","protected":false},"excerpt":{"rendered":"<p>Udo found an interesting AIS receiver module for us that can be used to receive AIS signals. The data is output from the GNS5851 as an NMEA0183 data stream via a serial interface. Fig: GNS5851 AIS receiver (gns-electronics.de) The AIS receiver module GNS5851 has the following technical properties: Standard AIS NMEA1083 Data stream Frequency: 161.95 to 162.05 MHz Channels A, B or A &amp; B (hopping)... <a href=\"https:\/\/open-boat-projects.org\/en\/ais-empfaenger-gns5851\/\" class=\"more-link\">Read more <span class=\"screen-reader-text\">AIS receiver GNS5851<\/span><\/a><\/p>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-2886","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/pages\/2886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/comments?post=2886"}],"version-history":[{"count":23,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/pages\/2886\/revisions"}],"predecessor-version":[{"id":5110,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/pages\/2886\/revisions\/5110"}],"wp:attachment":[{"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/media?parent=2886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/categories?post=2886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/tags?post=2886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}