Thanks!
I was afraid of using usbFunctionWrite just because of there's no such function in requests example of v-usb
Search found 16 matches
- Fri Oct 09, 2009 7:51 am
- Forum: V-USB
- Topic: libusb & 128 bytes data transfer
- Replies: 4
- Views: 3959
- 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
I see that there must be a pointer do data send from PC with size of rq->wLength.
And it's not usbMsgPtr
- 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...
- 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...
- 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.
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.
- 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;"
"C:\Qt\2009.03\mingw\bin;"
- 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
- 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.
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.
- 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
Trere's no other compilers on my computer
- 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 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
I don't know how to solve this problem 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
- 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...
- 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:
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"
}
- 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)'"
- 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
That's great! Now I can emulate keyboard and use volume and playback control.
Thanks!
- 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:
windows 7
mingw 3.81
v-usb 20090822
I can't compile hidtool host application from example of hid-data usage (examples\hid-data\commandline).
That's what mingw says:
windows 7
mingw 3.81
v-usb 20090822