To monitor USB-stick insertion in application

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

To monitor USB-stick insertion in application

跳至解决方案
1,395 次查看
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,

标签 (2)
0 项奖励
1 解答
1,064 次查看
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 项奖励
10 回复数
1,064 次查看
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 项奖励
1,064 次查看
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 项奖励
1,064 次查看
YixingKong
Senior Contributor IV

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

0 项奖励
1,064 次查看
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 项奖励
1,064 次查看
srinivasanshanm
Contributor III

Thanks a lot for your support you can close this thread

0 项奖励
1,064 次查看
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 项奖励
1,064 次查看
YixingKong
Senior Contributor IV

PeterChan, could you help the customer?

Thanks,

Yixing

0 项奖励
1,065 次查看
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 项奖励
1,064 次查看
srinivasanshanm
Contributor III

Could anybody please address the above thread as early as possible

Many Thanks in advance,

0 项奖励
1,064 次查看
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 项奖励