Search found 1013 matches

by christian
Sat Feb 27, 2010 1:59 pm
Forum: V-USB
Topic: undefined reference to `usbDescriptorStringSerialNumber'
Replies: 1
Views: 2830

Re: undefined reference to `usbDescriptorStringSerialNumber'

Have you defined one of the *SERIAL_NUMBER defines in usbconfig.h?
by christian
Sat Feb 27, 2010 1:55 pm
Forum: V-USB
Topic: Host Software for HID? Example code?
Replies: 1
Views: 2073

Re: Host Software for HID? Example code?

There are two options: You can send custom requests to your device via libusb-win32 or you can send HID feature reports. Sending custom requests to endpoint 0 should always be possible, even if the device is connected to a class driver. Feature reports should also work, but I'm not a Windows expert ...
by christian
Sat Feb 27, 2010 1:51 pm
Forum: V-USB
Topic: Could not find USB device "LEDControl" vid=0x16c0 pid=0x5dc
Replies: 7
Views: 5837

Re: Could not find USB device "LEDControl" vid=0x16c0 pid=0x5dc

If the device is not recognized, there's probably a very basic communication problem. Is this the 168p? AVR-libc does not support the compatibility defines for interrupt vectors for P suffix devices any more. This means that you must either define USB_INTR_VECTOR to INT0_vect in usbconfig.h or choos...
by christian
Fri Jan 22, 2010 1:12 pm
Forum: V-USB
Topic: Changing HID Mouse Example to Keyboard
Replies: 9
Views: 8266

Re: Changing HID Mouse Example to Keyboard

It's best to use a new VID/PID pair, since this one has been used for a mouse before. We have reserved PID = 10203 (0x27db) VID = 5824 for keyboards.
by christian
Fri Jan 22, 2010 11:42 am
Forum: V-USB
Topic: Changing HID Mouse Example to Keyboard
Replies: 9
Views: 8266

Re: Changing HID Mouse Example to Keyboard

If you have not changed the USB IDs, Windows (this is Windows, right?) may have cached the associated driver(s). This means that it will use the mouse driver instead of the keyboard driver, just because you once connected the device when it was a mouse.
by christian
Fri Jan 22, 2010 11:36 am
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16582

Re: How to output data to e.g. HID device

Endpoint 0 is described in the USB spec. Since it MUST be a control endpoint, there is no need to add a separate descriptor for it.
by christian
Wed Jan 20, 2010 9:43 pm
Forum: V-USB
Topic: V-USB on Attiny 85 with internal 8MHz oscilator
Replies: 5
Views: 5698

Re: V-USB on Attiny 85 with internal 8MHz oscilator

If you want to use V-USB, I'd recommend to forget about the Arduino IDE and write your code directly in C. Arduino comes with the C development environment. It is possible to use V-USB with the Arduino runtime, but it's not well documented and does not work reliably (yet). So I'd not recommend it fo...
by christian
Wed Jan 20, 2010 7:04 pm
Forum: V-USB
Topic: Wakeup the system
Replies: 22
Views: 26392

Re: Wakeup the system

This is not suspend mode, at least according to the specs...
by christian
Wed Jan 20, 2010 5:12 pm
Forum: V-USB
Topic: Wakeup the system
Replies: 22
Views: 26392

Re: Wakeup the system

I don't use an external keyboard. We have old Mac keyboards with a power key, but they fail to wake my computer from power-off. The trivial reason is that there is no USB power during power-off and thus no way for the keyboard to signal anything...
by christian
Wed Jan 20, 2010 4:19 pm
Forum: V-USB
Topic: Wakeup the system
Replies: 22
Views: 26392

Re: Wakeup the system

My computer (a Mac) wakes up from sleep when I disconnect any device. Disconnect is indistinguishable from RESET/SE0 in the first place. So my guess was that USB RESET would wake up the host.
by christian
Wed Jan 20, 2010 1:06 pm
Forum: V-USB
Topic: Wakeup the system
Replies: 22
Views: 26392

Re: Wakeup the system

Sorry, I think I have mixed up J and K. Since the bus is in idle during suspend, you must change something. Otherwise the host can't detect the signal. I have never tried this myself. Have you tried commercial USB devices whether they can wake up the host? This may be a configuration option of the o...
by christian
Tue Jan 19, 2010 10:22 pm
Forum: V-USB
Topic: Wakeup the system
Replies: 22
Views: 26392

Re: Wakeup the system

The spec also says that the device must implement the set/get functions for this attribute. Don't know whether the default implementation handles that....
by christian
Tue Jan 19, 2010 7:23 pm
Forum: V-USB
Topic: Wakeup the system
Replies: 22
Views: 26392

Re: Wakeup the system

OK. The USB 1.1 spec (which you can download, it's public) says in section 7.1.7.5 Resume: A device with remote wakeup capability may not generate resume signaling unless the bus has been continuously in the Idle state for 5ms (TWTRSM). This allows the hubs to get into their Suspend state and prepar...
by christian
Tue Jan 19, 2010 7:01 pm
Forum: V-USB
Topic: Wakeup the system
Replies: 22
Views: 26392

Re: Wakeup the system

As far as I know, pulling D+ and D- to GND for a short period of time should suffice. This feature may have to be enabled in a descriptor, though. I'd have to read in the USB spec for details on how long to pull D+ and D- to GND and which bit in which descriptor to set...
by christian
Tue Jan 19, 2010 6:56 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16582

Re: How to output data to e.g. HID device

254 bytes is the size limit of V-USB in the default configuration. If you need bigger descriptors, define USB_CFG_LONG_TRANSFERS in usbconfig.h.