Search found 1013 matches
- Thu Nov 12, 2009 2:46 pm
- Forum: V-USB
- Topic: Atmega8535 OK / Atmega328p FAIL
- Replies: 34
- Views: 34835
Re: Atmega8535 OK / Atmega328p FAIL
Thanks for this valuable info! I'll fix this for the next release.
- Tue Nov 10, 2009 12:17 pm
- Forum: V-USB
- Topic: Changing Clock Speeds
- Replies: 2
- Views: 2521
Re: Changing Clock Speeds
These two defines should be all you need to change. And then you need to do a "make clean" because there are no dependencies on usbconfig.h and Makefile. AVRs can usually be overclocked quite a bit, so I doubt that it's a hardware problem. I've tested the 20 MHz module myself and it worked...
- Tue Nov 10, 2009 12:07 pm
- Forum: V-USB
- Topic: wake on usb
- Replies: 1
- Views: 2205
Re: wake on usb
As far as I know, USB wakeup is specified as an SE0 condition or USB reset (D+ and D- both 0, for SE0 only two bits long, for reset several 100 ms). Can't remember which of the two it was, but I guess it was the short pulse.
- Sun Nov 01, 2009 11:03 am
- Forum: V-USB
- Topic: LIRC + V-USB for HTPC interface
- Replies: 2
- Views: 3026
Re: LIRC + V-USB for HTPC interface
Don't know anything about LIRC, but it is definitely possible to have two apps communicating with the device. Make sure that all communication is done through control transfers on endpoint 0, you don't need to set an interface or configuration for this. If you need to set an interface or configurati...
- Sun Nov 01, 2009 11:01 am
- Forum: V-USB
- Topic: Help: usbFunctionWrite isn't called
- Replies: 4
- Views: 5584
Re: Help: usbFunctionWrite isn't called
Make sure that you do a "make clean" after changing USB_CFG_IMPLEMENT_FN_WRITE in usbconfig.h. The makefile does not contain dependencies on this file, as far as I remember. Or delete all object files manually to ensure that everything is re-compiled.
- Sun Nov 01, 2009 10:58 am
- Forum: V-USB
- Topic: When the PC turn on or off?
- Replies: 1
- Views: 2289
Re: When the PC turn on or off?
The PC won't tell you directly when it turns on or of. You can check for SOF pulses on D-. They occur every 1 ms if the PC is on. It helps to have D- on an interrupt or even use D- for the USB interrupt in order to detect these pulses.
- Sun Nov 01, 2009 10:54 am
- Forum: V-USB
- Topic: How Do You Check CRC16 From Application?
- Replies: 2
- Views: 5467
Re: How Do You Check CRC16 From Application?
The function call in the comment is somewhat outdated now...
You would call usbCrc16(data, len) and compare the result to data[len] and data[len + 1].
You would call usbCrc16(data, len) and compare the result to data[len] and data[len + 1].
- Sun Nov 01, 2009 10:48 am
- Forum: V-USB
- Topic: USB-device on ATMega8.
- Replies: 5
- Views: 4230
Re: USB-device on ATMega8.
If you use the 12.8 MHz module (the 12 MHz module won't work because it requires an EXACT clock rate), you also need to add the oscillator calibration. There are two types, see the libs-device directory in the driver distribution. The calibration will tune the oscillator from 8 MHz to 12.8 MHz.
- Sun Nov 01, 2009 10:45 am
- Forum: V-USB
- Topic: Could not find USB device "LEDControl" vid=0x16c0 pid=0x5dc
- Replies: 7
- Views: 5838
Re: Could not find USB device "LEDControl" vid=0x16c0 pid=0x5dc
The examples are primarily for the AVR side. On Windows, you need libusb-win32 for the low level device driver.
- Wed Oct 28, 2009 4:46 pm
- Forum: V-USB
- Topic: USB-device on ATMega8.
- Replies: 5
- Views: 4230
Re: USB-device on ATMega8.
You can use the 12.8 MHz version on the Mega8 with the built-in RC oscillator.
- Wed Oct 28, 2009 11:59 am
- Forum: V-USB
- Topic: Mass Storage class over V-USB
- Replies: 26
- Views: 24927
Re: Mass Storage class over V-USB
This can't work on Vista because it uses bulk endpoints. You need a patch in a similar way as for AVR-CDC.
BTW: Why don't you host the project on our wiki at http://vusb.wikidot.com/hosted-projects ?
BTW: Why don't you host the project on our wiki at http://vusb.wikidot.com/hosted-projects ?
- Wed Oct 28, 2009 11:45 am
- Forum: V-USB
- Topic: Where to get a small number of PIDS
- Replies: 5
- Views: 4270
Re: Where to get a small number of PIDS
The limitations are for the license only, not the USB IDs. You can do with the USB IDs whatever you want.
It's OK to use the shared IDs for commercial products. In any case, you can't be USB compliant with our USB IDs because usb.org requires that you own the vendor-ID to be compliant.
It's OK to use the shared IDs for commercial products. In any case, you can't be USB compliant with our USB IDs because usb.org requires that you own the vendor-ID to be compliant.
- Mon Oct 26, 2009 11:11 pm
- Forum: V-USB
- Topic: Problem with usb_control_msg
- Replies: 13
- Views: 9603
Re: Problem with usb_control_msg
And did you configure V-USB with USB_CFG_IMPLEMENT_FN_WRITE defined to 1 in usbconfig.h?
- Mon Oct 26, 2009 11:09 pm
- Forum: V-USB
- Topic: v-usb only accept 8 bytes per packet?
- Replies: 3
- Views: 3124
Re: v-usb only accept 8 bytes per packet?
The low level USB packets are always maximum 8 bytes for low speed devices. Larger blocks are transferred in chunks of 8 bytes. V-USB handles this more or less transparently, it calls usbFunctionRead() and usbFunctionWrite() for blocks of 8 bytes.
- Mon Oct 26, 2009 11:06 pm
- Forum: V-USB
- Topic: very time cost function in v-usb
- Replies: 1
- Views: 2335
Re: very time cost function in v-usb
You must not perform any long lasting actions in these functions. And you must not call usbPoll() from within usbFunction*().
If you have to do long lasting processing, collect the data in a buffer and perform the processing in the main loop. You can easily call usbPoll() from there.
If you have to do long lasting processing, collect the data in a buffer and perform the processing in the main loop. You can easily call usbPoll() from there.