Konubinix' opinionated web of thoughts

Pinetime

Fleeting

pine64

InfiniTime

build an app

https://github.com/InfiniTimeOrg/InfiniTime/blob/main/doc/buildWithDocker.md

VERSION 0.8

src:
    FROM alpine
    GIT CLONE https://github.com/InfiniTimeOrg/InfiniTime /app
    SAVE ARTIFACT /app

builder:
    FROM DOCKERFILE -f +src/app/docker/Dockerfile +src/app/docker/*

build:
    FROM +builder
    COPY +src/app /sources
    RUN /opt/build.sh pinetime-app

earthly +build

installing from desktop

from the booltloader screen nixpkgs run nixpkgs#watchmate

quotes to digest

firmware is software running on the embedded hardware of a device.

https://docs.infinitime.io/en/latest/user-documentation/index.html

InfiniTime has three distinct firmwares:

InfiniTime is the operating system. The bootloader is responsible for safely applying firmware updates and runs before booting into InfiniTime. The recovery firmware is a special application firmware than can be loaded by the bootloader on user request. This firmware can be useful in case of serious issue, when the main application firmware cannot perform an OTA update correctly.

https://docs.infinitime.io/en/latest/user-documentation/index.html

OTA (Over The Air) refers to updating of the firmware over BLE (Bluetooth Low Energy).

https://docs.infinitime.io/en/latest/user-documentation/index.html

update the firmware on their device wirelessly.

https://docs.infinitime.io/en/latest/user-documentation/index.html

DFU (Device Firmware Update) is the file format and protocol used to send the update of the firmware to the watch over-the-air. InfiniTime implements the (legacy) DFU protocol from Nordic Semiconductor (NRF).

https://docs.infinitime.io/en/latest/user-documentation/index.html

The bootloader is run right before booting into InfiniTime

https://docs.infinitime.io/en/latest/user-documentation/index.html

2 functionalities using the push button:

Push the button until the pine cone is drawn in blue to force the rollback of the previous version of the firmware, even if you’ve already validated the updated one Push the button until the pine cone is drawn in red to load the recovery firmware. This recovery firmware only provides BLE connectivity and OTA functionality.

https://docs.infinitime.io/en/latest/user-documentation/index.html

Using NRFConnect

Open NRFConnect. Swipe down in the Scanner tab and wait for your device to appear: (add pic) Tap on the Connect button on the right of your device. NRFConnect will connect to your PineTime and discover its characteristics. Tap on the DFU button on the top right: (add pic) Select Distribution packet (ZIP): (add pic) Find the DFU file (pinetime-mcuboot-app-dfu-x.x.x.zip) you downloaded previously, the DFU transfer will start automatically. When the transfer is finished, your PineTime will reset and restart on the new version of InfiniTime! Don’t forget to validate your firmware. In the InfiniTime go to the settings (swipe right, select gear icon) and Firmware option and click validate. Otherwise after reboot the previous firmware will be used

https://docs.infinitime.io/en/latest/user-documentation/index.html

Firmware updates must be manually validated. If the firmware isn’t validated and the watch resets, the watch will revert to the previous firmware. This is a safety feature to prevent bricking your device with faulty firmware.

https://docs.infinitime.io/en/latest/user-documentation/index.html

connecting to the pinetime

from Android

Install those in the android phone.

https://konubinix.eu/ipfs/bafybeifacdhu3ftg2lplkws7lc5fauyr6tbfysgx2y7if274ku6ojzdzhi?filename=no.nordicsemi.android.mcp_4.24.3.apk

https://konubinix.eu/ipfs/bafybeiacc4tiqywbx7mcxytv3womgcaylv3y4okuul7rfcb2dbol6t6bbe?filename=nodomain.freeyourgadget.gadgetbridge_0.66.0.apk

  1. flash the bootloader reloader-mcuboot.zip
  2. then flash the recovery image pinetime-mcuboot-recovery-loader-dfu-0.14.1.zip
  3. then the latest InfiniTime pinetime-mcuboot-app-dfu-1.13.0.zip

Notes pointant ici