|
From: s.rawat <ims...@gm...> - 2015-02-13 08:32:01
|
Hello,
I have been an avid windows user and used APIs to interact with the USB HID
device using hid.dll (DllImport("hid.dll",...) and all those stuff.I get
easy access to functions like _SetoutPut and _GetInput Report and can send
custom messages to HID USB device.(HID Compliant Device in the device
Manager).
Now I want to achieve the same with the libusb on Linux(and later On
Android).I looked into the code and found HID related code inside xusb.c
files.
I wanted to know is it possible to :
read HID Input reports(sync and Async both) and send Custom HID messages in
the HID Output report and get the response HID GetInput Report using libusb?
I see there is /jni bindings for android but can I achieve getting/sending
input/output reports using this.
I know my HID USB device and can create OUT Reports to it.
please advice the pointers in the code if it is possible.
Thanks in advance
Rgds
S
|
|
From: Xiaofan C. <xia...@gm...> - 2015-02-14 02:10:44
|
On Fri, Feb 13, 2015 at 4:31 PM, s.rawat <ims...@gm...> wrote:
> Hello,
> I have been an avid windows user and used APIs to interact with
> the USB HID device using hid.dll (DllImport("hid.dll",...) and all
> those stuff.I get easy access to functions like _SetoutPut
> and _GetInput Report and can send custom messages to HID
> USB device.(HID Compliant Device in the device
> Manager).
>
> Now I want to achieve the same with the libusb on Linux(and
> later On Android).I looked into the code and found HID related
> code inside xusb.c files.
For Linux, please look at HIDAPI, I think it will be easier for you
than using libusb.
Ref: http://www.signal11.us/oss/hidapi/
For Android, I do not know how well HIDAPI works under
Android, libusb is not that good under Android right now
unless you have a rooted device.
--
Xiaofan
|
|
From: s.rawat <ims...@gm...> - 2015-02-20 09:32:25
|
On Sat, Feb 14, 2015 at 7:40 AM, Xiaofan Chen <xia...@gm...> wrote:
> On Fri, Feb 13, 2015 at 4:31 PM, s.rawat <ims...@gm...> wrote:
> > Hello,
> > I have been an avid windows user and used APIs to interact with
> > the USB HID device using hid.dll (DllImport("hid.dll",...) and all
> > those stuff.I get easy access to functions like _SetoutPut
> > and _GetInput Report and can send custom messages to HID
> > USB device.(HID Compliant Device in the device
> > Manager).
> >
> > Now I want to achieve the same with the libusb on Linux(and
> > later On Android).I looked into the code and found HID related
> > code inside xusb.c files.
>
> For Linux, please look at HIDAPI, I think it will be easier for you
> than using libusb.
> Ref: http://www.signal11.us/oss/hidapi/
>
> For Android, I do not know how well HIDAPI works under
> Android, libusb is not that good under Android right now
> unless you have a rooted device.
>
Thanks for the reply.
Is the rooted device only issue with libusb or Android.I have seen port for
libusb on Android using ndk on github.
I am looking for below two option :
(1) Port HIDAPI you mentioned above to Android if it is possible with no
dependency on Android.HIDAPI uses libudev which I think is not available on
Android?
(2) Use Libusb on Android whose port is available on git and use it in
application.
My device is not a bulk transfer device rather an HID device to which
output report is to be sent which I am able to do with the HIDAPI but not
sure if it is portable to Android.
Br,,
Saurabh
>
> --
> Xiaofan
>
|
|
From: Xiaofan C. <xia...@gm...> - 2015-02-20 14:06:53
|
On Fri, Feb 20, 2015 at 5:31 PM, s.rawat <ims...@gm...> wrote: > Thanks for the reply. > Is the rooted device only issue with libusb or Android.I have seen port for > libusb on Android using ndk on github. > I am looking for below two option : > (1) Port HIDAPI you mentioned above to Android if it is possible with no > dependency on Android.HIDAPI uses libudev which I think is not available on > Android? > (2) Use Libusb on Android whose port is available on git and use it in > application. > > My device is not a bulk transfer device rather an HID device to which output > report is to be sent which I am able to do with the HIDAPI but not sure if > it is portable to Android. > Sorry I do not know the answer to Android, if Android is the platform you really want to work on, it seems to me both HIDAPI and libusb are not the answer. Hopefully others can help you better. Or maybe you should forget about HIDAPI and libusb under Android and use the native USB API of Android. -- Xiaofan |
|
From: Kustaa N. <Kus...@pl...> - 2015-02-20 14:23:44
|
On 20/02/2015 15:57, "Xiaofan Chen" <xia...@gm...> wrote: >Or maybe you should forget about HIDAPI and libusb under >Android and use the native USB API of Android. > > I often wonder these requests ... what is the driving force to program in C on Android when the platform so clearly is Java 'only'... Just MHO. br Kusti This e-mail may contain confidential or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on or as of transmission of this e-mail in general. |
|
From: s.rawat <ims...@gm...> - 2015-02-20 18:15:14
|
native USB API of Android. >> Need to check it out.Btw there is UsbManager class in java which has the .controltransfer and .bulktransfer routine.Any way goign in the direction of .controltransfer right now as the parameter it takes looks similiar to that of one sending output report. what is the driving force to program in C on Android when the platform so clearly is Java 'only'... >>Elaborate.C gives the power to do anything at the native layer.Sometime java APIS dont give that much power.Ofcourse the device needs to be rooted. Looking forwards for more comments on HID Apis for Android. On Fri, Feb 20, 2015 at 7:53 PM, Kustaa Nyholm <Kus...@pl...> wrote: > On 20/02/2015 15:57, "Xiaofan Chen" <xia...@gm...> wrote: > > >Or maybe you should forget about HIDAPI and libusb under > >Android and use the native USB API of Android. > > > > > > I often wonder these requests ... what is the driving > force to program in C on Android when the platform > so clearly is Java 'only'... > > Just MHO. > > br Kusti > > > This e-mail may contain confidential or privileged information. If you are > not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and destroy this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this e-mail is > strictly forbidden. We will not be liable for direct, indirect, special or > consequential damages arising from alteration of the contents of this > message by a third party or as a result of any virus being passed on or as > of transmission of this e-mail in general. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > |
|
From: Graeme G. <gr...@ar...> - 2015-02-22 22:58:16
|
Kustaa Nyholm wrote: > I often wonder these requests ... what is the driving > force to program in C on Android when the platform > so clearly is Java 'only'... Android is not at all Java only - the NDK is proof of this. Often people have a large body of existing code they want to re-use on Android, or share between Android and other platforms that their application supports (MSWin, OS X, Linux, iOS, etc.), and C and C++ code is the common denominator. Cross platform UI kits like Qt use the NDK to make their cross platformness possible. You certainly don't want to have to maintain a large amount of the same code written in both Java and C/C++ - what an error-prone waste of development time that would be! Graeme Gill. |
|
From: Graeme G. <gr...@ar...> - 2015-02-22 22:52:15
|
s.rawat wrote: > Is the rooted device only issue with libusb or Android. You don't need a rooted device, you just need to ensure that the USB device is opened by the Java code, and then the fd handed to libusb. Graeme Gill. |
|
From: Jason K. <jas...@gm...> - 2015-02-22 23:16:25
|
How does this work: > You don't need a rooted device, you just need to ensure that > the USB device is opened by the Java code, and then the fd > handed to libusb. Very Sincerely, Jason > On Feb 22, 2015, at 2:52 PM, Graeme Gill <gr...@ar...> wrote: > > s.rawat wrote: > >> Is the rooted device only issue with libusb or Android. > > You don't need a rooted device, you just need to ensure that > the USB device is opened by the Java code, and then the fd > handed to libusb. > > Graeme Gill. > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
From: Graeme G. <gr...@ar...> - 2015-02-22 23:31:46
|
Jason Kotzin wrote: > How does this work: > >> You don't need a rooted device, you just need to ensure that >> the USB device is opened by the Java code, and then the fd >> handed to libusb. See <http://stackoverflow.com/questions/15957509/compile-and-link-against-libusb-for-android> <https://github.com/martinmarinov/rtl_tcp_andro-/tree/master/jni/libusb-andro> Graeme Gill. |
|
From: Jason K. <jas...@gm...> - 2015-02-23 00:11:10
|
There is no read me or example. I'm not sure what I'm looking at. Very Sincerely, Jason > On Feb 22, 2015, at 3:31 PM, Graeme Gill <gr...@ar...> wrote: > > Jason Kotzin wrote: >> How does this work: >> >>> You don't need a rooted device, you just need to ensure that >>> the USB device is opened by the Java code, and then the fd >>> handed to libusb. > > See > <http://stackoverflow.com/questions/15957509/compile-and-link-against-libusb-for-android> > <https://github.com/martinmarinov/rtl_tcp_andro-/tree/master/jni/libusb-andro> > > Graeme Gill. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
From: Peter S. <pe...@st...> - 2015-02-23 00:19:17
|
Jason Kotzin wrote: > There is no read me or example. I'm not sure what I'm looking at. You'll have to look at the code to see what it's doing. It kindasorta works but sure is not pretty. //Peter |
|
From: Xiaofan C. <xia...@gm...> - 2015-02-23 23:21:44
|
On Mon, Feb 23, 2015 at 8:19 AM, Peter Stuge <pe...@st...> wrote: > Jason Kotzin wrote: >> There is no read me or example. I'm not sure what I'm looking at. > > You'll have to look at the code to see what it's doing. > > It kindasorta works but sure is not pretty. Maybe Android developers should cleanup the code and submit the patch for review. It seems more and more users are asking about better Android support (without root). -- Xiaofan |
|
From: Jason K. <jas...@gm...> - 2015-02-24 00:11:52
|
I haven’t had time to look at this code, but how I’m going to handle it right now is have the android code open the device, and either call the java library from C, or register a callback for the control transfer in my c-lib. That way, I don’t have to maintain a copy of my code in java. Would love to see built in android support. Sincerely, Jason > On Feb 23, 2015, at 3:21 PM, Xiaofan Chen <xia...@gm...> wrote: > > On Mon, Feb 23, 2015 at 8:19 AM, Peter Stuge <pe...@st...> wrote: >> Jason Kotzin wrote: >>> There is no read me or example. I'm not sure what I'm looking at. >> >> You'll have to look at the code to see what it's doing. >> >> It kindasorta works but sure is not pretty. > > Maybe Android developers should cleanup the code and submit > the patch for review. > > It seems more and more users are asking about better Android > support (without root). > > > -- > Xiaofan > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
From: s.rawat <ims...@gm...> - 2015-02-25 04:04:03
|
OK Here is the good news and the Bad News : I successfully ported the hidtest.cpp for android using libusb (not hid-raw).I modified it for my device for sending output reports.I tested the code with my HID device on Android and I am able to communicate with it . But the bad news is Only SendOutput report works.The input response which I am supposed to get for the corresponding output report is still null.Anyone knows about this or is it a known issue. Thanks On Tue, Feb 24, 2015 at 5:41 AM, Jason Kotzin <jas...@gm...> wrote: > I haven’t had time to look at this code, but how I’m going to handle it > right now is have the android code open the device, and either call the > java library from C, or register a callback for the control transfer in my > c-lib. That way, I don’t have to maintain a copy of my code in java. > > Would love to see built in android support. > > Sincerely, > Jason > > > > On Feb 23, 2015, at 3:21 PM, Xiaofan Chen <xia...@gm...> wrote: > > > > On Mon, Feb 23, 2015 at 8:19 AM, Peter Stuge <pe...@st...> wrote: > >> Jason Kotzin wrote: > >>> There is no read me or example. I'm not sure what I'm looking at. > >> > >> You'll have to look at the code to see what it's doing. > >> > >> It kindasorta works but sure is not pretty. > > > > Maybe Android developers should cleanup the code and submit > > the patch for review. > > > > It seems more and more users are asking about better Android > > support (without root). > > > > > > -- > > Xiaofan > > > > > ------------------------------------------------------------------------------ > > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > > with Interactivity, Sharing, Native Excel Exports, App Integration & more > > Get technology previously reserved for billion-dollar corporations, FREE > > > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > > _______________________________________________ > > libusb-devel mailing list > > lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-devel > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > |
|
From: Xiaofan C. <xia...@gm...> - 2015-02-25 04:53:39
|
On Wed, Feb 25, 2015 at 12:03 PM, s.rawat <ims...@gm...> wrote: > OK Here is the good news and the Bad News : > I successfully ported the hidtest.cpp for android using libusb (not > hid-raw).I modified it for my device for sending output reports.I tested the > code with my HID device on Android and I am able to communicate with it . > But the bad news is Only SendOutput report works.The input response which I > am supposed to get for the corresponding output report is still null.Anyone > knows about this or is it a known issue. > Thanks You should test the original hidtest.cpp against your device under normal Linux distro to see if that works or not. If that works, then most likely HIDAPI is okay and you have to debug your porting to Android or the Android modification to libusb (take note it has not been accepted and thus not supported by libusb project). As far as I know, HIDAPI is quite good under normal Linux (or Windows or Mac OS X). -- Xiaofan |
|
From: s.rawat <ims...@gm...> - 2015-02-26 03:41:42
|
You should test the original hidtest.cpp against your device under normal Linux distro to see if that works or not. If that works, then most likely HIDAPI is okay >>Yes I checked it on Ubuntu Distribution and it worked.Except the retrieving of the getinput part. then most likely HIDAPI is okay and you have to debug your porting to Android or the Android modification to libusb (take note it has not been accepted and thus not supported by libusb project). >> I compiled it using the android ndk along with the Libusb -> worked here as well Except the retrieving of the getinput part. Question here : Which method should be used to embed inside the hid_read() to successfully get the input reports from the HID device? -libusb_control_transfer or libusb_interrupt_transfer ? Are they dependendt on the availability of some end point which my device should support.Which portion of libusb code I should target to debug this.I dont know if this is my device(target) problem.But i have observed in the USB analyzer that after I send the Output report(custom output report) to read(get response from the HID device) I get a STALL on USB line.STALL => Is I think Host is doing on not getting the response from the device,correct?I even tested it with different timeouts ( 1 - 10 seconds), no luck. On Wed, Feb 25, 2015 at 10:23 AM, Xiaofan Chen <xia...@gm...> wrote: > On Wed, Feb 25, 2015 at 12:03 PM, s.rawat <ims...@gm...> > wrote: > > OK Here is the good news and the Bad News : > > I successfully ported the hidtest.cpp for android using libusb (not > > hid-raw).I modified it for my device for sending output reports.I tested > the > > code with my HID device on Android and I am able to communicate with it > . > > But the bad news is Only SendOutput report works.The input response > which I > > am supposed to get for the corresponding output report is still > null.Anyone > > knows about this or is it a known issue. > > Thanks > > You should test the original hidtest.cpp against your device under > normal Linux distro to see if that works or not. If that works, then > most likely HIDAPI is okay and you have to debug your porting to > Android or the Android modification to libusb (take note it has > not been accepted and thus not supported by libusb project). > > As far as I know, HIDAPI is quite good under normal Linux > (or Windows or Mac OS X). > > > -- > Xiaofan > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > |
|
From: Xiaofan C. <xia...@gm...> - 2015-02-26 05:06:25
|
On Thu, Feb 26, 2015 at 11:41 AM, s.rawat <ims...@gm...> wrote: > You should test the original hidtest.cpp against your device under > normal Linux distro to see if that works or not. If that works, then > most likely HIDAPI is okay >>>Yes I checked it on Ubuntu Distribution and it worked.Except the >>> retrieving of the getinput part. Then forget about Android for now. Your problem has nothing to do with Android since it does not work under normal Linux distro either. > > Question here : > Which method should be used to embed inside the hid_read() to successfully > get the input reports from the HID device? > -libusb_control_transfer or libusb_interrupt_transfer ? Both should work if you just need to get a few input reports. For continuous reading of the input reports, you should use libusb_interrupt_transfer. But I thought you are using HIDAPI, right? > Are they dependendt on the availability of some end point which my device > should support.Which portion of libusb code I should target to debug this.I > dont know if this is my device(target) problem.But i have observed in the > USB analyzer that after I send the Output report(custom output report) to > read(get response from the HID device) I get a STALL on USB line.STALL => Is > I think Host is doing on not getting the response from the device,correct?I > even tested it with different timeouts ( 1 - 10 seconds), no luck. > In that case, it is your device problem or your understanding of the communication protocol. Do you have access to the communication protocol or the firmware of the device? Since you have access to a USB analyzer, you can sniff the communication protocol with the working Windows program (using hid.dll) and compare the behavior. -- Xiaofan |
|
From: Xiaofan C. <xia...@gm...> - 2015-02-26 06:37:24
|
Please reply to the list. Thanks. On Thu, Feb 26, 2015 at 1:21 PM, s.rawat <ims...@gm...> wrote: > Xiaofan C wrote : > But I thought you are using HIDAPI, right? >>> HIDAPI has two implementations - using libusb and another one using >>> hid-raw.I am using libusb implementation currently. and hence cross compiled >>> it for Android.On Linux I used libusb devel packages What if you use hid-raw under Ubuntu Linux? What is this Ubuntu? Is it running Intel processor or other embedded processor? > Do you have access to the communication > protocol or the firmware of the device? >>>Yes i have access to both. Okay, that is good. > > Graeme G wrote : > I'm not sure if it's any help, but I've had no problems with my > Linux/Android > USB code in talking to the particular HID devices I support. But then > I'm not using LibUSB, and I'm communicating with these HID devices using > the normal Linux USB I/O, rather than a higher level HID report library. > >>>What is normal Linux USB I/O.Please elaborate.Are you able to send custom >>> made Output reports and get the response from the Device for the same? -- Xiaofan |
|
From: s.rawat <ims...@gm...> - 2015-02-26 07:34:41
|
What if you use hid-raw under Ubuntu Linux? >>hid-raw behaves the same way.No input report. What is this Ubuntu? Is it running Intel processor or other embedded processor? >>Ubuntu is Debian based Linux OS distribution.Host is Intel x64 running the same version of OS On Thu, Feb 26, 2015 at 12:07 PM, Xiaofan Chen <xia...@gm...> wrote: > Please reply to the list. Thanks. > > On Thu, Feb 26, 2015 at 1:21 PM, s.rawat <ims...@gm...> wrote: > > Xiaofan C wrote : > > But I thought you are using HIDAPI, right? > >>> HIDAPI has two implementations - using libusb and another one using > >>> hid-raw.I am using libusb implementation currently. and hence cross > compiled > >>> it for Android.On Linux I used libusb devel packages > > What if you use hid-raw under Ubuntu Linux? > > What is this Ubuntu? Is it running Intel processor or other embedded > processor? > > > Do you have access to the communication > > protocol or the firmware of the device? > >>>Yes i have access to both. > > Okay, that is good. > > > > > Graeme G wrote : > > I'm not sure if it's any help, but I've had no problems with my > > Linux/Android > > USB code in talking to the particular HID devices I support. But then > > I'm not using LibUSB, and I'm communicating with these HID devices using > > the normal Linux USB I/O, rather than a higher level HID report library. > > > >>>What is normal Linux USB I/O.Please elaborate.Are you able to send > custom > >>> made Output reports and get the response from the Device for the same? > > > > > -- > Xiaofan > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > |
|
From: Graeme G. <gr...@ar...> - 2015-02-26 12:00:40
|
s.rawat wrote: > What is normal Linux USB I/O.Please elaborate. Something like libusb builds on top of the native OS USB access. In the case of Linux, it's a matter of open(), ioctl(), read(, write() etc. - the usual Unix style of things. > Are you able to send custom > made Output reports and get the response from the Device for the same? The HID devices I am dealing with don't use reports, they do more normal reads and writes to end points. Graeme Gill. |
|
From: Xiaofan C. <xia...@gm...> - 2015-02-27 06:38:19
|
On Thu, Feb 26, 2015 at 8:00 PM, Graeme Gill <gr...@ar...> wrote: > The HID devices I am dealing with don't use reports, they do more > normal reads and writes to end points. > Are you sure about that? The HID device usually use reports (input/output/feature). If your device does not use HID reports, then probably they are not HID device. -- Xiaofan |
|
From: Graeme G. <gr...@ar...> - 2015-02-26 05:14:02
|
s.rawat wrote: > But the bad news is Only SendOutput report works.The input response which I > am supposed to get for the corresponding output report is still null.Anyone > knows about this or is it a known issue. I'm not sure if it's any help, but I've had no problems with my Linux/Android USB code in talking to the particular HID devices I support. But then I'm not using LibUSB, and I'm communicating with these HID devices using the normal Linux USB I/O, rather than a higher level HID report library. Graeme Gill |
|
From: s.rawat <ims...@gm...> - 2015-02-23 02:33:06
|
I have compiled it sucessfully and can get libraries in android/libs.Exploring more...For android i think armeabi-v7a folder library is the one i will be looking for.Sample test code to get device handle./send output and get input reports from the HID device I will be hunting for now. "..pain is temporary.....quitting lasts forever....." My Blog <http://techshek4u.blogspot.in/>" On Mon, Feb 23, 2015 at 5:49 AM, Peter Stuge <pe...@st...> wrote: > Jason Kotzin wrote: > > There is no read me or example. I'm not sure what I'm looking at. > > You'll have to look at the code to see what it's doing. > > It kindasorta works but sure is not pretty. > > > //Peter > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > libusb-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > |
|
From: s.rawat <ims...@gm...> - 2015-02-23 02:35:19
|
To be precise : The porting of hidtest.cpp inside hidtest inside : https://github.com/signal11/hidapi. "..pain is temporary.....quitting lasts forever....." My Blog <http://techshek4u.blogspot.in/>" On Mon, Feb 23, 2015 at 8:02 AM, s.rawat <ims...@gm...> wrote: > I have compiled it sucessfully and can get libraries in > android/libs.Exploring more...For android i think armeabi-v7a folder > library is the one i will be looking for.Sample test code to get device > handle./send output and get input reports from the HID device I will be > hunting for now. > > "..pain is temporary.....quitting lasts forever....." > My Blog <http://techshek4u.blogspot.in/>" > > On Mon, Feb 23, 2015 at 5:49 AM, Peter Stuge <pe...@st...> wrote: > >> Jason Kotzin wrote: >> > There is no read me or example. I'm not sure what I'm looking at. >> >> You'll have to look at the code to see what it's doing. >> >> It kindasorta works but sure is not pretty. >> >> >> //Peter >> >> >> ------------------------------------------------------------------------------ >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> >> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk >> _______________________________________________ >> libusb-devel mailing list >> lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libusb-devel >> > > |