{"id":866,"date":"2014-04-27T09:30:16","date_gmt":"2014-04-27T09:30:16","guid":{"rendered":"http:\/\/mynoellights.com\/blog\/?p=866"},"modified":"2014-04-27T11:39:58","modified_gmt":"2014-04-27T11:39:58","slug":"handling-errors","status":"publish","type":"post","link":"http:\/\/mynoellights.com\/blog\/?p=866","title":{"rendered":"Handling Errors"},"content":{"rendered":"<p>My controllers use two LEDs to indicate controller status.<br \/>\nH1 &#8211; DMX Activity flashes to indicate DMX data has been received and processed.<br \/>\nH2 &#8211; Power \/ Error is on to indicating Power is ON and there are no errors.\u00a0 H2 flashes various patterns to indicate the type of error.<\/p>\n<p>The change of a relevant channel is indicated by a flashing green LED.<\/p>\n<table border=\"1\" width=\"700\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"4%\"><img loading=\"lazy\" src=\"http:\/\/mynoellights.com\/blog\/wp-content\/uploads\/2014\/04\/GreenFlash.gif\" alt=\"\" width=\"30\" height=\"30\" border=\"0\" \/><\/td>\n<td width=\"12%\">flashing<\/td>\n<td width=\"39%\">DMX data has been received and processed.<\/td>\n<td width=\"45%\">Normal Operation.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The red LED repeats error codes until cleared:<\/p>\n<table style=\"border-collapse: collapse; height: 572px;\" border=\"1\" width=\"700\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"2\" align=\"center\" width=\"16%\">Pattern<\/td>\n<td align=\"center\" width=\"39%\">Error<\/td>\n<td align=\"center\" width=\"45%\">Solution<\/td>\n<\/tr>\n<tr>\n<td width=\"4%\"><img loading=\"lazy\" src=\"http:\/\/mynoellights.com\/blog\/wp-content\/uploads\/2014\/04\/RedFlash.gif\" alt=\"\" width=\"30\" height=\"30\" border=\"0\" \/><\/td>\n<td width=\"12%\">flashing<\/td>\n<td width=\"39%\">There is no signal connected to the transceiver.<\/td>\n<td width=\"45%\">Connect the transceiver to the DMX bus.<\/td>\n<\/tr>\n<tr>\n<td width=\"4%\"><img loading=\"lazy\" src=\"http:\/\/mynoellights.com\/blog\/wp-content\/uploads\/2014\/04\/RedDouble.gif\" alt=\"\" width=\"30\" height=\"30\" border=\"0\" \/><\/td>\n<td width=\"12%\">double flashing<\/td>\n<td width=\"39%\">The received signal is not DMX.<\/td>\n<td width=\"45%\">Try swapping D+ and D- at the DMX connector.<\/td>\n<\/tr>\n<tr>\n<td width=\"4%\"><img loading=\"lazy\" src=\"http:\/\/mynoellights.com\/blog\/wp-content\/uploads\/2014\/04\/RedTriple.gif\" alt=\"\" width=\"30\" height=\"30\" border=\"0\" \/><\/td>\n<td width=\"12%\">triple flashing<\/td>\n<td width=\"39%\">Future Functionality.<\/td>\n<td width=\"45%\">N\/A.<\/td>\n<\/tr>\n<tr>\n<td width=\"4%\"><img loading=\"lazy\" src=\"http:\/\/mynoellights.com\/blog\/wp-content\/uploads\/2014\/04\/Red_5mm.jpg\" alt=\"\" width=\"30\" height=\"30\" border=\"0\" \/><\/td>\n<td width=\"12%\">constant on<\/td>\n<td width=\"39%\">DMX received and no errors.<\/td>\n<td width=\"45%\">\u00a0Normal Operation<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This error indicator is easily implemented with the following code:<br \/>\n<code>void indicate(void) {<br \/>\nstatic uint8_t count;<br \/>\nif (++count &gt;= 10)<br \/>\ncount = 0; \/\/ reset every 5 secs<br \/>\nif(Blink ==0) CLEAR(H1);<br \/>\nelse if (count &lt;= Blink)<br \/>\nTOGGLE(H1); \/\/ toggle LED<br \/>\n}<\/code><br \/>\nEach error condition is given an unique Odd number.<br \/>\nThe LED Flash period is set by an timer overflow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My controllers use two LEDs to indicate controller status. H1 &#8211; DMX Activity flashes to indicate DMX data has been received and processed. H2 &#8211; Power \/ Error is on to indicating Power is ON and there are no errors.\u00a0 &hellip; <a href=\"http:\/\/mynoellights.com\/blog\/?p=866\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,5,7],"tags":[],"_links":{"self":[{"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/866"}],"collection":[{"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=866"}],"version-history":[{"count":13,"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":888,"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/866\/revisions\/888"}],"wp:attachment":[{"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mynoellights.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}