Tried it, doesn't make a difference.davef wrote: ↑Thu May 19, 2022 10:57 amI would not run a program like that in boot.py.
Leave boot.py with nothing in it.
In main.pyin my_program.py put your wanted program.Code: Select all
import my_program
Putting that code in boot.py and something goes wrong I am pretty certain that you will not be told what happened.
ESP-Now support for ESP32 (and ESP8266)
Re: ESP-Now support for ESP32 (and ESP8266)
Re: ESP-Now support for ESP32 (and ESP8266)
Tried it, doesn't make a difference.davef wrote: ↑Thu May 19, 2022 10:57 amI would not run a program like that in boot.py.
Leave boot.py with nothing in it.
In main.pyin my_program.py put your wanted program.Code: Select all
import my_program
Putting that code in boot.py and something goes wrong I am pretty certain that you will not be told what happened.
Re: ESP-Now support for ESP32 (and ESP8266)
This boot works very good, it tells you which program is currently running and if there is an error which program is at fault.davef wrote: ↑Thu May 19, 2022 10:57 amI would not run a program like that in boot.py.
Leave boot.py with nothing in it.
In main.pyin my_program.py put your wanted program.Code: Select all
import my_program
Putting that code in boot.py and something goes wrong I am pretty certain that you will not be told what happened.
Last edited by Lucje on Sat May 21, 2022 11:22 am, edited 1 time in total.
Re: ESP-Now support for ESP32 (and ESP8266)
In case you were wondering what I'm making:
It's a remote control car. Why Wifi, just because it can
It's a remote control car. Why Wifi, just because it can
Re: ESP-Now support for ESP32 (and ESP8266)
Apparently I only have to burn the firmware when I plug it in the computer.
It does al work fine as long I don't plug it in.
So guess it's not a big deal then
It does al work fine as long I don't plug it in.
So guess it's not a big deal then
Re: ESP-Now support for ESP32 (and ESP8266)
OK, on your boot.py. I made one of these recently:
https://randomnerdtutorials.com/esp32-c ... eb-server/
with my grandson.
So, you believe your firmware is being corrupted or deleted when you plug it into the PC?
https://randomnerdtutorials.com/esp32-c ... eb-server/
with my grandson.
So, you believe your firmware is being corrupted or deleted when you plug it into the PC?
Re: ESP-Now support for ESP32 (and ESP8266)
Cool, that was my first system for this little car. But my teacher wished there was communication between 2 Esp32. It was allowed to do this communication wired, but then it was quite a boring rc-car concept. I don't like easy and boring, so I had to challenge myselfdavef wrote: ↑Sat May 21, 2022 8:03 pmOK, on your boot.py. I made one of these recently:
https://randomnerdtutorials.com/esp32-c ... eb-server/
with my grandson.
Yes indeed.So, you believe your firmware is being corrupted or deleted when you plug it into the PC?
In fact, I've noticed that if I unplug it while it's still on and plug it back in later (without turning it off, rebooting, or resetting) there's no problem. If I turn it off, reboot or reset, I have to re-burn it.
Furthermore, EspNow works very well and I will definitely recommend it to others who are ready (not everyone in my class is equally clever )
Re: ESP-Now support for ESP32 (and ESP8266)
If you really want to get to the bottom of this problem ... is there a uPycraft forum? When I was looking around randomnerdtutorials I found a tutorial:
https://randomnerdtutorials.com/install ... tructions/
(be careful as it only works with 16.04 unless you compile yourself) with another link to:
https://randomnerdtutorials.com/flash-u ... 2-esp8266/
They seem to use the "boot" button in their process whereas on my system I use the EN button.
For a challenge grab a Linux PC install esptool and rshell and do it all from the command-line
https://randomnerdtutorials.com/install ... tructions/
(be careful as it only works with 16.04 unless you compile yourself) with another link to:
https://randomnerdtutorials.com/flash-u ... 2-esp8266/
They seem to use the "boot" button in their process whereas on my system I use the EN button.
For a challenge grab a Linux PC install esptool and rshell and do it all from the command-line
Re: ESP-Now support for ESP32 (and ESP8266)
I don't think it the problem is uPycraft, I tried it with Thonny and I had the same problem.davef wrote: ↑Sun May 22, 2022 8:47 pmIf you really want to get to the bottom of this problem ... is there a uPycraft forum? When I was looking around randomnerdtutorials I found a tutorial:
https://randomnerdtutorials.com/install ... tructions/
(be careful as it only works with 16.04 unless you compile yourself) with another link to:
https://randomnerdtutorials.com/flash-u ... 2-esp8266/
They seem to use the "boot" button in their process whereas on my system I use the EN button.
For a challenge grab a Linux PC install esptool and rshell and do it all from the command-line
But as it's an unknown problem I guess the problem might be this kind of board.
I have ordered an other typ, but as it is from AliExpress it will never be delivered in time. I'll have to use the ones I have.
And if it's the only problem and the rest does work fine, it want be a problem for the project after all.
I thank you all for the assistance.
(PS, I'm a windows guy, I'm not used to use command line (jet ).)