Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.4.35 #155

Merged
merged 48 commits into from
Sep 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
5099d25
testing
Aug 11, 2018
cc603d4
testing
Aug 12, 2018
0ee138b
JFrog Bintray OTA (experimental, not working yet)
Aug 12, 2018
7a58c8d
testing
Aug 16, 2018
48734bc
lmic/radio.c: Fix RSSI and SNR calculation
Sep 13, 2018
8999c77
Merge branch 'ota-test' into development
cyberman54 Sep 15, 2018
ea92c7f
Merge pull request #151 from cyberman54/development
cyberman54 Sep 15, 2018
38dc266
ota-test first push
Sep 15, 2018
8876c58
merge
Sep 15, 2018
460606f
protect platformio.ini against github upload
Sep 15, 2018
ffd7260
add keys to platformio.ini wifi section
Sep 15, 2018
11e3ee8
testing
Sep 15, 2018
7bd0d4d
remove platformio.ini from git working tree
Sep 15, 2018
5139f7f
clean platformio.ini uploaded
cyberman54 Sep 15, 2018
2c1dd22
ota first test
Sep 15, 2018
ef6f9c3
Merge pull request #152 from cyberman54/ota-test
cyberman54 Sep 15, 2018
01fa10e
ota (experimental)
Sep 15, 2018
b12ed12
OTA (experimental)
Sep 15, 2018
414dd02
Merge pull request #153 from cyberman54/master
cyberman54 Sep 15, 2018
0667ee5
OTA (experimental)
Sep 15, 2018
fb7c32e
OTA (experimental)
cyberman54 Sep 16, 2018
55e7d4b
lmic radio.c snr/rssi fix
Sep 16, 2018
6476ded
OTA: changed CA certficate for api.bintray.com
Sep 16, 2018
4928818
update readme.md
Sep 16, 2018
21621e5
code sanitization (vTaskDelay)
Sep 16, 2018
bd72455
v1.4.32
Sep 17, 2018
836572e
cleanup platformio.ini
Sep 17, 2018
52efcb7
TTN decoders updated
Sep 17, 2018
6052588
TTN decoders updated
Sep 17, 2018
2201e48
build.py, ota.conf, platformio.ini
Sep 18, 2018
ce1b774
Rename OTA.cpp to ota.cpp
cyberman54 Sep 18, 2018
14957be
Rename OTA.h to ota.h
cyberman54 Sep 18, 2018
aa9129a
Update README.md
cyberman54 Sep 18, 2018
f18c567
Update README.md
cyberman54 Sep 18, 2018
ed50a79
Update README.md
cyberman54 Sep 18, 2018
d80d1e2
ota.cpp: added a retry loop for write-to-flash
Sep 18, 2018
7b6c2f1
ota.cpp: bugfix
Sep 18, 2018
8b2e155
Rename ota.sample.conf to ota.conf
cyberman54 Sep 19, 2018
c33112c
ota.cpp bugfix
Sep 19, 2018
8f36b31
ignore ota.conf
Sep 19, 2018
421b578
Add files via upload
cyberman54 Sep 19, 2018
8026d44
Rename ota.conf.txt to ota.conf
cyberman54 Sep 19, 2018
8d65c84
ota.conf
Sep 19, 2018
22aef4c
sample_ota.conf
Sep 19, 2018
adef8fc
ota.sample.conf
Sep 19, 2018
e5a4ada
Update README.md
cyberman54 Sep 19, 2018
972cac7
build.py: errorhandling improved
Sep 19, 2018
939d4b6
Update README.md
cyberman54 Sep 19, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
.clang_complete
.gcc-flags.json
src/loraconf.h
src/ota.conf
70 changes: 20 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This can all be done with a single small and cheap ESP32 board for less than $20
- WeMos: LoLin32 + [LoraNode32 shield](https://github.com/hallard/LoLin32-Lora),
LoLin32lite + [LoraNode32-Lite shield](https://github.com/hallard/LoLin32-Lite-Lora)

*SPI only*: (coming soon)
*SPI only*: (code yet to come)

- Pyom: WiPy
- WeMos: LoLin32, LoLin32 Lite, WeMos D32
Expand All @@ -47,7 +47,7 @@ Depending on board hardware following features are supported:
- GPS

Target platform must be selected in [platformio.ini](https://github.com/cyberman54/ESP32-Paxcounter/blob/master/platformio.ini).<br>
Hardware dependent settings (pinout etc.) are stored in board files in /hal directory.<br>
Hardware dependent settings (pinout etc.) are stored in board files in /hal directory. If you want to use a ESP32 board which is not yet supported, use hal file generic.h and tailor pin mappings to your needs. Pull requests for new boards welcome.<br>

<b>3D printable cases</b> can be found (and, if wanted so, ordered) on Thingiverse, see
<A HREF="https://www.thingiverse.com/thing:2670713">Heltec</A>, <A HREF="https://www.thingiverse.com/thing:2811127">TTGOv2</A>, <A HREF="https://www.thingiverse.com/thing:3005574">TTGOv2.1</A>, <A HREF="https://www.thingiverse.com/thing:3041339">T-BEAM</A> for example.<br>
Expand All @@ -62,6 +62,8 @@ Before compiling the code,

- **create file loraconf.h in your local /src directory** using the template [loraconf.sample.h](https://github.com/cyberman54/ESP32-Paxcounter/blob/master/src/loraconf.sample.h) and populate it with your personal APPEUI und APPKEY for the LoRaWAN network. If you're using popular <A HREF="https://thethingsnetwork.org">TheThingsNetwork</A> you can copy&paste the keys from TTN console or output of ttnctl.

- **create file ota.conf in your local /src directory** using the template [ota.sample.conf](https://github.com/cyberman54/ESP32-Paxcounter/blob/master/src/ota.sample.conf) and enter your WIFI network&key. These settings are used for downloading updates. If you want to push own OTA updates you need a <A HREF="https://bintray.com/JFrog">Bintray account</A>. Enter your Bintray user account data in ota.conf. If you don't need wireless firmware updates just rename ota.sample.conf to ota.conf.

To join the network only method OTAA is supported, not ABP. The DEVEUI for OTAA will be derived from the device's MAC adress during device startup and is shown as well on the device's display (if it has one) as on the serial console for copying it to your LoRaWAN network server settings.

If your device has a fixed DEVEUI enter this in your local loraconf.h file. During compile time this DEVEUI will be grabbed from loraconf.h and inserted in the code.
Expand All @@ -74,10 +76,14 @@ Use <A HREF="https://platformio.org/">PlatformIO</A> with your preferred IDE for

# Uploading

To upload the code to your ESP32 board this needs to be switched from run to bootloader mode. Boards with USB bridge like Heltec and TTGO usually have an onboard logic which allows soft switching by the upload tool. In PlatformIO this happenes automatically.<p>
- **Initially, using USB/UART cable:**
To upload the code via cable to your ESP32 board this needs to be switched from run to bootloader mode. Boards with USB bridge like Heltec and TTGO usually have an onboard logic which allows soft switching by the upload tool. In PlatformIO this happenes automatically.<p>
The LoPy/LoPy4/FiPy board needs to be set manually. See these
<A HREF="https://www.thethingsnetwork.org/labs/story/program-your-lopy-from-the-arduino-ide-using-lmic">instructions</A> how to do it. Don't forget to press on board reset button after switching between run and bootloader mode.<p>
The original Pycom firmware is not needed, so there is no need to update it before flashing Paxcounter. Just flash the compiled paxcounter binary (.elf file) on your LoPy/LoPy4/FiPy. If you later want to go back to the Pycom firmware, download the firmware from Pycom and flash it over.

- **During runtime, using FOTA via WIFI:**
After the ESP32 board is initially flashed and has joined a LoRaWAN network, the firmware can update itself by FOTA. This process is kicked off by sending a remote control command (see below) via LoRaWAN to the board. The board then tries to connect via WIFI to a cloud service (JFrog Bintray), checks for update, and if available downloads the binary and reboots with it. If something goes wrong during this process, the board reboots back to the current version. Prerequisites for FOTA are: 1. You own a Bintray repository, 2. you pushed the update binary to the Bintray repository, 3. internet access via encrypted (WPA2) WIFI is present at the board's site, 4. WIFI credentials were set in ota.conf and initially flashed to the board. Step 2 runs automated, just enter the credentials in ota.conf and set `upload_protocol = custom` in platformio.ini. Then press build and lean back watching platformio doing build and upload.

# Legal note

Expand Down Expand Up @@ -128,7 +134,13 @@ If you're using [TheThingsNetwork](https://www.thethingsnetwork.org/) (TTN) you

To track a paxcounter device with on board GPS and at the same time contribute to TTN coverage mapping, you simply activate the [TTNmapper integration](https://www.thethingsnetwork.org/docs/applications/ttnmapper/) in TTN Console. The formats *plain* and *packed* generate the fields `latitude`, `longitude` and `hdop` required by ttnmapper.

Hereafter described is the default *plain* format, which uses MSB bit numbering.
Hereafter described is the default *plain* format, which uses MSB bit numbering. Under /TTN in this repository you find some ready-to-go decoders which you may copy to your TTN console:

[**plain_decoder.js**](src/TTN/plain_decoder.js) |
[**plain_converter.js**](src/TTN/plain_converter.js) |
[**packed_decoder.js**](src/TTN/packed_decoder.js) |
[**packed_converter.js**](src/TTN/packed_converter.js)


**Port #1:** Paxcount data

Expand All @@ -142,6 +154,7 @@ Hereafter described is the default *plain* format, which uses MSB bit numbering.
byte 3-10: Uptime [seconds]
byte 11: CPU temperature [°C]
bytes 12-15: Free RAM [bytes]
bytes 16-17: Last CPU reset reason [core 0, core 1]

**Port #3:** Device configuration query result

Expand Down Expand Up @@ -181,55 +194,11 @@ Hereafter described is the default *plain* format, which uses MSB bit numbering.
byte 1: Beacon RSSI reception level
byte 2: Beacon identifier (0..255)


[**plain_decoder.js**](src/TTN/plain_decoder.js)

```javascript
function Decoder(bytes, port) {
var decoded = {};

if (port === 1) {
var i = 0;
decoded.wifi = (bytes[i++] << 8) | bytes[i++];
decoded.ble = (bytes[i++] << 8) | bytes[i++];
if (bytes.length > 4) {
decoded.latitude = ( (bytes[i++] << 24) | (bytes[i++] << 16) | (bytes[i++] << 8) | bytes[i++] );
decoded.longitude = ( (bytes[i++] << 24) | (bytes[i++] << 16) | (bytes[i++] << 8) | bytes[i++] );
decoded.sats = ( bytes[i++] );
decoded.hdop = ( bytes[i++] << 8) | (bytes[i++] );
decoded.altitude = ( bytes[i++] << 8) | (bytes[i++] );
}
}

return decoded;
}
```

[**plain_converter.js**](src/TTN/plain_converter.js)

```javascript
function Converter(decoded, port) {

var converted = decoded;

if (port === 1) {
converted.pax = converted.ble + converted.wifi;
if (converted.hdop) {
converted.hdop /= 100;
converted.latitude /= 1000000;
converted.longitude /= 1000000;
}
}

return converted;
}
```

# Remote control

The device listenes for remote control commands on LoRaWAN Port 2. Multiple commands per downlink are possible by concatenating them.

Note: all settings are stored in NVRAM and will be reloaded when device starts. To reset device to factory settings send remote command 09 02 09 00 unconfirmed(!) once.
Note: all settings are stored in NVRAM and will be reloaded when device starts.

0x01 set scan RSSI limit

Expand Down Expand Up @@ -272,12 +241,13 @@ Note: all settings are stored in NVRAM and will be reloaded when device starts.

useful to clear pending commands from LoRaWAN server quere, or to check RSSI on device

0x09 reset functions
0x09 reset functions (send this command with confirmed ack only to avoid boot loops!)

0 = restart device
1 = reset MAC counter to zero
2 = reset device to factory settings
3 = flush send queues
9 = reboot device to OTA update via Wifi mode

0x0A set LoRaWAN payload send cycle

Expand Down
94 changes: 94 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# build.py
# pre-build script, setting up build environment

import sys
import os
import os.path
import requests
from os.path import basename
from platformio import util

Import("env")

# get platformio environment variables
project_config = util.load_project_config()

# check if file loraconf.h is present in source directory
keyfile = str(env.get("PROJECTSRC_DIR")) + "/loraconf.h"
if os.path.isfile(keyfile) and os.access(keyfile, os.R_OK):
print "Parsing LORAWAN keys from " + keyfile
else:
sys.exit("Missing file loraconf.h, please create it using template loraconf.sample.h! Aborting.")

# check if file ota.conf is present in source directory
keyfile = str(env.get("PROJECTSRC_DIR")) + "/" + project_config.get("common", "keyfile")
if os.path.isfile(keyfile) and os.access(keyfile, os.R_OK):
print "Parsing OTA keys from " + keyfile
else:
sys.exit("Missing file ota.conf, please create it using template ota.sample.conf! Aborting.")

# parse file ota.conf
mykeys = {}
with open(keyfile) as myfile:
for line in myfile:
key, value = line.partition("=")[::2]
mykeys[key.strip()] = str(value).strip()

# get bintray user credentials
user = mykeys["BINTRAY_USER"]
repository = mykeys["BINTRAY_REPO"]
apitoken = mykeys["BINTRAY_API_TOKEN"]

# get bintray upload parameters
version = project_config.get("common", "release_version")
package = str(env.get("PIOENV"))

# put bintray user credentials to platformio environment
env.Replace(BINTRAY_USER=user)
env.Replace(BINTRAY_REPO=repository)
env.Replace(BINTRAY_API_TOKEN=apitoken)

# get runtime credentials and put them to compiler directive
env.Replace(CPPDEFINES=[
('WIFI_SSID', '\\"' + mykeys["OTA_WIFI_SSID"] + '\\"'),
('WIFI_PASS', '\\"' + mykeys["OTA_WIFI_PASS"] + '\\"'),
('BINTRAY_USER', '\\"' + mykeys["BINTRAY_USER"] + '\\"'),
('BINTRAY_REPO', '\\"' + mykeys["BINTRAY_REPO"] + '\\"'),
])

# function for pushing new firmware to bintray storage using API
def publish_bintray(source, target, env):
firmware_path = str(source[0])
firmware_name = basename(firmware_path)
url = "/".join([
"https://api.bintray.com", "content",
user, repository, package, version, firmware_name
])

print("Uploading {0} to Bintray. Version: {1}".format(
firmware_name, version))
print(url)

headers = {
"Content-type": "application/octet-stream",
"X-Bintray-Publish": "1",
"X-Bintray-Override": "1"
}

r = requests.put(
url,
data=open(firmware_path, "rb"),
headers=headers,
auth=(user, apitoken))

if r.status_code != 201:
print("Failed to submit package: {0}\n{1}".format(
r.status_code, r.text))
else:
print("The firmware has been successfuly published at Bintray.com!")

# put build file name and upload command to platformio environment
env.Replace(
PROGNAME="firmware_" + package + "_v%s" % version,
UPLOADCMD=publish_bintray
)
24 changes: 24 additions & 0 deletions lib/BintrayClient/library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "BintrayClient",
"keywords": "bintray, ota, cdn, storage",
"description": "A BintrayClient to connect to a JFrog Bintray.",
"authors": [
{
"name": "PlatformIO",
"url": "https://platformio.org/"
}
],
"repository": {
"type": "git",
"url": "https://github.com/platformio/platformio-examples"
},
"export": {
"include": "bintray-secure-ota/lib/BintrayClient"
},
"dependencies": {
"ArduinoJson": "^5.13.1"
},
"version": "1.0.0",
"frameworks": "arduino",
"platforms": "espressif32"
}
105 changes: 105 additions & 0 deletions lib/BintrayClient/src/BintrayCertificates.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/*
Parts of this file
Copyright (c) 2014-present PlatformIO <contact@platformio.org>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
**/

#ifndef BINTRAY_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