Search found 84 matches

by ernitron
Fri Dec 09, 2016 9:20 am
Forum: ESP8266 boards
Topic: Using the tx/rx pins not for UART
Replies: 42
Views: 26774

Re: Using the tx/rx pins not for UART

UP I just would like to know what is the actual status of decoupling REPL from UART. This is fundamental to access peripherals that talk binary over uart/serial lines. I almost succeded to have meaningful replies from a PZEM004t power meter and the Control-C characters mess up with the communication...
by ernitron
Thu Dec 01, 2016 10:39 pm
Forum: ESP8266 boards
Topic: wlan.connect timeout
Replies: 9
Views: 3873

Re: wlan.connect timeout

As far as I know connect returns almost immediately and it just triggers the underlying SDK to make the job. I have developed and use my personal general purpose do_connection routine. It has been tuned and there are some reasons behind it that you probably already know or you will discover if you r...
by ernitron
Wed Nov 23, 2016 7:40 pm
Forum: ESP8266 boards
Topic: ESPLORER unable to run a proper main.py file ...
Replies: 21
Views: 13383

Re: ESPLORER unable to run a proper main.py file ...

I understand that you "really" want ESPlorer to work with micropython. You should probably contact the author of the program https://esp8266.ru/esplorer/ As far as I can tell it is NOT working properly with micropython. To me is a deprecated tool that should not be considered for micropython develo...
by ernitron
Wed Nov 23, 2016 7:35 pm
Forum: ESP8266 boards
Topic: Dowloading Gigabytes reloaded
Replies: 11
Views: 10058

Re: Dowloading Gigabytes reloaded

Hi Robert and all actually I am not sure if what you see can be something related to what I tested here http://forum.micropython.org/viewtopic.php?f=16&t=2697. WiFi instability reflects to the application, that is for sure. Some hangups are explained by intermittent WiFi signal. That's my conclusion...
by ernitron
Wed Nov 23, 2016 7:08 pm
Forum: ESP8266 boards
Topic: How can I trap socket errors?
Replies: 13
Views: 12456

Re: How can I trap socket errors?

I actually use: socket = socket.socket() socket.settimeout(0.5) # otherwise it will wait forever socket.listen(1) # maximum number of queued connections while True: try: conn, addr = self.socket.accept() except KeyboardInterrupt: return except: # Timeout do_something_with_timeout_exception() continu...
by ernitron
Wed Nov 23, 2016 6:54 pm
Forum: ESP8266 boards
Topic: Avoid flash wearing by altering behavior originally introduced by Espressif (the inventor of the ESP8266)
Replies: 76
Views: 32998

Re: Avoid flash wearing by altering behavior originally introduced by Espressif (the inventor of the ESP8266)

I think I have found another use case were using the actual active and connect API will lead to unstable behavior. Look at this thread http://forum.micropython.org/viewtopic.php?f=16&t=2697 I think we definitely need a method that does not only write into flash but it does not retry to reconnect to ...
by ernitron
Wed Nov 23, 2016 6:46 pm
Forum: ESP8266 boards
Topic: ESPLORER unable to run a proper main.py file ...
Replies: 21
Views: 13383

Re: ESPLORER unable to run a proper main.py file ...

I understand that you "really" want ESPlorer to work with micropython. You should probably contact the author of the program https://esp8266.ru/esplorer/ As far as I can tell it is NOT working properly with micropython. To me is a deprecated tool that should not be considered for micropython develop...
by ernitron
Wed Nov 23, 2016 4:59 pm
Forum: ESP8266 boards
Topic: Instability due to AP reconnection loops
Replies: 0
Views: 5286

Instability due to AP reconnection loops

I think I have found a major source of instability in my applications. The problem is related to WiFi reconnections. This is the test that leads to the problem: 1. Plug USB cable to the esp device and see the output from console (e.g. using picocom) 2. Get the device connected to your AP (suppose si...
by ernitron
Mon Nov 14, 2016 5:50 pm
Forum: ESP8266 boards
Topic: Avoid flash wearing by altering behavior originally introduced by Espressif (the inventor of the ESP8266)
Replies: 76
Views: 32998

Re: Avoid flash wearing by altering behavior originally introduced by Espressif (the inventor of the ESP8266)

In the context of this thread about saving to flash, the second variable would specifically invoke the behaviour of NOT saving to flash, like this: noflash=1 WLAN.active(TRUE,noflash) WLAN.connect(wifi,passwd,noflash) I had the same point: two more API or an optional parameter is almost the same st...
by ernitron
Mon Nov 14, 2016 3:17 pm
Forum: ESP8266 boards
Topic: 3.3 V range on the A0 analog input of Wemos D1 mini
Replies: 8
Views: 22627

Re: 3.3 V range on the A0 analog input of Wemos D1 mini

Hello @ernitron I added also 4.7KOhm resistor and the result with D5 and D6 is a buzz at startup. Did you put the 4.7k Resistor in series or parallel to the piezo? You should put it parallel, to reduce the inital voltage at the output to about 0.4V. And obviously you should then configure that port...