Search found 1013 matches

by christian
Tue Apr 28, 2009 7:27 pm
Forum: V-USB
Topic: Can't find device in windows, please help
Replies: 22
Views: 13974

Re: Can't find device in windows, please help

Ah, sorry. Did not remember the context. Windows locks keyboards and mice, but not generic HIDs. If you have a keyboard or mouse, you probably need to send and receive a report.
by christian
Tue Apr 28, 2009 10:22 am
Forum: V-USB
Topic: Can't find device in windows, please help
Replies: 22
Views: 13974

Re: Can't find device in windows, please help

Yes. That's the way how HID report descriptors work.

If you need a kind of RPC mechanism with only a couple of bytes sent to the device, consider raw setup requests with libusb-win32. This is an additional install, though.
by christian
Mon Apr 27, 2009 9:17 pm
Forum: V-USB
Topic: Can't find device in windows, please help
Replies: 22
Views: 13974

Re: Can't find device in windows, please help

usbSetReport() sends data to the device. Use usbGetReport() to read data.
by christian
Mon Apr 27, 2009 7:48 pm
Forum: V-USB
Topic: Help with new debugging method
Replies: 3
Views: 3470

Re: Help with new debugging method

I don't have the time to look through your code, but one comment: Debug mechanisms should be simple. They are there in order to debug problems, not in order to create new problems. The debug mechanism should work even if everything else breaks, just to debug this broken stuff. Debugging through USB ...
by christian
Mon Apr 27, 2009 7:45 pm
Forum: V-USB
Topic: Atmega8535 OK / Atmega328p FAIL
Replies: 34
Views: 34842

Re: Atmega8535 OK / Atmega328p FAIL

The AVR code needs nothing else than an edge triggered interrupt. This is configured in usbInit() in usbdrv.c.

The "P" stands for pico-power. Maybe you must enable something in an I/O register to turn on edge triggered interrupts. Just an idea...
by christian
Mon Apr 27, 2009 1:08 pm
Forum: V-USB
Topic: Can't find device in windows, please help
Replies: 22
Views: 13974

Re: Can't find device in windows, please help

To receive data, you must implement usbFunctionWrite(). If you want to send data, you can still use the message pointer mechanism. The result is the same, except that you need to have the data in a static buffer beforehand. If you decide to implement usbFunctionRead(), you can generate the data on t...
by christian
Sat Apr 25, 2009 11:58 am
Forum: V-USB
Topic: alternative to usbSetInterrupt with HID
Replies: 5
Views: 5846

Re: alternative to usbSetInterrupt with HID

If you poll from the host, you don't need the interrupt endpoint at all. You can read chunks of 12 bytes at once (well, the driver splits it up into 8 byte chunks for you). And you could use a flag to indicate whether the current buffer has already been transferred. However, I really doubt that poll...
by christian
Fri Apr 24, 2009 5:49 pm
Forum: V-USB
Topic: usb polling disrupted by UART interrupts
Replies: 10
Views: 7161

Re: usb polling disrupted by UART interrupts

Q0: Why not use memory for REG_UARTFLAGS_B ? Because access to I/O registers is faster by 1 cycle. You can use a memory location instead, of course. Q1: Is uartScratch always mapped to R2 (and not used for some else variable by compiler ) ? Could we used it as storage instead of GPIOR1 ? In princip...
by christian
Fri Apr 24, 2009 11:14 am
Forum: V-USB
Topic: Nunchuck joystick / presentation tool?
Replies: 1
Views: 2217

Re: Nunchuck joystick / presentation tool?

You may want to look at http://www.harbaum.org/till/i2c_tiny_usb/

This is not HID, I think, but an I2C interface with an 8 bit device.
by christian
Fri Apr 24, 2009 11:12 am
Forum: V-USB
Topic: alternative to usbSetInterrupt with HID
Replies: 5
Views: 5846

Re: alternative to usbSetInterrupt with HID

I'm not sure I understand what you want to do. Do you send a CMD_POLL setup request after receipt of each interrupt packet from the host to acknowledge the receipt? And why should this be faster or better than using usbInterruptIsReady()?
by christian
Wed Apr 22, 2009 11:56 am
Forum: V-USB
Topic: Vendor type requests sent to custom HID class template
Replies: 2
Views: 2989

Re: Vendor type requests sent to custom HID class template

There are two versions of libusb-win32. The filter version, which must be installed in any case, and the dll version which must be associated with your device by means of a .inf file. So I'm afraid you need some kind of installation in any case, contrary to the claim on the wiki.
by christian
Wed Apr 22, 2009 11:53 am
Forum: V-USB
Topic: alternative to usbSetInterrupt with HID
Replies: 5
Views: 5846

Re: alternative to usbSetInterrupt with HID

I doubt that you can make this faster with this descriptor size...
by christian
Wed Apr 22, 2009 11:48 am
Forum: V-USB
Topic: Attiny25 OSCALL calibration
Replies: 2
Views: 2361

Re: Attiny25 OSCALL calibration

You really should use some kind of regular calibration, something similar to the code in the libs-device directory of the driver. This may be very tight on the Tiny25, though.
by christian
Wed Apr 22, 2009 11:34 am
Forum: V-USB
Topic: AVR Compatibility list
Replies: 2
Views: 2170

Re: AVR Compatibility list

I have not tested this particular chip myself, but since V-USB needs almost no hardware resources, it works on all AVRs which have at least 128 bytes RAM and 2 kBytes Flash. The Mega169 meets these criteria. You may have problems with devices with more than 64 kBytes of Flash when you use a boot loa...
by christian
Wed Apr 22, 2009 11:28 am
Forum: V-USB
Topic: usb polling disrupted by UART interrupts
Replies: 10
Views: 7161

Re: usb polling disrupted by UART interrupts

This is exactly what my code is intended to do. If you do it this way, the assembler emits tons of push instructions before you can actually enable global interrupts. These probably take longer than the driver allows. The code I suggested uses a naked routine to do the interrupt magic before any pus...