How to associate physical usb port with usb device numberHow can I uniquely identify which device is on USB...
Is it possible to have battery technology that can't be duplicated?
What does BREAD stand for while drafting?
How can I find out about the game world without meta-influencing it?
Must I use my personal social media account for work?
Can an open source licence be revoked if it violates employer's IP?
Is it true that "only photographers care about noise"?
If absolute velocity does not exist, how can we say a rocket accelerates in empty space?
Why is my Taiyaki (Cake that looks like a fish) too hard and dry?
What is Gilligan's full name?
Must a CPU have a GPU if the motherboard provides a display port (when there isn't any separate video card)?
Keeping track of theme when improvising
Is all-caps blackletter no longer taboo?
Am I allowed to determine tenets of my contract as a warlock?
Why is the concept of the Null hypothesis associated with the student's t distribution?
Can I use 220 V outlets on a 15 ampere breaker and wire it up as 110 V?
David slept with Bathsheba because she was pure?? What does that mean?
Why did the Death Eaters wait to reopen the Chamber of Secrets?
Simple log rotation script
About the paper by Buekenhout, Delandtsheer, Doyen, Kleidman, Liebeck and Saxl
My mom's return ticket is 3 days after I-94 expires
Why do (or did, until very recently) aircraft transponders wait to be interrogated before broadcasting beacon signals?
Print "N NE E SE S SW W NW"
Is it good practice to create tables dynamically?
Do they make "karaoke" versions of concertos for solo practice?
How to associate physical usb port with usb device number
How can I uniquely identify which device is on USB `hub 6-0:1.0: port 2`?Usb-ethernet devicecommand to determine ports of a device (like /dev/ttyUSB0)usb-device number changes over timeUSB bus port number vs USB physical positionHow USB bus number and device number been assigned?usb: device descriptor read/64, error -110How to get the specific serial port on usb-serial hub in LinuxHow can one USB port report 2 different BUS IDs?How to cleanly remove a non-storage USB device
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm using Ubuntu 12.04.
I need to send a command to a device that I have connected on a port of my PC.
I can send the command by finding out what the Bus and Device number are.
For example, lsusb will tell me that I have a device connected on Bus 007 and Device 003
"Bus 007 Device 003: ID 045e:00cb Google Inc."
However, the device number will change if I reboot the device.
"Bus 007 Device 004: ID 045e:00cb Google Inc."
Is there a way to make sure that I can send the commands to that PC USB port? By associating the device number to that phyical USB port? Or is there other fixes and workarounds?
linux ubuntu usb devices
bumped to the homepage by Community♦ 54 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I'm using Ubuntu 12.04.
I need to send a command to a device that I have connected on a port of my PC.
I can send the command by finding out what the Bus and Device number are.
For example, lsusb will tell me that I have a device connected on Bus 007 and Device 003
"Bus 007 Device 003: ID 045e:00cb Google Inc."
However, the device number will change if I reboot the device.
"Bus 007 Device 004: ID 045e:00cb Google Inc."
Is there a way to make sure that I can send the commands to that PC USB port? By associating the device number to that phyical USB port? Or is there other fixes and workarounds?
linux ubuntu usb devices
bumped to the homepage by Community♦ 54 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I'm using Ubuntu 12.04.
I need to send a command to a device that I have connected on a port of my PC.
I can send the command by finding out what the Bus and Device number are.
For example, lsusb will tell me that I have a device connected on Bus 007 and Device 003
"Bus 007 Device 003: ID 045e:00cb Google Inc."
However, the device number will change if I reboot the device.
"Bus 007 Device 004: ID 045e:00cb Google Inc."
Is there a way to make sure that I can send the commands to that PC USB port? By associating the device number to that phyical USB port? Or is there other fixes and workarounds?
linux ubuntu usb devices
I'm using Ubuntu 12.04.
I need to send a command to a device that I have connected on a port of my PC.
I can send the command by finding out what the Bus and Device number are.
For example, lsusb will tell me that I have a device connected on Bus 007 and Device 003
"Bus 007 Device 003: ID 045e:00cb Google Inc."
However, the device number will change if I reboot the device.
"Bus 007 Device 004: ID 045e:00cb Google Inc."
Is there a way to make sure that I can send the commands to that PC USB port? By associating the device number to that phyical USB port? Or is there other fixes and workarounds?
linux ubuntu usb devices
linux ubuntu usb devices
asked May 8 '15 at 19:39
Michael HuangMichael Huang
62
62
bumped to the homepage by Community♦ 54 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 54 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
A workaround is to check the current bus/device configuration for your device as it'll be portable too and I think the usb host controller allocates these numbers dynamically, here's using awk you can get the current bus and device
lsusb | grep "045e:00cb" | tr -d ':'| awk '{print "Bus="$2 " Device="$4}'
You use $2 and $4 in anyway for example : ls -l /dev/bus/usb/$2/$4
Is there a way to fix how the usb host controller allocates the numbers?
– Michael Huang
May 13 '15 at 17:28
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f202299%2fhow-to-associate-physical-usb-port-with-usb-device-number%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A workaround is to check the current bus/device configuration for your device as it'll be portable too and I think the usb host controller allocates these numbers dynamically, here's using awk you can get the current bus and device
lsusb | grep "045e:00cb" | tr -d ':'| awk '{print "Bus="$2 " Device="$4}'
You use $2 and $4 in anyway for example : ls -l /dev/bus/usb/$2/$4
Is there a way to fix how the usb host controller allocates the numbers?
– Michael Huang
May 13 '15 at 17:28
add a comment |
A workaround is to check the current bus/device configuration for your device as it'll be portable too and I think the usb host controller allocates these numbers dynamically, here's using awk you can get the current bus and device
lsusb | grep "045e:00cb" | tr -d ':'| awk '{print "Bus="$2 " Device="$4}'
You use $2 and $4 in anyway for example : ls -l /dev/bus/usb/$2/$4
Is there a way to fix how the usb host controller allocates the numbers?
– Michael Huang
May 13 '15 at 17:28
add a comment |
A workaround is to check the current bus/device configuration for your device as it'll be portable too and I think the usb host controller allocates these numbers dynamically, here's using awk you can get the current bus and device
lsusb | grep "045e:00cb" | tr -d ':'| awk '{print "Bus="$2 " Device="$4}'
You use $2 and $4 in anyway for example : ls -l /dev/bus/usb/$2/$4
A workaround is to check the current bus/device configuration for your device as it'll be portable too and I think the usb host controller allocates these numbers dynamically, here's using awk you can get the current bus and device
lsusb | grep "045e:00cb" | tr -d ':'| awk '{print "Bus="$2 " Device="$4}'
You use $2 and $4 in anyway for example : ls -l /dev/bus/usb/$2/$4
answered May 8 '15 at 21:37
MarwareMarware
386210
386210
Is there a way to fix how the usb host controller allocates the numbers?
– Michael Huang
May 13 '15 at 17:28
add a comment |
Is there a way to fix how the usb host controller allocates the numbers?
– Michael Huang
May 13 '15 at 17:28
Is there a way to fix how the usb host controller allocates the numbers?
– Michael Huang
May 13 '15 at 17:28
Is there a way to fix how the usb host controller allocates the numbers?
– Michael Huang
May 13 '15 at 17:28
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f202299%2fhow-to-associate-physical-usb-port-with-usb-device-number%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown