{"id":842,"date":"2013-07-22T21:17:50","date_gmt":"2013-07-22T21:17:50","guid":{"rendered":"http:\/\/www.raveon.com\/data_radio_info\/?p=842"},"modified":"2014-12-08T14:52:49","modified_gmt":"2014-12-08T14:52:49","slug":"interfacing-rs-485-to-data-radio-modems","status":"publish","type":"post","link":"https:\/\/www.raveon.com\/data_radio_info\/interfacing-rs-485-to-data-radio-modems-842\/","title":{"rendered":"Interfacing RS-485 to M7 Series Data Radio Modems"},"content":{"rendered":"<p>RS-485 is a two-wire connection, with the pair of wires transmitting and receiving data. With the RS-485 feature enabled (<b>ATIO 2<\/b> command), the 9-pin serial I\/O connector on the front of the Raveon data radio modem model M5 and M7 will be put into the RS-485 mode of operation.\u00a0 The serial I\/O connector is a female 9-pin D-subminiature connector having the following pin configuration.<\/p>\n<p><a href=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/DB9.gif\"><img loading=\"lazy\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border-width: 0px;\" title=\"DB9\" src=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/DB9_thumb.gif\" alt=\"DB9\" width=\"89\" height=\"67\" border=\"0\" \/><\/a><\/p>\n<p align=\"center\"><b><i>Front-view of DB-9 connector on M7 data radio modem (female)<\/i><\/b><\/p>\n<p align=\"left\">The following table lists the pin functions for the input and output pins on the DB9 connector when it is in the RS-485 mode.<\/p>\n<div align=\"center\">\n<table border=\"1\" width=\"682\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"46\"><b><i><span style=\"color: #0000ff; font-size: large;\">Pin #<\/span><\/i><\/b><\/td>\n<td valign=\"top\" width=\"98\"><b><i><span style=\"color: #0000ff; font-size: large;\">Name<\/span><\/i><\/b><\/td>\n<td valign=\"top\" width=\"60\"><b><i><span style=\"color: #0000ff; font-size: large;\">Dir<\/span><\/i><\/b><\/td>\n<td valign=\"top\" width=\"108\"><b><i><span style=\"color: #0000ff; font-size: large;\">Function<\/span><\/i><\/b><\/td>\n<td valign=\"top\" width=\"368\"><b><i><span style=\"color: #0000ff; font-size: large;\">Level \/ Specification<\/span><\/i><\/b><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"46\">1<\/td>\n<td valign=\"top\" width=\"98\"><\/td>\n<td valign=\"top\" width=\"60\">&#8211;<\/td>\n<td valign=\"top\" width=\"108\">Do not connect<\/td>\n<td valign=\"top\" width=\"368\">Do not connect this pin to anything.<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"46\">2<\/td>\n<td valign=\"top\" width=\"98\"><b>B (-)<\/b><\/td>\n<td valign=\"top\" width=\"60\">I\/O<\/td>\n<td valign=\"top\" width=\"108\">B<\/td>\n<td valign=\"top\" width=\"368\">Inverting RS-485 data in line<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"46\">3<\/td>\n<td width=\"98\"><b>Out &#8211;<\/b><\/td>\n<td valign=\"top\" width=\"60\">out<\/td>\n<td width=\"108\">Z<\/td>\n<td width=\"368\">Connect to pin 2<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"46\">4<\/td>\n<td valign=\"top\" width=\"98\"><b>A (+)<\/b><\/td>\n<td valign=\"top\" width=\"60\">I\/O<\/td>\n<td valign=\"top\" width=\"108\">A<\/td>\n<td valign=\"top\" width=\"368\">Non-inverting RS-485 data out line<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"46\">5<\/td>\n<td valign=\"top\" width=\"98\">GND<\/td>\n<td valign=\"top\" width=\"60\"><\/td>\n<td valign=\"top\" width=\"108\">Ground<\/td>\n<td valign=\"top\" width=\"368\">Connect to earth ground.<\/td>\n<\/tr>\n<tr>\n<td width=\"46\">6<\/td>\n<td valign=\"top\" width=\"98\"><\/td>\n<td valign=\"top\" width=\"60\">&#8211;<\/td>\n<td valign=\"top\" width=\"108\">Do not connect<\/td>\n<td valign=\"top\" width=\"368\">Do not connect this pin to anything.<\/td>\n<\/tr>\n<tr>\n<td width=\"46\">7<\/td>\n<td width=\"98\"><b>Out +<\/b><\/td>\n<td valign=\"top\" width=\"60\">out<\/td>\n<td width=\"108\">Y<\/td>\n<td width=\"368\">Connect to pin 4<\/td>\n<\/tr>\n<tr>\n<td width=\"46\">8<\/td>\n<td width=\"98\"><\/td>\n<td valign=\"top\" width=\"60\"><\/td>\n<td width=\"108\"><\/td>\n<td width=\"368\"><\/td>\n<\/tr>\n<tr>\n<td width=\"46\">9<\/td>\n<td width=\"98\">Vin<\/td>\n<td valign=\"top\" width=\"60\">In\/Out<\/td>\n<td width=\"108\">DC Power<\/td>\n<td width=\"368\">DC Power in or out if unit is powered using DC in jack.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>The RS485 differential data line consists of two pins, A and B.<\/p>\n<blockquote><p><strong>B<\/strong>\u00a0 TxD-\/RxD- aka inverting pin which is negative (compared to B) when the line is idle.<br \/>\n<strong>A<\/strong>\u00a0\u00a0TxD+\/RxD+ aka non-inverting pin which is positive (compared to A) when the line is idle.<\/p><\/blockquote>\n<h5><a name=\"_Toc338935629\"><\/a><a name=\"_Toc338926411\"><\/a><a name=\"_Toc302543377\"><\/a><a name=\"_Toc179280589\"><\/a><span style=\"font-size: medium;\"><span style=\"font-weight: bold;\"><em>Configuring The M7 Radio Modem<\/em><\/span><\/span><\/h5>\n<p>To configure the <i>M7<\/i> modem for RS-485 operation, use the <b>ATIO x <\/b>command. <b>ATIO 2<\/b> sets the serial port for standard RS-485, full duplex. <b>ATIO 3<\/b> sets the serial port for RS-485 simplex mode. In most cases, RS-485 simplex is preferred (<b>ATIO 3<\/b>).\u00a0 Also, turn off character echo using the <strong>ATE0<\/strong> command.\u00a0\u00a0 If echo is on, communications will be garbled when the radio is in the command mode.<\/p>\n<p>In simplex RS-485 mode, the <i>M7<\/i>\u2019s serial data receiver is internally disabled whenever it sends a character out the serial port, so that it will not receive its own data. For most application use the RS485 simplex mode, <b>ATIO 3<\/b>. If you are using two <i>M7<\/i> modems with RS485 on both units, you must use the simplex RS485 mode instead of the duplex RS485 mode, or the modems will enter an infinite loop-back condition. If you wish to run the RS485 in full-duplex mode, the interface must be wired with two separate pairs of wires; A&amp;B on one pair, and Out+&amp;Out- on the other pair.<\/p>\n<p><a href=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/DB9-485.gif\"><img loading=\"lazy\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border-width: 0px;\" title=\"DB9-485\" src=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/DB9-485_thumb.gif\" alt=\"DB9-485\" width=\"334\" height=\"202\" border=\"0\" \/><\/a><\/p>\n<p>Raveon\u2019s RS-485 I\/O circuit uses 3.3V logic to drive the lines, and the RS485 pins are ESD protected to \u00b115kV and 7kV human body model. Input current is less than 150uA. Output current when not driving the line is less than 50uA.<br \/>\n<a href=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/image.png\"><img loading=\"lazy\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;\" title=\"image\" src=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/image_thumb.png\" alt=\"image\" width=\"244\" height=\"147\" border=\"0\" \/><\/a><\/p>\n<h5><a name=\"_Toc338935630\"><\/a><a name=\"_Toc338926412\"><\/a><a name=\"_Toc302543378\"><\/a><a name=\"_Toc179280590\"><\/a><a name=\"_Toc162408526\"><\/a><span style=\"font-size: medium;\"><span style=\"font-weight: bold;\"><em>Bias and Termination Resistors<\/em><\/span><\/span><\/h5>\n<p>RS-485 installations typically have a termination resistor across the A and B lines. For low-speed operation (&lt;57600 baud), this resistor is probably not necessary. If you wish to use a terminating resistor, a value of 150 ohms should work in most applications.<\/p>\n<p>These A\/B pin names are all in use on various types of equipment. The RS485 signaling specification states that signal A is the inverting or &#8216;-&#8216; pin and signal B is the non-inverting or &#8216;+&#8217; pin. The same naming is specified in the <a href=\"http:\/\/en.wikipedia.org\/wiki\/NMEA\">NMEA<\/a> standards.<\/p>\n<p><a href=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/clip_image0041.jpg\"><img loading=\"lazy\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border-width: 0px;\" title=\"clip_image004\" src=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/clip_image004_thumb1.jpg\" alt=\"clip_image004\" width=\"406\" height=\"128\" border=\"0\" \/><\/a><\/p>\n<p>When an RS-485 network is in an idle state, all nodes are in listen (receive) mode. Under this condition there are no active drivers on the network. All drivers are tri-stated. Without anything driving the network, the state of the A and B line is unknown. If the voltage level at the receiver&#8217;s A and B inputs is less than \u00b1200mV the logic level at the output of the receivers will be the value of the last bit received. In order to maintain the proper idle voltage state, bias resistors must be applied to force the data lines to the idle condition.<\/p>\n<p><span style=\"font-size: medium;\"><span style=\"font-weight: bold;\"><em>Terminal Blocks<\/em><\/span><\/span><\/p>\n<p>To make it easy to connect your RS-485 device in the field to a Raveon data radio modem, we off a simple screw-down terminal block.\u00a0 It has a male DB9 connector on it, so it plugs directly into the M7 radio modem.<\/p>\n<p><a href=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/TermBlockMale9.gif\"><img loading=\"lazy\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;\" title=\"TermBlockMale9\" src=\"http:\/\/www.raveon.com\/data_radio_info\/wp-content\/uploads\/2013\/07\/TermBlockMale9_thumb.gif\" alt=\"TermBlockMale9\" width=\"149\" height=\"110\" border=\"0\" \/><\/a><\/p>\n<p>The field termination terminal block connector show above is Raveon part number DB9M-TB. Contact <a href=\"mailto:sales@raveon.com\">sales@raveon.com<\/a> to order this part.\u00a0 Customers purchasing the M7 radio modem with the RS-485 option should also order this field termination block because it makes installation very easy.<\/p>\n<p><strong><em>Radio Manager<\/em><\/strong><\/p>\n<p>If you are going to use Raveon&#8217;s <em>RadioManager<\/em> software to configure your product or communicate with it, the RS-488 interface must be configured as RS-485 <span style=\"text-decoration: underline;\">SIMPLEX<\/span>.\u00a0 Duplex RS-485 will not work with RadioManger. When you configure your data radio modem to operate in RS-485 mode, you should also turn off &#8220;character echo&#8221;.\u00a0 The ATE0 command disables charactor echo in the command mode.\u00a0 Echo must be off for RadioManger to talk to a modem using RS-485.<\/p>\n<p><em>RadioManager<\/em> versions newer than 5.4 will automatically turn off character echo if they detect that the connected radio is using RS-485 to communicate with <em>RadioManger<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RS-485 is a two-wire connection, with the pair of wires transmitting and receiving data. With the RS-485 feature enabled (ATIO 2 command), the 9-pin serial I\/O connector on the front of the Raveon data radio modem model M5 and M7 will be put into the RS-485 mode of operation.\u00a0 The serial I\/O connector is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[38,5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/posts\/842"}],"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=842"}],"version-history":[{"count":10,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/posts\/842\/revisions"}],"predecessor-version":[{"id":1031,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/posts\/842\/revisions\/1031"}],"wp:attachment":[{"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/media?parent=842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/categories?post=842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raveon.com\/data_radio_info\/wp-json\/wp\/v2\/tags?post=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}