<?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/8865" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2015-05-16T23:10:07+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2015-05-16T23:10:07+02:00</updated>

		<published>2015-05-16T23:10:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8865&amp;p=29714#p29714</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=29714#p29714"/>
		<title type="html"><![CDATA[Re: Atmega328p + V-USB Linux Problems]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=29714#p29714"><![CDATA[
You should check with hid device like example mouse to rule out real problems with usb resets<p>Statistics: Posted by Guest — Sat May 16, 2015 11:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2014-02-25T18:38:41+02:00</updated>

		<published>2014-02-25T18:38:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26641#p26641</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26641#p26641"/>
		<title type="html"><![CDATA[Re: Atmega328p + V-USB Linux Problems]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26641#p26641"><![CDATA[
what watt are the 3.6v's<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue Feb 25, 2014 6:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[martinay]]></name></author>
		<updated>2014-02-24T16:50:10+02:00</updated>

		<published>2014-02-24T16:50:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26632#p26632</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26632#p26632"/>
		<title type="html"><![CDATA[Re: Atmega328p + V-USB Linux Problems]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26632#p26632"><![CDATA[
Hi Cube,<br /><br />Unfortunately, I don't have much more idea to suggest...<br /><br />Or, maybe this little one : Try to use the HIDSerialMonitor client provided in this package <!-- m --><a class="postlink" href="https://github.com/rayshobby/hid-serial">https://github.com/rayshobby/hid-serial</a><!-- m -->.<br />(When I experimented HID on my Linux host to write Kernel Driver, I've used that tool to do diagnostics)<br /><br />You can also compare its firmware implementation with your, or even try the &quot;Hello World&quot; example by tweaking the usbconfig.h to match your hardware and see if the disconnect problem still there.<br /><br />BTW, what &quot;dmesg&quot; reports on your Linux machine ? Are the &quot;disconnect/reconnect&quot; messages shown there also ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20187">martinay</a> — Mon Feb 24, 2014 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cube]]></name></author>
		<updated>2014-02-22T19:42:10+02:00</updated>

		<published>2014-02-22T19:42:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26628#p26628</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26628#p26628"/>
		<title type="html"><![CDATA[Re: Atmega328p + V-USB Linux Problems]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26628#p26628"><![CDATA[
Hi martinay,<br />thanks for your answer!<br />I have tried what you suggested (no timer) like this:<br /><div class="codebox"><p>Code: </p><pre><code>void loop(){<br />  serial.poll();<br />}</code></pre></div><br />This does not produce errors but does not output anything ether… When I disconnect the device cable, there is an error »hid_read() returned error« (in »HID API Test Tool«).<br />When I add a print() to it like this:<br /><div class="codebox"><p>Code: </p><pre><code>void loop(){<br />  serial.poll();<br />  serial.print(&quot;?&quot;);<br />}</code></pre></div><br />Now I receive 8 bytes multiple times and after a vey short time I see the same error like without the print() multiple times (for every print-call!?).<br /><br />The same code runs fine for hours on Mac/Windows.<br /><br />Do you know about USB driver differences between Mac/Windows and Linux which could cause this? I am using LibUSB as a driver.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20218">cube</a> — Sat Feb 22, 2014 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[martinay]]></name></author>
		<updated>2014-02-22T16:20:06+02:00</updated>

		<published>2014-02-22T16:20:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26623#p26623</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26623#p26623"/>
		<title type="html"><![CDATA[Re: Atmega328p + V-USB Linux Problems]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26623#p26623"><![CDATA[
Hi Cube,<br /><br />I don't see any problem with your schematic and usbconfig.h.<br />But why are you using timer to do the polling ? Did you have tried with an infinite loop which call the poll function ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20187">martinay</a> — Sat Feb 22, 2014 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cube]]></name></author>
		<updated>2014-02-21T22:28:32+02:00</updated>

		<published>2014-02-21T22:28:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26619#p26619</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26619#p26619"/>
		<title type="html"><![CDATA[Atmega328p + V-USB Linux Problems]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8865&amp;p=26619#p26619"><![CDATA[
Hi,<br />I’m using the Arduino V-USB library (<a href="http://code.rancidbacon.com/ProjectLogArduinoUSB" class="postlink">http://code.rancidbacon.com/ProjectLogArduinoUSB</a>) on an Atmega328p to use it as a HID. This is working fine on Windows and Mac, on Linux (Lubuntu) however it’s not working properly – it gets disconnected and then reconnected all the time and I have no clue why. Do you have an idea what to change to make it work on Linux, too?<br />Here is the edited version of usbconfig.h <a href="http://pastebin.com/HbDGe3Pt" class="postlink">http://pastebin.com/HbDGe3Pt</a>.<br />Here is a my layout:<br /><img src="http://img577.imageshack.us/img577/965/wmsu.png" class="postimage" alt="Image" /><br /><img src="http://img607.imageshack.us/img607/7831/ai00.png" class="postimage" alt="Image" /><br />And a prototype of the layout:<br /><img src="http://i.imgur.com/ZJvEiIZl.jpg" class="postimage" alt="Image" /><br />Here is my basic code:<br /><div class="codebox"><p>Code: </p><pre><code>#include &lt;HIDSerial.h&gt;<br />#include &quot;TimerOne.h&quot;<br /><br />HIDSerial serial;<br /><br />void setup(){<br />  serial.begin();<br />  Timer1.initialize(1000);<br />  Timer1.attachInterrupt(poll);<br />}<br /><br />// interrupt timer<br />void poll(){<br />    serial.poll();<br />}<br /><br />void loop(){<br />  serial.print(&quot;a&quot;);<br />  delay(100); // arbitrary delay to limit data to serial port   <br />}</code></pre></div><br /><br />It would be so great if someone had an idea…<br />Thanks in advance,<br />Cheers,<br />Tim<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=20218">cube</a> — Fri Feb 21, 2014 10:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
