Overview:
When run lwip_dhcp_usb_bm/freertos examples on RT1050, it cannot detect the mobilephone device when connect it with Huawei Mate40 Pro using UGREEN OTG usb cable. (https://item.jd.com/27995995406.html).
Note: have tried it using SSK OTG usb cable, and it works well. But we need use UGREEN OTG usb cable in our case.
Reproduce:
host init.
Expected log:
host init.
device cdc attached:
pid=0x108avid=0x12d1 address=1
rndis device attached
************************************************
DHCP example
************************************************
DHCP state : SELECTING
DHCP state : REQUESTING
DHCP state : BOUND
IPv4 Address : 192.168.42.144
IPv4 Subnet mask : 255.255.255.0
IPv4 Gateway : 192.168.42.129
waiting for getting the IP Address....
the IP Address of nxp.com is : 223.119.147.103
ping: send
223.119.147.103
ping: send
223.119.147.103
Hi Dunzi,
I wonder if have any update... I can't get this same sample code to work either on RT1020 both freertos/bm versions regardless of several known working OTG USB cables. On booting up, debug console displays only "Host init." and USB analyzer shows zero activity.
Hello @Dunzi,
Unfortunately, I can't reproduce this issue since this specific device and cable. But since only with this specific cable is failing to connect, have you try other ones or check if the specific cable work in other devices?
Best Regards,
Alexis Andalon
Hi, Alexis,
Thanks for your quick reply.
Yes, I have tried this UGREEN USB OTG cable on another mobilde phone (Smartisan T1), and this example works well.
In addition, I have also tried several other UGREEN USB OTG cables to run this examlpe on Mate40 Pro, all failed to detect the mobile phone, so I think it should be compatibility issue, not caused by one defective USB cable.
Best Regard,
Dunzi Qian
Hello @Dunzi,
Usually, as long as the cable and the design is compliant with the USB protocol and not too long and it shouldn't matter which cable you use. Does the same cable work with other devices?
Best Regards,
Alexis Andalon
Yes, @Alexis_A, the same cable works well on another mobilde phone (Smartisan T1) when run this example, as I mentioned before.
Hello @Dunzi,
I have mu doubts this is a compatibility issue since using other cables works, I would suggest to try using an oscilloscope or USB analyzer to check to signal and which section of the enumeration process is not done correctly.
Best Regards,
Alexis Andalon