Search found 712 matches

by kevinkk525
Mon May 11, 2020 5:42 am
Forum: ESP8266 boards
Topic: machine.reset is not working properly ?
Replies: 2
Views: 206

Re: machine.reset is not working properly ?

Well I never tried it that way.
I always catch errors in main.py and my machine.reset() has always worked reliable there. even in my watchdog implementation.
by kevinkk525
Sat May 09, 2020 4:17 pm
Forum: General Discussion and Questions
Topic: DS18x20 -> ds.convert_temp() Question
Replies: 2
Views: 195

Re: DS18x20 -> ds.convert_temp() Question

AFAIK convert_temp() instructs all ds18 on the bus to start the temperature conversion and is need before attempting to read from any sensor. But you don't need to call it before reading every single sensor, just before you start to read all sensors.
by kevinkk525
Sat May 09, 2020 6:53 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 15
Views: 676

Re: Problem running latest GENERIC_1M firmware on Sonoff

Good to know! Thanks for the feedback. Glad it works now.
by kevinkk525
Tue May 05, 2020 7:30 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 15
Views: 676

Re: Problem running latest GENERIC_1M firmware on Sonoff

I flashed many sonoff devices with littlefs and have no problem, so I doubt littlefs is the culprit. As Peter said it might be worth checking with an older version that the flash does indeed work. This is the command line I used to flash the firmware: esptool.py --port /dev/ttyS3 --baud 115200 write...
by kevinkk525
Mon May 04, 2020 9:15 pm
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 15
Views: 676

Re: Problem running latest GENERIC_1M firmware on Sonoff

did you erase the board before flashing the firmware?
by kevinkk525
Tue Apr 28, 2020 9:07 pm
Forum: General Discussion and Questions
Topic: Pin interrupts and getting the value of the PIN state WHEN the ISR occurred
Replies: 16
Views: 564

Re: Pin interrupts and getting the value of the PIN state WHEN the ISR occurred

The way the signal is captured still applies. But I see that it isn't explained as well as I remember because I was messaging Peter a lot..
Basically you have to poll a 433MHz signal because interrupts are way too slow. at least on the ESPs.
by kevinkk525
Tue Apr 28, 2020 9:02 pm
Forum: General Discussion and Questions
Topic: Pin interrupts and getting the value of the PIN state WHEN the ISR occurred
Replies: 16
Views: 564

Re: Pin interrupts and getting the value of the PIN state WHEN the ISR occurred

In my case, it's not a button, but a 433Mhz sensor, which receives a sequence of garbage data + valid data, so I have to play games to find the good data. Finding the good data means looking for specific patterns of events, and the events are determined the sequence of pulses. Regardless, even if i...
by kevinkk525
Tue Apr 28, 2020 8:01 pm
Forum: General Discussion and Questions
Topic: Pin interrupts and getting the value of the PIN state WHEN the ISR occurred
Replies: 16
Views: 564

Re: Pin interrupts and getting the value of the PIN state WHEN the ISR occurred

Given that you interrupt on each edge the pin state will alternate with each call to the ISR. If you know the pin state before the first interrupt occurs, you can therefore deduce it: pin_state = 1 # State before 1st interrupt occurs def isr(p): global pin_state pin_state ^= 1 # An interrupt has oc...
by kevinkk525
Tue Apr 28, 2020 7:57 pm
Forum: ESP8266 boards
Topic: SOLVED: File download interrupted by RTOS message
Replies: 8
Views: 359

Re: File download interrupted by RTOS message

Glad my suggestion helped even though I was expecting your "download" to be a file download over wifi not uart :D
It sure does make the wifi more stable but I can't say why 1.12 would have a more unreliable wifi connection, or does 1.10 just not print the reconnect messages?