Commit Graph

88 Commits

Author SHA1 Message Date
Jeff Lehman
def150b49c Use READING_ID as part of LoRa address. #65 2022-07-26 13:25:06 -05:00
Jeff Lehman
e26d44ff44 Merge branch 'dev' of https://github.com/aviateur17/Farm-Data-Relay-System into dev 2022-07-26 08:29:23 -05:00
Jeff Lehman
eed87ac84c Validate CRC when sensor does not want ACK - improvement #54 2022-07-26 06:40:50 -05:00
Timm Bogner
90ac7148fe
Merge branch 'dev' into dev 2022-07-25 15:25:11 -05:00
Jeff Lehman
0bf0015576 Add LoRa ACK & CRC functionality for gateway #54 2022-07-25 13:06:14 -05:00
Timm Bogner
a8e8d41de6
Merge branch 'dev' into dev 2022-07-25 12:50:35 -05:00
Timm Bogner
7e208cbc9b Merge branch 'main' into dev 2022-07-24 20:28:54 -05:00
Timm Bogner
2ec3a04e16 Update fdrs_gateway_config.h 2022-07-24 20:12:53 -05:00
Sascha
7a524fe456
Update README.md
Added section on USE_ESPNOW.
2022-07-23 01:21:35 +02:00
Sascha
62c247275a Applied changes to FDRS_Sensor and FDRS_Gateway folders 2022-07-23 01:09:58 +02:00
Timm Bogner
d04639a865 Finished ping support
Not immediately useful, but it is interesting to know how low an FDRS ping is (in ms). I won't ruin the surprise, but it's pretty low.

More importantly however, I laid out how SystemPackets will work. I might rename those.
2022-07-22 01:37:57 -05:00
Sascha
5027623cb8 Fixing configuration system - part 2: gateways
Further work on #71 :
- Added config code to fdrs_functions.h.
- Commented all local config settings -> global config settings will be taken by default.
- added a debugConfig function, to check from where settings have been taken. May be moved to a place where sensors and gateways can share code as this is needed only once. For the sake of simplicity the function made it into fdrs_sensor.h and fdrs_functions.h Needs to be refined, as there is redundancy right now.
2022-07-21 16:24:01 +02:00
Sascha
b73b7a4b1c Added LoRa Debug info for BAND and SF to all nodes for better debugging
As there is still a lot of redundancy in the project, in a first step I added the debug messages in each of the places.
2022-07-21 11:46:16 +02:00
Timm Bogner
3c3231e4f0 implementing SystemPackets 2022-07-20 23:32:39 -05:00
Timm Bogner
a8339f1136
Merge branch 'main' into dev 2022-07-20 13:40:12 -05:00
Timm Bogner
d3e137ab8b unifying gateways etc
more to come
2022-07-18 20:42:42 -05:00
Sascha
087b9f30c8 house keeping
Added some comments for easier browsing through the source and corrected a type.
2022-07-15 14:09:40 +02:00
theFeiter
d1872b1d53 replace external ntp with internal ntp 2022-07-12 21:32:27 +02:00
Timm Bogner
5822d8e0d9 Merge branch 'dev' into okay-wait-now-i-really-got-this 2022-07-11 18:59:23 -05:00
Sascha
acf53e6ed5 Refactored gateway config files
Refactored fdrs_config.h to fdrs_gateway_config.h
This way it is directly visible from within a folder, what the config is for.
2022-07-11 16:07:46 +02:00
theFeiter
85b1e16144 add newline 2022-07-11 12:55:45 +02:00
theFeiter
92c17d3567 release logbuffer every 10 seconds if not empty 2022-07-11 12:50:52 +02:00
theFeiter
48d2a6f012 only count seconds_since_reset when logging is enabled 2022-07-11 12:15:55 +02:00
theFeiter
f29e7ce916 add defined filename 2022-07-10 19:50:47 +02:00
theFeiter
107c1413a1 use buffering for all logs 2022-07-10 19:26:45 +02:00
theFeiter
876d860a05 use internal seconds since reset only when wifi not enabled 2022-07-10 13:06:49 +02:00
theFeiter
3854593bf7 use internal seconds since reset only when wifi not enabled 2022-07-10 13:06:03 +02:00
Timm Bogner
59196b7829 fixed if/else 2022-07-09 20:22:33 -05:00
Timm Bogner
e10315bc28 used enum to make newData more expressive 2022-07-09 20:05:34 -05:00
Timm Bogner
47ba30d167
Merge pull request #45 from thefeiter/spiffs-logging
Create internal flash (LittleFS) logging functionality
2022-07-08 18:59:05 -05:00
theFeiter
d8317daf83 this just fixed the write speed issue 2022-07-08 11:33:46 +02:00
theFeiter
83c11c27ed Merge branch 'dev' into spiffs-logging 2022-07-08 10:13:17 +02:00
Sascha
9e57a8f299 Refactored DEBUG and DBG to FDRS_DEBUG and FDRS_DBG
Changed those values to be prevent compiling issues with PlatformIO and also as it is good practice not to use names which easily could collide with other libs.
Also removed a duplicate line from keywords.txt
2022-07-08 08:41:58 +02:00
Timm Bogner
a8e94156dd Updated gateway .ino 2022-07-07 23:29:03 -05:00
Timm Bogner
64bcbf947a
Merge branch 'dev' into create-sd-card-logging 2022-07-07 21:19:10 -05:00
Timm Bogner
64eb35a918 fixed macro names 2022-07-07 21:15:50 -05:00
Timm Bogner
8825396298
Merge pull request #49 from Gulpman/dev
Dev: refactoring GLOBALS to FDRS_GLOBALS
2022-07-07 18:06:01 -05:00
theFeiter
2eb8755ce9 add spi Initialization for ESP32 2022-07-07 12:47:30 +02:00
theFeiter
d093128e7c only use defined spi pins on ESP32 2022-07-07 12:38:57 +02:00
theFeiter
6b51e1c978 add prefixes to defines 2022-07-07 12:37:04 +02:00
theFeiter
d013f38196 apply some compiler suggestions 2022-07-07 11:59:04 +02:00
theFeiter
5d4d0d40cc Merge branch 'create-sd-card-logging' into spiffs-logging 2022-07-07 11:55:25 +02:00
theFeiter
5e7f277bcd small corrections 2022-07-07 11:53:37 +02:00
theFeiter
cb47f6c02e use littlefs since spiffs is deprecated 2022-07-07 11:49:57 +02:00
theFeiter
d67e831e64 Revert "use littlefs since spiffs is deprecated"
This reverts commit da4b403246.
2022-07-07 11:45:18 +02:00
theFeiter
da4b403246 use littlefs since spiffs is deprecated
apply some suggestions from the compiler
2022-07-07 11:42:17 +02:00
Sascha
25fb6b4d26 refactored GLOBALS to FDRS_GLOBALS
Globals is just too... global :)
Could also conflict with other libraries.
2022-07-07 11:40:12 +02:00
theFeiter
9d5a1062dc change filename 2022-07-07 00:48:58 +02:00
theFeiter
5624ac30af create SPIFFS logger function 2022-07-07 00:27:01 +02:00
theFeiter
61d6556373 create SPIFFS logger function 2022-07-07 00:26:55 +02:00