Notifications
Clear all

New sketch when ESP8266 is in deep sleep mode

4 Posts
2 Users
0 Likes
203 Views
AyDe
 AyDe
(@ayde)
Active Member
Joined: 8 months ago
Posts: 4
Topic starter  

Hello,

I recently wrote a sketch with ESP Now and used the deep sleep mode of 30 seconds. Now I wish to make change to the sketch. Unfortunately the device (D1 ESP8266) is not recognized in Arduino IDE. I cannot get a COM port for it. I used another identical D1 ESP8266 to check if my system is Ok and it shows COM port 12.

Anyone had similar issues. the unit in deep sleep is working it is sending the data every 30 seconds, but I cannot update the sketch.

Help appreciated.

Best AyDe


   
Quote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3915
 

@ayde Rest switch. Pick nearest board to match, or often just generic esp8266 is fine. board probbly needs to wake up in order to set com port.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
AyDe
 AyDe
(@ayde)
Active Member
Joined: 8 months ago
Posts: 4
Topic starter  

@zander 

Thanks, i had tried reset also, i had tied by disconnecting RST and D0 and Connected D3 to GND as suggested in a YouTube video. I also tried to keep trying to upload hoping i might make it in the window when the ESP is awake but this is a few milliseconds so the chance to hit that window is very difficult.

Thanks Ayde


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3915
 

@ayde If you used a sketch to put it asleep, you must have also set up a wakeup event, just trigger that. If not, toss that board and revamp your sketch to always have a way of waking it up.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote