<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chipkin Automation Systems - Articles &#187; RS485</title>
	<atom:link href="http://www.chipkin.com/articles/category/rs485/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chipkin.com/articles</link>
	<description>Resources and News for industrial automation</description>
	<lastBuildDate>Thu, 02 Feb 2012 15:25:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fix for mouse jumping around the screen randomly when connecting a USB to Serial converter</title>
		<link>http://www.chipkin.com/articles/fix-for-mouse-jumping-around-the-screen-randomly-when-connecting-a-usb-to-serial-converter</link>
		<comments>http://www.chipkin.com/articles/fix-for-mouse-jumping-around-the-screen-randomly-when-connecting-a-usb-to-serial-converter#comments</comments>
		<pubDate>Fri, 14 Oct 2011 17:54:52 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[RS232]]></category>
		<category><![CDATA[RS485]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=820</guid>
		<description><![CDATA[The problem: When I connected my serial to USB converter (USB-Comi) to my computer my mouse pointer would randomly jump around the screen making it impossible to do any work. I tried reinstalling both the serial to USB converters drivers and my mouse drivers without an success. The solution  After some searching I found this article How to [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.chipkin.com/articles/wp-content/uploads/2011/10/deslect_serial_enumerator.png"><img class="alignright size-full wp-image-821" title="deslect_serial_enumerator" src="http://www.chipkin.com/articles/wp-content/uploads/2011/10/deslect_serial_enumerator.png" alt="" width="651" height="459" /></a>The problem:</strong></p>
<p>When I connected my serial to USB converter (USB-Comi) to my computer my mouse pointer would randomly jump around the screen making it impossible to do any work. I tried reinstalling both the serial to USB converters drivers and my mouse drivers without an success.</p>
<p><strong>The solution </strong></p>
<p>After some searching I found this article <a href="http://www.sealevel.com/support/article/AA-00487/154/Resource-Center/Serial-Interfaces/How-to-fix-crazy-mouse-syndrome-with-USB-serial-adapters.html">How to fix &#8220;crazy mouse&#8221; syndrome with USB serial adapters</a> that was able to resolve the issue I was having.</p>
<p>You need to disable serial enumeration on the advanced settings of your virtual serial port. The serial port will still work and it should resolve your &#8220;<em>crazy mouse</em>&#8221; problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/fix-for-mouse-jumping-around-the-screen-randomly-when-connecting-a-usb-to-serial-converter/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CAS Gateway UL RS232 to RS485</title>
		<link>http://www.chipkin.com/articles/cas-gateway-ul-rs232-to-rs485</link>
		<comments>http://www.chipkin.com/articles/cas-gateway-ul-rs232-to-rs485#comments</comments>
		<pubDate>Wed, 08 Jun 2011 23:05:47 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[RS232]]></category>
		<category><![CDATA[RS485]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=767</guid>
		<description><![CDATA[To switch the CAS Gateway UL box from its default RS232 to RS485 you will need to open the box and change some of the jumpers. For example this is a photo of the board set up in RS-232 &#160;]]></description>
			<content:encoded><![CDATA[<p>To switch the CAS Gateway UL box from its default RS232 to RS485 you will need to open the box and change some of the jumpers.</p>
<p><a href="http://www.chipkin.com/articles/wp-content/uploads/2011/06/cas_ul_jumpers.png"><img class="alignnone size-full wp-image-768" title="cas_ul_jumpers" src="http://www.chipkin.com/articles/wp-content/uploads/2011/06/cas_ul_jumpers.png" alt="" width="608" height="375" /></a></p>
<p>For example this is a photo of the board set up in RS-232</p>
<p><a href="http://www.chipkin.com/articles/wp-content/uploads/2011/06/cas_ul_rs232.png"><img class="alignnone size-full wp-image-774" title="cas_ul_rs232" src="http://www.chipkin.com/articles/wp-content/uploads/2011/06/cas_ul_rs232.png" alt="" width="413" height="301" /></a></p>
<p>&nbsp;</p>
<p><a href="http://www.chipkin.com/articles/wp-content/uploads/2011/06/db9pinout.png"><img class="alignnone size-full wp-image-770" title="db9pinout" src="http://www.chipkin.com/articles/wp-content/uploads/2011/06/db9pinout.png" alt="" width="423" height="246" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/cas-gateway-ul-rs232-to-rs485/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>USB-COMi-SI-M USB-to-Optical isolated RS-422/485 Adapter</title>
		<link>http://www.chipkin.com/articles/usb-comi-si-m-usb-to-optical-isolated-rs-422485-adapter</link>
		<comments>http://www.chipkin.com/articles/usb-comi-si-m-usb-to-optical-isolated-rs-422485-adapter#comments</comments>
		<pubDate>Tue, 18 Jan 2011 17:37:13 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[BACnet MSTP]]></category>
		<category><![CDATA[Cables]]></category>
		<category><![CDATA[CAS BACnet Explorer]]></category>
		<category><![CDATA[RS485]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=746</guid>
		<description><![CDATA[Wiring diagram RS485. [USB-COMi-SI-M, pin 1]  (-) Negative [USB-COMi-SI-M, pin 2]  (+) Positive [USB-COMi-SI-M, pin 5]  Ground [USB-COMi-SI-M, Sw1] OFF [USB-COMi-SI-M, Sw2] OFF [USB-COMi-SI-M, Sw3] ON [USB-COMi-SI-M, Sw4] ON Driver Downloads Download USBCom-CDM]]></description>
			<content:encoded><![CDATA[<p>Wiring diagram RS485.</p>
<p><img class="alignnone size-full wp-image-747" title="EasySync-COMI-M-big" src="http://www.chipkin.com/articles/wp-content/uploads/2011/01/EasySync-COMI-M-big.jpg" alt="" width="600" height="317" /></p>
<p>[USB-COMi-SI-M, pin 1]  (-) Negative<br />
[USB-COMi-SI-M, pin 2]  (+) Positive<br />
[USB-COMi-SI-M, pin 5]  Ground</p>
<p>[USB-COMi-SI-M, Sw1] OFF<br />
[USB-COMi-SI-M, Sw2] OFF<br />
[USB-COMi-SI-M, Sw3] ON<br />
[USB-COMi-SI-M, Sw4] ON</p>
<p><a title="Driver Downloads" href="http://www.ftdichip.com/FTDrivers.htm">Driver Downloads</a></p>
<p><a href="http://www.chipkin.com/files/liz/USBCom-CDM_20802.exe">Download USBCom-CDM</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/usb-comi-si-m-usb-to-optical-isolated-rs-422485-adapter/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful tools and applications for Modbus</title>
		<link>http://www.chipkin.com/articles/useful-tools-and-applications-for-modbus</link>
		<comments>http://www.chipkin.com/articles/useful-tools-and-applications-for-modbus#comments</comments>
		<pubDate>Mon, 01 Mar 2010 08:00:47 +0000</pubDate>
		<dc:creator>cpascu</dc:creator>
				<category><![CDATA[Modbus]]></category>
		<category><![CDATA[RS485]]></category>
		<category><![CDATA[Utilities and tools]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[ascii]]></category>
		<category><![CDATA[excellent]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[good]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[modhopper]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[programs]]></category>
		<category><![CDATA[RS232]]></category>
		<category><![CDATA[rtu]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[TCP]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[useful]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=526</guid>
		<description><![CDATA[Here&#8217;s a useful list of tools to use with Modbus devices: CAS Modbus Scanner (download) Allows us to retrieve coils, inputs, holding registers, and input registers from a Modbus enabled device. Modbus RTU Parser (download) Allows us to analyze an RTU message and see what type of message it is, if there are any errors, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a useful list of tools to use with Modbus devices:</p>
<ul>
<li><b>CAS Modbus Scanner</b> (<a href="http://www.chipkin.com/cas-modbus-scanner">download</a>)
<ul>
<li>Allows us to retrieve coils, inputs, holding registers, and input registers from a Modbus enabled device.</li>
</ul>
</li>
<li><b>Modbus RTU Parser</b> (<a href="http://www.chipkin.com/cas-modbus-rtu-parser/">download</a>)
<ul>
<li>Allows us to analyze an RTU message and see what type of message it is, if there are any errors, what device the message came from, etc&#8230;</li>
</ul>
</li>
<li><b>Modbus TCP Parser </b>(<a href="http://www.chipkin.com/cas-modbus-tcp-parser">download</a>)
<ul>
<li>Allows us to analyze an TCP message and see what type of message it is, if there are any errors, what device the message came from, etc&#8230;</li>
</ul>
</li>
<li><b>Wireshark </b>(<a href="http://www.wireshark.org/">homepage</a>)
<ul>
<li>Used for capturing Modbus TCP messages coming through the ethernet port.</li>
<li>A full list of the captured data can be found <a href="http://www.wireshark.org/docs/dfref/m/mbtcp.html">here</a>.</li>
</ul>
</li>
<li><b>Modbus Specification</b> (<a href="http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf">pdf</a>)
<ul>
<li>Official specification of the Modbus Application Protocol</li>
</ul>
</li>
<li><b>Nerds In Control </b>(<a href="http://www.control.com/">homepage</a>)
<ul>
<li>Very useful community website for automation professionals.</li>
<li>An excellent place to ask for Modbus help or help others with their Modbus problems.</li>
</ul>
</li>
<li><b>Modbus Simulator </b>(<a href="http://sourceforge.net/projects/modrssim/">download</a>)
<ul>
<li>Used for simulating a Modbus server for testing and learning purposes.</li>
</ul>
</li>
<li><b>Simply Modbus </b>(<a href="http://www.simplymodbus.ca/download.htm">download</a>)
<ul>
<li>Good Modbus TCP and RTU software, an alternative to our CAS Modbus Explorer and Scanner.</li>
<li>Website provides good tutorials on Modbus.</li>
</ul>
</li>
<li><b>Capturing with serial connections </b>(<a href="">tutorial</a>)
<ul>
<li>How to capture Modbus messages with a serial connection using free tools like PuTTY.</li>
</ul>
</li>
<li><b>Modhopper </b>(<a href="http://www.chipkin.com/modhopper-wireless-modbus">info</a>)
<ul>
<li>Allows connecting up to 128 Modbus devices through wifi to any Modbus network.</li>
</ul>
</li>
<p><i>Feel free to suggest other tools that you find useful and I will add them to the list.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/useful-tools-and-applications-for-modbus/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CAS Modbus Scanner v1.02aB</title>
		<link>http://www.chipkin.com/articles/cas-modbus-scanner-v1-02ab</link>
		<comments>http://www.chipkin.com/articles/cas-modbus-scanner-v1-02ab#comments</comments>
		<pubDate>Wed, 03 Feb 2010 20:43:18 +0000</pubDate>
		<dc:creator>cpascu</dc:creator>
				<category><![CDATA[Modbus]]></category>
		<category><![CDATA[RS232]]></category>
		<category><![CDATA[RS485]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Modbus TCP]]></category>
		<category><![CDATA[TCP]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=500</guid>
		<description><![CDATA[CAS Modbus Scanner is a utility to retrieve coils, inputs, holding registers, and input registers from a Modbus enabled device. Values retrieved from the device can be viewed in many different formats including Binary, HEX, Uint16, Int16, Uint32, Int32, and Float32. Features: Can read; coil status (0xxxx), input status(2xxxx), input registers (3xxxx), and holding registers [...]]]></description>
			<content:encoded><![CDATA[<p>CAS Modbus Scanner is a utility to retrieve coils, inputs, holding registers, and input registers from a Modbus enabled device. Values retrieved from the device can be viewed in many different formats including Binary, HEX, Uint16, Int16, Uint32, Int32, and Float32.</p>
<p><strong>Features:</strong></p>
<ul>
<li>Can read; coil status (0xxxx), input status(2xxxx), input registers (3xxxx), and holding registers (4xxxx)</li>
<li>Data is viewable in Binary, HEX, Uint16, Int16,Uint32, Int32, and Float32</li>
<li>Multiple connections</li>
<li>Works with RS232 and RS485, TCP</li>
<li>Easy to use interface</li>
<li>100% Free to use, no registration required.</li>
</ul>
<p><strong>New </strong></p>
<ul>
<li>Works with Modbus TCP</li>
<li>Works on Windows Vista and Windows 7 (32bit and 64bit)</li>
</ul>
<p><a href="http://www.chipkin.com/articles/wp-content/uploads/2010/02/modbus_v1.02aB.png"><img class="aligncenter size-medium wp-image-501" title="modbus_v1.02aB" src="http://www.chipkin.com/articles/wp-content/uploads/2010/02/modbus_v1.02aB-300x227.png" alt="" width="300" height="227" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/cas-modbus-scanner-v1-02ab/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FieldServer 485 Connection Diagram to Isolator ICD102A (Black Box)</title>
		<link>http://www.chipkin.com/articles/fieldserver-485-connection-diagram-to-isolator-icd102a-black-box</link>
		<comments>http://www.chipkin.com/articles/fieldserver-485-connection-diagram-to-isolator-icd102a-black-box#comments</comments>
		<pubDate>Mon, 25 May 2009 09:06:07 +0000</pubDate>
		<dc:creator>skapoor</dc:creator>
				<category><![CDATA[RS485]]></category>
		<category><![CDATA[Black Box]]></category>
		<category><![CDATA[Connection Diagram]]></category>
		<category><![CDATA[FieldServer]]></category>
		<category><![CDATA[FS20 series]]></category>
		<category><![CDATA[ICD102A]]></category>
		<category><![CDATA[optical isolator]]></category>
		<category><![CDATA[RS 485]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=360</guid>
		<description><![CDATA[This diagram shows how to connect a FieldServer FS20 series to an ICD102A optical isolator using a 2-wire RS 485 connection. FieldServer’s only support 2 wire connections. Datasheet for the Black Box RS485 Isolator/Repeater can be found here: Blackbox Network  Services]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-361" title="fieldserver-485-to-485-isolator" src="http://www.chipkin.com/articles/wp-content/uploads/2009/05/fieldserver-485-to-485-isolator.jpg" alt="fieldserver-485-to-485-isolator" width="705" height="774" /></p>
<p>This diagram shows how to connect a FieldServer FS20 series to an ICD102A optical isolator using a 2-wire RS 485 connection. FieldServer’s only support 2 wire connections.</p>
<p>Datasheet for the Black Box RS485 Isolator/Repeater can be found here:<strong> </strong><a href="http://www.blackbox.com/resource/files/productdetails/26668.pdf">Blackbox Network  Services</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/fieldserver-485-connection-diagram-to-isolator-icd102a-black-box/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RS485 Networks &#8211; Multiple Protocols</title>
		<link>http://www.chipkin.com/articles/rs485-networks-multiple-protocols</link>
		<comments>http://www.chipkin.com/articles/rs485-networks-multiple-protocols#comments</comments>
		<pubDate>Fri, 15 May 2009 21:52:19 +0000</pubDate>
		<dc:creator>pchipkin</dc:creator>
				<category><![CDATA[RS485]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=338</guid>
		<description><![CDATA[RS485 defines the physical layer of the network. You may use it as you want. However, since the trunk is shared it is important that no two (or more) devices talk at the same time. If they do this will produce collisions and the corruption of both messages. The following applies for both half and [...]]]></description>
			<content:encoded><![CDATA[<p>RS485 defines the physical layer of the network. You may use it as you want. However, since the trunk is shared it is important that no two (or more) devices talk at the same time. If they do this will produce collisions and the corruption of both messages.</p>
<p>The following applies for both half and full duplex RS485.</p>
<p>You can have any number of protocols on the same 485 trunk provided that two or more devices do not talk at the same time.<br />
The consequences of this statement are<br />
1.	You can only use more than one protocol if they are poll/response type protocols like Modbus Rtu or Rockwell DF1.<br />
2.	If you have a token passing protocol (such as Bacnet mstp) you cannot use another protocol on the same trunk<br />
3.	Only one device can be the master for the multiple protocols. The reason is that the master decides when to poll and how long to wait for a response.</p>
<p>Thus, If you have full control over one rs485 port you could use that port to send a poll using protocol#1, wait for a response and then send a poll using protocol#2. If you do not have full control (ie. You are letting two applications which are not co-ordinated share the port) then you cannot run two protocols.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/rs485-networks-multiple-protocols/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RS485 on a Scope</title>
		<link>http://www.chipkin.com/articles/rs485-on-a-scope</link>
		<comments>http://www.chipkin.com/articles/rs485-on-a-scope#comments</comments>
		<pubDate>Mon, 27 Apr 2009 23:26:49 +0000</pubDate>
		<dc:creator>cpascu</dc:creator>
				<category><![CDATA[RS485]]></category>
		<category><![CDATA[idle]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[noise]]></category>
		<category><![CDATA[oscilloscope]]></category>
		<category><![CDATA[probes]]></category>
		<category><![CDATA[scope]]></category>
		<category><![CDATA[state]]></category>
		<category><![CDATA[transmitter]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=310</guid>
		<description><![CDATA[Using an oscilloscope on a RS485 network. For reference purposes we present some scope captures of a typical RS485 line. In this capture we had our scope leads connected to the positive signal conductor and ground. Zone A: Idle State Zone E: Idle State with Noise This is the state of the network when all [...]]]></description>
			<content:encoded><![CDATA[<p>Using an oscilloscope on a RS485 network. For reference purposes we present some scope captures of a typical RS485 line.</p>
<p style="text-align: center;"><img class="size-medium wp-image-312  aligncenter" title="plus_gnd_connected_bytes" src="http://www.chipkin.com/articles/wp-content/uploads/2009/04/plus_gnd_connected_bytes-300x225.jpg" alt="plus_gnd_connected_bytes" width="300" height="225" /></p>
<p>In this capture we had our scope leads connected to the positive signal conductor and ground.</p>
<p><strong>Zone A:</strong> Idle State</p>
<p><strong>Zone E:</strong> Idle State with Noise<br />
This is the state of the network when all the transmitters have released the line. In this state the conductors float. In many ways this is the most dangerous state for a 485 network to be in since the voltage levels are not defined and vary depending on factors such as the ground potential between devices. If the voltage floats to a level where it looks like a signal then you will see noise bytes on the line. Once a device starts transmitting it pulls the line to a known voltage level so the floating problem is eliminated. Its usually quite easy to recognize these noise bytes because all messages look good but there is noise that precedes the message. Idle state biasing can be used to eliminate this problem because it has the effect of holding the line at a &#8216;known&#8217; voltage for the duration of the idle state. Another source of idle state noise is not using the 3rd conductor &#8211; the so called signal reference common.</p>
<p><strong>Zone B:</strong> The device has enabled it transmitter but has not started transmitting. The line is driven to a known state. The duration of this phase can be controlled by configuration in some devices. If it is too short then it is possible that some of the front of the message may be lost.</p>
<p><strong>Zone C:</strong> Unless you have a very high speed scope and the scope can takes a huge number of samples you are unlikely to see each bit in the message. In this capture we can see the bytes (roughly speaking) but not the bits. We were forced to accept this compromise because the number of samples we could capture at a sampling rate high enough to see the bits would mean that we could only capture the 1st couple of bytes of the message and we would have to set the trigger to ignore zone B. Except with a very expensive scope you will be unlikely to be able to see the whole message and all the bits.</p>
<p><strong>Zone D:</strong> We have finished transmitting but the transmitter is still enabled. Normally the device should disable its transmitter as soon as possible after transmitting the last stop bit of the message but since that can be difficult to achieve in the hardware, many devices run a timer to make sure they don&#8217;t disable the transmitter too soon. The problem with this approach is:<br />
<strong>1)</strong> The longer the time the more potential bandwidth is lost.<br />
<strong>2)</strong> The receiving device may have already processed the message and try to send a response by enabling its own transmitter causing collisions.</p>
<p style="text-align: center;"><img class="size-medium wp-image-313  aligncenter" title="plus_minus_connected" src="http://www.chipkin.com/articles/wp-content/uploads/2009/04/plus_minus_connected-300x225.jpg" alt="plus_minus_connected" width="300" height="225" /></p>
<p>Probes on plus and minus conductors. Segment connected to slave device.</p>
<p style="text-align: center;"><img class="size-medium wp-image-311  aligncenter" title="plus_minus_not_connected" src="http://www.chipkin.com/articles/wp-content/uploads/2009/04/plus_minus_not_connected-300x225.jpg" alt="plus_minus_not_connected" width="300" height="225" /></p>
<p>Probes on plus and minus conductors. This chart represent the capture from a master device with no slaves connected to the network leaving the cable ends to float.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/rs485-on-a-scope/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CAS Modbus Explorer</title>
		<link>http://www.chipkin.com/articles/cas-modbus-explorer</link>
		<comments>http://www.chipkin.com/articles/cas-modbus-explorer#comments</comments>
		<pubDate>Mon, 27 Apr 2009 23:19:26 +0000</pubDate>
		<dc:creator>cpascu</dc:creator>
				<category><![CDATA[Modbus]]></category>
		<category><![CDATA[RS232]]></category>
		<category><![CDATA[RS485]]></category>
		<category><![CDATA[Utilities and tools]]></category>
		<category><![CDATA[485]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[baud]]></category>
		<category><![CDATA[cas]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[parity]]></category>
		<category><![CDATA[rate]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=304</guid>
		<description><![CDATA[Modbus communications not working ? How do you know what&#8217;s wrong &#8211; is it the baud rate, the parity or even the address? There are so many things that can affect communications. The Modbus protocol does not support discovery. There is no broadcast message that you can send that will make a slave respond with [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Modbus communications not working ? How do you know what&#8217;s wrong &#8211; is it the baud rate, the parity or even the address? There are so many things that can affect communications.</p>
<p style="text-align: left;">The Modbus protocol does not support discovery. There is no broadcast message that you can send that will make a slave respond with its port and address settings. The protocol allows for broadcast messages to be sent but doesn&#8217;t demand that every vendor supports this feature.</p>
<p style="text-align: center;"><img class="size-medium wp-image-306  aligncenter" title="modbusexplorer" src="http://www.chipkin.com/articles/wp-content/uploads/2009/04/modbusexplorer-300x109.jpg" alt="modbusexplorer" width="300" height="109" /></p>
<p>Use the <a href="http://chipkin.com/cas-modbus-explorer">CAS Modbus Explorer</a> to find the correct port settings and the correct slave address.<br />
The tool automates the process of trying all the combinations and reports the results. We provide burst and standard mode. In burst mode we send messages to all the possible slave address before waiting for a reply from any of them. This dramatically improves the time required to do the discovery.</p>
<p>The tool works for RS232 and RS485 by allowing you to search for a single device or multiple slaves. To connect to a RS485 network from your laptop you simply need a USB-to-485 converter.</p>
<p>Here is the problem &#8211; there are thousands of combinations:</p>
<pre>Baud 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
Parity, None, Odd, Even
Stop Bits 1, 2
Data Bits 7, 8
Address 1-254</pre>
<p>If you had to manually search/test all these combinations it will take you ages. Relax, go for lunch and let the <a href="http://chipkin.com/cas-modbus-explorer">CAS Modbus Explorer</a> do all the work for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/cas-modbus-explorer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reducing latency on com ports</title>
		<link>http://www.chipkin.com/articles/reducing-latency-on-com-ports</link>
		<comments>http://www.chipkin.com/articles/reducing-latency-on-com-ports#comments</comments>
		<pubDate>Fri, 06 Mar 2009 23:54:16 +0000</pubDate>
		<dc:creator>pchipkin</dc:creator>
				<category><![CDATA[BACnet MSTP]]></category>
		<category><![CDATA[RS232]]></category>
		<category><![CDATA[RS485]]></category>
		<category><![CDATA[BACnet]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[mstp]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=254</guid>
		<description><![CDATA[When a BYTE is sent from a serial device (BACnet MSTP thermostat) to a USB to 232/485 converters (USB-COMI-SI-M) it is cached on the USB converter until one of two things happened. Transfer size &#8211; More then x BYTES are collected or Latency timer &#8211; More then n Milliseconds (ms) expirer. By default most ‘off [...]]]></description>
			<content:encoded><![CDATA[<p>When a BYTE is sent from a serial device (BACnet MSTP thermostat) to a<em> USB to 232/485 converters</em> (USB-COMI-SI-M) it is cached on the USB converter until one of two things happened.</p>
<ul>
<li><strong>Transfer size</strong> &#8211; More then x BYTES are collected or</li>
<li><strong>Latency timer</strong> &#8211; More then n Milliseconds (ms) expirer.</li>
</ul>
<p>By default most ‘<em>off the self</em>’ USB to serial converters have a latency timer of 50ms and a transfer size of 4096 BYTES</p>
<p>The can be a major problem for PC utilities monitoring a serial network. The PC doesn’t get the BYTES fast enough to respond to the serial device before it times out.</p>
<p><strong>For example:</strong></p>
<p>On a network with a BACnet MSTP thermostat and a RS485 to USB converter connected to a PC. The BACnet MSTP thermostat will send a poll to the PC and will expect the PC to respond within 100ms. If the thermostat does not receive a response within this time the thermostat will assume that the device has gone offline. When the USB to 458 converter receives the message it will stay in its buffers for 50ms before being sent to the PC. Depending on the message it may take longer then 50 ms for the PC to respond to the poll and the thermostat will consider the PC offline.</p>
<p><strong>Luckily we can set the Transfer size, and latency timer.</p>
<p></strong>Most USB to 485 devices that I have used have the ability to set the transfer size and the latency timer.</p>
<ol>
<li>Start menu–&gt; Settings –&gt; Control panel –&gt; device manager –&gt; Ports (COM &amp; LPT) –&gt;{<em>Select your USB to RS485 converter</em>}</li>
<li>Right click and select “<em>Properties</em>”</li>
<li>Select the “<em>Port Settings</em>” tab</li>
<li>Click the “<em>Advanced”</em> button <img class="aligncenter size-medium wp-image-253" title="advancedsettingsforcomm10" src="http://www.chipkin.com/articles/wp-content/uploads/2009/03/advancedsettingsforcomm10-300x213.png" alt="advancedsettingsforcomm10" width="300" height="213" /></li>
<li>Change the Latency Timer (mSec) to 1 or the lowest possible setting.</li>
<li>Change the USB Transfer sizes to 64 or the lowest possible settings</li>
<li>Save and close.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/reducing-latency-on-com-ports/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

