Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by kevinkk525 » Mon Jun 28, 2021 5:24 am

Alright, thanks for the info. (Just in case you or anyone reading this thread doesn't know this: The repl uart can be removed from the repl and used independently. For this alone, no micropython fork would be required)
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
hcet14
Posts: 34
Joined: Sat Dec 19, 2020 12:59 am

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by hcet14 » Mon Jun 28, 2021 6:45 am

kevinkk525 wrote:
Mon Jun 28, 2021 5:24 am
The repl uart can be removed from the repl and used independently. For this alone, no micropython fork would be required)
I read about it, but never tried it. Do you have a working example? Isn't CP2102 disturbing the communication, since I can't set it to suspend mode?
Schematics: https://cdn.hackaday.io/files/885637889 ... T_V1.0.PDF
I'm a beginner with this stuff and no programmer at all.

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by kevinkk525 » Mon Jun 28, 2021 7:00 am

This should work for the esp8266 in the same way: viewtopic.php?f=2&t=7844&p=44765&hilit= ... erm#p44765
(I'm sure I read posts about the esp8266 and esp32 too but can't find it at the moment)
If you compile the firmware with no esp-idf output, the uart should be completely silent from the micropython side.

The CP2102 should not cause any trouble (i think, it might if you try to send stuff from the PC).
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
hcet14
Posts: 34
Joined: Sat Dec 19, 2020 12:59 am

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by hcet14 » Mon Jun 28, 2021 8:20 am

kevinkk525 wrote:
Mon Jun 28, 2021 7:00 am
If you compile the firmware with no esp-idf output, the uart should be completely silent from the micropython side.

The CP2102 should not cause any trouble (i think, it might if you try to send stuff from the PC).
Well, I have to write my code, so I'm not able to shut down esp-idf output, i.e. REPL.

Using the available TXD1 for the sensor, send the command to the sensor, shut down REPL. Get data from sensor on RXD0. Turn on REPL. Might be a possibility. Don't know, if someone has done that before?

Communication to the sensor (MH-Z19B) is simple. Send a string, get a string. No sensing needed.
I'm a beginner with this stuff and no programmer at all.

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by kevinkk525 » Mon Jun 28, 2021 9:35 am

esp-idf has nothing to do with the repl, it's just the startup garbage and wifi debug messages and the likes. the repl comes from micropython and you can use the webrepl to control and program your device.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
hcet14
Posts: 34
Joined: Sat Dec 19, 2020 12:59 am

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by hcet14 » Tue Jun 29, 2021 2:43 pm

kevinkk525 wrote:
Mon Jun 28, 2021 9:35 am
esp-idf has nothing to do with the repl
Of course, sorry ;)
I'm a beginner with this stuff and no programmer at all.

Post Reply