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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-12-15T20:40:18+02:00</updated>

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

		<entry>
		<author><name><![CDATA[solata10]]></name></author>
		<updated>2009-12-15T20:40:18+02:00</updated>

		<published>2009-12-15T20:40:18+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12506#p12506</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12506#p12506"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12506#p12506"><![CDATA[
ok solved, the device was not recognized, becouse i didnt set the frequency of device correctly.<br />Makefile: <br /><br />F_CPU   = 12000000<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3264">solata10</a> — Tue Dec 15, 2009 8:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[solata10]]></name></author>
		<updated>2009-12-15T19:48:57+02:00</updated>

		<published>2009-12-15T19:48:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12504#p12504</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12504#p12504"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12504#p12504"><![CDATA[
ok i've been playing with that blinking led addon to the code, and i managed to make it work,<br />LED_PORT_OUTPUT |= _BV(LED_BIT);<br />turns the led on sucesfuly, however when i try to &quot;sleep&quot; for a second, then nomather, if i use <br />_delay_ms(1000);<br />or if i use for (i = 0; i&lt; 99999; i++) a = 0;<br />the program seems to reset itself.<br /><br />LED_PORT_OUTPUT |= _BV(LED_BIT);<br />_delay_ms(1000);<br />for (;;) .....<br /><br />led turns on, stays on for a while ( 1 second ), then the board seems to be reset (led turns off, and then it turns on again right away)<br />i get the same behaviour even if i increase the delay.<br /><br />is this ok ? does v-usb have some settings for this behaviour ? or do i have a problem ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3264">solata10</a> — Tue Dec 15, 2009 7:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[solata10]]></name></author>
		<updated>2009-12-15T17:15:38+02:00</updated>

		<published>2009-12-15T17:15:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12502#p12502</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12502#p12502"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12502#p12502"><![CDATA[
is there some simple firmware i can put on my device which will show if anything on the device side is ok ? (like turn on a led, if usb initialization is ok, and then blink the led if code is executing)<br />i tried puting this in my main.c just before for(;;) in int main() :<br /><br />_delay_ms(5000);<br />LED_PORT_OUTPUT |= _BV(LED_BIT);<br />_delay_ms(5000);<br />LED_PORT_OUTPUT |= ~_BV(LED_BIT);<br /><br />however its not working. when i plug my device in usb it takes 5 second till i get the &quot;device connected sound&quot;, and then i get &quot;device disconected sound&quot; right after it.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3264">solata10</a> — Tue Dec 15, 2009 5:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[solata10]]></name></author>
		<updated>2009-12-15T15:10:53+02:00</updated>

		<published>2009-12-15T15:10:53+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12499#p12499</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12499#p12499"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12499#p12499"><![CDATA[
ok here is schematics for my current board. <br /><br /><!-- m --><a class="postlink" href="http://www.yousendit.com/download/MVNlcXlvWlQ1UjdIRGc9PQ">http://www.yousendit.com/download/MVNlc ... UjdIRGc9PQ</a><!-- m --><br /><br />notice that i changed chip to atmel 8535.<br />i am trying to run the hid-custom-rq from examples folder of latest v-usb<br />only changed i made are :<br /><br />main.c :  line 19 (changed the port the led is connected to)<br />#define LED_PORT_DDR        DDRB<br />#define LED_PORT_OUTPUT     PORTB<br />#define LED_BIT             0<br /><br />usbconfig.h: line 26 (changed the port nad pins where D+ and D- are connected)<br />#define USB_CFG_IOPORTNAME      B<br />#define USB_CFG_DMINUS_BIT      0<br />#define USB_CFG_DPLUS_BIT       1<br /><br />Makefile: line 10 (changed the device)<br />DEVICE  = atmega8535<br /><br />i compiled the code, uploaded to my device, and set the fuses to : LFUSE: 0xff   HFUSE: 0xC9<br /><br />when i connect the device, i still get the same error, usb device malfunctioned. voltage on Vdd : 5.2V, voltage on D- : 3.0V<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3264">solata10</a> — Tue Dec 15, 2009 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[solata10]]></name></author>
		<updated>2009-12-15T14:51:38+02:00</updated>

		<published>2009-12-15T14:51:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12498#p12498</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12498#p12498"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12498#p12498"><![CDATA[
i changed the batery in my multimeter, and now it shows 5.2V output of usb<br />and after i connected the 3.6V zener diodes i have 3.0V on D-<br /><br />however its still not working. <br />i will try to assemble new circuit, with just one led and will try to run hid-custom-rq (from v-usb examples folder)<br />i will post my results.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3264">solata10</a> — Tue Dec 15, 2009 2:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2009-12-14T19:43:43+02:00</updated>

		<published>2009-12-14T19:43:43+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12481#p12481</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12481#p12481"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12481#p12481"><![CDATA[
Good quality, high power type AA batteries can give out as much as 2V when they're new, although I think it would be too much of a coincidence for both computers to be reading 8V. You don't by any chance have your meter set to AC?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Mon Dec 14, 2009 7:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[solata10]]></name></author>
		<updated>2009-12-14T11:18:32+02:00</updated>

		<published>2009-12-14T11:18:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12469#p12469</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12469#p12469"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12469#p12469"><![CDATA[
i tried measuring voltage on usb port (without device connected. its in the range fro 7.6 till 8V.<br />i also measured it on another computer, and got the same results.<br />then i measured the voltage on standard AA battery, got a reading of 2.2V (it should be 1.5 right?)<br />so i'm guesing my measuring equipment isnt realy precise.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3264">solata10</a> — Mon Dec 14, 2009 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[solata10]]></name></author>
		<updated>2009-12-14T11:14:08+02:00</updated>

		<published>2009-12-14T11:14:08+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12467#p12467</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12467#p12467"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12467#p12467"><![CDATA[
i set fuses exactly as described in pdf pasted above. avrdude said it was sucesful. i will try to add zener diodes.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3264">solata10</a> — Mon Dec 14, 2009 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2009-12-14T01:45:44+02:00</updated>

		<published>2009-12-14T01:45:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12451#p12451</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12451#p12451"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12451#p12451"><![CDATA[
<blockquote><div><cite>solata10 wrote:</cite>i'm a little bit confised to. where do i get 7.6 V, if it should be 5 ?</div></blockquote><br /><br />I would question the measuring device in this case. Try measuring the output from your usb port without the device connected, if it is 7.6V then you have some serious problem.<br /><br />I'd say it's more likely 5V and solution B would be the way to go, just add a couple of 3v6 zenners and maybe swap the 2k2 resistor for a 1k5 (2k2 should work though). Also I wonder did you set the fuses correctly as you do not mention this in your initial post.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Mon Dec 14, 2009 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[solata10]]></name></author>
		<updated>2009-12-13T22:34:32+02:00</updated>

		<published>2009-12-13T22:34:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12450#p12450</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12450#p12450"/>
		<title type="html"><![CDATA[Re: USB Device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3636&amp;p=12450#p12450"><![CDATA[
hey. yes i detached it from the programming cable.<br />i'm a little bit confised to. where do i get 7.6 V, if it should be 5 ? <br />that way even solutions published on a wiki page wouldnt work (well atlest not solutions under B)<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3264">solata10</a> — Sun Dec 13, 2009 10:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
