Everything working, but now

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Roman
Posts: 3
Joined: Fri Nov 16, 2018 1:33 pm
Location: Austria

Everything working, but now

Post by Roman » Fri Nov 16, 2018 1:41 pm

Dear all,
Please give me a hint. .
I have a lolin, some ds18b20, mqtt and deepsleep running. All fine, got it working.

Now I would need to make a change in the main.py but rhell can't of'course not connect in deepsleep and awake its just a view seconds.
Ctrl c just quits rshell

Any link or help appreciated.
Thx
Roman

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

Re: Everything working, but now

Post by kevinkk525 » Fri Nov 16, 2018 2:07 pm

Reflash firmware with a script that waits longer or delete filesystem so no script gets executed or reset the esp until you hit the right time before it goes to deepsleep.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Everything working, but now

Post by Roberthh » Fri Nov 16, 2018 3:06 pm

If you use another terminal emulator, like picocom on Linux or Putty on Windows, you can send Ctrl-C.

Roman
Posts: 3
Joined: Fri Nov 16, 2018 1:33 pm
Location: Austria

Re: Everything working, but now

Post by Roman » Fri Nov 16, 2018 6:09 pm

Thank you!
I thought the firmware is micropython only?
After trying erase and reinstall the files are still there.?? :?:

Will try picocom!next! :!:


Can the esp32 be powered with a power bank and microusb?

By the way :idea:
I must admit ..I used vpn to my linux machine and had through ssh no reset button :D

Roman
Posts: 3
Joined: Fri Nov 16, 2018 1:33 pm
Location: Austria

Re: Everything working, but now

Post by Roman » Fri Nov 16, 2018 9:29 pm

Picocom worked great! Thank you!

HermannSW
Posts: 197
Joined: Wed Nov 01, 2017 7:46 am
Contact:

Re: Everything working, but now

Post by HermannSW » Sat Nov 17, 2018 10:50 am

Instead of picocom (or minicom) bare screen command can be used on Linux as well.

> Can the esp32 be powered with a power bank and microusb?
>
Yes, if your esp32 module has a Micro USB adapter as my module below.
You can even power the esp32 from a lipo, but because lipo normal voltage range of 3.8V..4.2V is above max 3.6V for esp32 3.3V line, you need to use a 3.3V step-down converter (eg. AMS1117 is a cheap one),

Image
Pico-W Access Point static file webserver:
https://github.com/Hermann-SW/pico-w

Tiny MicroPython robots (the PCB IS the robot platform)
viewtopic.php?f=5&t=11454

webrepl_client.py
https://github.com/Hermann-SW/webrepl#webrepl-shell

Post Reply