<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
		<id>http://old.ethersex.de/index.php?action=history&amp;feed=atom&amp;title=Rs485Converter</id>
		<title>Rs485Converter - Versionsgeschichte</title>
		<link rel="self" type="application/atom+xml" href="http://old.ethersex.de/index.php?action=history&amp;feed=atom&amp;title=Rs485Converter"/>
		<link rel="alternate" type="text/html" href="http://old.ethersex.de/index.php?title=Rs485Converter&amp;action=history"/>
		<updated>2026-04-05T18:07:05Z</updated>
		<subtitle>Versionsgeschichte dieser Seite in Ethersex_Wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://old.ethersex.de/index.php?title=Rs485Converter&amp;diff=519&amp;oldid=prev</id>
		<title>Stettberger: Die Seite wurde neu angelegt: ==  RS232-RS485 Converter ==  This Project wants to be a simple, low cost, open-source rs232 to rs485 converter (half duplex). So you can simply attach the converter to...</title>
		<link rel="alternate" type="text/html" href="http://old.ethersex.de/index.php?title=Rs485Converter&amp;diff=519&amp;oldid=prev"/>
				<updated>2009-03-28T22:28:21Z</updated>
		
		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: ==  RS232-RS485 Converter ==  This Project wants to be a simple, low cost, open-source rs232 to rs485 converter (half duplex). So you can simply attach the converter to...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  RS232-RS485 Converter ==&lt;br /&gt;
&lt;br /&gt;
This Project wants to be a simple, low cost, open-source rs232 to rs485&lt;br /&gt;
converter (half duplex). So you can simply attach the converter to your serial port&lt;br /&gt;
(com-port) and start to talk on a rs485 bus.&lt;br /&gt;
&lt;br /&gt;
===  Why the hell is there an ATTiny2313 on the converter? ===&lt;br /&gt;
&lt;br /&gt;
Because this is a half duplex rs485 converter, we must toggle the RE/DE pins&lt;br /&gt;
at the MAX485 in order to enable sending. My first thought was to to this with&lt;br /&gt;
the RTS pin of the serial port. But there were a few problems:&lt;br /&gt;
* The sending toggle should be done within userspace, were we can't guarantee real time. So it would be possible that our RE/DE pins is high 500ms too long and we miss the answer to our packet.&lt;br /&gt;
* With the 16550 ( the chip on your mainboard, if you have an x86, which does the serial port for you ), you can't drive the RTS pin in an rs485 compatible mode in hardware, so it would have be done in a kernel modul, and then it is also only estimation, when the last byte is sent.&lt;br /&gt;
&lt;br /&gt;
So i decided to attach an ATTiny2313 ( the smallest avr I had here ), which&lt;br /&gt;
does the toggling of the RE/DE pin. It enables the RE/DE pin for sending, when&lt;br /&gt;
it does detect a rising edge on the RTS pin. The RE/DE is enabled until there&lt;br /&gt;
is no pin change for about 1ms on the TX line. It also drives the RX/TX leds&lt;br /&gt;
of the dongle.&lt;br /&gt;
&lt;br /&gt;
===  Get the source/schematics ===&lt;br /&gt;
&lt;br /&gt;
* `git clone git://git.brokenpipe.de/gitroot/hardware/rs485-converter/ `&lt;br /&gt;
* http://git.brokenpipe.de/cgi-bin/gitweb.cgi?p=hardware/rs485-converter;a=summary&lt;br /&gt;
&lt;br /&gt;
If you have comments, critic write a mail to&lt;br /&gt;
&lt;br /&gt;
  stettberger(at)dokucode(dot)de&lt;br /&gt;
&lt;br /&gt;
[[Category:Hardware]]&lt;/div&gt;</summary>
		<author><name>Stettberger</name></author>	</entry>

	</feed>