LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to map a device with VID/PID with mounted path /dev/sdx? (https://www.linuxquestions.org/questions/linux-software-2/how-to-map-a-device-with-vid-pid-with-mounted-path-dev-sdx-4175537573/)

krishnamoorthy 03-23-2015 12:28 AM

How to map a device with VID/PID with mounted path /dev/sdx?
 
Hi,
I have developed a tool where the update logic happens through libusb. In the case of libusb, we perform the corresponding operations after opening the respective device with VID/PID. Now one of the requirement states that even user specifies the mounted path (eg: /dev/sda), the tool performs the operation to a different device(eg:/dev/sdb) where the VID/PID matches with my tool logic. Can anyone please suggest how to map the VID/PID with the mounted path. Thanks in advance.

TB0ne 03-23-2015 08:43 AM

Quote:

Originally Posted by krishnamoorthy (Post 5336202)
Hi,
I have developed a tool where the update logic happens through libusb. In the case of libusb, we perform the corresponding operations after opening the respective device with VID/PID. Now one of the requirement states that even user specifies the mounted path (eg: /dev/sda), the tool performs the operation to a different device(eg:/dev/sdb) where the VID/PID matches with my tool logic. Can anyone please suggest how to map the VID/PID with the mounted path. Thanks in advance.

First, please read the LQ Rules (pay particular attention to not posting the same question in multiple forums...your duplicate was reported for closure/deletion), and also read the Question Guidelines link in my posting signature. You're not really providing any details which would let us help you. The best anyone can do from what you posted, is to tell you "re-write your script to do what you want".

Also...this is a confusing post. You say that you developed this tool that already does what you want...but you're not able to understand it to modify it??? Can you post this script? Tell us how you're getting the 'VID/PID' now?


All times are GMT -5. The time now is 11:53 AM.