Skip to content

Commit

Permalink
Release 2.0.6
Browse files Browse the repository at this point in the history
* deps: Updated sx1302_hal dependency to version 2.1.0 (no LBT yet) (Resolves #89, #103, #121, #130)
* deps: Added sx1302_hal patch for handling of latched xticks rollover
* deps: Updated mbedTLS dependency to version 2.28.0 (LTS)
* deps: Fixed lgw patch causing IQ inversion in 500kHz channel (Resolves #81)
* s2e: Added support for AU915 (Resolves #43)
* s2e: Added support for LoRaWAN Regional Parameters Common Names (Resolves #18)
* s2e: Fixed dnchnl2 issue (Resolves #79)
* s2e: Fixed class C backoff logic (Resolves #87)
* s2e: Fixed class B beacon format (Resolves #129, #131)
* s2e: Fixed DR range check in upchannels list parser (Resolves #141)
* ral: Changed handling of xticks for lgw1302
* ral: Fixed radio in use issue (Resolves #53, #62)
* ral: Fixed types in txpow assignment (master/slave) (Resolves #118)
* ral: Fixed class B beacon parameters (Resolves #132)
* sx130xconf: Fixed parsing of rssi_tcomp values for sx1302 (Resolves #144)
* tls: Fixed TLS cert parsing issue (Resolves #76)
* sys_linux: Added support for usb/spi prefix in radio devname
* sys_linux: Added mbedTLS version to startup log
* sys_linux: Changed version to be printed to stdout (Resolves #51)
* sys_linux: Changed default max dbuf size (Resolves #95)
* sys_linux: Fixed relative home path handling (Resolves #140)
* sys_linux: Fixed memory corruption during system command execution (Resolves #146)
* tc/cups: Fixed sync on credset file IO (Resolves #94)
* timesync: Fixed UTC to PPS alignment
* log: Changed verbosity of XDEBUG log level
* log: Changed logging experience for improved clarity
* log: Added HAL log integration into logging module
* make: Changed makefiles for more space-friendliness (Resolves #66)
* net: Changed strictness on line-endings in key files (Resolves #68)
* gps: Fixed parsing of ublox NAV-TIMEGPS message
* Restored LICENSE file (Resolves #63, #67)
  • Loading branch information
beitler committed Jan 18, 2022
1 parent 6675c77 commit ba4f85d
Show file tree
Hide file tree
Showing 163 changed files with 8,165 additions and 1,180 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/regr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: regr-tests
on: [push]
jobs:
run-regr-tests:
runs-on: ubuntu-18.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup environment
run: |
sudo apt-get install -y python3.7 python3-pip virtualenv psmisc git build-essential lcov curl netcat-openbsd
virtualenv --python python3.7 pyenv
. pyenv/bin/activate
pip3 install setuptools aiohttp websockets
- name: Execute Tests
run: |
# relax some regr test success conditions - related to timing
. pyenv/bin/activate
export PPSTHRES=100
export TX_AIM_GAP='"40ms"'
make -C regr-tests ci s2core.info
- name: Archive logs
uses: actions/upload-artifact@v2
with:
name: Test logs
path: regr-tests/t.log/*.log
- name: Archive Coverage report
uses: actions/upload-artifact@v2
with:
name: Coverage report
path: regr-tests/s2core-html/**

18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

54 changes: 44 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,60 @@
# Changelog

## 2.0.6 - 2022-01-17

* deps: Updated sx1302_hal dependency to version 2.1.0 (no LBT yet) (#89, #103, #121, #130)
* deps: Added sx1302_hal patch for handling of latched xticks rollover
* deps: Updated mbedTLS dependency to version 2.28.0 (LTS)
* deps: Fixed lgw patch causing IQ inversion in 500kHz channel (#81)
* s2e: Added support for AU915 (#43)
* s2e: Added support for LoRaWAN Regional Parameters Common Names (#18)
* s2e: Fixed dnchnl2 issue (#79)
* s2e: Fixed class C backoff logic (#87)
* s2e: Fixed class B beacon format (#129, #131)
* s2e: Fixed DR range check in upchannels list parser (#141)
* ral: Changed handling of xticks for lgw1302
* ral: Fixed radio in use issue (#53, #62)
* ral: Fixed types in txpow assignment (master/slave) (#118)
* ral: Fixed class B beacon parameters (#132)
* sx130xconf: Fixed parsing of rssi_tcomp values for sx1302 (#144)
* tls: Fixed TLS cert parsing issue (#76)
* sys_linux: Added support for usb/spi prefix in radio devname
* sys_linux: Added mbedTLS version to startup log
* sys_linux: Changed version to be printed to stdout (#51)
* sys_linux: Changed default max dbuf size (#95)
* sys_linux: Fixed relative home path handling (#140)
* sys_linux: Fixed memory corruption during system command execution (#146)
* tc/cups: Fixed sync on credset file IO (#94)
* timesync: Fixed UTC to PPS alignment
* log: Changed verbosity of XDEBUG log level
* log: Changed logging experience for improved clarity
* log: Added HAL log integration into logging module
* make: Changed makefiles for more space-friendliness (#66)
* net: Changed strictness on line-endings in key files (#68)
* gps: Fixed parsing of ublox NAV-TIMEGPS message
* Restored LICENSE file (#63, #67)

## 2.0.5 - 2020-06-05
* README.md - Updated with supported platform and Travis Banner

* Remove LICENSE & ROADMAP.md file
* Based on v2.0.4 with no source code/functional changes

## 2.0.4 - 2020-03-17
* cups - Add Content-Type header to CUPS request
* sys_linux - truncate update file instead of append
* cups - nullify sig pointer after free
* cups - symbol for signature crc length
* cups - Add segment length checks
* sys_linux - cups update abort should unlink the right file
* cups - free the key buffer
* lgw1302: Added sx1302 hal and integrated with corecell platform

* cups: Added Content-Type header to CUPS request
* cups: Fixed nullify sig pointer after free
* cups: Added segment length checks
* cups: Fixed freeing the key buffer
* deps: Added sx1302 hal and integrated with corecell platform
* sys_linux: Fixed decoder pointer dereferencing (#39)
* sys_linux: Fixed cups update abort should unlink the right file
* sys_linux: Fixed truncate update file instead of append
* s2e: Fixed memory corruption bug in JoinEui filter parsing (#31)
* s2e: Added DR and Freq fields to dntxed message (#37)
* s2e: Added error message type for printing LNS error into Station's log (#33)
* s2e: Added fts field to updf message
* net: Added Websocket PONG (#29)
* net: Added option for TLS server name indication/verification
* net: Added option for TLS server name indication/verification (#57)
* rt: Added MCU clock drift compensation for UTC time offset
* ral: Fixed dntxed message for short transmissions
* ral: Added Automatic channel allocation feature
Expand Down
25 changes: 25 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--- Revised 3-Clause BSD License ---
Copyright Semtech Corporation 2022. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Semtech corporation nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL SEMTECH CORPORATION. BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/lorabasics/basicstation.svg?branch=master)](https://travis-ci.com/lorabasics/basicstation)
[![regr-tests](https://github.com/lorabasics/basicstation/actions/workflows/regr-tests.yml/badge.svg?branch=master)](https://github.com/lorabasics/basicstation/actions/workflows/regr-tests.yml?query=branch%3Amaster)

# LoRa Basics™ Station

Expand Down Expand Up @@ -40,7 +40,7 @@ Building the Station binary from source, requires

## First Steps

The following is a three-step quick start guide on how to build and run Station. It uses a Raspberry Pi as host platform and assumes a Concentrator Reference Design 1.5 compatible radio board connected via SPI. In this example the build process is done on the target platform itself (the make environment also supports cross compilation in which case the toolchain is expected in `~/toolchain-$platform` - see [setup.gmk](setup.gmk)).
The following is a three-step quick start guide on how to build and run Station. It uses a Raspberry Pi as host platform and assumes a Concentrator Reference Design 1.5 compatible radio board connected via SPI, and assumes that SPI port is enabled using the [raspi-config](https://www.raspberrypi.org/documentation/configuration/raspi-config.md) tool. In this example the build process is done on the target platform itself (the make environment also supports cross compilation in which case the toolchain is expected in `~/toolchain-$platform` - see [setup.gmk](setup.gmk)).

#### Step 1: Cloning the Station Repository

Expand Down Expand Up @@ -87,6 +87,8 @@ cd examples/corecell

This example configuration for Corecell connects to [The Things Network](https://www.thethingsnetwork.org/) public LNS. The example [station.conf](station.conf) file holds the required radio configurations and station fetches the channel plan from the configured LNS url ([tc.uri](tc.uri)).

Note: SPI port requires to be activated on Raspberry Pi thanks to [raspi-config](https://www.raspberrypi.org/documentation/configuration/raspi-config.md) tool.

#### PicoCell Gateway (Linux OS as HOST + [SX1308 USB Reference design](https://www.semtech.com/products/wireless-rf/lora-gateways/sx1308p868gw))


Expand Down
15 changes: 0 additions & 15 deletions SECURITY.md

This file was deleted.

2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.5
2.0.6
18 changes: 11 additions & 7 deletions deps/lgw/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# --- Revised 3-Clause BSD License ---
# Copyright Semtech Corporation 2020. All rights reserved.
# Copyright Semtech Corporation 2022. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -35,10 +35,14 @@ LGWVERSION.default = 5.0.1
LGWVERSION ?= $(or ${LGWVERSION.${platform}}, ${LGWVERSION.default})

HFILES = $(wildcard ${PLT}/libloragw/inc/*.h)
SRCS = $(wildcard ${PLT}/libloragw/inc/*.c)
SRCS = $(wildcard ${PLT}/libloragw/src/*.c)
ARTEFACTS = ${LGWLIB} ${LGWINC} $(patsubst %, ${LGWINC}/%, $(notdir ${HFILES}) config.h)

all: $(if ${HFILES},${ARTEFACTS},${PLT})
LGW_EXTRA_CFLAGS = -DSTATIONLOG # Enable station log integration

all: platform build
platform: ${PLT}
build: ${ARTEFACTS}

${LGWINC}:
@mkdir -p $@
Expand All @@ -49,18 +53,18 @@ ${LGWLIB}: ${PLT}/libloragw/libloragw.a
@cp $< $@

${PLT}/libloragw/libloragw.a: ${SRCS} ${HFILES}
${MAKE} -C ${PLT}/libloragw libloragw.a CC=${CC} AR=${AR} LD=${LD} TDfull=${TDfull}
${MAKE} -C ${PLT}/libloragw libloragw.a CC="${CC}" AR="${AR}" LD="${LD}" TDfull="${TDfull}" EXTRA_CFLAGS="${LGW_EXTRA_CFLAGS}"

${PLT}/libloragw/inc/config.h: ${PLT}/libloragw/library.cfg
${MAKE} -C ${PLT}/libloragw inc/config.h CC=${CC} AR=${AR} LD=${LD} TDfull=${TDfull}
${MAKE} -C ${PLT}/libloragw inc/config.h CC="${CC}" AR="${AR}" LD="${LD}" TDfull="${TDfull}"

${LGWINC}/%.h: ${PLT}/libloragw/inc/%.h | ${LGWINC}
@echo " CP ${<F} -> $@"
@cp $< $@

${PLT}: prep.sh
platform=${platform} variant=${variant} lgwversion=${LGWVERSION} ./prep.sh
$(MAKE) --no-print-directory all platform=${platform} variant=${variant}
$(MAKE) --no-print-directory build platform=${platform} variant=${variant}

clean:
rm -rf ${ARTEFACTS}
Expand All @@ -69,4 +73,4 @@ clean:
super-clean: clean
rm -rf git-repo platform-*

.PHONY: all clean super-clean platform-${platform}
.PHONY: all build clean platform super-clean
2 changes: 1 addition & 1 deletion deps/lgw/prep.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# --- Revised 3-Clause BSD License ---
# Copyright Semtech Corporation 2020. All rights reserved.
# Copyright Semtech Corporation 2022. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
Expand Down
Loading

0 comments on commit ba4f85d

Please sign in to comment.