{"id":1,"date":"2018-06-14T22:39:34","date_gmt":"2018-06-14T22:39:34","guid":{"rendered":"https:\/\/www.funwithelectronics.com\/wordpress\/?p=1"},"modified":"2018-06-17T18:21:56","modified_gmt":"2018-06-17T18:21:56","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/2018\/06\/14\/hello-world\/","title":{"rendered":"AIS Packets (Automatic Identification System)"},"content":{"rendered":"<p>AIS signals are GFSK modulated signals at 161.975 or 162.025 MHz. Packets are sent with a preamble and the HDLC packet protocol is used. Below are pictures showing frequency vs time plots.<\/p>\n<p><a href=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/ais-1.png\"><img loading=\"lazy\" class=\"alignnone wp-image-24 size-full\" src=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/ais-1.png\" alt=\"\" width=\"1383\" height=\"334\" srcset=\"https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-1.png 1383w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-1-300x72.png 300w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-1-768x185.png 768w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-1-1024x247.png 1024w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/demod_gfsk_for_blog.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-35\" src=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/demod_gfsk_for_blog.png\" alt=\"\" width=\"1113\" height=\"506\" srcset=\"https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/demod_gfsk_for_blog.png 1113w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/demod_gfsk_for_blog-300x136.png 300w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/demod_gfsk_for_blog-768x349.png 768w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/demod_gfsk_for_blog-1024x466.png 1024w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p>Download flow graph here: <a href=\"https:\/\/www.funwithelectronics.com\/wordpress\/other_data\/demod_gfsk_for_blog.grc\">https:\/\/www.funwithelectronics.com\/wordpress\/other_data\/demod_gfsk_for_blog.grc<\/a><\/p>\n<p>When connecting the <em>sync_and_strobe<\/em> (<a href=\"https:\/\/github.com\/rubund\/capture-tools\/tree\/master\/gr-capture_tools\">gr-capture_tools<\/a>) block to this signal and configuring it correctly, we get this:<\/p>\n<p><a href=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/ais.png\"><img loading=\"lazy\" class=\"alignnone wp-image-9 size-full\" src=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/ais.png\" alt=\"\" width=\"1385\" height=\"314\" srcset=\"https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais.png 1385w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-300x68.png 300w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-768x174.png 768w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-1024x232.png 1024w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p>Zoomed in on the first part:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/ais-2.png\"><img loading=\"lazy\" class=\"alignnone wp-image-25 size-full\" src=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/ais-2.png\" alt=\"\" width=\"1360\" height=\"317\" srcset=\"https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-2.png 1360w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-2-300x70.png 300w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-2-768x179.png 768w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/ais-2-1024x239.png 1024w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/sync_and_strobe.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-27\" src=\"https:\/\/www.funwithelectronics.com\/wordpress\/wp-content\/uploads\/2018\/06\/sync_and_strobe.png\" alt=\"\" width=\"347\" height=\"199\" srcset=\"https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/sync_and_strobe.png 347w, https:\/\/www.funwithelectronics.com\/blog\/wp-content\/uploads\/2018\/06\/sync_and_strobe-300x172.png 300w\" sizes=\"(max-width: 347px) 85vw, 347px\" \/><\/a><\/p>\n<p>AIS packets are &#8220;encoded&#8221; in multiple steps:<\/p>\n<ol>\n<li>The fields of various sizes are packed together as a bit sequence.<\/li>\n<li>Every 8 bit bundle is then reversed<\/li>\n<li>Bit-stuffing is performed: Every 111111 is converted to 1111101<\/li>\n<li>The stream is inverted, 1101 becomes 0010<\/li>\n<li>Differential encoding is performed. So every 1 becomes a transition, every 0 causes no change<\/li>\n<li>Then the header and end word are added at the start and the end.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>AIS signals are GFSK modulated signals at 161.975 or 162.025 MHz. Packets are sent with a preamble and the HDLC packet protocol is used. Below are pictures showing frequency vs time plots. Download flow graph here: https:\/\/www.funwithelectronics.com\/wordpress\/other_data\/demod_gfsk_for_blog.grc When connecting the sync_and_strobe (gr-capture_tools) block to this signal and configuring it correctly, we get this: Zoomed in &hellip; <a href=\"https:\/\/www.funwithelectronics.com\/blog\/index.php\/2018\/06\/14\/hello-world\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;AIS Packets (Automatic Identification System)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1"}],"collection":[{"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":15,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.funwithelectronics.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}