Search found 481 matches

by ulao
Wed Jun 12, 2013 9:33 pm
Forum: V-USB
Topic: multiple ADC channels
Replies: 8
Views: 8619

Re: multiple ADC channels

ok ,what about the report, did you fix that? Should fix the "i have added the code and now its not reporting anything at all." I dont use a reset like that in my loop this is all I do. for (;;) { getdata(); while ( !usbInterruptIsReady () ) { usbPoll(); } usbSetInterrupt( (void *) &rep...
by ulao
Wed Jun 12, 2013 8:53 pm
Forum: V-USB
Topic: multiple ADC channels
Replies: 8
Views: 8619

Re: multiple ADC channels

the only thing I can think of that would give you a disconnect is a infinite loop. This also is a good question for avrfreeks, I dont think the disconnects are v-usb related. I would just debug it and see if your are putting the code in to a long loop. ps: why is wdt_reset() in the main loop, are yo...
by ulao
Wed Jun 12, 2013 6:16 pm
Forum: V-USB
Topic: clocking my usb pulls
Replies: 2
Views: 3802

clocking my usb pulls

I gather pulls are 10ms apart. Some say they clocked it at 8 on a windows box, and some say 2 on a linux box. What I want to do is see how long my code takes and determine if I'm skipping pulls. I would like to do one of the following. a) pull once ever 10ms ( lets say it take 10 ms ) do code ( how ...
by ulao
Tue Jun 11, 2013 6:18 pm
Forum: V-USB
Topic: multiple ADC channels
Replies: 8
Views: 8619

Re: multiple ADC channels

here is how I do it. //voltage reader. #define ADC_VREF_TYPE 0x40 static int read_adc(unsigned char adc_input) { ADMUX=adc_input|ADC_VREF_TYPE; _delay_us(150); ADCSRA|=0x40; // Start the AD conversion while ((ADCSRA & 0x10)==0);// Wait for complete ADCSRA|=0x10; return ADCW; } reportBuffer[1]= (...
by ulao
Sun Feb 17, 2013 11:46 pm
Forum: V-USB
Topic: V-USB device conflicts with the mouse
Replies: 5
Views: 5970

Re: V-USB device conflicts with the mouse

PNO , your right I do not understand. I'm afraid that made it even more confusing. That way I'm understanding this make me wonder why an oscillator has anything to do with it. Few thing here. 1) When making a hub device you need a solid oscillation ( i.e: 12.000 not 12.001 or any other drifted clock...
by ulao
Fri Feb 15, 2013 9:54 pm
Forum: V-USB
Topic: V-USB device conflicts with the mouse
Replies: 5
Views: 5970

Re: V-USB device conflicts with the mouse

Is it possible your using a stolen device id? Far fetched but see if the PID and VID math the mouse. If that is not it try changing your HID report classification, what device is this you are making a joystick?
by ulao
Wed Feb 06, 2013 4:07 am
Forum: V-USB
Topic: Any working XInput compatible code?
Replies: 2
Views: 4770

Re: Any working XInput compatible code?

Most all v-usb protects are HID and there are no descriptors to mach ximput that I know of. The only way to accomplish this is to write a xinput virtual driver and communicate with the vender specific in the device config. Or to do what red Cloud did with that XBCD driver but make it a xinput instea...
by ulao
Wed Jan 30, 2013 4:35 am
Forum: V-USB
Topic: V-USB Connect loop
Replies: 3
Views: 3562

Re: V-USB Connect loop

I had a very similar issue. In my case though the ZDiodes where just normal diodes ( mistake from my board maker ). The other thought that comes to mind is some chips will not work on 1 watt diodes and need to be 1/2 watt. Though it looks like the BZX55B3V6 is ok.
by ulao
Mon Jan 28, 2013 7:56 pm
Forum: V-USB
Topic: V-USB Connect loop
Replies: 3
Views: 3562

Re: V-USB Connect loop

Well I dont have exp. with the ATTiny 24A but your part list looks good. Are you using a descriptor you know works.
by ulao
Fri Jan 25, 2013 12:21 am
Forum: V-USB
Topic: Is there a limit to number of buttons of a HID Joystick?
Replies: 5
Views: 8556

Re: Is there a limit to number of buttons of a HID Joystick?

Oh I think you mean gamepad vs joystick, and yes they are very different. gamepads do much much more.
by ulao
Wed Jan 23, 2013 6:24 pm
Forum: V-USB
Topic: Is there a limit to number of buttons of a HID Joystick?
Replies: 5
Views: 8556

Re: Is there a limit to number of buttons of a HID Joystick?

I never used HID keyboard nor do I see why it would have hat and analogs? They most certainly are two different reports. Also I know the hat has more then 8.
by ulao
Sat Jan 19, 2013 1:59 am
Forum: V-USB
Topic: Is there a limit to number of buttons of a HID Joystick?
Replies: 5
Views: 8556

Re: Is there a limit to number of buttons of a HID Joystick?

Yes, you get 4 rows ( 32 ) plus you can use the POV I think it goes up quite high but I know it supports up to 8 positions. I dont see any reason you can not use axis as well. If device button 1 is pressed send data for analog value 1. You can have 256 for each analog that way. This would be hard on...
by ulao
Tue Jan 15, 2013 3:55 pm
Forum: V-USB
Topic: USB to USB and Serial
Replies: 3
Views: 4117

Re: USB to USB and Serial

I'm pretty sure he means like one of those virtual serial port HID drivers. Where the OS thinks the USB devices is actually a serial device with a comm port.
by ulao
Fri Jan 04, 2013 9:12 pm
Forum: V-USB
Topic: FIXED - mega8 only enumerates after manual reset (PRIZE)
Replies: 7
Views: 7347

Re: FIXED - mega8 only enumerates after manual reset (PRIZE)

Oh thx so much for the offer but that wont be necessary. I dont think this forum has a pm anyways. I'm just happy to help.
by ulao
Fri Jan 04, 2013 4:59 pm
Forum: V-USB
Topic: FIXED - mega8 only enumerates after manual reset (PRIZE)
Replies: 7
Views: 7347

Re: FIXED - mega8 only enumerates after manual reset (PRIZE)

"I had to comment out the function/macro that initializes the bootloader button."
LOL
Yeah... The boot loader is designed to work one "button" is pressed. I overlooked that part :oops: , good thing you got it, always better to learn it yourself.