<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/6342" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-01-15T09:40:14+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/6342</id>

		<entry>
		<author><name><![CDATA[chlor]]></name></author>
		<updated>2012-01-15T09:40:14+02:00</updated>

		<published>2012-01-15T09:40:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20692#p20692</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20692#p20692"/>
		<title type="html"><![CDATA[Re: Generic serial (RS232) driver - use a std on the PC]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20692#p20692"><![CDATA[
Thanks Daid, ATMega8U2 is really a better solution for me. And proto type board is awailable like &quot;USB Serial Light Adapter&quot; and others.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6251">chlor</a> — Sun Jan 15, 2012 9:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Daid]]></name></author>
		<updated>2012-01-12T11:27:27+02:00</updated>

		<published>2012-01-12T11:27:27+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20641#p20641</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20641#p20641"/>
		<title type="html"><![CDATA[Re: Generic serial (RS232) driver - use a std on the PC]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20641#p20641"><![CDATA[
Using V-USB as serial driver will is problematic. Because the CDC profile is not allowed with low-speed (and V-USB is always low-speed). It is possible, but it requires some hacks on the computer side. Also new USB chips seem to refuse this in some cases, and Windows 7 has also made this harder. In my opinion, it's not worth the trouble.<br /><br />If you want USB serial, use an AVR with USB build in. Like the ATMega8U2<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5154">Daid</a> — Thu Jan 12, 2012 11:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[chlor]]></name></author>
		<updated>2012-01-12T02:00:50+02:00</updated>

		<published>2012-01-12T02:00:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20640#p20640</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20640#p20640"/>
		<title type="html"><![CDATA[Generic serial (RS232) driver - use a std on the PC]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6342&amp;p=20640#p20640"><![CDATA[
Hi<br /><br />I want to make a small device which just present itself to my PC as a generic serial port device like /dev/ttyUSB0 so I do not have to have a special driver on my PC. I expect the communication to look like:<br /><div class="codebox"><p>Code: </p><pre><code>  echo &quot;set mode=7&quot; &gt; /dev/ttyUSB0<br />  cat /dev/ttyUSB0 &gt; data.log</code></pre></div><br /><br />The project is very similar to this EasyLogger which interfaces to the keyboard. A good concept unless you need to have 2 or more devices connected.<br /><!-- m --><a class="postlink" href="http://www.obdev.at/products/vusb/easylogger.html">http://www.obdev.at/products/vusb/easylogger.html</a><!-- m --><br /><br />So I looked for a small and simple USB-serial driver at my system:<br /><div class="codebox"><p>Code: </p><pre><code>$ ls -S /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ | tail -n 1<br />zio.ko</code></pre></div><br /><br />In the source it looks like it almost de nothing at all. It simply just use the generic serial device code with no hooks:<br /><!-- m --><a class="postlink" href="http://lxr.linux.no/#linux+v3.2/drivers/usb/serial/zio.c">http://lxr.linux.no/#linux+v3.2/drivers ... rial/zio.c</a><!-- m --><br />It is a bit similar to a generic keyboard but for a serial port.<br /><br />I know I am not supposed to present my device as another vendor:product but it looks like that if choose to use USB_DEVICE(0x1CBE, 0x0103) my system will automatically load the zio driver and I got a /dev/ttyUSB0 .<br /><br />Will this work and is it possible to use V-USB for that?<br /><br />Zilog has &quot;drivers&quot; for there device but they are just parameters for a default usb-serial:<br /><!-- m --><a class="postlink" href="http://www.zilogic.com/releases/zio-sw-1.1/drivers/">http://www.zilogic.com/releases/zio-sw-1.1/drivers/</a><!-- m --><br />(it is just text files)<br /><br />/hans<br /><br />(I'm sorry if this question has been asked before. I could not find the answer)<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6251">chlor</a> — Thu Jan 12, 2012 2:00 am</p><hr />
]]></content>
	</entry>
	</feed>
