Hi,
I am working on udev rules modification for ttyusb/ HID_USB devices I am getting notification properly.
I am getting notification for connection and disconnect for both class of devices. But I am not able to distinguish on which Port number Device is connected.
So right now I am checking for both ports.
I want to know Is, there any way to pass "Port number" to my program which I am running on notification???
Rules are like:
ACTION=="add",ENV{ID_TYPE}=="hid",RUN+="/root/FILE/sourcecode/Firmware/USB/Output/BIN/USBplugin",
ACTION=="remove",ENV{ID_TYPE}=="hid",RUN+="/root/FILE/sourcecode/Firmware/USB/Output/BIN/unplug"
THANKS IN ADVANCE
Regards,
Vishal Rana