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.

DM368 usb OTG 模式host与device 切换问题..

Expert 1222 points


 1.DM368 做USB_Device 连接电脑,电脑上是能看到sD设备挂载....(电脑是host, dm368 是device)

 2. 当将与电脑连接线拔出后, 再插入U盘..DM368无任何反应 ....(dm368 是host , u盘是 device)

3  目前USB Device MODE 设置的是OTG MODE

4. 问问DM368 USB  PHY, OTG 模式下是否支持HNP和SRP.. 能否自动进行HOST和device 模式切换...这种功能DM368能否实现..

  • https://e2e.ti.com/support/embedded/int-embedded_software/int-linux/f/118/t/56502

  • Access Denied

    You do not have permission to view/download this item.

     

    页面打不开。。。

  • As you rightly pointed out, USB-Host and USB-OTG are supported on DM36x hardware as well as linux driver. But DM365/DM368 IP Camera Reference Design does not have support for USB host mode. For the USB host operations, we need to have ID pin pulled to low and a charge pump to drive 5V on the USB_VBUS signal. The hardware currently does not support this.

    The change that needs to be done in kernel config is as below:

    CONFIG_USB_MUSB_HOST=y
    CONFIG_USB_MUSB_OTG=y

    For the hardware changes, i can suggest a few options and you can evaluate if it helps your customer:

    1. Remove the resistor R34 and connect USB_ID pin to USB_GND. This will be a blue wiring on the man board of IPNC

    2. For charge pump, there will be lot more work to add it on the board. One option is to connect a USB device which is self-powered and drive 5V on the VBus signal of that device directly, all the time. This way IPNC does not have to drive VBus.

    The above two options can help you make it work as host, but surely not as OTG device. For OTG device, there is a lot more functionality required in the chargepump and controlling the voltage on the USB_VBUS.

  • HI,

    1.DM368的电路板我是自己重新做的板子..所以关于移除R34 不是很明白..

    2.如果DM368 做HOST, u盘做device , USB_VBUS是否会自动输出5v 给USB 供电..

  • hi, Eason,

    但是我的内核2.6.37版本不能同时配置

    CONFIG_USB_MUSB_HOST=y
    CONFIG_USB_MUSB_OTG=y

    两者只能取其一..