How to use Libudev to find out which ports are connected to my Usb
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I made a kind of module. Different sensors are placed in the module. I connected the module to Raspberry Pi through RS232 converter. I am using Libudev to automatically find out which Pi port has RS232 converter using Vendor Id and Product Id and reading data from it successfully and displaying it on front-end. Now my problem is that I have two modules now and both are connected with same Pi and both RS232 Vendor id and Product id are same . In front end I have made an option to select module 1 or 2. How do I differentiate between both converters aside from Vendor id and Product id. It would be best if the solution can be provided through Libudev.
P.S : Currently Libudev detects the most recent port I plugged the RS232 converter in.
linux raspberry-pi udev serial-port
add a comment |Â
up vote
0
down vote
favorite
I made a kind of module. Different sensors are placed in the module. I connected the module to Raspberry Pi through RS232 converter. I am using Libudev to automatically find out which Pi port has RS232 converter using Vendor Id and Product Id and reading data from it successfully and displaying it on front-end. Now my problem is that I have two modules now and both are connected with same Pi and both RS232 Vendor id and Product id are same . In front end I have made an option to select module 1 or 2. How do I differentiate between both converters aside from Vendor id and Product id. It would be best if the solution can be provided through Libudev.
P.S : Currently Libudev detects the most recent port I plugged the RS232 converter in.
linux raspberry-pi udev serial-port
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I made a kind of module. Different sensors are placed in the module. I connected the module to Raspberry Pi through RS232 converter. I am using Libudev to automatically find out which Pi port has RS232 converter using Vendor Id and Product Id and reading data from it successfully and displaying it on front-end. Now my problem is that I have two modules now and both are connected with same Pi and both RS232 Vendor id and Product id are same . In front end I have made an option to select module 1 or 2. How do I differentiate between both converters aside from Vendor id and Product id. It would be best if the solution can be provided through Libudev.
P.S : Currently Libudev detects the most recent port I plugged the RS232 converter in.
linux raspberry-pi udev serial-port
I made a kind of module. Different sensors are placed in the module. I connected the module to Raspberry Pi through RS232 converter. I am using Libudev to automatically find out which Pi port has RS232 converter using Vendor Id and Product Id and reading data from it successfully and displaying it on front-end. Now my problem is that I have two modules now and both are connected with same Pi and both RS232 Vendor id and Product id are same . In front end I have made an option to select module 1 or 2. How do I differentiate between both converters aside from Vendor id and Product id. It would be best if the solution can be provided through Libudev.
P.S : Currently Libudev detects the most recent port I plugged the RS232 converter in.
linux raspberry-pi udev serial-port
linux raspberry-pi udev serial-port
asked 2 mins ago
Usman Khan
92
92
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480282%2fhow-to-use-libudev-to-find-out-which-ports-are-connected-to-my-usb%23new-answer', 'question_page');
);
Post as a guest
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
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
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