Search found 20 matches
- Mon Jan 02, 2012 9:09 am
- Forum: V-USB
- Topic: Is it possible to detect whether the PC is running?
- Replies: 7
- Views: 5924
Re: Is it possible to detect whether the PC is running?
I think "USB_RX_USER_HOOK" is what you are looking for. Once the device has been found by the PC the PC will keep communicating with it, so if you put a timeout after the USB_RX_USER_HOOK you can detect if the PC is running and knows the device is there. I am also looking to detect if the...
- Thu Dec 22, 2011 3:18 pm
- Forum: V-USB
- Topic: Sending more Data with usbSetInterrupt
- Replies: 0
- Views: 4872
Sending more Data with usbSetInterrupt
Hi, i want to send more usbSetInterrupt in a row. void log_usb (unsigned char ch) { while (!usbInterruptIsReady()) // check if USB int is ready { wdt_reset(); usbPoll(); } memcpy(&replyBuf[0], &NewLogCharAvailable, sizeof(uchar)); // copy report id to replybuffer memcpy(&replyBuf[1], &am...
- Fri Feb 04, 2011 11:21 am
- Forum: V-USB
- Topic: ATmega168 BootloadHID - Device not recognized
- Replies: 5
- Views: 7223
Re: ATmega168 BootloadHID - Device not recognized
So I got it to compile, and be recognized by my computer.
Hi!
I also got it compiled in AVR Studio but NOT recognized by my computer!
I changed the text address to 0x3800 for the Atmega168. Nothing else.
What did you change that the device get recognized?
- Mon Apr 26, 2010 11:43 pm
- Forum: V-USB
- Topic: Combining BootloadHID and powerswitch
- Replies: 4
- Views: 5360
Re: Combining BootloadHID and powerswitch
Also I have a problem with bootloadHID and (pgm_read_byte_near(0x0000) == 0xFF) Device programming finished! Reset Device now, please wait... Device got removed: HIDBoot DeviceArrival: HIDBoot, VID: 5824, PID: 1503 I can program the device and than the function leaveBootloader(); will be called from...
- Mon Apr 26, 2010 7:35 am
- Forum: V-USB
- Topic: Combining BootloadHID and powerswitch
- Replies: 4
- Views: 5360
Re: Combining BootloadHID and powerswitch
Is there now an example how to combine an v-usb project with the bootloadHID?
- Mon Apr 05, 2010 8:23 pm
- Forum: V-USB
- Topic: Problem compiling examples with Visual Studio 2008
- Replies: 22
- Views: 22422
Re: Problem compiling examples with Visual Studio 2008
Thx a lot! Great easter egg! Tested on a Win7 x86 machine: 1>------ Build started: Project: NewConsole, Configuration: Debug Win32 ------ 1>Compiling... 1>hiddata.c 1>c:\vusb-20090822\examples\hid-data\commandline\newconsole\hid-data\hiddata.c(41) : warning C4244: '=' : conversion from 'unsigned sho...
- Fri Apr 02, 2010 11:53 am
- Forum: V-USB
- Topic: Problem compiling examples with Visual Studio 2008
- Replies: 22
- Views: 22422
Re: Problem compiling examples with Visual Studio 2008
thx! I added: Tools->Options->Projects and Solutions->VC++Directories->Inlucde files: C:\MentorGraphics\WinDDK\7600.16385.1\inc\api C:\MentorGraphics\WinDDK\7600.16385.1\inc\ddk Tools->Options->Projects and Solutions->VC++Directories->Library files: C:\MentorGraphics\WinDDK\7600.16385.1\lib\wxp\i386...
- Thu Apr 01, 2010 1:14 pm
- Forum: V-USB
- Topic: Problem compiling examples with Visual Studio 2008
- Replies: 22
- Views: 22422
Re: Problem compiling examples with Visual Studio 2008
Hi, I just tried the description from above with the hid-data example. I modified: #include "usbconfig.h" #include <hidpi.h> #include <hidsdi.h> Installed WDK 710. Added pathes like above. Using VS2008 SP1 When I try to compile: 1>------ Build started: Project: NewConsole, Configuration: D...
- Tue Mar 23, 2010 3:31 pm
- Forum: V-USB
- Topic: Help with usbHidReportDescriptor
- Replies: 10
- Views: 8428
Re: Help with usbHidReportDescriptor
Hi, I want to modify my descriptor! old: PROGMEM char usbHidReportDescriptor[24] = { 0x05, 0x01, // USAGE_PAGE (Generic Desktop) 0x0b, 0x01, 0x00, 0x00, 0xff, // USAGE (Vendor Defined Page 1:Vendor Usage 1) 0xa1, 0x01, // COLLECTION (Application) 0x15, 0x00, // LOGICAL_MINIMUM (0) 0x26, 0xff, 0x00, ...
- Thu Mar 18, 2010 8:25 am
- Forum: V-USB
- Topic: Device Manager -> USB Device Name?
- Replies: 2
- Views: 3088
Re: Device Manager -> USB Device Name?
Thanks for the reply! I mean the desccripton like here: http://s1.postimage.org/8Dbm9.gif It is not my AVR! My AVR will show something like "HID input device". Just an example! I get showed the right device name when I first connect the device to the host. Like "HIDKeys" with the...
- Mon Mar 15, 2010 8:53 am
- Forum: V-USB
- Topic: Device Manager -> USB Device Name?
- Replies: 2
- Views: 3088
Device Manager -> USB Device Name?
Hi,
is there a sample how to change the shown default USB HID device name in the device manger.
I think it have something to do with USB_CFG_DESCR_PROPS_STRING_PRODUCT or something like this.
Is there a small sample just to change the shown USB device name.
thx!
is there a sample how to change the shown default USB HID device name in the device manger.
I think it have something to do with USB_CFG_DESCR_PROPS_STRING_PRODUCT or something like this.
Is there a small sample just to change the shown USB device name.
thx!
- Tue Mar 09, 2010 9:50 pm
- Forum: V-USB
- Topic: Device may init with USB 2.0 instead of 1.1?
- Replies: 1
- Views: 2469
Re: Device may init with USB 2.0 instead of 1.1?
Here I have some log and the AVR source! I use the same functions like the HID-Data example. On one USB Port it is working fine, on the other: 20:43:08 usbhidOpenDevice faild, 0 .. .. 20:43:09 usbhidGetReport faild, 31 20:43:09 Polling faild, PollingFaildCounter: 1 31 is from GetLastError = Device n...
- Tue Mar 09, 2010 2:33 pm
- Forum: V-USB
- Topic: Device may init with USB 2.0 instead of 1.1?
- Replies: 1
- Views: 2469
Device may init with USB 2.0 instead of 1.1?
Hi, I were testing the HID-Data example. Now my project is almost over. But I have a problem with the init of the AVR. If the comunication of the device looks like this: http://s4.postimage.org/aOCnA.jpg The comunication, reading/writing eeprom, polling the device is working without any problems. Wh...
- Sun Mar 07, 2010 11:00 am
- Forum: V-USB
- Topic: Help with usbHidReportDescriptor
- Replies: 10
- Views: 8428
Re: Help with usbHidReportDescriptor
As I found out the report number is the Report ID. I have now this usbFunctionSetup function: /* ------------------------------------------------------------------------- */ uchar usbFunctionSetup(uchar data[8]) { static uchar replyBuf[7]; usbRequest_t *rq = (void *)data; usbMsgPtr = replyBuf; if((r...
- Sat Mar 06, 2010 10:32 pm
- Forum: V-USB
- Topic: Help with usbHidReportDescriptor
- Replies: 10
- Views: 8428
Re: Help with usbHidReportDescriptor
Hi, I translated the code now to D2010. It's working! But one more question! Waht is the "reportNumber"? int usbhidGetReport(usbDevice_t *device, int reportNumber, char *buffer, int *len) { BOOLEAN rval = 0; buffer[0] = reportNumber; rval = HidD_GetFeature((HANDLE)device, buffer, *len); re...