From b587a5604e19ef475de3b8b80e0b2609b256c429 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Fri, 20 Sep 2019 21:30:23 +0200 Subject: [PATCH] update README.md --- README.md | 21 +++++++++++++++++---- platformio.ini | 6 +++--- src/paxcounter.conf | 4 ++-- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4cb51ca8..8b20a195 100644 --- a/README.md +++ b/README.md @@ -311,7 +311,7 @@ Note: all settings are stored in NVRAM and will be reloaded when device starts. Example for EU868: - DataRate Radio Bit/s + DataRate Configuration Bit/s 0 LoRa: SF12 / 125 kHz 250 1 LoRa: SF11 / 125 kHz 440 2 LoRa: SF10 / 125 kHz 980 @@ -320,20 +320,33 @@ Note: all settings are stored in NVRAM and will be reloaded when device starts. 5 LoRa: SF7 / 125 kHz 5470 6* LoRa: SF7 / 250 kHz 11000 7* FSK: 50 kbps 50000 + 8 .. 14 reserved for future use (RFU) + 15 ignored (device keeps current setting) *) not supported by TheThingsNetwork 0x06 set LoRa TXpower - 0 ... 15 [default: 14] + 0 ... 15 [default: 7] + + TXPower Configuration + 0 Max EIRP (usually +16dB) + 1 -2dB + 2 -4dB + 3 -6dB + 4 -8dB + 5 -10dB + 6 -12dB + 7 -14dB + 8 .. 14 reserved for future use (RFU) + 15 ignored (device keeps current setting) 0x07 set LoRa Adaptive Data Rate mode 0 = ADR off 1 = ADR on [default] - Note: set ADR to off, if device is moving, set to on, if not. - If ADR is set to on, SF value is shown inverted on display. + If ADR is set to off, SF value is shown inverted on display. 0x08 do nothing diff --git a/platformio.ini b/platformio.ini index 98bb49ec..055aadf3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -7,7 +7,7 @@ ; ---> SELECT THE TARGET PLATFORM HERE! <--- [board] -halfile = generic.h +;halfile = generic.h ;halfile = ebox.h ;halfile = eboxtube.h ;halfile = ecopower.h @@ -18,7 +18,7 @@ halfile = generic.h ;halfile = ttgov21old.h ;halfile = ttgov21new.h ;halfile = ttgofox.h -;halfile = ttgobeam.h +halfile = ttgobeam.h ;halfile = ttgobeam10.h ;halfile = fipy.h ;halfile = lopy.h @@ -46,7 +46,7 @@ description = Paxcounter is a device for metering passenger flows in realtime. I release_version = 1.8.3 ; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running! ; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose -debug_level = 3 +debug_level = 4 extra_scripts = pre:build.py otakeyfile = ota.conf lorakeyfile = loraconf.h diff --git a/src/paxcounter.conf b/src/paxcounter.conf index e18c8b60..5ee3a9a2 100644 --- a/src/paxcounter.conf +++ b/src/paxcounter.conf @@ -49,7 +49,7 @@ #define RETRANSMIT_RCMD 5 // [seconds] wait time before retransmitting rcommand results #define PAYLOAD_BUFFER_SIZE 51 // maximum size of payload block per transmit #define LORADRDEFAULT 5 // 0 .. 15, LoRaWAN datarate, according to regional LoRaWAN specs [default = 5] -#define LORATXPOWDEFAULT 14 // 0 .. 15, LoRaWAN TX power +#define LORATXPOWDEFAULT 7 // 0 .. 15, LoRaWAN TX power [default = 7] #define MAXLORARETRY 500 // maximum count of TX retries if LoRa busy #define SEND_QUEUE_SIZE 10 // maximum number of messages in payload send queue [1 = no queue] @@ -75,7 +75,7 @@ #define TIME_SYNC_INTERVAL_RETRY 10 // retry time sync after lost sync each .. minutes [default = 10], 0 means off #define TIME_SYNC_COMPILEDATE 0 // set to 1 to use compile date to initialize RTC after power outage [default = 0] #define TIME_SYNC_LORAWAN 0 // set to 1 to use LORA network as time source, 0 means off [default = 0] -#define TIME_SYNC_LORASERVER 0 // set to 1 to use LORA timeserver as time source, 0 means off [default = 0] +#define TIME_SYNC_LORASERVER 1 // set to 1 to use LORA timeserver as time source, 0 means off [default = 0] // settings for syncing time with timeserver applications #define TIME_SYNC_SAMPLES 1 // number of time requests for averaging