How to turn off USB block.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to turn off USB block.

510件の閲覧回数
CCandido
Contributor V

How to turn off USB block.
Need to turn off usb complete, without unplugging cable, and without resetting the processor.
I need to use same usb cable for two usb processor.

I made a few attempts but when you hang up, you will not call later.
I need to turn it off and on.

I have an application on (PC) that chooses and controls which device to use.

Processor: MK20

USB Stack 4.1.1 (cdc)

IDE: KDS- V3 

Thanks,

Carlos.

ラベル(2)
2 返答(返信)

361件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

 Dear Carlos Candido,

One of the things I would like to mention it’s the fact that in the USB communication the host it’s the one in charge of managing the devices and descriptors; for that reason, the device cannot perform a detach by itself.

The host it’s who can send a BUS RESET command to the reset of the end devices; in any case of a disconnection or reset the re-enumeration can’t be left behind, it will always need to re-enumerate the device.

One approach it’s to add a transistor in the VBUS connection, as the D+ / D- lines resistors are hung up to them, this transistor will be controlled by a GPIO acting as a switch by doing this the host will acknowledge this as a detach. 

Best Regards, 

Estephania

0 件の賞賛

361件の閲覧回数
CCandido
Contributor V

Hi, Estephania

I had not thought of it that way,

I'm going to take a test.

thanks,

Carlos.