Skip to content

Commit 4aaf3d0

Browse files
Riksu9000JF002
authored andcommitted
Documentation cleanup and reorganization
1 parent dc25e7a commit 4aaf3d0

File tree

12 files changed

+173
-305
lines changed

12 files changed

+173
-305
lines changed

README.md

Lines changed: 12 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,18 @@
1-
# InfiniTime
1+
# [InfiniTime](https://github.com/InfiniTimeOrg/InfiniTime)
22

33
[![Build PineTime Firmware](https://github.com/InfiniTimeOrg/InfiniTime/workflows/Build%20PineTime%20Firmware/badge.svg?branch=master)](https://github.com/InfiniTimeOrg/InfiniTime/actions)
44

5-
![InfiniTime logo](images/infinitime-logo.jpg "InfiniTime Logo")
5+
![InfiniTime logo](images/infinitime-logo-small.jpg "InfiniTime Logo")
66

7-
The goal of this project is to design an open-source firmware for the [Pinetime smartwatch](https://www.pine64.org/pinetime/) :
8-
9-
- Code written in **modern C++**;
10-
- Build system based on **CMake**;
11-
- Based on **[FreeRTOS 10.0.0](https://freertos.org)** real-time OS.
12-
- Using **[LittleVGL/LVGL 7](https://lvgl.io/)** as UI library...
13-
- ... and **[NimBLE 1.3.0](https://github.com/apache/mynewt-nimble)** as BLE stack.
7+
InfiniTime is an open-source firmware for the [Pinetime smartwatch](https://www.pine64.org/pinetime/)
148

159
## New to InfiniTime?
1610

17-
- [Getting started with InfiniTime 1.0 (quick user guide, update bootloader and InfiniTime,...)](doc/gettingStarted/gettingStarted-1.0.md)
18-
- [Flash, upgrade (OTA), time synchronization,...](doc/gettingStarted/ota-gadgetbridge-nrfconnect.md)
19-
20-
## Overview
21-
22-
![Pinetime screens](images/1.0.0/collage.png "PinetimeScreens")
23-
24-
As of now, here is the list of achievements of this project:
25-
26-
- Fast and optimized LCD driver
27-
- BLE communication
28-
- Rich user interface via display, touchscreen and pushbutton
29-
- Time synchronization via BLE
30-
- Notification via BLE
31-
- Heart rate measurements
32-
- Step counting
33-
- Wake-up on wrist rotation
34-
- Quick actions
35-
* Disable vibration on notification
36-
* Brightness settings
37-
* Flashlight
38-
* Settings
39-
- 3 watch faces:
40-
* Digital
41-
* Analog
42-
* [PineTimeStyle](https://wiki.pine64.org/wiki/PineTimeStyle)
43-
- Multiple 'apps' :
44-
* Music (control the playback of music on your phone)
45-
* Heart rate (measure your heart rate)
46-
* Navigation (displays navigation instructions coming from the companion app)
47-
* Notification (displays the last notification received)
48-
* Paddle (single player pong-like game)
49-
* Twos (2048 clone game)
50-
* Stopwatch
51-
* Steps (displays the number of steps taken)
52-
* Timer (set a countdown timer that will notify you when it expires)
53-
* Metronome (vibrates to a given bpm with a customizable beats per bar)
54-
- User settings:
55-
* Display timeout
56-
* Wake-up condition
57-
* Time format (12/24h)
58-
* Default watch face
59-
* Daily step goal
60-
* Battery status
61-
* Firmware validation
62-
* System information
63-
- Supported by 3 companion apps (development is in progress):
64-
* [Gadgetbridge](https://codeberg.org/Freeyourgadget/Gadgetbridge/) (on Android via F-Droid)
65-
* [Amazfish](https://openrepos.net/content/piggz/amazfish) (on SailfishOS and Linux)
66-
* [Siglo](https://github.com/alexr4535/siglo) (on Linux)
67-
* **[Experimental]** [WebBLEWatch](https://hubmartin.github.io/WebBLEWatch/) Synchronize time directly from your web browser. [video](https://youtu.be/IakiuhVDdrY)
68-
* **[Experimental]** [InfiniLink](https://github.com/xan-m/InfiniLink) (on iOS)
69-
- OTA (Over-the-air) update via BLE
70-
- [Bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader) based on [MCUBoot](https://www.mcuboot.com)
11+
- [Getting started with InfiniTime](doc/gettingStarted/gettingStarted-1.0.md)
12+
- [About the software and updating](doc/gettingStarted/updating-software.md)
13+
- Companion apps:
14+
- [Gadgetbridge](doc/companionapps/Gadgetbridge.md)
15+
- [AmazFish](doc/companionapps/Amazfish.md)
7116

7217
## Documentation
7318

@@ -84,16 +29,11 @@ As of now, here is the list of achievements of this project:
8429
- [Files included in the release notes](doc/filesInReleaseNotes.md)
8530
- [Build the project](doc/buildAndProgram.md)
8631
- [Flash the firmware using OpenOCD and STLinkV2](doc/openOCD.md)
32+
- [Flash the firmware using SWD interface](doc/SWD.md)
8733
- [Build the project with Docker](doc/buildWithDocker.md)
8834
- [Build the project with VSCode](doc/buildWithVScode.md)
8935
- [Bootloader, OTA and DFU](./bootloader/README.md)
9036
- [Stub using NRF52-DK](./doc/PinetimeStubWithNrf52DK.md)
91-
- Logging with JLink RTT.
92-
- Using files from the releases
93-
94-
### Contribute
95-
96-
- [How to contribute ?](doc/contribute.md)
9737

9838
### API
9939

@@ -103,29 +43,13 @@ As of now, here is the list of achievements of this project:
10343

10444
- [Memory analysis](./doc/MemoryAnalysis.md)
10545

106-
### Using the firmware
107-
108-
- [Integration with Gadgetbridge](doc/companionapps/Gadgetbridge.md)
109-
- [Integration with AmazFish](doc/companionapps/Amazfish.md)
110-
- [Firmware update, OTA](doc/companionapps/NrfconnectOTA.md)
111-
112-
## TODO - contribute
46+
## Contributing
11347

11448
This project is far from being finished, and there are still a lot of things to do for this project to become a firmware usable by the general public.
11549

116-
Here a quick list out of my head of things to do for this project:
117-
118-
- Improve BLE communication stability and reliability
119-
- Improve OTA and MCUBoot bootloader
120-
- Add more functionalities : Alarm, chronometer, configuration, activities, heart rate logging, games,...
121-
- Add more BLE functionalities : call notifications, agenda, configuration, data logging,...
122-
- Measure power consumption and improve battery life
123-
- Improve documentation, take better pictures and video than mine
124-
- Improve the UI
125-
- Create companion app for multiple OSes (Linux, Android, iOS) and platforms (desktop, ARM, mobile). Do not forget the other devices from Pine64 like [the Pinephone](https://www.pine64.org/pinephone/) and the [Pinebook Pro](https://www.pine64.org/pinebook-pro/).
126-
- Design a simple CI (preferably self-hosted and easy to reproduce).
50+
Do not hesitate to fork the code, hack it and create pull-requests!
12751

128-
Do not hesitate to clone/fork the code, hack it and create pull-requests. I'll do my best to review and merge them :)
52+
Read this page for more information on how you can help: [How to contribute?](doc/contribute.md)
12953

13054
## Licenses
13155

doc/SWD.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# How to flash InfiniTime using the SWD interface
2+
Download the files **bootloader.bin**, **image-x.y.z.bin** and **pinetime-graphics-x.y.z.bin** from the release page:
3+
4+
![Image file](imageFile.png)
5+
6+
The bootloader reads a boot logo from the external SPI flash memory. The first step consists of flashing a tool in the MCU that will flash the boot logo into this SPI flash memory. This first step is optional but recommended (the bootloader will display garbage on screen for a few second if you don't do it).
7+
Using your SWD tool, flash **pinetime-graphics-x.y.z.bin** at offset **0x0000**. Reset the MCU and wait for a few second, until the logo is completely drawn on the display.
8+
9+
Then, using your SWD tool, flash those file at specific offset:
10+
11+
- bootloader.bin : **0x0000**
12+
- image-x.y.z.bin : **0x8000**
13+
14+
Reset and voilà, you're running InfiniTime on your PineTime!

doc/companionapps/Gadgetbridge.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
# Integration with Gadgetbridge
22
[Gadgetbridge](https://gadgetbridge.org/) is an Android application that supports many smartwatches and fitness trackers.
33

4-
The integration of InfiniTime (previously Pinetime-JF) is now merged into the master branch (https://codeberg.org/Freeyourgadget/Gadgetbridge/) and initial support is available [starting with version 0.47](https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/CHANGELOG.md). Note that the official version is only available on F-Droid (as of May 2021), and the unofficial fork available on the Play Store is outdated and does not support Infinitime.
4+
Gadgetbridge supports InfiniTime [starting with version 0.47](https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/CHANGELOG.md). Note that the official version is only available on F-Droid (as of May 2021), and the unofficial fork available on the Play Store is outdated and does not support InfiniTime.
55

6-
## Features
7-
The following features are implemented:
8-
- Scanning & detection of Pinetime-JF / InfiniTime
9-
- Connection / disconnection
10-
- Notifications
11-
126
## Demo
13-
[This video](https://seafile.codingfield.com/f/0a2920b9d765462385e4/) shows how to scan, connect, send notification (using the debug screen) and disconnect from the Pinetime.
7+
[This video](https://seafile.codingfield.com/f/0a2920b9d765462385e4/) shows how to scan, connect, send notification (using the debug screen) and disconnect from the PineTime.

doc/companionapps/NrfconnectOTA.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

doc/gettingStarted/gettingStarted-1.0.md

Lines changed: 13 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,23 @@
1-
# Getting started with InfiniTime 1.0
1+
# Getting started with InfiniTime 1.0.0
22

3-
On April 22 2021, InfiniTime and Pine64 [announced the release of InfiniTime 1.0](https://www.pine64.org/2021/04/22/its-time-infinitime-1-0/) and the availability of PineTime smartwatches as *enthusiast grade end-user product*. This page aims to guide you with your first step with your new PineTime.
3+
On April 22 2021, InfiniTime and Pine64 [announced the release of InfiniTime 1.0.0](https://www.pine64.org/2021/04/22/its-time-infinitime-1-0/) and the availability of PineTime smartwatches as *enthusiast grade end-user product*. This page aims to guide you with your first step with your new PineTime.
44

5-
## Firmware, InfiniTime, Bootloader, Recovery firmware, OTA, DFU... What is it?
5+
It is highly recommended to update the firmware to the latest version when you receive your watch and when a new InfiniTime version is released. More information on updating the firmware [here](/doc/gettingStarted/updating-software.md).
66

7-
You might have already seen these words by reading the announcement, release notes, or [the wiki guide](https://wiki.pine64.org/wiki/Upgrade_PineTime_to_InfiniTime_1.0.0) and, you may find them misleading if you're not familiar with the project.
7+
## InfiniTime 1.0.0 quick user guide
88

9-
Basically, a **firmware** is just a software running on the embedded hardware of a device, the PineTime in this case.
10-
**InfiniTime** is based on 3 distinct **firmwares**:
11-
- **[InfiniTime](https://github.com/InfiniTimeOrg/InfiniTime)** itself, this is the *application firmware* running on the PineTime. This is the main firmware which provides most of the functionalities you'll use on a daily basis : bluetooth low-energy (BLE) connectivity, applications, watchfaces,...
12-
- **[The bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader)** is responsible for safely applying **updates** of the *application firmware*, reverting them in case of issues and load the recovery firmware when requested.
13-
- **The recovery firmware** is a specific *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. Currently, this recovery firmware is based on [InfiniTime 0.14.1](https://github.com/InfiniTimeOrg/InfiniTime/releases/tag/0.14.1).
14-
15-
**OTA** and **DFU** refer to the update of the firmware over BLE (**B**luetooth **L**ow **E**nergy). **OTA** means **O**ver **T**he **A**ir, this is a functionality that allows the user to update the firmware how their device using a wireless communication like BLE. When we talk about **DFU** (**D**evice **F**irmware **U**pdate), we refer to the file format and protocol used to send the update of the firmware to the watch over-the-air. InfiniTime implement the (legacy) DFU protocol from Nordic Semiconductor (NRF).
16-
17-
## How to check the version of InfiniTime and the bootloader?
18-
19-
Since September 2020, all PineTimes (devkits or sealed) are flashed using the **[first iteration of the bootloader](https://github.com/lupyuen/pinetime-rust-mynewt/releases/tag/v4.1.7)** and **[InfiniTime 0.7.1](https://github.com/InfiniTimeOrg/InfiniTime/releases/tag/0.7.1)**. There was no recovery firmware at that time.
20-
21-
The bootloader only runs when the watch starts (from an empty battery, for example) or after a reset (after a successful OTA or a manual reset - long push on the button).
22-
23-
You can recognize this first iteration of the bootloader with it greenish **PINETIME** logo.
24-
25-
![Old bootloader logo](oldbootloaderlogo.jpg)
26-
27-
You can check the version of InfiniTime by opening the app *SystemInfo*. For version < 1.0:
28-
29-
![InfiniTime 0.7.1 Application menu](appmenu-071.jpg)
30-
![InfiniTime 0.7.1 version](version-071.jpg)
31-
32-
And for version >= 1.0 :
33-
34-
![InfiniTime 1.0 version](version-1.0.jpg)
35-
36-
PineTime shipped from June 2021 (to be confirmed) will be flashed with the [new version of the bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader/releases/tag/1.0.0), the [recovery firmware](https://github.com/InfiniTimeOrg/InfiniTime/releases/tag/0.14.1) and [InfiniTime 1.0](https://github.com/InfiniTimeOrg/InfiniTime/releases/tag/1.0.0).
37-
38-
The bootloader is easily recognizable with it white pine cone that is progressively drawn in green. It also displays its own version on the bottom (1.0.0 as of now).
39-
40-
![Bootloader 1.0](bootloader-1.0.jpg)
41-
42-
## How to update your PineTime?
43-
44-
To update your PineTime, you can use one of the compatible companion applications. Here are the main ones:
45-
46-
- **[Amazfish](https://github.com/piggz/harbour-amazfish)** (Desktop Linux, mobile Linux, SailfishOS, runs on the PinebookPro and the Pinephone)
47-
- **[Gadgetbridge](https://www.gadgetbridge.org/)** (Android)
48-
- **[Siglo](https://github.com/alexr4535/siglo)** (Linux, GTK based)
49-
- **NRFConnect** (closed source, Android & iOS).
50-
51-
See [this page](ota-gadgetbridge-nrfconnect.md) for more info about the OTA procedure using Gadgetbridge and NRFConnect.
52-
53-
### From InfiniTime 0.7.1 / old bootloader
54-
55-
If your PineTime is currently running InfiniTime 0.7.1 and the old bootloader, we strongly recommend you update them to more recent version (Bootloader 1.0.0 and InfiniTime 1.0.0 as of now). We also recommend you install the recovery firmware once the bootloader is up-do-date.
56-
57-
Using the companion app of your choice, you'll need to apply the OTA procedure for these 3 firmwares in this sequence (failing to follow this specific order might temporarily or permanently brick your device):
58-
59-
1. Flash the latest version of InfiniTime. The file to upload is named **pinetime-mcuboot-app-dfu-x.y.z.zip**. Here is the link to [InfiniTime 1.0](https://github.com/InfiniTimeOrg/InfiniTime/releases/download/1.0.0/pinetime-mcuboot-app-dfu-1.0.0.zip).
60-
2. Update the bootloader by applying the OTA procedure with the file named [**reloader-mcuboot.zip** from the repo of the bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader/releases/download/1.0.0/reloader-mcuboot.zip).
61-
3. Install the recovery firmware by applying the OTA procedure with the file named [**pinetime-mcuboot-recovery-loader-dfu-0.14.1.zip** from the version 0.14.1 of InfiniTime](https://github.com/InfiniTimeOrg/InfiniTime/releases/download/0.14.1/pinetime-mcuboot-recovery-loader-dfu-0.14.1.zip).
62-
63-
You'll find more info about this process in [this wiki page](https://wiki.pine64.org/wiki/Upgrade_PineTime_to_InfiniTime_1.0.0). You can also see the procedure in video [here](https://video.codingfield.com/videos/watch/831077c5-16f3-47b4-9b2b-c4bbfecc6529) and [here (from Amazfish)](https://video.codingfield.com/videos/watch/f7bffb3d-a6a1-43c4-8f01-f4aeff4adf9e)
64-
65-
### From version > 1.0
66-
67-
If you are already running the new "1.0.0" bootloader, all you have to do is update your version of InfiniTime when it'll be available. We'll write specific instructions when (if) we release a new version of the bootloader.
68-
69-
### Firmware validation
70-
71-
The bootloader requires a (manual) validation of the firmware. If the watch reset with an updated firmware that was not validated, the bootloader will consider it as non-functioning and will revert to the previous version of the firmware. This is a safety feature to prevent bricking your device with a faulty firmware.
72-
73-
You can validate your updated firmware on InfiniTime >= 1.0 by following this simple procedure:
74-
75-
- From the watchface, swipe **right** to display the *Quick Actions menu*
76-
- Open the **Settings** app by tapping the *gear* icon on the bottom right
77-
- Swipe down and tap on the entry named **Firmware**
78-
- This app shows the version that is currently running. If it's not validated yet, it displays 2 buttons:
79-
- **Validate** to validate your firmware
80-
- **Reset** to reset the watch and revert to the previously running version of the firmware
9+
### Setting the time
8110

82-
## InfiniTime 1.0 quick user guide
11+
By default, InfiniTime starts on the digital watchface. It'll probably display the epoch time (1 Jan 1970, 00:00).
8312

84-
### Setting the time
13+
You can sync the time using companion apps.
8514

86-
By default, InfiniTime starts on the digital watchface. It'll probably display the epoch time (1 Jan 1970, 00:00). The time will be automatically synchronized once you connect on of the companion app to your PineTime using BLE connectivity. InfiniTime does not provide any way to manually set the time for now.
15+
- Gadgetbridge automatically synchronizes the time when you connect it to your watch. More information on Gadgetbridge [here](/doc/gettingStarted/ota-gadgetbridge.md)
16+
- You can use NRFConnect to [sync the time](/doc/gettingStarted/time-nrfconnect.md)
17+
- Sync the time with your browser https://hubmartin.github.io/WebBLEWatch/
18+
- Since InfiniTime 1.7.0, you can set the time in the settings without needing to use a companion app
8719

88-
### Navigation in the menu
20+
## Navigation in the menu
8921

9022
![Quick actions](quickactions.jpg)
9123
![Settings](settings.jpg)
@@ -98,14 +30,7 @@ By default, InfiniTime starts on the digital watchface. It'll probably display t
9830
- Start the **flashlight** app
9931
- Enable/disable vibrations on notifications (Do Not Disturb mode)
10032
- Enter the **settings** menu
101-
- Settings
102-
- Display timeout
103-
- Wake up event (Tap, wrist rotation)
104-
- Time format (12/24H)
105-
- Default watchface (digital / analog)
106-
- Battery info
107-
- Firmware validation
108-
- About (system info, firmware version,...)
33+
- Swipe up and down to see all options
10934

11035
### Bootloader
11136

0 commit comments

Comments
 (0)