Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


#281036 26-Jan-2021 14:55
Send private message

I am trying to flash a D1 mini that is connected to a DHT22 temperature sensor using ESPHome-Flasher v1.3 for Windows. After selecting the comm port and the bin file to flasg, I get an error "Unexpected error: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)"

 

I have tried different usb cables but get the same result. One thing I have noticed is when I connect the D1 mini to usb its blue light flashes and then goes out, I seem to recall reading somewhere that the blue light should continue flashing.

 

Any suggestions?

 

Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic
Jiriteach
1139 posts

Uber Geek
+1 received by user: 373

ID Verified
Trusted
Lifetime subscriber

  #2642405 26-Jan-2021 15:03
Send private message

Double press the reset button allowing it to reboot into config mode. Depends on the exact model.

 

What are you flashing it with? as in firmware wise?





-- opinions expressed by me are solely my own. ie - personal




peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2642413 26-Jan-2021 15:27
Send private message

I have been following this youtube tutorial.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Jiriteach
1139 posts

Uber Geek
+1 received by user: 373

ID Verified
Trusted
Lifetime subscriber

  #2642415 26-Jan-2021 15:31
Send private message

Do you want the sensor info in Home Assistant specifically? Else Tasmota is super simple and easy.





-- opinions expressed by me are solely my own. ie - personal




peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2642417 26-Jan-2021 15:32
Send private message

I tried double-pressing the reset button but no joy.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Jiriteach
1139 posts

Uber Geek
+1 received by user: 373

ID Verified
Trusted
Lifetime subscriber

  #2642425 26-Jan-2021 15:49
Send private message

I suggest you get things setup in Arduino IDE first and ensure you have the right board manager etc. to test you have port connectivity and are able to talk to the device then use the an external flasher. Will make it easier to diagnost where the problem can be.





-- opinions expressed by me are solely my own. ie - personal


frankv
5705 posts

Uber Geek
+1 received by user: 3666

Lifetime subscriber

  #2642434 26-Jan-2021 16:30
Send private message

The error message suggests connectivity errors to me.

 

From the PC's point of view, the D1 mini is a USB serial port with a CH340 driver IC. Googling for your error message finds lots of references to ESP devices. You should check your Device Manager to see if a COM port is present, and what its number is. Make sure your flasher is set to the same COM port. I did find on Linux that the baud rate needs to be set to a multiple of 9600, typically 115200. I think Windows allows other values, but I'd try 115200 until you get it going, then experiment with other values. Surprisingly, changing to other USB sockets on your PC may help.

 

https://ugetfix.com/ask/how-to-fix-a-device-attached-to-the-system-is-not-functioning-error-on-windows-10/

 

The blue LED on the D1 mini is attached to the pin D4, which is also the UART1 transmit pin schematic. Unless it's toggled by software it won't flicker when data is being transferred using UART0, which is what is connected to your PC via the CH340 driver.

 

I suggest using the Arduino IDE to get a basic program (e.g. flash the LED) going, and then move to your ESPHome-Flasher.

 

 


 
 
 

Move to New Zealand's best fibre broadband service (affiliate link). Free setup code: R587125ERQ6VE. Note that to use Quic Broadband you must be comfortable with configuring your own router.
peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2642449 26-Jan-2021 17:04
Send private message

OK, thanks all, will try your suggestions.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.