{"id":4707,"date":"2020-02-19T09:35:00","date_gmt":"2020-02-19T09:35:00","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=4707"},"modified":"2020-02-19T09:35:02","modified_gmt":"2020-02-19T09:35:02","slug":"bluetooth-gateway-heartbeats","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/bluetooth-gateway-heartbeats\/","title":{"rendered":"Bluetooth Gateway Heartbeats"},"content":{"rendered":"\n<p>If you are rolling out many gateways, there comes a time when you start wondering if all of them are working and connected. While it&#8217;s possible to write a server side script\/code to detect whether or not data has been received from the gateway in the last n seconds\/minutes, this doesn&#8217;t work when there aren&#8217;t any Bluetooth devices in the vicinity of some gateways which won&#8217;t be sending payloads.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-1024x1024.jpg\" alt=\"\" class=\"wp-image-3183\" width=\"256\" height=\"256\" srcset=\"https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-1024x1024.jpg 1024w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-150x150.jpg 150w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-300x300.jpg 300w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller-768x768.jpg 768w, https:\/\/www.beaconzone.co.uk\/blog\/wp-content\/uploads\/2019\/02\/igs01s_smaller.jpg 1200w\" sizes=\"(max-width: 256px) 85vw, 256px\" \/><figcaption>iGS01S Bluetooth WiFi Gateway<\/figcaption><\/figure><\/div>\n\n\n\n<p>The <a href=\"https:\/\/www.beaconzone.co.uk\/INGICS\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"INGICS gateways (opens in a new tab)\">INGICS gateways<\/a> have a way of setting up a heartbeat that&#8217;s a dummy payload used to indicate a gateway is working and connected. It&#8217;s set up by telnet to the gateway and issuing the following command followed by a reboot:<\/p>\n\n\n\n<p>&gt; SYS HEARTBEAT 1<br>&gt; REBOOT<\/p>\n\n\n\n<p>The &#8216;1&#8217; signifies every 1 minute and allows setting up to 255 minutes. A $HBRP data payload is to the server in the form:<\/p>\n\n\n\n<p>$HBRP,FECE97089146,FECE97089146,-127,00000000<\/p>\n\n\n\n<p>The heartbeat functionality is available on firmware IGS01-v2.0.0 and IGS01S-v2.0.0 or later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are rolling out many gateways, there comes a time when you start wondering if all of them are working and connected. While it&#8217;s possible to write a server side script\/code to detect whether or not data has been received from the gateway in the last n seconds\/minutes, this doesn&#8217;t work when there aren&#8217;t &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/bluetooth-gateway-heartbeats\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bluetooth Gateway Heartbeats&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76,77,205,109],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4707"}],"collection":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=4707"}],"version-history":[{"count":6,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4707\/revisions"}],"predecessor-version":[{"id":4713,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4707\/revisions\/4713"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=4707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=4707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=4707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}