Search found 11 matches

by bokolob
Sat May 08, 2021 2:52 pm
Forum: General Discussion and Questions
Topic: Put all modules into a single file
Replies: 5
Views: 3232

Re: Put all modules into a single file

Thanks. Rshell looks great. But I need solution for getting automatic updates.. I want to download new versions periodically and replace old files. It seems to be easier with a single file.
by bokolob
Thu May 06, 2021 12:56 pm
Forum: General Discussion and Questions
Topic: Put all modules into a single file
Replies: 5
Views: 3232

Put all modules into a single file

Hello,I have a project contains several files with modules and classes, it's ok for development, but a bit inconvenient for uploading and getting updates to device. Is there a "standard" or at least any way to pack all the files into one archive and run it? I know about solution with zip and modulef...
by bokolob
Sun Mar 14, 2021 6:48 am
Forum: General Discussion and Questions
Topic: Board hangs up with new micropython
Replies: 0
Views: 966

Board hangs up with new micropython

Hello.

When I import this file https://github.com/bokolob/tracker/blob ... lis3dsh.py Board freeses. Sometimes just after import, sometimes after calling constructor. It has started happening since I update mp to the last version. Before that with mp 1.9 worked fine.
by bokolob
Fri Mar 12, 2021 4:28 pm
Forum: Development of MicroPython
Topic: Is mp_sched_schedule thread safe?
Replies: 0
Views: 1898

Is mp_sched_schedule thread safe?

Hello. I work with a9g micropython port. It's a gsm+gps chip. Documentation is extremely poor, but it's known that chip contains two cores, and simple operating system with threads. Currently one of threads runs event loop, and second runs micropython. User can define callbacks in python to be calle...
by bokolob
Thu Mar 11, 2021 2:15 pm
Forum: Programs, Libraries and Tools
Topic: Build msgpack for micropython
Replies: 9
Views: 3897

Re: Build msgpack for micropython

I know about that library, but I suppose it would be too slow and inefficient for IO-heavy applications (on microcontroller). And in my case every uA of battery is crucial.
by bokolob
Thu Mar 11, 2021 11:23 am
Forum: Programs, Libraries and Tools
Topic: Build msgpack for micropython
Replies: 9
Views: 3897

Re: Build msgpack for micropython

Isn't it a good ide to add other serialisers into core? At the same level as json is? They can be disabled with preprocessor directives.
Msgpack has C-library that could be used.
by bokolob
Thu Mar 11, 2021 10:48 am
Forum: Programs, Libraries and Tools
Topic: Build msgpack for micropython
Replies: 9
Views: 3897

Re: Build msgpack for micropython

I need some serialiser that is efficient for the cpu (to consume less battery) and the result "size" (to consume less network). About that four serializers - json is fast, but its result is longer, other libraries are pure python, and I suppose that they are quite slow..
by bokolob
Thu Mar 11, 2021 5:11 am
Forum: Programs, Libraries and Tools
Topic: Build msgpack for micropython
Replies: 9
Views: 3897

Re: Build msgpack for micropython

Thanks.
Is there some examples of iterating through an object content in C ? How to walk trough all the fields recursively ?
by bokolob
Wed Mar 10, 2021 4:59 pm
Forum: Programs, Libraries and Tools
Topic: Build msgpack for micropython
Replies: 9
Views: 3897

Build msgpack for micropython

Hello. I'm a newbie in python and especially micropython worlds, so I need some help :) Could somebody give me a clue how I could build msgpack (https://github.com/msgpack/msgpack-python). Maybe somebody had done it already. Or maybe there is an instruction (not about this library but general one)? ...
by bokolob
Wed Mar 10, 2021 7:42 am
Forum: General Discussion and Questions
Topic: Asyncio and sleep
Replies: 3
Views: 2017

Re: Asyncio and sleep

Hi. In my case low power is not a deep sleep, the system keeps working but on low frequency