Speed up provisioning
More updates.
Introduction
While the feature development diverted into Kontinuierliche Verbesserungen des Terkin-Datenloggers (600er) and [Backlog] Terkin-Datenlogger für BOB, we would like to continue to give you infrastructural updates here.
Overview
- The standard library is now following The Pycopy variant/fork of MicroPython.
-
Cycling faster aka. Radeln mit Rückenwind: Speed up source code file deployment using FTP instead of USB [1] will give you additional convenience and development velocity.
The subsystem is based on the exzellent LFTP program [2], controlled through upload-all.lftprc.
Details
FTP deployment
The sandbox features a new make target "install-ftp" which uploads the whole bunch of sources to the device using FTP. In order to do that, you will have to configure the device’s IP address which you can find out using the new MicroTerkin Agent as outlined at Wartungsmodus für den Terkin-Datenlogger.
The synopsis would be like…
Getting started
Networked
When the device is on the network, everything becomes more efficient.
# Signal IP address communication
export MCU_PORT=192.168.178.33
# Deploy sources using FTP
make install-ftp
# Attach to the console
make console
Finally
- Press reset button
- Have fun
-
Currently, a full
"make install"takes whopping ~2m10s to complete over UART/FTDI/USB. The new FTP transfer mechanism brings that down to ~30s for a full installation and ~17s for an installation without thedist-packagesfolder. ↩︎ -
Installing it should be as easy as
"apt install lftp"or similar. ↩︎