Dear I.MX Community,
I need to monitor USB-stick insertion in C application, could anybody please provide me the application, as because I was not able to succed through libudev & am using I.MX28 BSP,
kindly do the needful as I had spent enough time in trying with libudev
Many Thanks in advance,
已解决! 转到解答。
This is not i.mx related but you do need to learn udev. When a usb device is plugged, /sbin/hotplug binary will be called with the following arguments:
[0] = hotplug path
[1] = "usb"
[2] = 0
And the hotplug environment variables to be set are:
ACTION=action
PRODUCT=idVendor/idProduct/bcdDevice
TYPE=device_class/device_subclass/device_protocol
Can you please keep this thread open as PeterChan is required to give some input relating to this thread
https://community.freescale.com/message/380966?et=watches.email.thread#380966
Thanks a lot in advance,
Srinivasan S
I am not Peter Chan, but I don't see anything more that needs to be said here. Peter and I provided all required information and reading material. What's left for Srinivasan is to read, learn and apply.
This is not i.mx related but you do need to learn udev. When a usb device is plugged, /sbin/hotplug binary will be called with the following arguments:
[0] = hotplug path
[1] = "usb"
[2] = 0
And the hotplug environment variables to be set are:
ACTION=action
PRODUCT=idVendor/idProduct/bcdDevice
TYPE=device_class/device_subclass/device_protocol
Srinvasan
As reply by Kursad, now it is your turn to work on your issue and feedback here. We would like to see if you are able to dig out anything in 3 days, an dthen close the discussion.
Thanks,
Yixing