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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-01-21T13:19:20+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Peter Chaffe]]></name></author>
		<updated>2012-01-21T13:19:20+02:00</updated>

		<published>2012-01-21T13:19:20+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20752#p20752</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20752#p20752"/>
		<title type="html"><![CDATA[Re: Noob question about Windows HID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20752#p20752"><![CDATA[
If absolutely nothing happens when its plugged in then D- is not being pulled high, good, looks like you've found the problem...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6086">Peter Chaffe</a> — Sat Jan 21, 2012 1:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mark]]></name></author>
		<updated>2012-01-21T11:13:29+02:00</updated>

		<published>2012-01-21T11:13:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20750#p20750</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20750#p20750"/>
		<title type="html"><![CDATA[Re: Noob question about Windows HID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20750#p20750"><![CDATA[
<blockquote><div><cite>Peter Chaffe wrote:</cite>First priority is to get the usb connection functional. if necessary without the rest of the circuit connected(this is sometimes a sensible approach when using a different mcu than suggested in a working example).</div></blockquote><br /><br />I know this. In fact I mounted only the MCU and the USB stuff. Nothing else.<br /><br /><blockquote class="uncited"><div>choice of clock freq is all part of ensuring the primary goal of having a working usb connection. 20 mhz is the extreme top end of the 164 &amp; 644 range, while it might well function at this speed I would tend to just get the v-usb working first at a more moderate clock speed, then experiment once the connection is up and working, believe me, getting a reliable usb connection first time around is somewhat hit or miss, especially over a range of different PC's, mainly because of the very approximate way in which v-usb adheres to the usb protocol.</div></blockquote><br /><br /><br />Ok, I replaced the crystal with a 12 MHz one. No chance.<br />Nothings happens when connecting to PC.<br /><br /><br /><blockquote class="uncited"><div>observed reaction varies with different os's, but all will notify you on first time connect and will/should load the generic hid driver without input from user (other than plugging in the device into the usb in the first place). once recognized, the driver is loaded, details written to registry, so that with future use of that device you will only hear the 2-tone sound notification that a device has been plugged in.</div></blockquote><br /><br /><br />That was what I knew. In the past a played a bit with a Microchip PIC to build some HID joystick.<br /><br />What should I do in order to find out the problem? Wait....<br />.<br />.<br />.<br />Found the issue! There was a very small drop of tin between pin 4 and 5 of the smd usb connector  <img class="smilies" src="./../../../images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" /> <br /><br />Now the examples work. I will go ahead with learning.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6299">Mark</a> — Sat Jan 21, 2012 11:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Peter Chaffe]]></name></author>
		<updated>2012-01-20T20:26:55+02:00</updated>

		<published>2012-01-20T20:26:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20746#p20746</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20746#p20746"/>
		<title type="html"><![CDATA[Re: Noob question about Windows HID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20746#p20746"><![CDATA[
First priority is to get the usb connection functional. if necessary without the rest of the circuit connected(this is sometimes a sensible approach when using a different mcu than suggested in a working example).<br /><br />choice of clock freq is all part of ensuring the primary goal of having a working usb connection. 20 mhz is the extreme top end of the 164 &amp; 644 range, while it might well function at this speed I would tend to just get the v-usb working first at a more moderate clock speed, then experiment once the connection is up and working, believe me, getting a reliable usb connection first time around is somewhat hit or miss, especially over a range of different PC's, mainly because of the very approximate way in which v-usb adheres to the usb protocol.<br /><br />observed reaction varies with different os's, but all will notify you on first time connect and will/should load the generic hid driver without input from user (other than plugging in the device into the usb in the first place). once recognized, the driver is loaded, details written to registry, so that with future use of that device you will only hear the 2-tone sound notification that a device has been plugged in.<br /><br />To see a list of loaded devices there are a few free tools around, usbview from Ms.<br />Also have a look at the tools section on usb.org.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6086">Peter Chaffe</a> — Fri Jan 20, 2012 8:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mark]]></name></author>
		<updated>2012-01-20T17:35:09+02:00</updated>

		<published>2012-01-20T17:35:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20745#p20745</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20745#p20745"/>
		<title type="html"><![CDATA[Re: Noob question about Windows HID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20745#p20745"><![CDATA[
<blockquote><div><cite>Peter Chaffe wrote:</cite>Mark you didn't say what the circuit is supposed to be doing!ft g</div></blockquote><br /><br />It doesn't matter. I'm only trying to exchange data to a pc using the hid-data example.<br /><br /><blockquote class="uncited"><div>(1) take usb pin3 to INT0.</div></blockquote><br /><br />It's already connected to INT0 (PD2)<br /><br /><blockquote class="uncited"><div>(2) change crystal to 12 mhz.</div></blockquote><br /><br /><br />Why? The doc of vusb says I can use a 20 MHz crystal. I need to go fast for the other activities.<br /><br /><br /><blockquote class="uncited"><div>(3) Your circuit suggests you want to control channels from the host, if so suggest not use hid but use the powerSwitch example.</div></blockquote><br /><br /><br />Nope. I don't want to control channels from the host.<br />I will use the USB connection only to transfer small amount of data - user parameters. <br /><br /><br /><blockquote class="uncited"><div>(4) Regarding host soft. mingw for windows, are you using devC ? which if you are is outdated and unsupported.</div></blockquote><br /><br /><br />At the moment, I'm just trying to compile the examples, from the command line, invoking mingw32-make.<br />Then I will use Qt4.<br /><br />By the way, you didn't answer my question  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /> <br />When I program the MCU with the hid-data firmware and connect the usb cable to the pc, should I see the &quot;new device found&quot; popup? Should I found the new HID device in the device manager?<br /><br />Thanks!<br />Mark<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6299">Mark</a> — Fri Jan 20, 2012 5:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Peter Chaffe]]></name></author>
		<updated>2012-01-20T17:26:03+02:00</updated>

		<published>2012-01-20T17:26:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20743#p20743</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20743#p20743"/>
		<title type="html"><![CDATA[Re: Noob question about Windows HID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20743#p20743"><![CDATA[
Mark you didn't say what the circuit is supposed to be doing!ft g<br /><br />Just by looking at it quickly, there is several things I would change regardless!<br /><br />(1) take usb pin3 to INT0.<br />(2) change crystal to 12 mhz.<br />(3) Your circuit suggests you want to control channels from the host, if so suggest not use hid but use the powerSwitch example.<br />(4) Regarding host soft. mingw for windows, are you using devC ? which if you are is outdated and unsupported.<br />Much better to use Visual C or port to Delphi...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6086">Peter Chaffe</a> — Fri Jan 20, 2012 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mark]]></name></author>
		<updated>2012-01-20T15:21:36+02:00</updated>

		<published>2012-01-20T15:21:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20742#p20742</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20742#p20742"/>
		<title type="html"><![CDATA[Noob question about Windows HID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6377&amp;p=20742#p20742"><![CDATA[
Hello to all,<br /><br />I'm going to connect my first vusb board to a windows machine. Here the schematic:<br /><br /><img src="http://img821.imageshack.us/img821/4834/appuntiwindows1e.jpg" class="postimage" alt="Image" /><br /><br />Here the fuse settings:<br /><br /><div class="codebox"><p>Code: </p><pre><code>   BODLEVEL = 4V3<br />   OCDEN = &#91; &#93;<br />   JTAGEN = &#91; &#93;<br />   SPIEN = &#91;X&#93;<br />   WDTON = &#91; &#93;<br />   EESAVE = &#91;X&#93;<br />   BOOTSZ = 4096W_7000<br />   BOOTRST = &#91; &#93;<br />   CKDIV8 = &#91; &#93;<br />   CKOUT = &#91; &#93;<br />   SUT_CKSEL = EXTXOSC_8MHZ_XX_16KCK_65MS<br /></code></pre></div><br /><br />Using AVR Studio 5 I compiled the hid-data example for ATmega644 (even if on my board there's a ATmega644P, actually).<br />The MCU is running at the correct frequency of 20 MHz. I tested it with a sample program.<br /><br />I'm still in trouble with the host software (I have errors with minGW) but in the meanwhile I tried to connect the USB cable to the computer.<br />Nothing happens. I'm wondering if I should see the new HID device in the device manager.<br /><br />These are the main options in usbconfig.h :<br /><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_IOPORTNAME      D<br />#define USB_CFG_DMINUS_BIT      4<br />#define USB_CFG_DPLUS_BIT       2<br />#define USB_CFG_CLOCK_KHZ       (20000) <br />#define USB_CFG_CHECK_CRC       0<br />#define USB_CFG_PULLUP_IOPORTNAME   D <br />#define USB_CFG_PULLUP_BIT          5<br />#define USB_CFG_HAVE_INTRIN_ENDPOINT    1<br />#define USB_CFG_HAVE_INTRIN_ENDPOINT3   0<br />#define USB_CFG_EP3_NUMBER              3<br />#define USB_CFG_IMPLEMENT_HALT          0<br />#define USB_CFG_SUPPRESS_INTR_CODE      0<br />#define USB_CFG_INTR_POLL_INTERVAL      100<br />#define USB_CFG_IS_SELF_POWERED         1<br />#define USB_CFG_MAX_BUS_POWER           50<br />#define USB_CFG_IMPLEMENT_FN_WRITE      1<br />#define USB_CFG_IMPLEMENT_FN_READ       1<br />#define USB_CFG_IMPLEMENT_FN_WRITEOUT   0<br />#define USB_CFG_HAVE_FLOWCONTROL        0<br />#define USB_CFG_DRIVER_FLASH_PAGE       0<br />#define USB_CFG_LONG_TRANSFERS          0<br />#define USB_COUNT_SOF                   0<br />#define USB_CFG_CHECK_DATA_TOGGLING     0<br />#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH   0<br />#define USB_USE_FAST_CRC                1<br />#define  USB_CFG_VENDOR_ID       0xc0, 0x16 /* = 0x16c0 = 5824 = voti.nl */<br />#define  USB_CFG_DEVICE_ID       0xdf, 0x05 /* obdev's shared PID for HIDs */<br />#define USB_CFG_DEVICE_VERSION  0x00, 0x01<br />#define USB_CFG_VENDOR_NAME     'o', 'b', 'd', 'e', 'v', '.', 'a', 't'<br />#define USB_CFG_VENDOR_NAME_LEN 8<br />#define USB_CFG_DEVICE_NAME     'D', 'a', 't', 'a', 'S', 't', 'o', 'r', 'e'<br />#define USB_CFG_DEVICE_NAME_LEN 9<br />#define USB_CFG_DEVICE_CLASS        0<br />#define USB_CFG_DEVICE_SUBCLASS     0<br />#define USB_CFG_INTERFACE_CLASS     3<br />#define USB_CFG_INTERFACE_SUBCLASS  0<br />#define USB_CFG_INTERFACE_PROTOCOL  0<br />#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    22<br /></code></pre></div><br /><br /><br />Thanks in advance!<br />Mark<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6299">Mark</a> — Fri Jan 20, 2012 3:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
