jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

Cannot open USB device port #422

Open bob-a-booey opened 5 years ago

bob-a-booey commented 5 years ago

Hi - Sorry if this is not an esplink issue, but I'm not sure where to start. I have two Wemos D1 Mini's running esplink that I use as a Wifi link for my rc flight controller. It works fine, I can connect to the flight controller with my iPhone using the module as an access point. I decided to use one module for another project, and when I connect it to my computer I get the following error message:

[1526404.222317] usb 3-1: new full-speed USB device number 96 using xhci_hcd [1526404.222510] usb 3-1: Device not responding to setup address. [1526404.430471] usb 3-1: Device not responding to setup address. [1526404.638286] usb 3-1: device not accepting address 96, error -71 [1526404.638413] usb usb3-port1: unable to enumerate USB device

I google didn't show me anything except it's most likely bad. So I figure the module is broken and toss it into my broken pile. At some point I decided to do the same thing to the second module, flash the firmware to use it as a bridge, it works fine, decide at some point to us it for another project. Plug it into my computer to flash new code, and it doesn't show up as a valid port and I get this message:

[1530369.756643] usb 3-1: new full-speed USB device number 99 using xhci_hcd [1530369.884684] usb 3-1: device descriptor read/64, error -71 [1530370.120722] usb 3-1: device descriptor read/64, error -71 [1530370.228769] usb usb3-port1: attempt power cycle [1530370.880630] usb 3-1: new full-speed USB device number 100 using xhci_hcd [1530370.880790] usb 3-1: Device not responding to setup address.

Damn, another bad module that I toss in the trash. At some point it dawned on me to plug power into these modules and see if they still work like before, sure enough they both show up as an access point that I can connect to them both. I can hook both back to my flight controller and they work perfectly, except for the short range of the D1 Mini. What I can't figure out is why can I not flash these two modules, which seem to be working fine except for the error message when I connect them to my computer. I'm running Kubuntu 16.04, and I have several different modules and flight controllers that all show up normally using the same USB cable.

I'm running esp-link v3.0.14-g963ffbb. When I connect to the webpage and view system details, it says the Flash chip ID is 0xEF 0x4016, Flash size 4MB.

I'm just trying to load firmware thru the Arduino IDE to reuse these for some temperature projects I'm working on, but I can't figure out if they are bad or if there's something I'm missing? It almost seems like it's in the bootloader area, but I'm not familiar enough with how these work. Let me know if there is anything more I can provide. Thanks...Hal