How to turn off USB block.

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

How to turn off USB block.

516 次查看
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 回复数

367 次查看
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 项奖励

367 次查看
CCandido
Contributor V

Hi, Estephania

I had not thought of it that way,

I'm going to take a test.

thanks,

Carlos.