Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

get device path / port number #10

Copy link
Copy link
@siochs

Description

@siochs
Issue body actions

Hi, using following code:

        UsbPort port = usbDevice.getParentUsbPort();
        System.out.println("Connected to port: " + port.getPortNumber());
        System.out.println("Parent: " + port.getUsbHub()); 

I can dump some basic info about the device connection. However, I need to know the physical location of the device. I can see it in dmesg:

[ 1415.390194] usb 1-1.2: Manufacturer: SanDisk

Attaching the device to another port prints

[ 1415.390194] usb 1-1.4: Manufacturer: SanDisk

So how do I retrieve the physical address 1-1.4 using usb4java-javax? The code above always prints the same port information, even when switching the ports.
See also this thread on StackOverflow.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.