{"id":331,"date":"2010-02-05T05:51:16","date_gmt":"2010-02-05T05:51:16","guid":{"rendered":"http:\/\/ravtrack.com\/GPStracking\/?p=331"},"modified":"2010-02-05T05:51:16","modified_gmt":"2010-02-05T05:51:16","slug":"identifying-digital-input-states-in-a-prave-message","status":"publish","type":"post","link":"https:\/\/www.raveon.com\/data_radio_info\/identifying-digital-input-states-in-a-prave-message-331\/","title":{"rendered":"Identifying Digital Input States in a $PRAVE message"},"content":{"rendered":"<p>The $PRAVE message has the status of each input as represented by a single digit  hexadecimal number in field 12. For example, the the $PRAVE message below, the last <span style=\"color: #ff0000;\">3<\/span> represents the digital inputs from transponder 0001.<\/p>\n<p>$PRAVE,0001,0001,3308.9051,-11713.1164,195348,1,10,168,31,13.3,<span style=\"color: #ff0000;\"><strong>3<\/strong><\/span>,-83,0,0,,*66<\/p>\n<p>In this example field 12 has  value 3.\u00a0 The field 12 value is the hexadecimal  binary representation of the bits.\u00a0 Refer to the following  table:<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\"><strong><em>IN  2<br \/>\n<\/em><\/strong><strong><em>(TXD)<\/em><\/strong><strong><em> <\/em><\/strong><\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\"><strong><em>IN  1<br \/>\n<\/em><\/strong><strong><em>(RTS)<\/em><\/strong><strong><em> <\/em><\/strong><\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\"><strong><em>IN  0<br \/>\n<\/em><\/strong><strong><em>(DTR)<\/em><\/strong><strong><em> <\/em><\/strong><\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\"><strong><em>Hexadecimal  Representation<\/em><\/strong><strong><em> <\/em><\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\">2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\">3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\">4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\">5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\">0<\/p>\n<\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\">6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"57\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"63\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"60\" valign=\"top\">\n<p align=\"center\">1<\/p>\n<\/td>\n<td width=\"156\" valign=\"top\">\n<p align=\"center\">7<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The stock <em>RV-M7 GX<\/em> has up to 3 digital inputs,  using the input pins of the RS-232 serial port.\u00a0 An open circuit or ground is a  0, and if they are connected to a positive voltage greater than 3V, they are a  digital 1.<strong> <\/strong>If all 3 pins are allowed to float (nothing connected \u2013  same as ground) the value should be 0.\u00a0 If positive voltage is applied to a pin  the pin value will be 1.\u00a0 The field 12 value will be 1 or 2 or 4, depending on  which pin had the voltage applied.<strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\"><strong>RS-232 Pin<\/strong><strong> <\/strong><\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\"><strong>Function<\/strong><strong> <\/strong><\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\"><strong> <\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\">4 &#8211; DTR<\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\">Input 0<\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\">\n<\/td>\n<\/tr>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\">7 &#8211; RTS<\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\">Input 1<\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\">\n<\/td>\n<\/tr>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\">3 &#8211; TXD<\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\">Input 2<\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\">\n<\/td>\n<\/tr>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\">5 &#8211; Ground<\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\">GND<\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\">Connect to vehicle chassis or other ground point.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Note that the weatherproofed  (-WX) model has less RS-232 pins and only 2 digital inputs.\u00a0 Inputs 1 and 2 are  valid, but input 0 is indeterminate (state can float).<\/p>\n<p>In the RavTrack PC  software it is easy to <span style=\"text-decoration: underline;\">not monitor this missing pin<\/span>, so any change  of state or change of value of this pin would not matter to the  software.\u00a0 Simply configure this input as unused.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-334\" title=\"1aa\" src=\"http:\/\/www.raveontech.com\/data_radio_info\/wp-content\/uploads\/2010\/02\/1aa.jpg\" alt=\"1aa\" width=\"776\" height=\"327\" \/><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\"><strong>RS-232 Pin<\/strong><\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\"><strong>Function<\/strong><\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\"><strong> <\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\">4 &#8211; RTS<\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\">Input 1<\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\">\n<\/td>\n<\/tr>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\">3 &#8211; TXD<\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\">Input 2<\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\">\n<\/td>\n<\/tr>\n<tr>\n<td width=\"106\" valign=\"top\">\n<p align=\"center\">5 &#8211; Ground<\/p>\n<\/td>\n<td width=\"134\" valign=\"top\">\n<p align=\"center\">GND<\/p>\n<\/td>\n<td width=\"228\" valign=\"top\">\n<p align=\"center\">Connect to vehicle chassis or other ground point.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>On the M7 series of transponders, if an input is left floating\/unconnected, the transponder will read it as a digital 0 (low), and report it this way.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The $PRAVE message has the status of each input as represented by a single digit hexadecimal number in field 12. For example, the the $PRAVE message below, the last 3 represents the digital inputs from transponder 0001. $PRAVE,0001,0001,3308.9051,-11713.1164,195348,1,10,168,31,13.3,3,-83,0,0,,*66 In this example field 12 has value 3.\u00a0 The field 12 value is the hexadecimal binary representation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/posts\/331"}],"collection":[{"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":0,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}