I developing now QuecOpen EC25-E with lte-open EVB.
I want to change the usb mode, as you know the usb default mode is device, I find example/usb/example_usb.c.
the example used just Ql_USB_Otg APIs.
I connect usb thumb memory stick and change the example Ql_USB_Otg (host) with excute example_usb in target but nothing changed.
I checked VBUS voltage, that is 0V and USB_OTG_PWR_EN pin also 0V in EVB.
So I connect 5V direct to VBUS, and I can see LED light in usb thumb memory stick, but nothing changed.
Next follow dmesg logs.
[ 14.410987] [max][mbim] usb functions donot include mbim[diag,serial,rmnet,ffs]\n
[ 14.547688] qti_ctrl_ioctl: EP_LOOKUP failed: not connected
[ 15.054282] QCMAP:Enable mobileap
[ 15.283071] QCMAP:Enable mobileap done
[ 15.548235] qti_ctrl_ioctl: EP_LOOKUP failed: not connected
[ 15.980092] random: nonblocking pool is initialized
[ 16.548485] qti_ctrl_ioctl: EP_LOOKUP failed: not connected
[ 17.548734] qti_ctrl_ioctl: EP_LOOKUP failed: not connected
[ 18.549331] [Qti] Failed to open SMD port through DPM.
[ 30.800450] msm_otg 78d9000.usb: Avail curr from USB = 2
[ 30.800510] msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_SUSPEND_EVENT received
[ 30.800627] android_work: android_work: did not send uevent (0 0 (null))
[ 30.804598] msm_otg 78d9000.usb: USB in low power mode
[ 61.920528] Quectel_clean_modemFatalTimes, clean modemFatalError cnt filp_open fail !
Please let me know how can I get usb host mode.