Help with Lufa usb 2.0 spec.

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Firstly, I didnt really see any LUFA specific forums (fora) out there, are there any? Second, I'm coming from v-usb to LUFA. So there are areas I will fall short in. For the most port aside from all the defines scatter all over the palace I'm able to use the documentation and get what I need done. I was able to create A 1.1 usb spec device and it works great. From what I can tell and perhaps I'm just wrong but the atmega32u2 chip should handle the following;

USB 1.1 full speed, high speed

USB 2.0  full speed, high speed

From what I know and this could be wrong but the main advantage with 2.0, is that it will handle a larger payload. I'm not particularly interested in that at the moment but I need to be 2.0 complaint for my particular requirement.  I was able to change the USB config to reflect 2.0 but I'm still getting 8 ms per interrupt poll. I'm not really sure the best way to know of I'm now a 2.0 device to the host? Is there a way to know checking in device manager? Also I'm not sure how I change the poll rate. Is it the PollingIntervalMS?

 

This is  what I have now.

.HID_JoystickHID =
		{
			.Header                 = {.Size = sizeof(USB_HID_Descriptor_HID_t), .Type = HID_DTYPE_HID},

			.HIDSpec                = VERSION_BCD(2.0),
			.CountryCode            = 0x00,
			.TotalReportDescriptors = 1,
			.HIDReportType          = HID_DTYPE_Report,
			.HIDReportLength        = sizeof(JoystickReport)
		},
	.HID_ReportOUTEndpoint =
		{
			.Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},

			.EndpointAddress        = JOYSTICK_OUT_EPADDR,
			.Attributes             = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
			.EndpointSize           = JOYSTICK_EPSIZE,
			.PollingIntervalMS      = 0x05
		},
	.HID_ReportINEndpoint =
		{
			.Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},

			.EndpointAddress        = JOYSTICK_EPADDR,
			.Attributes             = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
			.EndpointSize           = JOYSTICK_EPSIZE,
			.PollingIntervalMS      = 0x05
		}

I need a poll rate of 5ms. Though I see 8 in my usb analyzer. 

Last Edited: Sat. Dec 15, 2018 - 10:45 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I didnt really see any LUFA specific forums (fora) out there, are there any?

Maybe these?

http://www.fourwalledcubicle.com...

https://groups.google.com/forum/...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey the second link looks like it, I saw that but assumed it was just a google unofficial forum. Though I see that is not the case.