Results 1 to 4 of 4
  1. #1
    Halfbax is offline Member
    Join Date
    Aug 2015
    Posts
    6
    Rep Power
    0

    Default getting names of attched USB devices

    Hello,

    I am stucking at the next part of my project. I need to get the name and path of all attached usb devices. The problem is that I am searching for a solution which is working on linux and windows, because of reason that the program is running on my raspberry pi and my desktop pc. I dont like external API's.

    It would be nice if something give me a tip or something like that.

    //Edit:
    My plan is to get the path of a specific usb stick by name and read the files which are inside of it.

    //Edit2:
    Okay, when I what to work with usb4java (http://usb4java.org/), how do I start. I dont understand their quickstart guide


    Greetz,
    Halfbax
    Last edited by Halfbax; 08-23-2015 at 10:02 PM.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: getting names of attched USB devices

    So JFileChooser won't show the top level roots in Linux? I know it works in Windows and it shows the names assigned to those logical drives.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: getting names of attched USB devices

    What part of the quick start don't you understand?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: getting names of attched USB devices

    And can you elaborate on this:
    I dont like external API's.
    What is an external API, a library that someone else wrote? And why don't you like them?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. find all network devices in lan
    By dhruvinshingala in forum Networking
    Replies: 1
    Last Post: 10-26-2010, 10:46 PM
  2. Getting input from MIDI devices on a Mac
    By Ben Wheatley in forum Advanced Java
    Replies: 1
    Last Post: 08-05-2009, 06:08 PM
  3. connect to usb devices
    By alex1234 in forum Advanced Java
    Replies: 2
    Last Post: 03-30-2009, 04:39 PM
  4. How to control robots and other devices
    By francojava in forum Advanced Java
    Replies: 0
    Last Post: 01-24-2008, 04:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •