Forum: Cross-Platform-Entwicklung
by wschrabi,
23. Mär 2016
Alfred, yes that was an issue, I need the permission define.
Now I can get my 12 Bytes from the Device by GET_REPORT Request.
Thank you very very much for your help.
Best regards
:-D Walter
Forum: Cross-Platform-Entwicklung
by wschrabi,
23. Mär 2016
thanks Don, I only have one USB Device, but no EP-OUT defined in the Firmware, so writing a serial to the device is not possible.
I have only one IN EP, like a mouse.
BTW: For what is that:
{.$define WITHPERMISSION}
I see that you use this here:
...
{$ifdef WITHPERMISSION}
Forum: Cross-Platform-Entwicklung
by wschrabi,
23. Mär 2016
Dear Don,
one furhter question:
My Firmware has no Serial Number. COuld this be a problem, that I can not open a file.
As If OpenFile is always false.
I can re_flash my firmware with a serial number, but how can I enumerate the usb device
without one.
Thanks
Forum: Cross-Platform-Entwicklung
by wschrabi,
23. Mär 2016
Thanks, I will try your solution:
The ShardeActivity... is not recognized in your file.
In the new Github file, you forgot this file in the uses clauses.
FMX.Helpers.Android
Forum: Cross-Platform-Entwicklung
by wschrabi,
23. Mär 2016
I have tried it this way.
function TJvHidDevice.GetFeatureReport: string;
const
STD_USB_REQUEST_RECIPIENT = $01; // Interface
STD_USB_REQUEST_GET_REPORT = $01; //HID GET_REPORT
STD_USB_REQUEST_SET_REPORT = $09; //HID SET_REPORT
LIBUSB_FEATURE_REPORT = $0301; //Feature report ($0300), ID = 1 ($01)
LIBUSB_FEATURE_REPORT_LENGTH = $FF;
Forum: Cross-Platform-Entwicklung
by wschrabi,
22. Mär 2016
Dear Don,
thank you very very much that I could contact you.
I always get READ and Write Error with your tool.
My HID Device works like a mouse. It so no interrupt as mouse do make no interupt transfer.
You use READWRITE with your could. Can I use this also or is it bulk transfer.
I really need the GET REPORT. I also can not read the VENDOR / Product Name of the Device.
It works fine with...
Forum: Cross-Platform-Entwicklung
by wschrabi,
22. Mär 2016
Thanks a lot, for this great advice.
Best regards
Walter
Forum: Cross-Platform-Entwicklung
by wschrabi,
22. Mär 2016
Dear Sir,
I just found the problem:
The token <%receivers%> will not work in XE6. WIll it work in X10 and what ´does it do? WIth out I can deplay, but I have problems with my HID USB Device.
I try to get the Vendor name from the descriptor. But alway a blank line. But I can get the PID and VID.
Can you help me please?
Thanks