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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-05-29T16:48:49+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-05-29T16:48:49+02:00</updated>

		<published>2007-05-29T16:48:49+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=480&amp;p=1424#p1424</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=480&amp;p=1424#p1424"/>
		<title type="html"><![CDATA[&quot;Invalid or incomplete multibyte or wide character&quot]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=480&amp;p=1424#p1424"><![CDATA[
My first guess would be that this is a timeout issue. If you disable interrupts for too long (more than ~ 20 CPU cycles), the driver may fail to respond (correctly) to a request from the host.<br /><br />If you have your own interrupt handlers, make sure that the first instruction emitted by the compiler is a SEI to allow USB interrupts. Compile your source files down to assembler code (with gcc option &quot;-S&quot;) to see what the compiler makes out of your code.<br /><br />Another possibility: If you write to the EEPROM, your write function might disable interrupts until the data has been written.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue May 29, 2007 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cinek]]></name></author>
		<updated>2007-05-21T13:07:44+02:00</updated>

		<published>2007-05-21T13:07:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=480&amp;p=1405#p1405</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=480&amp;p=1405#p1405"/>
		<title type="html"><![CDATA[&quot;Invalid or incomplete multibyte or wide character&quot]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=480&amp;p=1405#p1405"><![CDATA[
hi. i've built a USB device on Atmega8 which counts seconds, measures temperature in fixed intervals and stores data in EEPROM. when connected via USB it is polled every second to give current time and temperature. it works fine, but from time to time I get errors like those:<br /><br />commandline:<div class="codebox"><p>Code: </p><pre><code>USB error: error sending control message: Invalid or incomplete multibyte or wide character<br />only -84 bytes status received</code></pre></div>dmesg:<div class="codebox"><p>Code: </p><pre><code>&#91;17182281.564000&#93; usb 2-2: new low speed USB device using uhci_hcd and address 3<br />&#91;17182281.736000&#93; usb 2-2: configuration #1 chosen from 1 choice<br />&#91;17183069.944000&#93; usb 2-2: usbfs: USBDEVFS_CONTROL failed cmd USBterm rqt 192 rq 2 len 8 ret -84</code></pre></div><br />there is no rule whether it happens after 10 minutes or 10 hours of work, it appears to be random. i use 16bit timer and interrupt (to count seconds and measure fixed intervals for polling sensors), is it possible that it interferes with communication? any ideas, please?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=246">cinek</a> — Mon May 21, 2007 1:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
