Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-15-2013, 05:45 AM   #1
LQ Newbie
Registered: Mar 2009
Location: Poovakulam, Kottayam, Kerala, India
Posts: 2

Rep: Reputation: 0
Detect USB Hub and device information programatically

I need to list existing USB hub and the devices connected in the hub.

I can able to print the USB Hub and devices connected in hub from terminal using the commands
Collapse | Copy Code

lsusb -v

How can I do this programmatically. Is there any C++ classes available to use in my Qt application.
Old 01-18-2013, 12:50 PM   #2
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 658
Blog Entries: 2

Rep: Reputation: 60
Start a spawn process
"lsusb -v > result.txt" or
"lsusb -v" to the output "tty" or other ?
Im not a specialist in programming (I had done it in FORTRAN 18years ago..).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with USB hub device? M$ISBS Linux - Newbie 1 10-23-2011 06:30 PM
[SOLVED] USB Hub disappearing after a few seconds of no USB device being inserted BruceDLong Linux - Embedded & Single-board computer 2 04-30-2011 06:05 PM
How to detect programatically if a USB device is is plugged-in / plugged out? franc Linux - Software 3 02-01-2007 04:01 AM
How to detect usb programatically? rahul_kulkarni Linux - Newbie 1 11-07-2006 06:09 AM

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration