Search found 1013 matches

by christian
Thu Aug 02, 2007 3:52 pm
Forum: V-USB
Topic: How to add endpoints ?
Replies: 6
Views: 7629

This is the latest version of our driver. Yes, it supports 4 endpoints: One control endpoint (0), two interrupt- or bulk-in endpoints and one interrupt- or bulk-out endpoint. The interrupt-out endpoint can have the same number as one of the interrupt-in endpoints, we therefore need only one bit to d...
by christian
Thu Aug 02, 2007 2:29 pm
Forum: V-USB
Topic: How to add endpoints ?
Replies: 6
Views: 7629

More endpoints would require a change in the assembler modules. Since the bits of the endpoint field are scattered over two bytes, we only evaluate one of them. To distinguish more endpoints, you must reconstruct the full endpoint address, mask it and then compare. There are no spare cycles left in ...
by christian
Thu Aug 02, 2007 2:23 pm
Forum: V-USB
Topic: Mega324P and AVR-USB
Replies: 14
Views: 15874

If you started with HIDKeys, you probably get the log from int main(void) { uchar key, lastKey = 0, keyDidChange = 0; uchar idleCounter = 0; wdt_enable(WDTO_2S); hardwareInit(); odDebugInit(); usbInit(); sei(); DBG1(0x00, 0, 0); This would...
by christian
Thu Aug 02, 2007 2:20 pm
Forum: V-USB
Topic: Getting started with AVR-USB
Replies: 37
Views: 43013

No problem to mail you libhid.a, but I need your email address. Can you please get in contact with us through the support web form?
by christian
Wed Aug 01, 2007 4:43 pm
Forum: V-USB
Topic: HIDKeys and UART
Replies: 1
Views: 3687

This looks like a stack overflow to me. The device would not suffer a RESET otherwise. Or a hardware problem which triggers brownout or other sources of reset.
by christian
Wed Aug 01, 2007 4:36 pm
Forum: V-USB
Topic: Mega324P and AVR-USB
Replies: 14
Views: 15874

The debug log

ff:
ff:
ff:
...

is printed while the USB is in RESET state. This means that the driver reads both, D+ and D- as zero. See usbdrv.c and search for DBG1(0xff, 0, 0); to see how reset is detected.
by christian
Tue Jul 31, 2007 7:47 pm
Forum: V-USB
Topic: PowerSwitch disconnects
Replies: 8
Views: 10294

How long is the disconnect during reset? Windows detects it only (reliably) if it's at least ~ 500 ms long. Otherwise it may be "overlooked" and the device and host are out of sync with respect to the device ID. You can only rely on the "ding" sound on Windows if your disconnect ...
by christian
Mon Jul 30, 2007 4:38 pm
Forum: V-USB
Topic: Problem with interrupt-in endpoint and USB hub
Replies: 3
Views: 6937

I'm running RemoteSensor (which uses an Intertupt-In endpoint to signal the availablility of data) through a USB 2.0 hub connected to a USB 1.1 host since years without problems. Since hubs should be transparent to the device, I have no real idea how this can happen. I should note, though, that USB ...
by christian
Mon Jul 30, 2007 4:31 pm
Forum: V-USB
Topic: power switch--> windows
Replies: 2
Views: 5146

gPowerSwitch should still work since we have not changed the API.

PowerSwitch ships with a Windows executable and libusb-win32 which must be installed. You need minGW only if you want to compile form the source code.
by christian
Mon Jul 30, 2007 4:29 pm
Forum: V-USB
Topic: AVR-Doper HID mode problem
Replies: 10
Views: 32308

Can you compile avrdude yourself and enable debug logs in ser_avrdoper.c by defining the macro USB_DEBUG?

I can't think of any reason why avrdude should not find the device, except maybe if you have registered another driver, maybe libusb-win32 for the VID/PID combination. Can you verify that?
by christian
Mon Jul 30, 2007 4:22 pm
Forum: V-USB
Topic: Mega324P and AVR-USB
Replies: 14
Views: 15874

And you are sure you compile for 12 MHz and not with an assembler module for another frequency. In this case you should really try to get a debug output with -DDEBUG_LEVEL=2...
by christian
Mon Jul 30, 2007 4:19 pm
Forum: V-USB
Topic: Problem Changing Report Descriptor
Replies: 4
Views: 7197

Have you checked whether Windows Media Player supports control through these keyboard extensions at all? These key codes may be filtered by the Windows kernel driver or they may be mapped to events which are ignored by Windows Media Player. I have no experience with Windows myself, so I'm araid I ca...
by christian
Mon Jul 30, 2007 4:17 pm
Forum: V-USB
Topic: PowerSwitch disconnects
Replies: 8
Views: 10294

It was definitely not a brown-out in my circuit because I used an AT90S2313 which has no brown-out detection. And I added all types of capacitors to the supply voltage in the hope that it would improve things.
by christian
Thu Jul 26, 2007 7:30 pm
Forum: V-USB
Topic: PowerSwitch disconnects
Replies: 8
Views: 10294

I doubt that this is a problem with the host side driver. Switching to HID won't help. The original firmware was without the USB reset code. Inserting the reset code fixed the problem for Linux (Linux detects the disconnect condition fast enough). I think that's proof enough that the processor resta...
by christian
Thu Jul 26, 2007 7:00 pm
Forum: V-USB
Topic: Problem with usbdrv.asm in IAR
Replies: 1
Views: 4327

Please change the definition of hi8(x) in usbdrvasm.S to

# define hi8(x) (((x)>>8) & 0xff)

That should fix the problem. We'll include this change in the next release.