{"id":5390,"date":"2016-05-14T20:12:03","date_gmt":"2016-05-15T01:12:03","guid":{"rendered":"http:\/\/w0ep.us\/OM\/?p=5390"},"modified":"2016-05-14T20:38:40","modified_gmt":"2016-05-15T01:38:40","slug":"pause-for-emergency","status":"publish","type":"post","link":"http:\/\/w0ep.us\/OM\/?p=5390","title":{"rendered":"Pause for emergency"},"content":{"rendered":"<p>[Today&#8217;s run: 7 miles, about 2 of that walking]<\/p>\n<p>Ok, I&#8217;m going to get serious about one of my projects.<\/p>\n<p>This is the project to have the emergency broadcast box pause the current reading and resume after the emergency thing is done.<\/p>\n<p>Yes, this may mess up the schedule a bit if the emergency thing goes off a lot or if one single emergency broadcast is longer than normal.\u00a0 But I don&#8217;t think either of those things will happen very often.\u00a0 Short emergency broadcasts happen at least once a month.<\/p>\n<p>One of the pieces I&#8217;m missing in my broadcast rack is a controller which can look for physical actions and do something about them.\u00a0 I&#8217;m going to start out by using a BeagleBone computer to do that.\u00a0 You may remember that my autonomous weather station project is using the BeagleBone.\u00a0 The thing is a $50 board which runs a flavor of linux.\u00a0 It has GPIO capability, which means I can watch for relay closures or read voltages.<\/p>\n<p>My Sage emergency broadcast box has a connection on the back which has a relay closure when the unit interrupts the regular broadcast and sends it&#8217;s own stuff.\u00a0 The Sage is the next-to-last thing in the broadcast chain, right before the transmitter.\u00a0 The BB will watch that relay closure.\u00a0 When it grounds out,\u00a0 I can do something.\u00a0 In the end I want to send a message over the local area network to the Rivendell computer to pause the playout.\u00a0\u00a0 But I&#8217;m going to start by just sending an email to myself whenever the Sage interrupts the broadcast.\u00a0 That will help me prove that it actually works because I should eventually get an email and I can go look at the online log in the Sage and see if they line up.<\/p>\n<p>Ok, so first up is to get the BB configured for the GPIO relay closure.\u00a0 Next, and in parallel is to get the BB working for sending an email.<\/p>\n<p>I found the PDF of the Sage manual and here is the information I need about where to hook the BB to the Sage.\u00a0 You&#8217;ll notice there are two physical connections for ENC RLY.\u00a0 I take this to mean that I run two wires to those two connections.\u00a0 When the Sage is &#8220;encoding&#8221;, sending an emergency alert over the air,\u00a0 the two wires will be shorted together.\u00a0 Otherwise they will disconnected from each other.\u00a0 So my next trick is to find some online references to the BeagleBoneBlack GPIO that tells me how to monitor for this condition.<\/p>\n<p><a href=\"http:\/\/w0ep.us\/OM\/?attachment_id=5392\" rel=\"attachment wp-att-5392\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-5392\" src=\"http:\/\/w0ep.us\/OM\/wp-content\/uploads\/2016\/05\/EndecRelays-700x600.jpg\" alt=\"EndecRelays\" width=\"700\" height=\"600\" srcset=\"http:\/\/w0ep.us\/OM\/wp-content\/uploads\/2016\/05\/EndecRelays-700x600.jpg 700w, http:\/\/w0ep.us\/OM\/wp-content\/uploads\/2016\/05\/EndecRelays-768x658.jpg 768w, http:\/\/w0ep.us\/OM\/wp-content\/uploads\/2016\/05\/EndecRelays.jpg 913w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Today&#8217;s run: 7 miles, about 2 of that walking] Ok, I&#8217;m going to get serious about one of my projects. This is the project to have the emergency broadcast box pause the current reading and resume after the emergency thing is done. Yes, this may mess up the schedule a bit if the emergency thing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-5390","post","type-post","status-publish","format-standard","hentry","category-classic-book-radio"],"_links":{"self":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/5390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5390"}],"version-history":[{"count":5,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/5390\/revisions"}],"predecessor-version":[{"id":5396,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/5390\/revisions\/5396"}],"wp:attachment":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5390"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}