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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-03-04T00:13:28+02:00</updated>

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

		<entry>
		<author><name><![CDATA[jferguson]]></name></author>
		<updated>2011-03-04T00:13:28+02:00</updated>

		<published>2011-03-04T00:13:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17792#p17792</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17792#p17792"/>
		<title type="html"><![CDATA[Re: Could not find USB device &quot;LEDControl&quot; (atmega324p)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17792#p17792"><![CDATA[
Okay.... for posterity, the program has to be called with sudo.<br /><br /><div class="codebox"><p>Code: </p><pre><code>sudo ./set-led status</code></pre></div><br /><br />not<br /><div class="codebox"><p>Code: </p><pre><code>./set-led status</code></pre></div><br /><br />D'OH! I wonder why this is. I guess my OS isn't automagically allowing the device to be accessed by regular users. I know there are programs to allow users to access things like USB drives, or cameras, but I guess by default hardware access is restricted to root. If anyone could explain or elabourate on that, I'd be grateful.<br /><br />At least it's working!  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /> <br /><br />Let the hacking begin.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4982">jferguson</a> — Fri Mar 04, 2011 12:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2011-03-01T21:31:31+02:00</updated>

		<published>2011-03-01T21:31:31+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17763#p17763</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17763#p17763"/>
		<title type="html"><![CDATA[Re: Could not find USB device &quot;LEDControl&quot; (atmega324p)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17763#p17763"><![CDATA[
I see you are using a USBasp programmer, could it be that the VID &amp; PID are the same as LEDcontrol? I know Windows has a problem with this scenario but not too sure about Ubuntu. Try re-booting without the programmer connected and see if that makes a difference.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Tue Mar 01, 2011 9:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jferguson]]></name></author>
		<updated>2011-03-01T04:22:53+02:00</updated>

		<published>2011-03-01T04:22:53+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17755#p17755</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17755#p17755"/>
		<title type="html"><![CDATA[Re: Could not find USB device &quot;LEDControl&quot; (atmega324p)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17755#p17755"><![CDATA[
A picture in case it helps:<br /><br /><a href="http://i.imgur.com/rcuSr.jpg" class="postlink"><img src="http://i.imgur.com/rcuSrl.jpg" class="postimage" alt="Image" /></a><br />(click to enlarge)<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4982">jferguson</a> — Tue Mar 01, 2011 4:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jferguson]]></name></author>
		<updated>2011-03-01T03:47:51+02:00</updated>

		<published>2011-03-01T03:47:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17754#p17754</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17754#p17754"/>
		<title type="html"><![CDATA[Re: Could not find USB device &quot;LEDControl&quot; (atmega324p)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17754#p17754"><![CDATA[
I've tried with an ATMEGA48 now. Same problem.<br /><br />I've checked the voltages at D+ and D-. D- is at 2.7V, D+ is at 0V. The uC has 5.05V.<br /><br />Can someone give me ballpark figures on the voltages I should be seeing?<br /><br />Additional details:<br />Ubuntu 10.04<br />libusb1.0 and 0.14 installed (might this cause a conflict of some kind?)<br /><br />I noticed `libusb-config --cflags` didn't return anything, so I modified the makefile to include -lusb in the compiler flags (for the set-led program)<br /><br />Thanks for your time. Sorry if I seem impatient, I just got all my parts today, and I'm quite excited. It's just a shame that I have to work through so many strange errors.  <img class="smilies" src="./../../../images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4982">jferguson</a> — Tue Mar 01, 2011 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-03-01T00:38:48+02:00</updated>

		<published>2011-03-01T00:38:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17749#p17749</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17749#p17749"/>
		<title type="html"><![CDATA[Could not find USB device &quot;LEDControl&quot; (atmega324p)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5492&amp;p=17749#p17749"><![CDATA[
I'm trying to get the custom-class example to work with an atmega324p. I can compile and flash the firmware without issue, but the set-led program doesn't work.<br /><br />I went through and modified the files so the appropriate fuse bits are set, and the appropriate pins are chosen for D+ and D-<br /><br />The full error I get is:<br />&quot;Could not find USB device &quot;LEDControl&quot; with vid=0x16c0 pid=0x5dc&quot;<br /><br />When I run lsusb:<br /><div class="codebox"><p>Code: </p><pre><code>johnny@picard:$ lsusb<br /><br />Bus 002 Device 025: ID 16c0:05dc VOTI USBasp AVR Programmer<br /><br />Bus 002 Device 005: ID 03f0:2504 Hewlett-Packard <br />Bus 002 Device 004: ID 06a3:8021 Saitek PLC Eclipse II Keyboard<br />Bus 002 Device 003: ID 058f:9254 Alcor Micro Corp. Hub<br />Bus 002 Device 002: ID 045e:00d1 Microsoft Corp. Optical Mouse with Tilt Wheel<br />Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />Bus 001 Device 010: ID 0781:74c3 SanDisk Corp. <br />Bus 001 Device 003: ID 0c0b:b159 Dura Micro, Inc. (Acomdata) <br />Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</code></pre></div><br /><br />A more detailed dump:<br /><div class="codebox"><p>Code: </p><pre><code>Bus 002 Device 025: ID 16c0:05dc VOTI USBasp AVR Programmer<br />Device Descriptor:<br />  bLength                18<br />  bDescriptorType         1<br />  bcdUSB               1.10<br />  bDeviceClass          255 Vendor Specific Class<br />  bDeviceSubClass         0 <br />  bDeviceProtocol         0 <br />  bMaxPacketSize0         8<br />  idVendor           0x16c0 VOTI<br />  idProduct          0x05dc USBasp AVR Programmer<br />  bcdDevice            1.00<br />  iManufacturer           1 jferg.net<br />  iProduct                2 LEDControl<br />  iSerial                 0 <br />  bNumConfigurations      1<br />  Configuration Descriptor:<br />    bLength                 9<br />    bDescriptorType         2<br />    wTotalLength           18<br />    bNumInterfaces          1<br />    bConfigurationValue     1<br />    iConfiguration          0 <br />    bmAttributes         0x80<br />      (Bus Powered)<br />    MaxPower               40mA<br />    Interface Descriptor:<br />      bLength                 9<br />      bDescriptorType         4<br />      bInterfaceNumber        0<br />      bAlternateSetting       0<br />      bNumEndpoints           0<br />      bInterfaceClass         0 (Defined at Interface level)<br />      bInterfaceSubClass      0 <br />      bInterfaceProtocol      0 <br />      iInterface              0 <br />Device Status:     0x0000<br />  (Bus Powered)<br /></code></pre></div><br /><br />The product name appears to be correct.<br /><br />I'm measuring 2.75V on the D- line, and 0V on the D+ line. This is just with a standard multimeter.<p>Statistics: Posted by Guest — Tue Mar 01, 2011 12:38 am</p><hr />
]]></content>
	</entry>
	</feed>
