<?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; RS232</title>
	<atom:link href="http://www.chipkin.com/articles/category/rs232/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chipkin.com/articles</link>
	<description>Resources and News for industrial automation</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:30:53 +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>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>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>
		<item>
		<title>Why can&#8217;t I change to 76800 baud rate on PC?</title>
		<link>http://www.chipkin.com/articles/why-cant-i-change-to-76800-baud-rate-on-pc</link>
		<comments>http://www.chipkin.com/articles/why-cant-i-change-to-76800-baud-rate-on-pc#comments</comments>
		<pubDate>Wed, 19 Nov 2008 23:13:59 +0000</pubDate>
		<dc:creator>cpascu</dc:creator>
				<category><![CDATA[BACnet MSTP]]></category>
		<category><![CDATA[RS232]]></category>
		<category><![CDATA[RS485]]></category>
		<category><![CDATA[76800]]></category>
		<category><![CDATA[baud]]></category>
		<category><![CDATA[can't]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[uart]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/?p=205</guid>
		<description><![CDATA[Q: Why can&#8217;t we change to a 76800 baud rate on a PC but are able to on some devices? A: The reason for this is that the the standard 16C550 PC UART is too slow to keep up with the signals coming in and out. 76800 is not a standard multiple of the UART [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q:</strong> Why can&#8217;t we change to a 76800 baud rate on a PC but are able to on some devices?</p>
<p><strong>A:</strong> The reason for this is that the the standard 16C550 PC UART is too slow to keep up with the signals coming in and out. 76800 is not a standard multiple of the UART clock frequency.</p>
<p>Devices can be customized and therefore allow baud rates of 76800. If your PC has a customizable COM port card where you can program the bit clock then you would be able to set this value.</p>
<p>There is no fix for this, but if you find a converter that can change 76800 to a higher UART this could be a work around.</p>
<p>The standard frequencies are:</p>
<ul>
<li> 150</li>
<li> 300</li>
<li> 1200</li>
<li> 2400</li>
<li> 4800</li>
<li> 9600</li>
<li> 19200</li>
<li> 38400</li>
<li> 115000</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/why-cant-i-change-to-76800-baud-rate-on-pc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RS232 Serial Port Sniffing / Snooping</title>
		<link>http://www.chipkin.com/articles/rs232-serial-port-sniffing-snooping</link>
		<comments>http://www.chipkin.com/articles/rs232-serial-port-sniffing-snooping#comments</comments>
		<pubDate>Sat, 26 Jan 2008 22:01:15 +0000</pubDate>
		<dc:creator>pchipkin</dc:creator>
				<category><![CDATA[RS232]]></category>

		<guid isPermaLink="false">http://www.chipkin.com/articles/rs232-serial-port-sniffing-snooping</guid>
		<description><![CDATA[Have you ever needed to snoop a RS232 serial port to observe the messages passing back and forth? It’s easier than you thought. All you need is application called HyperTerminal and the simple cable below. The cable can be assembled in minutes and requires a couple of diodes which you can probably buy for pennies. [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever needed to snoop a RS232 serial port to observe the messages passing back and forth? It’s easier than you thought. All you need is application called HyperTerminal and the simple cable below. The cable can be assembled in minutes and requires a couple of diodes which you can probably buy for pennies. HyperTerminal is provided free with the Windows Operating System.<br />
Here is what you need to do</p>
<p><strong>1. Assemble the cable.</strong><br />
You need a 3 conductor cable and a 3 9-pin d-type connectors. We suggest you put a male on one end and a female on the other end and do not cross pins 2 and 3 over. That way you have a cable segment that will extend any cable without reuiring sex changes or worrying about 2-3 cross over. Put a female connector on the snoop end so it connects to your PC port without a sex change.<br />
The Diode part number is 1N4148. The black band on a diode is the cathode end and corresponds to the vertical bar in the schematic of a diode.<br />
A diagram is provided below the text of this article.</p>
<p><strong>2. Connect </strong><br />
Connect the devices with your cable and connect the snoop to your computers serial port.</p>
<p><strong>3. Run HyperTeminal</strong><br />
START, Programs, Accessories, (Communications), HyperTerminal<br />
Set the port and configure it. In this example we use COM2 to snoop on a 9600,Even,8,1 conversation.</p>
<p><strong>4. Capture Messages</strong><br />
In HyperTerminal, select the ‘Transfer’ menu.<br />
Select Capture Text (even if the protocol you are snooping on is binary)<br />
Specify a file name.<br />
When you have captured enough, stop the capture and you can then use the file to view the conversations.</p>
<p><strong>5. Limitations</strong><br />
No timing will be captured. All the messages sent and received by the devices you are snooping on will be ‘received’ only in HyperTerminal. This you will have to deduce the message ends/starts.<br />
No timing information is available<br />
If the messages are binary you will need to view the binary file in binary mode. You cant do this with notepad or WordPad. We use the Visual Slick Edit editor – Use Ctrl-Shift-H to change the view to binary.</p>
<p><strong>ScreenShots</strong></p>
<p align="center"><a href="http://www.chipkin.com/articles/wp-content/uploads/2008/01/01.jpg" title="01.jpg"><img src="http://www.chipkin.com/articles/wp-content/uploads/2008/01/01.jpg" alt="01.jpg" /></a></p>
<p align="center"><a href="http://www.chipkin.com/articles/wp-content/uploads/2008/01/02.jpg" title="02.jpg"><img src="http://www.chipkin.com/articles/wp-content/uploads/2008/01/02.jpg" alt="02.jpg" /></a></p>
<p align="center"><a href="http://www.chipkin.com/articles/wp-content/uploads/2008/01/03.gif" title="03.gif"><img src="http://www.chipkin.com/articles/wp-content/uploads/2008/01/03.gif" alt="03.gif" /></a></p>
<p align="center"> <a href="http://www.chipkin.com/articles/wp-content/uploads/2008/01/04.jpg" title="04.jpg"><img src="http://www.chipkin.com/articles/wp-content/uploads/2008/01/04.jpg" alt="04.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chipkin.com/articles/rs232-serial-port-sniffing-snooping/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

