ESP8266 is great (with ideas for improvement)
Posted: Wed Jun 01, 2016 3:53 pm
Hi,
Micropython on the esp8266 is great. I am particularly pleased how easily it works getting from a bare board to the REPL, it's really easy (I followed the compilation instructions on Linux).
I'm also very pleased with how amazingly fast the developers fixed the bugs that I've reported - they have literally got fixed within hours, and I was able to pull the changes, rebuild and it works.
There are currently a few minor niggles that I'm trying to work out:
* the wifi AP scan() seems to crash in some (rare) circumstances, I can't reproduce it reliably as it appears to depend on the proximity of specific accesspoints.
* Sometimes machine.reset() does not reset the machine successfully. This is difficult to reproduce with a minimal example.
Of course as soon as I can reproduce these bugs, I will raise them.
---
A bigger concern to me, is how newbies are going to get files on to the esp8266 board. As it doesn't have a removable device like the micro-SD card (on the pyboard), it's not easy.
I had to reverse-engineer the firmware to discover where and how the fat filesystem exists, and do a fair bit of hacking to work out how to flash this (hint: it's at offset 561152 and needs a dos fs with 4k sector size). I've made a toolchain which does it easily (and quickly, only a few seconds to flash) - but I doubt others will be able to do this easily, even if I document it (which I plan to)
While the repl is great, getting files into the board is an obvious next step. We don't have a convenient file transfer program (maybe the webrepl supports file transfer? I've not really tried it much). It's also useful to be able to transfer files through the uart interface instead of wifi, because then I don't need to ensure they're connected to the same wifi network and know its ip address.
Keep up good work,
Mark
Micropython on the esp8266 is great. I am particularly pleased how easily it works getting from a bare board to the REPL, it's really easy (I followed the compilation instructions on Linux).
I'm also very pleased with how amazingly fast the developers fixed the bugs that I've reported - they have literally got fixed within hours, and I was able to pull the changes, rebuild and it works.
There are currently a few minor niggles that I'm trying to work out:
* the wifi AP scan() seems to crash in some (rare) circumstances, I can't reproduce it reliably as it appears to depend on the proximity of specific accesspoints.
* Sometimes machine.reset() does not reset the machine successfully. This is difficult to reproduce with a minimal example.
Of course as soon as I can reproduce these bugs, I will raise them.
---
A bigger concern to me, is how newbies are going to get files on to the esp8266 board. As it doesn't have a removable device like the micro-SD card (on the pyboard), it's not easy.
I had to reverse-engineer the firmware to discover where and how the fat filesystem exists, and do a fair bit of hacking to work out how to flash this (hint: it's at offset 561152 and needs a dos fs with 4k sector size). I've made a toolchain which does it easily (and quickly, only a few seconds to flash) - but I doubt others will be able to do this easily, even if I document it (which I plan to)
While the repl is great, getting files into the board is an obvious next step. We don't have a convenient file transfer program (maybe the webrepl supports file transfer? I've not really tried it much). It's also useful to be able to transfer files through the uart interface instead of wifi, because then I don't need to ensure they're connected to the same wifi network and know its ip address.
Keep up good work,
Mark