Search found 481 matches

by ulao
Wed Oct 22, 2014 5:12 pm
Forum: V-USB
Topic: usbHidReportDescriptor type of confilct
Replies: 13
Views: 14716

Re: usbHidReportDescriptor type of confilct

another thing, as we want to increase the report size from 5 bytes to 8 byte, what else to do with tweaking ? assign more bytes to the report buffer, seems not feasibl This seems a bit unclear. You don't set the size the report does? If you want to send more then the report needs, yes you need to a...
by ulao
Wed Oct 22, 2014 5:01 am
Forum: V-USB
Topic: usbHidReportDescriptor type of confilct
Replies: 13
Views: 14716

Re: usbHidReportDescriptor type of confilct

usbHidReportDescriptor needs to be PROGMEM const char usbHidReportDescriptor or const ROGMEM char usbHidReportDescriptor I forget the order that is required and I'm sure that wont be the only error you encounter. I believe i had 50 some lines to fix. Its actually the IDE that is giving you the grief.
by ulao
Tue Sep 16, 2014 8:57 pm
Forum: V-USB
Topic: USB Combodevice (Keyboard & Joystick) - problems with report
Replies: 11
Views: 13680

Re: USB Combodevice (Keyboard & Joystick) - problems with re

Right I see where I added that up wrong. Though its expecting something there... Glad it works well enough to get your work done.
by ulao
Tue Sep 16, 2014 7:48 pm
Forum: V-USB
Topic: USB Combodevice (Keyboard & Joystick) - problems with report
Replies: 11
Views: 13680

Re: USB Combodevice (Keyboard & Joystick) - problems with re

Note the last 0x00 byte after sending the correct amount of data for all reports. IT WORKS Now... Can anyone explain to me why the hell I need to send that additional byte? Sounds to me like your count is off, I bet your device description has 9 bytes total instead of 8. You could fix the descripto...
by ulao
Tue Sep 16, 2014 2:33 pm
Forum: V-USB
Topic: USB Combodevice (Keyboard & Joystick) - problems with report
Replies: 11
Views: 13680

Re: USB Combodevice (Keyboard & Joystick) - problems with re

You are correct about not need to 0 index it, here is an example I use and its works. No, I also do not believe its order dependent but in my case I do send in order. Every time I send my report I send report 1 then 9. I can not say what is going on there with windows, it should not matter what is s...
by ulao
Mon Sep 15, 2014 1:40 am
Forum: V-USB
Topic: USB Combodevice (Keyboard & Joystick) - problems with report
Replies: 11
Views: 13680

Re: USB Combodevice (Keyboard & Joystick) - problems with re

My goal is to develop a custom control panel I really hope you figure this out, because I would absolutely love to see that work. I had to give up on it. Are you setting the report id in your out ID report? 0 for Keyboard 1 for joystick? Also when dealing with reading a joystick there really is no ...
by ulao
Fri Sep 12, 2014 4:13 pm
Forum: V-USB
Topic: HID Gamepad - not more than 16 buttons?
Replies: 5
Views: 9662

Re: HID Gamepad - not more than 16 buttons?

I wanted to figure out why there were separate classes for Game Pad and Joystick. Yeah I ran in to this as well. Joystick is mainly for flight application as it has ruder and throttle controls. The game pad is more for everything else. For example the PID layer will not work on the joystick only ga...
by ulao
Thu Aug 28, 2014 6:37 pm
Forum: V-USB
Topic: HID Device description
Replies: 3
Views: 6040

Re: HID Device description

No it does not work that way...

The M$ OS gets the description form the registry. If the device is new its pulled from the device. So if you change the name in the device mem like that you need to also delete the device from the registry. usbdview may not work for that, not sure.
by ulao
Tue Aug 05, 2014 6:10 pm
Forum: V-USB
Topic: is usb connected (the software method)
Replies: 9
Views: 13148

Re: is usb connected (the software method)

make sure you set your check before you init the usb. and make sure you turn on interrupts. PCMSK0 |= (1 << PCINT0); PCICR |= (1 << PCIE0); sei(); // turn on interrupts ISR(PCINT0_vect) { usbConnected = 1; } also don't you want PCINT17 or PCINT16 https://sites.google.com/site/qeewiki/_/rsrc/12975585...
by ulao
Thu Jul 03, 2014 1:29 pm
Forum: V-USB
Topic: What is needed for usb stability.
Replies: 7
Views: 9142

Re: What is needed for usb stability.

They didn't reply to me, they replied to the above user, I dont retain every post I comment in. Anyways I think I jumped the gun on that one .The longest wait I have seen is 4 ms in testing. So I take that back, its not a time out issue. What's your code doing for 8ms between calls? I just meant tha...
by ulao
Wed Jul 02, 2014 10:03 pm
Forum: V-USB
Topic: What is needed for usb stability.
Replies: 7
Views: 9142

Re: What is needed for usb stability.

ok found my issue, too long of a wait in-between polls. What it the max with the current v-usb version?
by ulao
Wed Jul 02, 2014 1:36 pm
Forum: V-USB
Topic: What is needed for usb stability.
Replies: 7
Views: 9142

Re: What is needed for usb stability.

blargg, that was helpful thx. I finally got the init down to the point I'm happy with it but in my poll loop the usb is constantly drops out. AS you suggested I dont want to watch dog it. I'd rather find the error. My build report is well under 8 ms, and my polls occurs every 8 ms on time, each time...
by ulao
Tue Jul 01, 2014 2:10 pm
Forum: V-USB
Topic: What is needed for usb stability.
Replies: 7
Views: 9142

Re: What is needed for usb stability.

So why do so many people full with timers, watch dogs, status registers, and resets?
by ulao
Sat Jun 28, 2014 8:58 pm
Forum: V-USB
Topic: What is needed for usb stability.
Replies: 7
Views: 9142

What is needed for usb stability.

Ok I have been using v-usb for 7 years and all I do is this... //init static void usbReset(void) { usbDeviceDisconnect(); /* enforce re-enumeration, do this while interrupts are disabled! */ uchar i = 0; while(--i) { // USB disconnect for >250ms _delay_ms(1); }; usbDeviceConnect(); } cli(); sreg = S...
by ulao
Fri Jun 13, 2014 5:14 pm
Forum: V-USB
Topic: is usb connected (the software method)
Replies: 9
Views: 13148

Re: is usb connected (the software method)

well UsbPoll() is a bool 1 or 0 so its as simple as if ( UsbPoll() ) but inorder to use that the USB init has to have run, and if you ran that its assumed you know the usb is connected, so I think that is out? Again depends how you do things. Pin change is the best bet and very easy. You should not ...