Force usb to use same device id, instead of new one
Posted
by
m s kumar
on Ask Ubuntu
See other posts from Ask Ubuntu
or by m s kumar
Published on 2012-10-29T16:50:16Z
Indexed on
2012/10/29
17:23 UTC
Read the original article
Hit count: 336
I am having some trouble in automating the task. I am testing some android based mobiles in linux machine. The automation script uses the device id under "/dev/bus/usb/001/"053" it will be always under bus 001 only.. But the dev is will be random like if i insert one mobile then the dev id will be 053, if remove and insert it again then the dev id will be 054..
The problem is, when some tests runs on the device and if device gets rebooted then new dev id is showing for the rebooted one and my scripts failing due to new dev id..
Is there any way to force usb devices to use same dev id instead of new one. So that there will be no issues to my tests even after device reboots.
Thanks in advance.
© Ask Ubuntu or respective owner