Search found 44 matches

by pulkin
Sat Feb 29, 2020 11:45 pm
Forum: Development of MicroPython
Topic: Builtin modules are loaded at the point of importing them
Replies: 10
Views: 809

Re: Builtin modules are loaded at the point of importing them

I believe the problem is that you cannot override the built-in module. The typical way one would do it is to manipulate sys.path before importing the module. In my case, however, that does not help: whatever import order is the built-in module is always preffered/loaded. I.e. there is no way to impo...
by pulkin
Sat Feb 29, 2020 9:38 pm
Forum: Development of MicroPython
Topic: Builtin modules are loaded at the point of importing them
Replies: 10
Views: 809

Re: Builtin modules are loaded at the point of importing them

It is not only sys: every built-in module is loaded.
by pulkin
Fri Feb 28, 2020 10:41 pm
Forum: Development of MicroPython
Topic: Builtin modules are loaded at the point of importing them
Replies: 10
Views: 809

Builtin modules are loaded at the point of importing them

When I turn debug messages on I see the following: MicroPython v1.11-697-g7b18c0b93-dirty on 2020-02-28; A9/A9G module with RDA8955 Type "help()" for more information. >>> import sys ... import name 'sys' level=0 __import__: 'sys' None None None 0 Module already loaded ... This means that there is n...
by pulkin
Wed Feb 26, 2020 9:15 am
Forum: Development of MicroPython
Topic: How do I auto-test my port?
Replies: 2
Views: 404

Re: How do I auto-test my port?

That looks much better than I was expecting. Thanks.
by pulkin
Tue Feb 25, 2020 6:54 pm
Forum: Development of MicroPython
Topic: How do I auto-test my port?
Replies: 2
Views: 404

How do I auto-test my port?

I want to flash my port and to test software-related functions (first). What is the accepted practice?
by pulkin
Sun Jan 19, 2020 8:03 pm
Forum: Development of MicroPython
Topic: micropython-agps
Replies: 0
Views: 1377

micropython-agps

As a part of porting micropython to A9(G) module https://github.com/pulkin/micropython/tree/master/ports/gprs_a9 I implemented assisted location services (AGPS) for micropython. It, basically, uses internet services or a local database to derive the location via visible GSM stations. Local database ...
by pulkin
Thu Dec 26, 2019 10:11 pm
Forum: Programs, Libraries and Tools
Topic: Assisted location services (agps)
Replies: 0
Views: 800

Assisted location services (agps)

Hi, I implemented agps for a GSM module I am porting micropython to. agps library: https://github.com/pulkin/mpy-agps the port: https://github.com/pulkin/micropython/tree/master/ports/gprs_a9 It can be realistically extended towards AT-driven modules connected to micropython-capable devices, however...
by pulkin
Wed Dec 18, 2019 10:54 pm
Forum: Development of MicroPython
Topic: Implementing fsobj
Replies: 1
Views: 286

Re: Implementing fsobj

It seems like this gives an idea of what to implement: █ grep proxy ../../extmod/vfs.c // For mp_vfs_proxy_call, the maximum number of additional args that can be passed. STATIC mp_obj_t mp_vfs_proxy_call(mp_vfs_mount_t *vfs, qstr meth_name, size_t n_args, const mp_obj_t *args) { stat = mp_vfs_proxy...
by pulkin
Wed Dec 18, 2019 10:47 pm
Forum: Development of MicroPython
Topic: Implementing fsobj
Replies: 1
Views: 286

Implementing fsobj

Hi, The port I am working on https://github.com/pulkin/micropython/tree/master/ports/gprs_a9 has, pretty much, a copy-paste implementation of vfs where file and folder-related operations are replaced by static port functions. I think that implementing an actual vfs object might be a better choice su...
by pulkin
Thu Nov 28, 2019 3:58 pm
Forum: Development of MicroPython
Topic: Mininal Port's Garbage Collection
Replies: 3
Views: 434

Re: Mininal Port's Garbage Collection

Does anything prevent you from looking into the stack trace and/or running gdb on it?