This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I disconnect usb device by SW command on DM385?

Other Parts Discussed in Thread: DM385

Hi all,

My code base is IPNC_RDK_DM385_v3.8.0 and configure platform to DM385.

My DM385IPNC connects with computer by USB cable. (DM385IPNC  as a usbcam)

I want to disconnect usbcam by SW command, just like the USB cable is disconnected.

I tried the following two ways:

1. echo "c" > /proc/driver/musb_hdrc.0

      => It's software disconnect.

2. use "rmmod" to remove usb driver

      => I can't remove usbcam driver if USB cable is connected.

 Is there any other SW command that I can use to simulate "USB cable is disconnected"?

Could anyone please give me some hints?

Thanks.