To monitor USB-stick insertion in application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

To monitor USB-stick insertion in application

Jump to solution
1,309 Views
srinivasanshanm
Contributor III

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,

Labels (2)
0 Kudos
1 Solution
978 Views
KursadOney
NXP Employee
NXP Employee

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

View solution in original post

0 Kudos
10 Replies
978 Views
YixingKong
Senior Contributor IV

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

0 Kudos
978 Views
srinivasanshanm
Contributor III

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

0 Kudos
978 Views
YixingKong
Senior Contributor IV

Ok, I will leave the discussion open and have PeterChan to follow up.

0 Kudos
978 Views
YixingKong
Senior Contributor IV

PeterChan, could you follow up the customer's questions please and close the DI as soon as possible?

Thanks,

Yixing

0 Kudos
978 Views
srinivasanshanm
Contributor III

Thanks a lot for your support you can close this thread

0 Kudos
978 Views
KursadOney
NXP Employee
NXP Employee

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.

0 Kudos
978 Views
YixingKong
Senior Contributor IV

PeterChan, could you help the customer?

Thanks,

Yixing

0 Kudos
979 Views
KursadOney
NXP Employee
NXP Employee

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

0 Kudos
978 Views
srinivasanshanm
Contributor III

Could anybody please address the above thread as early as possible

Many Thanks in advance,

0 Kudos
978 Views
YixingKong
Senior Contributor IV

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

0 Kudos