Thread: availble usb devices

  1. #1
    Registered User
    Join Date
    Jan 2024
    Posts
    6

    availble usb devices

    I suspect my problem is my lack of experience with linux..
    anyway, I'm working on building a GUI version of my program that talks with my arduino. (currently it shows up as /dev/ttyACM0 ) but what I'm trying to do, get is a list of available usb devices so my program can present the list to the user to pick one. how do I generate that list? I can find tons on doing it from the command line.. but not inside a C program ..?

  2. #2
    Registered User
    Join Date
    Jan 2024
    Posts
    6
    well, after a LOT more digging.. I came across libusb (which I couldn't get to work) then I found what libusb is based on.. LibUdev... which actually worked out pretty well!

    Tutorial: How to use libudev and Sysfs in Linux

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. works with devices in /dev/*
    By j3ph in forum C Programming
    Replies: 3
    Last Post: 08-12-2020, 05:33 AM
  2. Any sample code availble?
    By krishnampkkm in forum Windows Programming
    Replies: 1
    Last Post: 06-19-2009, 04:41 AM
  3. Programming for Devices
    By legit in forum Tech Board
    Replies: 2
    Last Post: 01-29-2009, 06:02 AM
  4. devices
    By pastitprogram in forum C++ Programming
    Replies: 8
    Last Post: 07-29-2008, 04:41 PM
  5. About those devices..
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 03-14-2002, 04:30 AM

Tags for this Thread