Search found 27 matches

by jcea
Fri Mar 17, 2017 4:10 pm
Forum: ESP8266 boards
Topic: Multithreading-like ideas?
Replies: 10
Views: 8152

Re: Multithreading-like ideas?

My timer code was behaving in strange ways until I rewrote it to be "restricted".

I would like very much to have documentation about this.
by jcea
Fri Mar 17, 2017 12:53 am
Forum: ESP8266 boards
Topic: Native code generation, "esp.set_native_code_location()" and how to find spare space in the flash
Replies: 9
Views: 6198

Native code generation, "esp.set_native_code_location()" and how to find spare space in the flash

According to https://docs.micropython.org/en/latest/esp8266/library/esp.html#esp.set_native_code_location , I can generate native code to the flash. Choosing a block in the first megabyte of flash allows native execution without the limits of the <800 bytes default size in IRAM in my system. Less th...
by jcea
Wed Mar 15, 2017 3:58 pm
Forum: ESP8266 boards
Topic: Multithreading-like ideas?
Replies: 10
Views: 8152

Re: Multithreading-like ideas?

Roberthh, many thanks. I was confused because in https://docs.micropython.org/en/latest/ ... Timer.html timers are documented as having the same limitations that regular interruptions.

My code is almost ready. Results are good so far.

Thanks!.
by jcea
Wed Mar 15, 2017 2:55 pm
Forum: ESP8266 boards
Topic: Multithreading-like ideas?
Replies: 10
Views: 8152

Re: Multithreading-like ideas?

Great, so I can read the ADC from a periodic timer.

Do these timers have the same limitations as interruptions? That is, no python object creation, no floating point, etc.
by jcea
Wed Mar 15, 2017 12:42 am
Forum: ESP8266 boards
Topic: Multithreading-like ideas?
Replies: 10
Views: 8152

Multithreading-like ideas?

I need to read data from the ADC as fast as possible (currently about 2.5K samples per second), do a small calculation with the data read and post it somewhere via HTTP or MQTT. The posting is not time critical and I can accumulate several readings per publication. As far as I know, Micropython does...
by jcea
Wed Mar 15, 2017 12:22 am
Forum: ESP8266 boards
Topic: WIFI activity is very verbose in version 1.8.7
Replies: 2
Views: 2450

Re: WIFI activity is very verbose in version 1.8.7

Great. Thanks!.
by jcea
Tue Mar 14, 2017 4:05 am
Forum: ESP8266 boards
Topic: WIFI activity is very verbose in version 1.8.7
Replies: 2
Views: 2450

WIFI activity is very verbose in version 1.8.7

Since I upgraded to 1.8.7 I see this when booting: """ >>> scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 5 cnt connected with Nirvana, channel 11 dhcp client start... ip:192.168.1.8,mask:255.255.255.0,gw:192.168.1.1 """ Moreover, I get WIFI notifications in the serial co...