Search found 25 matches

by WZab
Sat Aug 21, 2021 4:26 pm
Forum: ESP32 boards
Topic: WIRED LAN
Replies: 4
Views: 4437

Re: WIRED LAN

What works for me is: import network import machine as m nl=network.LAN(mdc=m.Pin(23),mdio=m.Pin(18),power=m.Pin(16),id=0,phy_addr=1,phy_type=network.PHY_LAN8720) nl.active(1) After that, the board gets it's address via DHCP and I can check it with: >>> nl.ifconfig() ('192.168.33.244', '255.255.255....
by WZab
Fri Aug 06, 2021 8:43 am
Forum: Drivers for External Components
Topic: MicroPython driver for Pygate?
Replies: 0
Views: 2324

MicroPython driver for Pygate?

Pygate - https://pycom.io/product/pygate/ is one of the cheapest boards offering the 8-channel LoRA gateway. Unfortunately, the manufacturer says that it is comaptible only with pycom modules. The documentation is available at https://docs.pycom.io/gitbook/assets/specsheets/Pycom_002_Specsheets_Pyga...
by WZab
Wed Jul 28, 2021 8:34 am
Forum: Programs, Libraries and Tools
Topic: msgpack "trimmed down" for MicroPython on small controllers.
Replies: 17
Views: 7750

Re: msgpack "trimmed down" for MicroPython on small controllers.

When I prepared the first version of MessagePack-based RPC (http://ftp.funet.fi/pub/archive/alt.sources/2722.gz), it was possible to feed the unpacker with the incomming data and check when the complete object is available: https://gitlab.com/WZab/python-versatile-rpc/-/blob/7c4a841c1d23996cd0bba1bb...
by WZab
Sun Jul 25, 2021 6:05 pm
Forum: Drivers for External Components
Topic: Driver for Waveshare 1.54" black-white-red e-Paper display V2
Replies: 0
Views: 2547

Driver for Waveshare 1.54" black-white-red e-Paper display V2

I had to connect the Waveshare 200x200 1,54" black-white-red e-Paper display (version 2) https://www.waveshare.com/product/displays/e-paper/epaper-3/1.54inch-e-paper-module-b.htm to the STM32 board. I started with a nice driver https://github.com/mcauser/micropython-waveshare-epaper/blob/master/epap...
by WZab
Sat Jul 24, 2021 9:28 am
Forum: ESP32 boards
Topic: SD card not accessible from rshell. SD card not mounted after soft_reset
Replies: 0
Views: 1703

SD card not accessible from rshell. SD card not mounted after soft_reset

I use MicroPython on a ESP32-based TTGO Lora32 V2 board https://pl.aliexpress.com/item/32846302183.html . I mount the SD card with the following code: import machine import uos uos.mount(machine.SDCard(slot=2,width=1,sck=14,miso=2,mosi=15,cs=13,freq=20000000), "/sd") When I boot the board with minic...
by WZab
Tue Jul 20, 2021 8:01 pm
Forum: Programs, Libraries and Tools
Topic: ZeroMQ, nanomsg or nng ported to MicroPython (or any good message encapsulation library)?
Replies: 3
Views: 3009

Re: ZeroMQ, nanomsg or nng ported to MicroPython (or any good message encapsulation library)?

At the moment I have given up the idea of porting 0MQ, nanonmsg or nng. Instead I have used a simplistic encapsulation of the MessagePack-encapsulated messages: each message is prepended by its 4-byte big-endian length. The implementation has been tested on NUCLEO F767-ZI. It is available in https:/...
by WZab
Sun Jul 18, 2021 10:11 pm
Forum: Programs, Libraries and Tools
Topic: ZeroMQ, nanomsg or nng ported to MicroPython (or any good message encapsulation library)?
Replies: 3
Views: 3009

ZeroMQ, nanomsg or nng ported to MicroPython (or any good message encapsulation library)?

Has anybody successfully ported ZeroMQ, nanomessage or nanomessage-ng to MicroPython? The idea is to use it for efficient RPC communication via network, with a node running MicroPython (e.g., controlling certain sensors or actuators). I have prepared a version based on MessagePack+ZeroMQ, that may b...
by WZab
Sun Jul 18, 2021 5:41 pm
Forum: Programs, Libraries and Tools
Topic: msgpack "trimmed down" for MicroPython on small controllers.
Replies: 17
Views: 7750

Re: msgpack "trimmed down" for MicroPython on small controllers.

I've started to test the trimmed down msgpack on a STM32 MicroPython board, and it appeared, that it is not so trivial. First, it appeared that there is no sys.float_info. Then it appeared that the "collections" does not contain "Hashable". Therefore, I needed to trim it down even more. The version ...
by WZab
Sat Jul 17, 2021 10:00 pm
Forum: Development of MicroPython
Topic: Running MicroPython on QEMU-emulated NETDUINO_PLUS_2?
Replies: 2
Views: 3464

Re: Running MicroPython on QEMU-emulated NETDUINO_PLUS_2?

I have prepared the modification of QEMU based on the patch https://patchwork.kernel.org/project/qemu-devel/patch/PSXP216MB02771957D4B9C5A15914D05FDD390@PSXP216MB0277.KORP216.PROD.OUTLOOK.COM/ . It is available at https://github.com/wzab/qemu/commit/cd15dec1aef0a0f05d0ec6f29f5b1a0780215a87 . I compi...
by WZab
Sat Jul 17, 2021 8:25 pm
Forum: Development of MicroPython
Topic: Running MicroPython on QEMU-emulated NETDUINO_PLUS_2?
Replies: 2
Views: 3464

Re: Running MicroPython on QEMU-emulated NETDUINO_PLUS_2?

I have found the following patch to the QEMU, that is supposed to fix that problem: https://patchwork.kernel.org/project/qemu-devel/patch/PSXP216MB02771957D4B9C5A15914D05FDD390@PSXP216MB0277.KORP216.PROD.OUTLOOK.COM/ However it seems that it is not present in the current version of QEMU: https://eli...