Search found 481 matches

by ulao
Tue Jan 28, 2014 9:54 pm
Forum: V-USB
Topic: usbFunctionSetup and usbFunctionWrite in action?
Replies: 12
Views: 15352

Re: usbFunctionSetup and usbFunctionWrite in action?

no, sorry your USB device descriptor config. Normaaly at the top of the main.c file, shows your Interface Descriptors and endpoints...
by ulao
Tue Jan 28, 2014 4:25 pm
Forum: V-USB
Topic: usbFunctionSetup and usbFunctionWrite in action?
Replies: 12
Views: 15352

Re: usbFunctionSetup and usbFunctionWrite in action?

in your usbFunctionWrite, it seems data[0] is the field bmRequestType of the USB device request sent by the host and not the actual data to be transfered after the data stage transaction. Correct, I'm leaving that up to you to figure out. Your problem may be how you set up the pipes. Can you post y...
by ulao
Mon Jan 27, 2014 8:50 pm
Forum: V-USB
Topic: usbFunctionSetup and usbFunctionWrite in action?
Replies: 12
Views: 15352

Re: usbFunctionSetup and usbFunctionWrite in action?

When you download the v-usb code it comes with an example that demonstrates this in a command prompt. I wrote some code using PID. This is the set up. unsigned usbFunctionSetup(uchar data[8]) { usbRequest_t *rq = (void *)data; usbMsgPtr = reportBuffer; if((rq->bmRequestType & USBRQ_TYPE_MASK) ==...
by ulao
Tue Jan 14, 2014 7:33 pm
Forum: V-USB
Topic: AVR-Doper: Swap in ATmega168 for ATmega8?
Replies: 1
Views: 4060

Re: AVR-Doper: Swap in ATmega168 for ATmega8?

The pins are identical, the only code changes out of make are the timers. If you dont use timers your good to go. also the usb diodes have to be 1/2 watt 1/4 will not work. Not sure if that is the same for the AVR-Doper but it is for the v-usb usb interface.
by ulao
Tue Dec 17, 2013 7:54 pm
Forum: V-USB
Topic: Introduction for beginners!
Replies: 3
Views: 6279

Re: Introduction for beginners!

I knew nothing of usb and had very little firmware programming experience when I started on v-usb. I only needed two things, 1) example code 2) this form.
by ulao
Mon Nov 25, 2013 8:38 pm
Forum: V-USB
Topic: Entirely polled V-USB? [yes, it works!]
Replies: 18
Views: 20381

Re: Entirely polled V-USB? [yes, it works!]

Ok, got it! Thx for that summary. Good luck on the 8mhz!
by ulao
Mon Nov 25, 2013 5:38 pm
Forum: V-USB
Topic: Entirely polled V-USB? [yes, it works!]
Replies: 18
Views: 20381

Re: Entirely polled V-USB? [yes, it works!]

Trying to follow along here? I'm wondering if this would be an effective way to cheat the fact that windows uses 8 -10 ms to take its polls on an interrupt transfer. Or am I way off here.
by ulao
Wed Nov 20, 2013 3:17 pm
Forum: V-USB
Topic: Changing USB maximum current ouput
Replies: 5
Views: 8443

Re: Changing USB maximum current ouput

I'm not aware of a limitation or fixed current in v-usb but make sure to use the USB_CFG_MAX_BUS_POWE define in the usb device descriptor as well or also make the needed change.
by ulao
Mon Nov 04, 2013 6:38 pm
Forum: V-USB
Topic: USB bootloaderhid with Atmega128
Replies: 14
Views: 18560

Re: USB bootloaderhid with Atmega128

atmega 8 and 128 are indeed a bit different. the bootloader start address for the 128 is 0x3800 (this is counted in "words") or in "bytes" (2x) its 0x7000.

so when you set the bootloader start address it's 0x7000.
by ulao
Wed Oct 02, 2013 9:29 pm
Forum: V-USB
Topic: changing the device class while running
Replies: 7
Views: 8307

Re: changing the device class while running

Look at http://www.raphnet.net/electronique/sne ... dex_en.php ( source at bottom of page )
He made an adapter that changes the reportDescriptor based on a variable. Depending on what the condition is, it leads a new descriptor. This maybe what you are after.
by ulao
Tue Oct 01, 2013 1:45 pm
Forum: V-USB
Topic: transfering more interrupt in data
Replies: 3
Views: 6049

Re: transfering more interrupt in data

You can not transfer that much data in one go but of course you can do it by chunks in interrupt transfers. while (!usbInterruptIsReady()){usbPoll(); } usbSetInterrupt( reportBuffer, 8 ); while (!usbInterruptIsReady()){usbPoll(); } usbSetInterrupt((void *)&reportBuffer + 8, 8 ); while (!usbInter...
by ulao
Fri Sep 27, 2013 1:57 pm
Forum: V-USB
Topic: changing the device class while running
Replies: 7
Views: 8307

Re: changing the device class while running

I'm not sure what you want to know? There are a few composite examples around that is how I figure it out.
by ulao
Wed Sep 25, 2013 8:30 pm
Forum: V-USB
Topic: changing the device class while running
Replies: 7
Views: 8307

Re: changing the device class while running

No that is in prog mem I think. You would be better off with a dual device layout and figure out how to switch via vendor ( using software) or a hardware switch.
by ulao
Tue Sep 10, 2013 1:32 pm
Forum: V-USB
Topic: ATMEGA328P on V-USB
Replies: 43
Views: 52082

Re: ATMEGA328P on V-USB

what's funny about that is I had that same misunderstanding.
http://www.avrfreaks.net/index.php?name ... bootloader
Guess who helped me?

Though I completely over looked that. :oops:
by ulao
Sat Sep 07, 2013 11:53 pm
Forum: V-USB
Topic: ATMEGA328P on V-USB
Replies: 43
Views: 52082

Re: ATMEGA328P on V-USB

You know I meant to bring that up, do you really need that much flash? The 168 is a very rock solid chip and easy to find without pico power. I have had great success with my 328's thus far. I never used a second bypass capacitor like that. Assuming its also near the mcu that good enough. I do put 2...