There’s actually no cable. The hardware plugs directly into the side of the laptop and I use jumper wires from there to the esp module.
Thanks everyone for trying to help out. I had planned on wiping the laptop and reinstalling a fresh copy of Ubuntu as it’s been 4 years and multiple OS upgrades throughout this time–maybe something ended up getting messed up during one of those?
I’ll report back if that makes any difference.
Have you done what the error message suggested?
Okay, as an update I found that my USB adapter that I was using failed since I last flashed a Sonoff device. I replaced it and I was able to flash very easily. I’m now running into issues which I will start a new thread for. Thanks for everyone’s attempt to help me with my issues!
The usb permission issue has been plaguing me for weeks. It happens on Ubuntu 18, Windows 10 and even Windows 7, which I installed on an old box just to check. From what I gather, Mac people are also getting the permission error trying to flash.
The same solutions are repeated all over the web - on Linux add yourself to dialout and open up permissions on the port with chmod. On Windows remove COM ports that the OS thinks are in use, and install CH34X drivers. The responses are always a mixture of, “Thanks, that was the problem!” and “Still doesn’t work for me.” I’m in the latter group.
Out of my collection of Arduinos and ESPs, the only controller I can still flash is an Arduino Uno R3 bought from Elegoo in 2017. What kind of problem could make Arduino and ESP stop being able to communicate over USB on multiple operating systems?
It is either ownership/permissions, a broken device, or not pressing the right buttons to trigger programming mode.
Or perhaps passing the flasher the wrong options.
I would never us windows for this stuff, didn’t even know esphome worked on windows. Stick to linux for this stuff, far easier to control and understand ownership and permissions.
I solved my USB-permission denied by updating the usb-driver (Silabs cp2102 to v10.1.8). Before that, I tried the Esphome-flasher on three different computers with win10/win7 without any success.
Using the esphome-flasher in windows is awesome.
Ahh well of course there is nothing to install on linux, any modernish distro will have the right kernel modules.
In case anyone is still looking to solve this - on Windows - open device manager, right click the port and check the port settings. Change the port bits per second to 115200; windows may have this set to a speed not tried by the ESPHome flasher e.g. 9600