LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
 
Search this Thread
Old 01-15-2013, 05:45 AM   #1
arunkumaraymuo
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
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
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 607
Blog Entries: 2

Rep: Reputation: 47
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..).
 
  


Reply


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 10:53 AM.

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