Results 1 to 2 of 2

Thread: HID Devices in Linux

  1. #1
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default HID Devices in Linux

    Hey Guys

    My problem has to do with communicating with a HID device more specifically a PIC18F. I have a Visual studio project in windows that works perfectly using the HID class.dll . However need this software to work on linux debian6 since I'll be running it of my Raspberry PI.

    So I tried adding the HID class.dll file provide by microchip to the Qt GUI I coded and received some obscure errors. SO after searching I came across libusb.h which is a C library (http://www.libusb.org/) .

    OK so far I have added the library to my Qt code it compiles and I am figuring out how to detect a connected HID device.

    My question is simple is this the right library(libusb.h) to use? Should I expect problems because its a C library and not a C++ one. Or is something else I should look at.

    In the event you need either my Windoes(Gui working) or linux(Gui Shell only) Code then i'll be glad to post it.

    Thanks Overklog

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: HID Devices in Linux

    Yes, libusb is the right way to go. Unless you can find some more high-level solution, of course.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    Overklog (18th June 2012)

Similar Threads

  1. Installation of QT on S60v3 devices
    By Vinuthan in forum Newbie
    Replies: 8
    Last Post: 4th April 2012, 09:00
  2. Deploying Qt App. on different Symbian devices
    By Marwa Shams in forum Installation and Deployment
    Replies: 9
    Last Post: 9th November 2011, 16:11
  3. Replies: 1
    Last Post: 13th December 2010, 22:58
  4. How get the list of usb devices
    By newb in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2010, 05:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.