Search found 10 matches

by Trikkitt
Wed Jun 15, 2022 9:12 pm
Forum: ESP8266 boards
Topic: microWebSrv on ESP8266, and general question
Replies: 4
Views: 2030

Re: microWebSrv on ESP8266, and general question

Thank you for your answer, Do you have any ideas about the second part of my question about the python scripts sizes? I've written programs for the ESP8266 and have had to break them in to multiple pre-compiled modules. The act of compiling is the most significant issue when you're trying to load m...
by Trikkitt
Wed Jun 15, 2022 9:08 pm
Forum: ESP8266 boards
Topic: Racing RTC - days pass in a minute
Replies: 6
Views: 3533

Re: Racing RTC - days pass in a minute

Indeed - I know it can drift a bit at times. But you're talking a few minutes over a 24 hour period. This was drifting by days every hour. Seems like some kind of weird condition that causes the RTC to go totally haywire during initial bootup and only a full genuine powerdown (the machine.reset() co...
by Trikkitt
Wed Jun 15, 2022 12:31 am
Forum: ESP8266 boards
Topic: Racing RTC - days pass in a minute
Replies: 6
Views: 3533

Racing RTC - days pass in a minute

I've had this happen a few times and just can't figure out why. The RTC races ahead for no apparent reason at boot time. This is across multiple modules, but I can't find out how to recreate it. It just happens totally randomly. Calls to the normal time related functions return figures as normal, bu...
by Trikkitt
Thu Mar 24, 2022 9:14 am
Forum: ESP8266 boards
Topic: UART eats my 15th char!
Replies: 5
Views: 3803

Re: UART eats my 15th char!

How do youu set up UART? I've tried a few different method. I've tried it with just specifying the timeout value to 1000, setting the character time out to 1000, trying timeout figures of 20 and 2, trying the rxbuf set to 15,16, 100 and 256. All resulted 16th digit loss, or total data loss from the...
by Trikkitt
Thu Mar 24, 2022 9:11 am
Forum: ESP8266 boards
Topic: Random UART data loss - 16 byte issue
Replies: 2
Views: 1769

Re: Random UART data loss - 16 byte issue

Just a side note: you do not need a separate uart.init() call. You can put all the settings into the UART instantiation. UART(...) calls internally uart.init() will all the provided arguments expect for the first one. Thanks - I noticed this on some other code and tried changing it last night. Yup ...
by Trikkitt
Thu Mar 24, 2022 2:21 am
Forum: ESP8266 boards
Topic: Random UART data loss - 16 byte issue
Replies: 2
Views: 1769

Random UART data loss - 16 byte issue

I'm using 1.18 on an ESP8285 and I'm seeing the classic buggy 16 byte character limit being hit when reading from the UART. The two symptoms are: - Sometimes the read process ends at the 16 byte limit for no apparent reason - Sometimes the 16th digit gets lost It can do this no matter the UART setti...
by Trikkitt
Thu Mar 24, 2022 2:10 am
Forum: ESP8266 boards
Topic: UART eats my 15th char!
Replies: 5
Views: 3803

Re: UART eats my 15th char!

Well this appears to have got worse. I'm using 1.18 and now no matter what buffer size I try and use I lose the 16th digit. I'm also seeing random other character drops on serial receive. This is driving me nuts! To the point that might have to drop the use of micropython if it can't do something as...
by Trikkitt
Thu Jul 29, 2021 8:07 am
Forum: General Discussion and Questions
Topic: Serial Port losing 16th digit
Replies: 1
Views: 1150

Re: Serial Port losing 16th digit

Well I've now found the issue. Looks like a bug in Micropython introduced somewhere between 1.9 and 1.16. The serial receive buffer needs settings to 16 because the default is 15 and the underlying code had a bug when using 15 as the buffer size. Please will someone change the default buffer size to...
by Trikkitt
Wed Jul 28, 2021 11:43 pm
Forum: ESP8266 boards
Topic: UART eats my 15th char!
Replies: 5
Views: 3803

Re: UART eats my 15th char!

Looks like this is still a significant bug. I've just wasted a day trying to figure out what is going on with my code. Turns out its a bug in Micropython that looks to have been introduced since I last updated (must be 3 years ago the version I had been using). Very frustrating - please just as a te...
by Trikkitt
Wed Jul 28, 2021 11:33 pm
Forum: General Discussion and Questions
Topic: Serial Port losing 16th digit
Replies: 1
Views: 1150

Serial Port losing 16th digit

I'm running the latest 1.16 version of Micropython on an ESP8266. I'm capturing the serial port away from REPL and directing it to my code. This code is something I wrote a few years ago that should just work, but I have change the version of Micropython so while I can't rule out my code it does loo...