Skip to content

Commit

Permalink
Version 6.2.4; Focus on Downstream messaging, and other improvements.…
Browse files Browse the repository at this point in the history
… Please look and CHANGELOG for all changes.
  • Loading branch information
platenspeler committed Apr 27, 2020
1 parent 7fe8550 commit 59d0cfa
Show file tree
Hide file tree
Showing 24 changed files with 1,390 additions and 1,075 deletions.
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Single Channel LoRaWAN Gateway

Version 6.2.0, January 29, 2020
Version 6.2.4, February 29, 2020
Author: M. Westenberg (mw12554@hotmail.com)
Copyright: M. Westenberg (mw12554@hotmail.com)

Expand All @@ -16,10 +16,30 @@ Maintained by Maarten Westenberg (mw12554@hotmail.com)

# Release Notes

Features release 6.2.4 (April 25, 2020)
- Changes the date layout used in the output to be more standard: 3 characters weekday, months and day 2 chars
- Changed the configGway.h file a lot ro define default values for parameters while at the
same time allowing changing through PlatformIO
- Updated the documentation itself and updated link in the software
- For Monitor output use the same stringTime() function
- Added the _PROFILER definition to read the timing (PlatformIO only)
- Adapt the documentation and start writing hardware guide (for compile options)
- Changed the delay for TX (Downlink messages) -. Removed to 0 for _STIRCT_1CH
- Index of iSeen messages was in Hex -> Changed to decimal
- Added a timing correction for sending message of aound 700000 uSec (0.7 Sec) to make downlink work
- Changed naming of tmst (TimeStamp) functions
- Removed function printlog(), as it was not used
- Moved the SPIFFS file operations to a timer function in loop() as it consumer far too much time.
As a result regular timestamp is reduced.
- Removed the logging functions for the same reasons. User can choose to put those on again.
- Added Udp.flush() when NTP messages arrive during operations
- Changed layout of webpage. Changed sequence to first OFF and then ON
- Changed website to include loraWait statistics

Features release 6.2.3 (February 23, 2020)
- Lots of bugs and documentation fixes
- Added customizable #define statements through platformio.ini file (Read!!!)
- Changed the WiFiManager code to better support both architectures: ESP8266 and ESP32\
- Changed the WiFiManager code to better support both architectures: ESP8266 and ESP32

Features release 6.2.1 (February 2, 2020)
- PlatformIO support
Expand Down
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Single Channel LoRaWAN Gateway

Version 6.2.0,
Data: January 29, 2020
Version 6.2.4,
Data: April 25, 2020
Author: M. Westenberg (mw12554@hotmail.com)
Copyright: M. Westenberg (mw12554@hotmail.com)

Expand All @@ -16,8 +16,8 @@ Maintained by Maarten Westenberg (mw12554@hotmail.com)

# Description

First of all: PLEASE READ THIS FILE AND [Documentation](https://things4u.github.io/Projects/SingleChannelGateway/UserGuide/Introduction%206.html) it should contain most of the
information you need to get going.
First of all: PLEASE READ THIS FILE AND [Documentation](http://things4u.github.io/Projects/SingleChannelGateway)
it should contain most of the information you need to get going.
Unfortunately I do not have the time to follow up on all emails, and as most information including pin-outs
etc etc are contained on these pages I hope you have the time to read them and post any remaining questions.

Expand Down Expand Up @@ -47,6 +47,24 @@ parameters at runtime.
Full documentation of the Single Channel Gateway is found at things4u.github.io, please look at the Hardware Guide
under the Gateway chapter.

# PlatformIO or ArduinoIDE

The source works on both environments, both the classic Arduino IDE and on PlatformIO.
Unfortunately there are small differences between these two envrironments.
At this moment the src directory contains the PlatformIO source, and therefore we will decribe how to connect to Arduino IDE.
The applies to the libraries.

## PlatformIO
When in PlatformIO, choose <File> and then <Add folder to Workspace...> and select the new LoRa-1ch-ESP-Gateway
top directory.
Then just open the ESP-sc-gway.ino file at src directory and build or upload

## Arduino IDE

Create a place on you filesystem wo work on the files. In thius directory creat the source directory "ESP-sc-gway"
and the libraries directory "libraries". When unpacking the source at github:
Copy the content of the "src" directory to the Aruino IDE "ESP-sc-gway" directory and copy the contents
of the "lib" to the Arduino IDE "libraries" directory;

## testing

Expand Down Expand Up @@ -467,7 +485,6 @@ The following things are still on my wish list to make to the single channel gat
- Look at Class B and C support



# License

The source files of the gateway sketch in this repository is made available under the MIT
Expand Down
4 changes: 2 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Maintained by Maarten Westenberg (mw12554@hotmail.com)

# ToDo Functions

Features not in release 6.2.3

Features not in release 6.2.4

- Change Downstream timing to be interrupt driven.
- Frequency: Support for eu433 frequencies (Standard)
- Testing and timing of downlink functions (need quiet area)
- Get HOP frequency functions to work on three frequencies
Expand Down
65 changes: 49 additions & 16 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,87 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

; Nr 21 has WIFIMANAGER set
[env:Gateway_21]
platform = espressif8266
board = d1_mini
board_build.mcu = esp8266
board_build.f_cpu = 80000000L
build_flags =
-D _WIFIMANAGER=1
-D OLED=0
-D _WIFIMANAGER=0
-D _SPIFFS_FORMAT=0
-D _OLED=0
-D _DUSB=1
-D _PROFILER=1
framework = arduino
upload_protocol = espota
board_build.flash_mode = qio
upload_speed = 115200
upload_port = 192.168.2.21

[env:Gateway_22]
[env:Gateway_30]
platform = espressif8266
board = d1_mini
board_build.mcu = esp8266
board_build.f_cpu = 80000000L
build_flags =
-D OLED=1
-D _WIFIMANAGER=0
-D _SPIFFS_FORMAT=0
-D _OLED=0
-D _DUSB=1
-D _PROFILER=1
framework = arduino
upload_protocol = espota
board_build.flash_mode = qio
upload_speed = 115200
upload_port = 192.168.2.22
upload_port = 192.168.2.30

[env:Gateway_31]
platform = espressif8266
board = d1_mini
board_build.mcu = esp8266
board_build.f_cpu = 80000000L
[env:Gateway_72]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags =
-D _PIN_OUT=2
-D OLED=2
-D _SPIFFS_FORMAT=0
-D _WIFIMANAGER=0
-D _OLED=0
-D _DUSB=1
-D _PROFILER=1
upload_protocol = espota
board_build.flash_mode = qio
upload_speed = 115200
upload_port = 192.168.2.72

[env:Gateway_138]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags =
-D _WIFIMANAGER=0
-D _SPIFFS_FORMAT=0
-D _OLED=1
-D _DUSB=1
-D _PROFILER=1
; -D _JSONENCODE=1
; -D _MAXSEEN=0
upload_protocol = espota
board_build.flash_mode = qio
upload_speed = 115200
upload_port = 192.168.2.31
upload_port = 192.168.2.138

[env:Gateway_59]
; Nr. 54 has WIFIMANAGER sometimes set
; Also the Gateway is a T-Beam sensor for temperature and GPS (_GATEWAYNODE=1)
[env:Gateway_54]
platform = espressif32
board = heltec_wifi_lora_32
build_flags =
-D _WIFIMANAGER=1
-D _WIFIMANAGER=0
-D _SPIFFS_FORMAT=0
-D _DUSB=0
-D _OLED=0
-D _GATEWAYNODE=1
-D _PROFILER=1
framework = arduino
upload_protocol = espota
board_build.flash_mode = qio
upload_speed = 115200
upload_port = 192.168.2.59
upload_port = 192.168.2.54
Loading

0 comments on commit 59d0cfa

Please sign in to comment.