![]() |
AW: Komponente Android Daten USB senden/empfangen
The problem was that I had the FIle in UTF8 format.
I had to convert it to ANSI then I could deploy it. Thanks for your help Walter |
AW: Komponente Android Daten USB senden/empfangen
HI
also ich hab die USb componenten von ![]() ![]() ich hätte noch eine FRAGE: Bieten Sie auch eine Delphi Componente die auf ANDROID API wi unter ![]() Leider finde ich in dieser github lib nicht die Methode GetINputReport. Die WIndows API Componente ![]() Zwar hat Android API eine ReadWrite Methode, mit der man zb die Device Serial Number auslesen kann. Meine Zweite Frage: Das Commando zum Auslesen der Serial ist lt. Program > type > TCommands = ( > CMD_get_serial=100, > CMD_set_serial=101, > ); wissen Sie vielleicht, ob Get_report auch so eine Bitfolge als Commando hat? Vielleicht kann man einfach das Command anpassen und bekommt dann den Report? Danke für Ihre INfo. Kann wer helfen? Danke English: In the USB componentes at ![]() ![]() |
AW: Komponente Android Daten USB senden/empfangen
Nop !
No GET_REPORT. I wrote this library to communicate with some Microchip USB mcu's. HID interrupt only. No reports. Yet. This: TCommands = ( CMD_get_serial=100, CMD_set_serial=101, ); are just internal commands for my mcu's. They slipped into the demo not seen by me. At the moment I am very busy. If time is available again, I will look into it. But you could give it a try to do it yourself. Because the basic code is just a copy of the original JVCL code. So, perhaps, a copy of the original GET_REPORT code will also work in this library. Later, I will look into it !. |
AW: Komponente Android Daten USB senden/empfangen
Zitat:
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 |
AW: Komponente Android Daten USB senden/empfangen
Just remove it .... its a placeholder for some standard receivers that are used by Delphi:
Code:
I guess that these are of no importance for USB processing.
<receiver android:name="com.embarcadero.firemonkey.notifications.FMXNotificationAlarm" />
<receiver android:name="com.embarcadero.rtl.notifications.NotificationAlarm" /> |
AW: Komponente Android Daten USB senden/empfangen
Thanks a lot, for this great advice.
Best regards Walter |
AW: Komponente Android Daten USB senden/empfangen
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 the WIN JCVL LIbrary. I would really be thankful if you could help me a little. Thanks a lot! Walter |
AW: Komponente Android Daten USB senden/empfangen
Zitat:
you will find in HID.pas of the JVCL LIb: Zitat:
Thanks a lot for your reply. Walter |
AW: Komponente Android Daten USB senden/empfangen
Yep. It will need (a lot) more work to implement reports.
And if that is the case, you will have to have a little patience. Sorry for that. I will report back. |
AW: Komponente Android Daten USB senden/empfangen
I just had a quick look on how to send/get a report.
You need to do a controltransfer. I you look at: function TJvHidDevice.GetDeviceString(Idx: Byte): string; You will find an example on how to do a controltransfer. It could give you a start. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:57 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz