Developing Terkin for MicroPython

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

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

  1. 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 the dist-packages folder. ↩︎

  2. Installing it should be as easy as "apt install lftp" or similar. ↩︎