Search found 162 matches

by Grendel
Fri Jan 22, 2010 10:06 pm
Forum: V-USB
Topic: Changing HID Mouse Example to Keyboard
Replies: 9
Views: 6509

Re: Changing HID Mouse Example to Keyboard

Changing/adding the serial no. string should do it. Changing the device version no. may do it too.
by Grendel
Sun Jan 17, 2010 9:01 am
Forum: V-USB
Topic: V-USB HID joystick doesn't work ... sometimes
Replies: 4
Views: 3640

Re: V-USB HID joystick doesn't work ... sometimes

Check usbdrv.h: Interrupt latency: The application must ensure that the USB interrupt is not disabled for more than 25 cycles (this is for 12 MHz, faster clocks allow longer latency). This implies that all interrupt routines must either be declared as "INTERRUPT" instead of "SIGNAL&qu...
by Grendel
Wed Dec 30, 2009 12:17 pm
Forum: V-USB
Topic: example for Atmega8
Replies: 14
Views: 10147

Re: example for Atmega8

You are overloading the systems input queue. Not only is the methology wrong, the report descriptor is malformed too. Here is a working example for a valid KB RD, 1st byte modifier keys plus two bytes for keys down: 0x05, 0x01, // USAGE_PAGE (Generic Desktop) 0x09, 0x06, // USAGE (Keyboard) 0xA1, 0x...
by Grendel
Tue Dec 15, 2009 9:32 am
Forum: V-USB
Topic: Device descriptor read/64, error -71; no ISR?
Replies: 8
Views: 4875

Re: Device descriptor read/64, error -71; no ISR?

Oops, skimmed right over that, sorry. Very odd. I used the same BL w/ a mega8 w/o problems but later switched to bootloadHID since it doesn't need special kernel drivers. Anyway, what are your fuse values ? You need to set the BOOTSZ bits to 1024 words (2kbytes), BOOTRST needs to be enabled. The loa...
by Grendel
Tue Dec 08, 2009 8:05 pm
Forum: V-USB
Topic: Device descriptor read/64, error -71; no ISR?
Replies: 8
Views: 4875

Re: Device descriptor read/64, error -71; no ISR?

Wait a second -- 328p ? Did you see this ?
by Grendel
Sun Dec 06, 2009 4:32 am
Forum: V-USB
Topic: Device descriptor read/64, error -71; no ISR?
Replies: 8
Views: 4875

Re: Device descriptor read/64, error -71; no ISR?

After defining the ID resistor you need to explicitly connect it via usbDeviceConnect() .
by Grendel
Fri Dec 04, 2009 5:18 am
Forum: V-USB
Topic: Device descriptor read/64, error -71; no ISR?
Replies: 8
Views: 4875

Re: Device descriptor read/64, error -71; no ISR?

Bad Zeners would be my guess. For P type AVRs you really need 3.6V Z-diodes that are <= 500mW.
by Grendel
Tue Nov 17, 2009 12:55 am
Forum: V-USB
Topic: problem with LEDControl example
Replies: 20
Views: 12143

Re: problem with LEDControl example

Try replacing the 47uF w/ a 4.7uF cap, remove the 2nd elca, and change the lfuses to 0x1f. I also would also suggest to put the diodes/resistors on the data lines as close to the MCU as possible and get rid of the long wires after the USB connector -- your flourescent lamps will wreck havoc w/ the s...
by Grendel
Thu Nov 05, 2009 10:24 pm
Forum: V-USB
Topic: Help! Windows stopped device it reported a problem?
Replies: 11
Views: 5485

Re: Help! Windows stopped device it reported a problem?

3.6V Z-diodes & 62Ohm. Make sure the diodes are rated 500mW or less.
by Grendel
Thu Nov 05, 2009 7:39 am
Forum: V-USB
Topic: Help! Windows stopped device it reported a problem?
Replies: 11
Views: 5485

Re: Help! Windows stopped device it reported a problem?

I've used V-USB w/ a mega8 16MHz just fine. Fuse bytes I use: high: 0xD9, low: 0x1F (w/o bootloader)
by Grendel
Thu Nov 05, 2009 1:01 am
Forum: V-USB
Topic: switch descriptor on the fly
Replies: 2
Views: 2040

Re: switch descriptor on the fly

The descriptors are only read during enumeration. The only way to get the host to enumerate is via a connect event. That can be done by un- and then re-plugging the USB cable or by dis- and re-connecting the USB ID resistor (UsbConnect() & UsbDisconnect()). Even if you could change the layout of...
by Grendel
Tue Oct 27, 2009 2:09 am
Forum: V-USB
Topic: Mass Storage class over V-USB
Replies: 26
Views: 17150

Re: Mass Storage class over V-USB

On the 88 the GICR bits have moved to EIMSK (INT1, INT0) and MCUCR (IVSEL, IVCE).
by Grendel
Wed Sep 23, 2009 11:31 pm
Forum: V-USB
Topic: Combining HID devices in one
Replies: 8
Views: 5289

Re: Combining HID devices in one

..if I send decimal 128 (Keyboard Volume Up) the volume should increment... No effect in Windows, nor Ubuntu. Ok, I found another way, microsoft documents say: Consumer Page Audio Controls Supported in Windows Operating Systems 0xE2 Mute 0xE9 Volume Increment 0xEA Volume Decrement Which one are you...
by Grendel
Tue Sep 22, 2009 8:48 pm
Forum: V-USB
Topic: Combining HID devices in one
Replies: 8
Views: 5289

Re: Combining HID devices in one

I tried to send keycodes and modifiers and... it works! Going deeper, i've changed a line of HID descriptor to 0x25, 0x85, // LOGICAL_MAXIMUM (133) to use external keycodes (referencing usb.org hid document), and decided if I send decimal 128 (Keyboard Volume Up) the volume should increment... No e...
by Grendel
Thu Sep 17, 2009 6:17 am
Forum: V-USB
Topic: BootloadHID, atmega88, TWO IO pins.
Replies: 3
Views: 2397

Re: BootloadHID, atmega88, TWO IO pins.

The D+ bit can be sampled from the INT0 input. Currently V-USB requires D- and D+ to be on the same port tho, you'll have to move D- to port D or sacrifice another I/O bit on port B for a copy of D+.