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,
Solved! Go to Solution.
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
Srinivasan
Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help please feel
free to contact Freescale.
Thanks,
Yixing
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
Ok, I will leave the discussion open and have PeterChan to follow up.
PeterChan, could you follow up the customer's questions please and close the DI as soon as possible?
Thanks,
Yixing
Thanks a lot for your support you can close this thread
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
Could anybody please address the above thread as early as possible
Many Thanks in advance,
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