Search found 16 matches

by Urvin
Fri Oct 09, 2009 7:51 am
Forum: V-USB
Topic: libusb & 128 bytes data transfer
Replies: 4
Views: 3959

Re: libusb & 128 bytes data transfer

Thanks!
I was afraid of using usbFunctionWrite just because of there's no such function in requests example of v-usb :roll:
by Urvin
Thu Oct 08, 2009 6:41 pm
Forum: V-USB
Topic: libusb & 128 bytes data transfer
Replies: 4
Views: 3959

Re: libusb & 128 bytes data transfer

A little trip around usbRequest_t shows that I'm wrong with rq->wValue.bytes[i] cause of there are only two bytes spreading into integer type.
I see that there must be a pointer do data send from PC with size of rq->wLength.
And it's not usbMsgPtr :(
by Urvin
Thu Oct 08, 2009 1:17 pm
Forum: V-USB
Topic: libusb & 128 bytes data transfer
Replies: 4
Views: 3959

Re: libusb & 128 bytes data transfer

I tried to use this code in the host software (with the upper avr code): char usbReportBuffer[128]; //... usb_control_msg(usbHandle, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_OUT, CUSTOM_RQ_SET_ALL, 1, 0,usbReportBuffer, sizeof(usbReportBuffer), 5000); I always get "1" at first pos...
by Urvin
Wed Oct 07, 2009 5:14 pm
Forum: V-USB
Topic: libusb & 128 bytes data transfer
Replies: 4
Views: 3959

libusb & 128 bytes data transfer

Hi! Now I'm trying to transfer data between my device and PC using libusb and custom requests. I can send 128 bytes from the device to computer already, but I'm in doubt about sending this array of data back to AVR. Would it be right if I use this construction to receieve data (avr-side)? #define CU...
by Urvin
Mon Oct 05, 2009 11:26 am
Forum: V-USB
Topic: Combining HID devices in one
Replies: 8
Views: 7176

Re: Combining HID devices in one

Would it be better if I share the whole commented sources?
I still can't solve the problem.

I don't want to use libusb because of some problems with installing it on different (win) computers and I don't need a hi-speed transfer.
by Urvin
Mon Oct 05, 2009 11:21 am
Forum: V-USB
Topic: Can't compile hidtool from examples
Replies: 13
Views: 10885

Re: Can't compile hidtool from examples

bin path certainly.
"C:\Qt\2009.03\mingw\bin;"
by Urvin
Mon Oct 05, 2009 9:45 am
Forum: V-USB
Topic: Can't compile hidtool from examples
Replies: 13
Views: 10885

Re: Can't compile hidtool from examples

MinGWs dir name is added to PATH variable
by Urvin
Sun Oct 04, 2009 5:58 pm
Forum: V-USB
Topic: Can't compile hidtool from examples
Replies: 13
Views: 10885

Re: Can't compile hidtool from examples

I use MinGW that goes with Qt package.
Code::Blocks use the same MinGW.

Using codeclocks i can compile the example (I also tested it with MCU with hid-data example firmware), using Makefile.windows and (edited) Makefile - can't.
by Urvin
Sun Oct 04, 2009 5:47 pm
Forum: V-USB
Topic: Can't compile hidtool from examples
Replies: 13
Views: 10885

Re: Can't compile hidtool from examples

I use MinGW ;)
Trere's no other compilers on my computer
by Urvin
Fri Oct 02, 2009 10:13 am
Forum: V-USB
Topic: Combining HID devices in one
Replies: 8
Views: 7176

Re: Combining HID devices in one

Please, help me!
I don't know how to solve this problem :cry: But I know that this is not a proplem of pc software - it works pretty with hid-data firmware.
I think that problem should be around report ids...

I promise to buy a hobbyist license if this would work :)
by Urvin
Wed Sep 30, 2009 11:10 am
Forum: V-USB
Topic: Combining HID devices in one
Replies: 8
Views: 7176

Re: Combining HID devices in one

Now I'm trying to teach my device how to transfer data, like hiddata example does. This is a part of hid descriptor: 0x06, 0x00, 0xff, // USAGE_PAGE (Vendor Defined Page 1) 0x09, 0x01, // USAGE (Vendor Usage 1) 0xa1, 0x01, // COLLECTION (Application) 0x15, 0x00, // LOGICAL_MINIMUM (0) 0x26, 0xff, 0x...
by Urvin
Wed Sep 30, 2009 9:33 am
Forum: V-USB
Topic: Can't compile hidtool from examples
Replies: 13
Views: 10885

Re: Can't compile hidtool from examples

ya, I print "make -f Makefile.windows".
Also it doesn't compile if I edit makefile and run "make".

I found another way to compile the example using Code::Blocks IDE.
The solution is to add hiddata.h this way:

Code: Select all

extern "C"
{
    #include "hiddata.h"
}
by Urvin
Tue Sep 29, 2009 6:04 pm
Forum: V-USB
Topic: Can't compile hidtool from examples
Replies: 13
Views: 10885

Re: Can't compile hidtool from examples

Plus if I try to rewrite the whole code in Code::Blocks, compiler returns "undefined reference to `usbhidOpenDevice(usbDevice**, int, char*, int, char*, int)'" :(
by Urvin
Tue Sep 29, 2009 12:25 pm
Forum: V-USB
Topic: Combining HID devices in one
Replies: 8
Views: 7176

Re: Combining HID devices in one

Image
That's great! Now I can emulate keyboard and use volume and playback control.
Thanks!
by Urvin
Tue Sep 29, 2009 12:20 pm
Forum: V-USB
Topic: Can't compile hidtool from examples
Replies: 13
Views: 10885

Can't compile hidtool from examples

Hi!
I can't compile hidtool host application from example of hid-data usage (examples\hid-data\commandline).
That's what mingw says:
Image

windows 7
mingw 3.81
v-usb 20090822