Search found 60 matches

by VladVons
Tue Jan 26, 2021 10:36 am
Forum: ESP8266 boards
Topic: [SOLVED] async read keypressed in terminal
Replies: 5
Views: 6595

Re: async read keypressed in terminal

async non blocking keyboard input example import sys import uasyncio as asyncio import select def GetInputChr(): R = '' while sys.stdin in select.select([sys.stdin], [], [], 0)[0]: R = sys.stdin.read(1) return R async def GetInputStr(aPrompt = ''): R = '' while True: K = GetInputChr() if (K): if (or...
by VladVons
Mon Jan 25, 2021 10:11 am
Forum: ESP32 boards
Topic: What the best IDE for ESP32 micro python developing ?
Replies: 13
Views: 15855

Re: What the best IDE for ESP32 micro python developing ?

Everybody use linux + nano editor + command line for uploading as I do ? :) so, I share own method add to the ~/bashrc EOF string source ~/esp_upload.sh Hint: dont forget logout/logit to take effect esp_upload.sh #!/bin/bash #VladVons, 2021.01.25 #add to ~/bashrc EOF source ~/esp_upload.sh and logou...
by VladVons
Mon Jan 25, 2021 8:03 am
Forum: ESP8266 boards
Topic: Error compiling esp-open-sdk [SOLVED]
Replies: 6
Views: 2819

Re: Error compiling esp-open-sdk [SOLVED]

docker mentioned in official documentation. sudo docker run --rm -v $HOME:$HOME -u $UID -w $PWD larsks/esp-open-sdk docker: Error response from daemon: No command specified. so i went your path using git I also visited your project pysmartnode and found there a script for esp32 firmware compilation....
by VladVons
Sun Jan 24, 2021 8:08 pm
Forum: ESP32 boards
Topic: What the best IDE for ESP32 micro python developing ?
Replies: 13
Views: 15855

What the best IDE for ESP32 micro python developing ?

Tell me please what IDE you use for ESP32 micro python developing ?
Thony, uPyCraft, PyCharm or VSCode + some plugin or something else.

Is it possible to debug python source code at all ?
by VladVons
Fri Jan 22, 2021 5:28 pm
Forum: ESP8266 boards
Topic: Error compiling esp-open-sdk [SOLVED]
Replies: 6
Views: 2819

Re: Error compiling esp-open-sdk

While looking for esp-open-sdk compilation issue i installed many packages which caused invalid custom firmware.
I reinstalled Ubuntu and now everything is ok.

Note: To avoid many errors don't use python virtualenv.

Thanks kevinkk525 once more !
by VladVons
Fri Jan 22, 2021 12:01 am
Forum: ESP8266 boards
Topic: Error compiling esp-open-sdk [SOLVED]
Replies: 6
Views: 2819

Re: Error compiling esp-open-sdk

Thanks for script.

Finally, after long compilation i have got a hand made firmware-combined.bin (641276K)
But it doesnt work.
No python prompt. Only garbage in terminal.
by VladVons
Thu Jan 21, 2021 6:26 pm
Forum: ESP8266 boards
Topic: Error compiling esp-open-sdk [SOLVED]
Replies: 6
Views: 2819

Error compiling esp-open-sdk [SOLVED]

#Ubuntu 20.04 #git clone --recursive https://github.com/pfalcon/esp-open-sdk.git #cd esp-open-sdk #git pull #git submodule sync #git submodule update --init make .... make[2]: Entering directory esp-open-sdk/crosstool-NG' make[2]: -c: Command not found make[2]: -c: Command not found make[2]: *** No ...
by VladVons
Sun Mar 15, 2020 12:54 pm
Forum: ESP8266 boards
Topic: How to connect WiFi with certain channel?
Replies: 2
Views: 1831

How to connect WiFi with certain channel?

to speed up WiFi connection router should receive from ESP:
static IP, bssid, channel number

1) How to get from successful WiFi connection following data?
- channel number
- bssid

2) How to connect WiFi with certain channel number?
connect() has no such parameter
by VladVons
Sat Mar 14, 2020 7:31 am
Forum: ESP8266 boards
Topic: Speed up boot time after "deep sleep" and reduce WiFi activity
Replies: 6
Views: 6320

Re: Speed up boot time after "deep sleep" and reduce WiFi activity

loading micropython kernel and init own classes 1.7 seconds WiFi Connection With no parameters (previous ESP ROM data): 3.5 seconds for connect With static IP address + 'bssid' parameter: 2.5 seconds for connect In post above from 'tve' pointed about 0.175 sec with ssid, passwd, channel, bssid, ip,...
by VladVons
Fri Mar 13, 2020 9:36 pm
Forum: ESP8266 boards
Topic: Speed up boot time after "deep sleep" and reduce WiFi activity
Replies: 6
Views: 6320

Speed up boot time after "deep sleep" and reduce WiFi activity

I try to use ESP8266 with independent aku power supply, so mimimizing power consumption is important. DeepSleep uses 0,2 mA Wake up and WiFi activity uses 70-150 mA for a 3-6 seconds to connect to a router. Is it possible to reduce WiFi negotiation time? I think assign static IP address would be a s...