Search found 1013 matches

by christian
Tue Jan 19, 2010 6:01 pm
Forum: V-USB
Topic: AVR - Doper Under Linux
Replies: 1
Views: 2306

Re: AVR - Doper Under Linux

The debug interface is not registered as a serial interface with the operating system, you need to compile avrdebug for it.
by christian
Tue Jan 19, 2010 5:59 pm
Forum: V-USB
Topic: Firmware for AVR910
Replies: 1
Views: 2080

Re: Firmware for AVR910

It should be possible to tune the AVR-Doper firmware for this hardware. Have not looked closely, but it seems to be very similar to USBasp. See the USBasp section in hardware.h.
by christian
Tue Jan 19, 2010 5:56 pm
Forum: V-USB
Topic: Question about HID_DATA / multiple feature reports
Replies: 1
Views: 2448

Re: Question about HID_DATA / multiple feature reports

That's easily possible. See AVR-Doper as an example. In main.c of the firmware, have a look at the report descriptor (usbDescriptorHidReport). It defines various feature reports of different sizes.
by christian
Tue Jan 19, 2010 5:53 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16584

Re: How to output data to e.g. HID device

It depends on your report descriptors. You can choose any block size you like (as long as you don't exceed the limits of V-USB or the host side drivers), provided that you describe the block in the report descriptor.
by christian
Thu Jan 07, 2010 2:56 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16584

Re: How to output data to e.g. HID device

It's in the "examples" directory of the current driver package found at http://www.obdev.at/products/vusb/download.html
by christian
Thu Jan 07, 2010 12:35 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16584

Re: How to output data to e.g. HID device

You can use HID for bidirectional data transfer. However, since you must use feature reports (set and get), you are limited to fixed size data blocks. See the hid-data example, it uses HID feature reports to send and receive data.
by christian
Thu Jan 07, 2010 12:33 pm
Forum: V-USB
Topic: powerSwitch: equivalent for LE35CZ
Replies: 4
Views: 3546

Re: powerSwitch: equivalent for LE35CZ

PowerSwitch happens to be (or have been) the reference design simply because it was the first project every done with the driver. We needed such a device to switch the supply for a couple of servers. We now recommend to start with the examples which ship with the driver. They require much less hardw...
by christian
Thu Jan 07, 2010 12:27 pm
Forum: V-USB
Topic: eeprom_write break my connection...
Replies: 3
Views: 3575

Re: eeprom_write break my connection...

EEPROM writes may take quite a while (milliseconds!). Make sure that you don't wait for the write to complete while interrupts are disabled.
by christian
Thu Jan 07, 2010 12:25 pm
Forum: V-USB
Topic: Interrupt-out with Interrupt-in and libusb1.0
Replies: 2
Views: 2601

Re: Interrupt-out with Interrupt-in and libusb1.0

Yes. For every non-trivial configuration, you need to create your own descriptor. And in order to use more than just control transfers on endpoint 0, you must set a configuration and interface with libusb.
by christian
Thu Jan 07, 2010 12:22 pm
Forum: V-USB
Topic: Powersaving USB device
Replies: 1
Views: 2176

Re: Powersaving USB device

I have a low power USB design which uses the following tricks to reduce battery consumption: (1) The design uses a 32 kHz crystal and synchronizes the RC oscillator to it. (2) When USB is connected, the main clock frequency is synchronized to 12.8 MHz, without USB, we use 1 MHz. (3) Every 1 s interv...
by christian
Thu Jan 07, 2010 12:09 pm
Forum: V-USB
Topic: Need help powerswitch
Replies: 10
Views: 8191

Re: Need help powerswitch

Regarding Vista: I have not tried it, but I see no reason why it should fail.

LSPx are connections to the outside world. LSP1 and 2 are the mains connection, LSP3...10 are switched outputs.

Relays are K1...K8.
by christian
Wed Dec 30, 2009 9:33 am
Forum: V-USB
Topic: Compile PowerSwitch using AVR Studio 4.18
Replies: 3
Views: 5647

Re: Compile PowerSwitch using AVR Studio 4.18

You need to add the USB related files (assembler and C) to your project. Instead of copy/pasteing the contents of main.c, simply add main.c to your project and remove firmware.c. Also, please make sure that defines like F_CPU and options like the -I options for gcc are set correctly. See the Makefil...
by christian
Wed Dec 30, 2009 9:27 am
Forum: V-USB
Topic: example for Atmega8
Replies: 14
Views: 13358

Re: example for Atmega8

Sorry, but this would take more time to debug. Please make sure you understand the format of the report data and check the values in USB Snoopy. You should send reports for key down and key up.
by christian
Sat Dec 26, 2009 11:21 pm
Forum: V-USB
Topic: example for Atmega8
Replies: 14
Views: 13358

Re: example for Atmega8

I spotted at least one problem: You defined USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH in main.c and not in usbconfig.h. The constant is therefore not known in usbdrv.c where it is needed.

If you really want to define it in main.c, please do it before including usbdrv.c.
by christian
Sat Dec 26, 2009 11:12 pm
Forum: V-USB
Topic: AVR - Doper is only HVSP
Replies: 5
Views: 4752

Re: AVR - Doper is only HVSP

I'm afraid no. Simon prefers this type of schematic.