Search found 1013 matches

by christian
Tue Sep 22, 2009 10:57 am
Forum: V-USB
Topic: Problem with V-USB and USB 1.1 Hubs
Replies: 2
Views: 3114

Re: Problem with V-USB and USB 1.1 Hubs

This may have something to do with voltage levels or it may be more complex. But it's hard to say without a capture of the on-the-wire communication.
by christian
Tue Sep 22, 2009 10:49 am
Forum: V-USB
Topic: Ignoring the USB reports for a fixed time
Replies: 1
Views: 2093

Re: Ignoring the USB reports for a fixed time

As far as I know, there is no other way. Please note that when you disconnect, you must stay disconnected for at least 300 ms. Otherwise the host may not detect the disconnect. As an alternative, you may trigger the reconnect only when you know that the connection to the PC was lost. E.g. if the hos...
by christian
Tue Sep 22, 2009 10:46 am
Forum: V-USB
Topic: Bug in USB_PROP_IS_RAM found.
Replies: 2
Views: 2977

Re: Bug in USB_PROP_IS_RAM found.

The macro USB_PROP_LENGTH() is expected to return the descriptor length, not the string length. Your fix with len = 2 * (len + 1) works for string descriptors, but not for HID, report, device, endpoint and other descriptors. You should rather define #define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER (...
by christian
Tue Sep 22, 2009 10:39 am
Forum: V-USB
Topic: v-usb and CodeVision
Replies: 9
Views: 8607

Re: v-usb and CodeVision

For large scale professional products, I'd really recommend chips with built-in hardware USB. You can NEVER become USB compliant with V-USB because the AVR does not meet the electrical specifications. Regarding CodeVision: I tried to port V-USB to this development environment, but there are some fun...
by christian
Tue Sep 22, 2009 10:32 am
Forum: V-USB
Topic: V-USB tutorial
Replies: 1
Views: 3626

Re: V-USB tutorial

Thanks for the tutorial!

Please consider adding the tutorial or a link to it to http://vusb.wikidot.com.
by christian
Tue Sep 22, 2009 10:31 am
Forum: V-USB
Topic: Problem downloading WiSHABI zipped file..
Replies: 2
Views: 2623

Re: Problem downloading WiSHABI zipped file..

Shold be fixed now.
by christian
Tue Sep 22, 2009 10:30 am
Forum: V-USB
Topic: Lost connection with PC: any way to restore?
Replies: 14
Views: 9836

Re: Lost connection with PC: any way to restore?

I can confirm that EMI (Electro Magnetic Interference) is a problem with AVRs. Switching an inductive load can cause the PC disconnect. Analysis has shown that the AVR itself performs kind of half of a reset. Some parts of the chip go into reset status, others don't. I have seen this even on project...
by christian
Tue Sep 22, 2009 10:21 am
Forum: V-USB
Topic: 2 V-USB Devices merged to a Composite Device?
Replies: 1
Views: 2263

Re: 2 V-USB Devices merged to a Composite Device?

You can replace every USB descriptor with your own version by defining USB_CFG_DESCR_PROPS_DEVICE, USB_CFG_DESCR_PROPS_CONFIGURATION and so on. You can supply your own version in flash memory or as return value from a function call. Don't know whether you actually need a composite device, though. Yo...
by christian
Tue Sep 22, 2009 10:16 am
Forum: V-USB
Topic: How to know if device has been connected to the USB ?
Replies: 10
Views: 7765

Re: How to know if device has been connected to the USB ?

Christian, usbConfiguration should be cleared during a reset condition (usbPoll(), where usbDevice Addr is cleared). I considered this, but it costs two bytes of code space. Some boot loaders fit extremely tight and the two bytes may be a problem there. On the other hand, usbConfiguration is rarely...
by christian
Mon Sep 21, 2009 10:04 pm
Forum: V-USB
Topic: Questions from a beginner
Replies: 1
Views: 2032

Re: Questions from a beginner

You can use one AVR just as an interface to USB, but you can also implement your application firmware on it, depending on your real time constraints. In general, you don't need a second AVR. When you build your first Metaboard, you need to flash the firmware somehow. Once the loader is flashed, you ...
by christian
Mon Sep 21, 2009 9:51 pm
Forum: V-USB
Topic: Knowing when a transfer is complete.
Replies: 5
Views: 4437

Re: Knowing when a transfer is complete.

The clean method would be to use your own usbFunctionRead() and wait until bytesRemaining is zero. If you also want to wait until the host has read the last chunk, use Grendel's trick. If you want to use the built-in usbFunctionRead for static memory blocks, have a look at usbMsgPtr. If it has advan...
by christian
Mon Sep 21, 2009 9:45 pm
Forum: V-USB
Topic: HID Composite device with reports bigger than 8 bytes
Replies: 8
Views: 8992

Re: HID Composite device with reports bigger than 8 bytes

This latest version should work, unless parts of your software suffer under the large delay of this construct. I noticed you compute (void *)&buffer + intvalue. Gcc probably handles it correctly, but strictly speaking, a void pointer has no size and adding a value to it is nonsense. You probably...
by christian
Mon Aug 24, 2009 12:27 pm
Forum: V-USB
Topic: Possible bug in V-USB
Replies: 13
Views: 16956

Re: Possible bug in V-USB

We have released a new version of the driver yesterday. I doubt that it fixes your particular problem, though, since it fixes bugs in the 12.8 and 16 MHz modules only. If the bugs occur with all clock frequencies, the problem must be in the common code, not in the low level bitbanging stuff. It's ei...
by christian
Sat Aug 22, 2009 12:23 pm
Forum: V-USB
Topic: Possible bug in V-USB
Replies: 13
Views: 16956

Re: Possible bug in V-USB

Thanks for the hint! USB 1.0 declared the bmAttributes field as with values

Code: Select all

#define USBATTR_BUSPOWER        0x80
#define USBATTR_SELFPOWER       0x40
#define USBATTR_REMOTEWAKE      0x20

while USB 1.1 seems to define USBATTR_BUSPOWER as mandatory.

I'll change the driver accordingly. Thanks!
by christian
Thu Aug 20, 2009 11:39 am
Forum: V-USB
Topic: 12800
Replies: 5
Views: 3555

Re: 12800

This is USBaspLoader, right? See bootloaderconfig.h. There are several options which affect code size. If you don't implement EEPROM access, you should save enough to fit into the boot area.