Recent Posts

Pages: [1] 2 3 ... 10
General Discussion / BASIC 52 program storage
« Last post by AlvinRunty on August 03, 2020, 03:20:52 pm »
So ive upgraded every upgradeable thing to its max or to the prestige level but my alloy storage is filled up to its max which is 7,200,000 so I was wondering what should I do to fix this?
USB / Re: HID compliant device not recognized by Windows 10
« Last post by Jan Axelson on July 21, 2020, 09:24:13 pm »
Thanks for the reminder!
USB / Re: HID compliant device not recognized by Windows 10
« Last post by Renate on July 21, 2020, 02:28:26 pm »
This post should be dragged out of the dust every few years.
Windows in the later versions asks for the BOS descriptor.
Normally a good USB implementation will stall if it doesn't know about BOS descriptors.
Some fixed implementations (like the TI OMAP bootloader in ROM) are simple enough that they get flummoxed and disconnect.
Windows will do the same thing 3 times, get the same result 3 times and suspend the device.
As above, the solution is to notate the device as not liking BOS queries.

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\usbflags\vvvvpppprrrr\SkipBOSDescriptorQuery = DWORD(1)
vvvv = vid, pppp = pid, rrrr = revision
The registry key should already be there.
USB / Re: HID device and microframes on Windows
« Last post by Jan Axelson on July 20, 2020, 09:35:08 am »
I'm not sure what you mean by "sends the data in microframes" because all HID data arrives in frames / microframes.

My Usbhidio_vc6 is old but does use WaitForSingleObject and might be of some help:

I see no reason that you would need to write a driver to retrieve HID reports.
USB / HID device and microframes on Windows
« Last post by cjung on July 20, 2020, 08:10:54 am »

I'm trying to read reports from a HID device (Windows 10) which sends the data in microframes. The hardware is developed by the company I work for and we use the native drivers from Microsoft.
As programming language I use C++ without third party libraries.

I have some experience with HID devices and have also successfully tested my code on a "normal" HID device. There everything works and I have access to the data.

I don't really get along with the microframes. I get no data and always end up in the timeout of the WaitForSingleObject().
I had a look at the USBlyser and I see that the reports arrive at the system (they are generated by the end device independently
shipped without my involvement). I can connect to the device and also read the capabilities and properties, but not the data.

Does anyone here have any experience with this and can help me with what I am missing?
Do I possibly have to write my own driver, because the standard driver does not support this?

Thanks for your help
Chris from Germany
USB / Re: hid api control transfers with Delphi
« Last post by Jan Axelson on July 18, 2020, 10:43:43 am »
I have no information about the Delphi examples other than what is posted on my page.
USB / hid api control transfers with Delphi
« Last post by ulao on July 16, 2020, 02:40:51 pm »
I was looking in to using HIDAPI with delphi and saw a paid winsoft and a Generic HID project with no documentation. I'm not much of a delphi developer so I'd be lost. I also saw the hid projects on and figure i'd ask about it. What if any SDK does it use? I see a bunch of examples but I'd like to just include and develop.

  HIDctrlIntf; //this seems to be referencing a dll, what dll hidusb?

  HIDinterface; //this oe looks like its referencing  a PAS file, where is that?

I just want to make and received API control transfers.
USB / Re: it is possible to get the rotation information out of a computer mouse?
« Last post by robss on July 15, 2020, 12:16:35 am »
Are there any mouse designers here :D  Theoretically could someone who is the actual person designing the firmware on the mouse chip (the thing that actually reads the optical sensor) easily apply the matrix operaitons to get the rotation?  I do understand that the mice do not currently determine nor export that information.
USB / Re: VCP to HID conversion
« Last post by Jan Axelson on July 09, 2020, 09:33:36 pm »
On device enumeration, the Windows drivers use the information in the descriptors to assign a driver to the device. a HID's descriptors identify the device as a HID.

I believe one could write an application that communicates with the HID and passes its data to and from a software virtual serial port that the existing application communicates with. Here is one example, there are many:
USB / VCP to HID conversion
« Last post by Zom on July 09, 2020, 07:56:36 pm »
For some years I have been accessing USB devices as VCPs from a long standing application set running on an Embedded XP platform, with much success. Sadly, a manufacturer has switched a device used by the set from a VCP to an HID interface 'USB Input Device'. The platform cannot interface with HID natively.
 I have searched for a VCP to HID conversion utility/driver/service but cannot find one. Ideally I want to be able to access the HID device as a VCP seen by XP. The data communication with the device is trivial, being one or two bytes written, and one byte received every minute or so.
 I am entirely prepared to do whatever legwork is required to achieve a solution, short of a complete platform rewrite, but before I commence, I
 would be grateful if someone could tell me if what I am aiming for is at all possible, and if it is what approach is the best to take.
Pages: [1] 2 3 ... 10