Search found 7 matches

by cristian.spiescu
Sat Sep 07, 2019 9:06 am
Forum: Programs, Libraries and Tools
Topic: Dependency management (per project) for micropython projects
Replies: 2
Views: 273

Re: Dependency management (per project) for micropython projects

Hi Braden!

What a neat project!

I'll give it a spin.

Best regards,
Cristian
by cristian.spiescu
Mon Sep 02, 2019 5:17 am
Forum: General Discussion and Questions
Topic: Simple scenario with button/IRQ/write to file that leads to ESP crash + FS coruption
Replies: 6
Views: 181

Re: Simple scenario with button/IRQ/write to file that leads to ESP crash + FS coruption

UPDATE: calling "disable_irq()" messes somehow with the REPL + other things. The board doesn't accept my input for a few seconds, and then it reboots. Probably the watchdog timer.

BUT: using "disable_irq()" + "enable_irq()" in my code as suggested does the trick indeed.

Many thanks!
by cristian.spiescu
Mon Sep 02, 2019 5:07 am
Forum: General Discussion and Questions
Topic: Simple scenario with button/IRQ/write to file that leads to ESP crash + FS coruption
Replies: 6
Views: 181

Re: Simple scenario with button/IRQ/write to file that leads to ESP crash + FS coruption

Thank you all for the replies. So, on ESP8266 the schedule() is actually unnecessary. And on other ports you can set the "hard=False" kwarg to Pin.irq() to make this happen automatically. W/ and w/o the schedule(): I got the impression that there was a difference. I.e. w/o schedule() it crashed fast...
by cristian.spiescu
Mon Sep 02, 2019 5:02 am
Forum: ESP8266 boards
Topic: ESP8266 Wifi reliability
Replies: 5
Views: 260

Re: ESP8266 Wifi reliability

Thanks. I will try this asap. by the way: I wouldn't log these to flash Indeed. I was thinking that this is not a good practice. My log file contains about 50 lines per day. Once I stabilize the system, I will try an alternate solution to store the semi-verbose settings. 2 questions here: 1) is any ...
by cristian.spiescu
Sat Aug 31, 2019 8:18 pm
Forum: ESP8266 boards
Topic: ESP8266 Wifi reliability
Replies: 5
Views: 260

Re: ESP8266 Wifi reliability

In your program do you put the board in sleep mode? Or maybe the setting you are mentioning affects the board for "normal" operation as well? I recently implemented a project in my house and I log to a file the disconnect/connect events. They seem to be quite often. However I find strange that there...
by cristian.spiescu
Sat Aug 31, 2019 8:07 pm
Forum: General Discussion and Questions
Topic: Simple scenario with button/IRQ/write to file that leads to ESP crash + FS coruption
Replies: 6
Views: 181

Simple scenario with button/IRQ/write to file that leads to ESP crash + FS coruption

Hello, I have a very annoying problem that I discovered in the last phase of my project, when I replaced some "print()" with logging to a file. I have reduced the program to a very simple issue that illustrates the unwanted behavior: 1) I push a button 2) it's associated IRQ handler is triggered; I ...
by cristian.spiescu
Thu Aug 29, 2019 8:01 pm
Forum: Programs, Libraries and Tools
Topic: Dependency management (per project) for micropython projects
Replies: 2
Views: 273

Dependency management (per project) for micropython projects

Hi there! As far as I know, Python doesn't have tooling for managing dependencies local to a project. E.g. "project 1" uses "numpy v1.10". But "project 2" uses "numpy v1.17". Modules in Python (i.e. installed via "pip") are installed globally. Hence the existence of virtual environments managed via ...