From 0ae0f13eb18fcb4b85db0844bc85ef33df43bfe6 Mon Sep 17 00:00:00 2001 From: Stephan Martin Date: Sun, 28 Jan 2024 09:38:22 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f8c1440..3c8a3d4 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,19 @@ * Working in 2024 with TTN V3. * T-Beam 1.0 in 868MHZ (yes that's an old one). * Only tested with Platformio in VScode. -* supports OLED display on the I²C interface on GPIO22 and GPI21. This repo contains a patched SSD1306 library from [smartnick](https://github.com/smartinick/Adafruit_SSD1306), enabling individual I²C pins and to set I²C Clock to 800kHz. - This is a simple sketch demonstrating the capability of the [TTGO T-Beam](https://www.aliexpress.com/store/product/TTGO-T-Beam-ESP32-433-868-915Mhz-WiFi-wireless-Bluetooth-Module-ESP-32-GPS-NEO-6M/2090076_32875743018.html) as a [TTN Mapper](https://ttnmapper.org/) Node on [The Things Network](https://www.thethingsnetwork.org/) LoraWAN. Forked from [MichaelEFlip/Lora-TTNMapper-T-Beam](https://github.com/MichaelEFlip/Lora-TTNMapper-T-Beam) from [sbiermann/Lora-TTNMapper-ESP32](https://github.com/sbiermann/Lora-TTNMapper-ESP32) and with some information/inspiration from [cyberman54/ESP32-Paxcounter](https://github.com/cyberman54/ESP32-Paxcounter) and [Edzelf/LoRa](https://github.com/Edzelf/LoRa). The forked repo from hottimuc was converted to a PlatformIO project (currently for hardware revision >= 0.8). -## New features +## Features -* GPS scan relaxed and done more "nonblocking" -* more information shown on status screen -* animated GPS-fix-screen with satellite gfx * selectable datarate and power (button short press) * selectable transmit interval (button longer press) * selectable send-port to enable "on device" switch to experimental mapping (button even loooonger press) -* support for newer HW-revisions (V08 / V0.8, V09 / V0.9, V10 / V1.0, with soft-power-button and powermanagement chip) (short press = power-on / dimm-mode; long press = power-off) +* support for HW-revisions (V08 / V0.8, V09 / V0.9, V10 / V1.0, with soft-power-button and powermanagement chip) (short press = power-on / dimm-mode; long press = power-off) +* supports OLED display on the I²C interface on GPIO22 and GPI21. This repo contains a patched SSD1306 library from [smartnick](https://github.com/smartinick/Adafruit_SSD1306), enabling individual I²C pins and to set I²C Clock to 800kHz. ![GPS fix screen](images/sc_01.jpg)![Status screen](images/sc_03.jpg) @@ -37,7 +33,12 @@ Copy all from here locally, open it with PlatformIO, modify the config.h with yo On The Things Network side, the settings needed are available [here](https://www.thethingsnetwork.org/docs/applications/ttnmapper/). -Configure the Payload decoder with: +Configuration in The Things Network Console: +- Frequency plan: Europe 863-870 MHz (SF9 for RX2 - recommended) (9or where you are located!) +- LoRaWAN version: LoRaWAN Specification 1.0.2 +- Regional Parameters version: RP001 Regional Parameters 1.0.2 + +Payload uplink formatter type: custom Javascript formatter ```javascript function decodeUplink(input) { var bytes = input.bytes; From 318afd2de28bbf253f712c810f6a3b4ba963a74d Mon Sep 17 00:00:00 2001 From: Stephan Martin Date: Fri, 8 Mar 2024 15:10:48 +0100 Subject: [PATCH 2/2] update to latest actions --- .github/workflows/buildproject.yml | 12 +++--------- .github/workflows/spell_check.yml | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/buildproject.yml b/.github/workflows/buildproject.yml index df83677..081d361 100644 --- a/.github/workflows/buildproject.yml +++ b/.github/workflows/buildproject.yml @@ -7,16 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - path: | - ~/.cache/pip - ~/.platformio/.cache - key: ${{ runner.os }}-pio - - uses: actions/setup-python@v4 - with: - python-version: '3.9' + python-version: '3.10' - name: Install PlatformIO Core run: pip install --upgrade platformio diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml index b2d651b..ff3300b 100644 --- a/.github/workflows/spell_check.yml +++ b/.github/workflows/spell_check.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 # See: https://github.com/codespell-project/actions-codespell/blob/master/README.md - name: Spell check