Commit Graph

536 Commits

Author SHA1 Message Date
cyberman54
1ae49f8263 add spi deinit for sleep 2020-12-23 16:30:25 +01:00
cyberman54
a04e6440d4 millis() overflow logic reworked 2020-12-21 22:11:41 +01:00
cyberman54
f29f295826 change send data order to counts first 2020-12-21 22:07:24 +01:00
cyberman54
fdfd10b227 bugfix persist uptime after deep sleep 2020-12-19 22:30:34 +01:00
cyberman54
2d486e5ede persist uptime during deep sleep 2020-12-19 12:27:07 +01:00
cyberman54
889e88d671 cumulate uptime after deep sleep 2020-12-18 19:07:12 +01:00
cyberman54
14c8eeb471 new MACFILTER, replacing VENDORFILTER 2020-12-13 19:29:15 +01:00
Klaus K Wilting
b32e91317f deep sleep further development 2020-12-11 16:34:17 +01:00
Klaus K Wilting
28d30493fd channel hopping switch on/off option 2020-12-10 22:12:57 +01:00
Klaus K Wilting
258b6fce53 deep sleep further development 2020-12-10 15:10:28 +01:00
Klaus K Wilting
22f0ce5184 revert _millis & sanitizations deep sleep 2020-12-09 20:37:03 +01:00
Klaus K Wilting
8db24bfa8e msg prios removed, (not needed with buffer queues) 2020-12-09 11:01:54 +01:00
Klaus K Wilting
36afe66df9 new feature deep sleep (wokring alpha) 2020-12-09 10:15:12 +01:00
Klaus K Wilting
04a055b329 sleep cycle mode (experimental) 2020-12-04 17:32:10 +01:00
Klaus K Wilting
6896807c33 BOSCH BSEC upgrade tp 1.4.80 2020-11-21 20:38:17 +01:00
Klaus K Wilting
7ccfb427c0 rekindle channel display 2020-11-10 11:07:41 +01:00
Klaus K Wilting
86a6341101 new display RF load & remove ch display 2020-11-09 13:25:12 +01:00
Klaus K Wilting
30731f5c0c MAC processing reworked 2020-11-08 22:14:28 +01:00
Klaus K Wilting
1cd9ae16f1 buffered MAC processing (experimental) 2020-11-07 22:32:36 +01:00
Klaus K Wilting
8452347bf3 HAS_SENSOR defines sanitization 2020-11-02 18:44:06 +01:00
Klaus K Wilting
e5d13be42e eliminate usage of millis() in whole code 2020-11-02 12:39:46 +01:00
Klaus K Wilting
0673293744 new _millis function definition 2020-11-02 12:25:10 +01:00
Klaus K Wilting
8a0a3949fd fix #issue668 2020-11-01 13:45:17 +01:00
Klaus K Wilting
cf87950e27 SDMMC fix (PR #665, activating pullups) 2020-10-31 12:05:26 +01:00
Klaus K Wilting
5bbe4bee02 new _ASSERT function 2020-10-30 12:24:16 +01:00
Klaus K Wilting
f77fdffba8 i2c device scan improved 2020-10-14 10:29:13 +02:00
Klaus K Wilting
0adedc3e35 display.h: typo in defines (but had no impact) 2020-10-13 22:12:51 +02:00
Klaus K Wilting
092842a4c0 PR #653 merged and added some corrections 2020-10-05 13:56:41 +02:00
Chrisotph Schultz
d3bf77d1e7 added rcmd 0x18 for switching off/on ENS 2020-10-05 12:58:05 +02:00
Chrisotph Schultz
0e2a4e6893 Revert " corrected some errors"
This reverts commit 98c2ad3838.
2020-10-05 12:49:54 +02:00
Chrisotph Schultz
98c2ad3838 corrected some errors 2020-10-05 12:40:33 +02:00
Chrisotph Schultz
21d94247bd merged v2.0.17 2020-10-05 00:11:53 +02:00
Chrisotph Schultz
cae92514bb adding Set ENS counter on/off via rcomd 0x18 00|01 2020-10-04 22:58:29 +02:00
Klaus K Wilting
414bc41404 configmanager: enhancements for version migration 2020-10-04 19:10:36 +02:00
Klaus K Wilting
1186b000b6 some function renames for better code readability 2020-10-04 14:29:57 +02:00
Klaus K Wilting
502434abc4 configmanager: improved error handling 2020-10-04 13:15:17 +02:00
Klaus K Wilting
a0a041b1d1 globals.h: comment added 2020-10-03 12:33:41 +02:00
Klaus K Wilting
ef84966917 rewrite configmanager (experimental) 2020-10-02 23:07:24 +02:00
Klaus K Wilting
da845993dd code sanitizations (fix some compiler warnings) 2020-09-12 22:39:04 +02:00
Klaus K Wilting
2a9469422c wifi/bt coexist code sanitization 2020-09-12 13:58:18 +02:00
Klaus K Wilting
0f6e08e7e1 CWA code edits 2020-09-03 16:37:51 +02:00
Klaus K Wilting
2f0b3c8ef2 CWA scanner minor modifications 2020-09-02 18:55:06 +02:00
Klaus K Wilting
c014824667 CWA detection (experimental) 2020-09-02 11:21:56 +02:00
August Quint
f1bf16bd74
Create corona.h
added: CWA-handling
2020-09-01 16:26:30 +02:00
August Quint
dcc26a6c9e
Update macsniff.h 2020-09-01 11:36:41 +02:00
August Quint
e7b7fb1144
Update senddata.h
added: CWA-handling
2020-09-01 11:35:45 +02:00
August Quint
5007373f58
Update main.h
added: CWA-handling
2020-09-01 11:34:13 +02:00
August Quint
b288106f83
Update sdcard.h
correcting the SD-card-pins
2020-09-01 11:33:17 +02:00
Klaus K Wilting
48cdb06c2c small cleanups 2020-07-19 16:03:15 +02:00
Klaus K Wilting
6b785fedd7 mqtt lib changed (experimental) 2020-06-20 15:04:03 +02:00
Klaus K Wilting
d555656852 MQTT client enhanced (experimental) 2020-06-16 20:29:49 +02:00
Klaus K Wilting
6ec85c20c4 removed unused var macs_total 2020-06-16 18:01:05 +02:00
Klaus K Wilting
6c24aea7e4 sdcard.cpp edits 2020-06-06 21:15:31 +02:00
Klaus K Wilting
5dd5c481ad sdcard code sanitizations 2020-06-06 15:09:12 +02:00
Klaus K Wilting
014bae059e mqtt client test (experimental) 2020-05-22 00:07:49 +02:00
Klaus K Wilting
05e5d31a53 mqtt client (experimental) 2020-05-21 19:42:42 +02:00
Klaus K Wilting
9c0b504841 mqtt test (experimental) 2020-05-20 18:29:07 +02:00
Klaus K Wilting
c5635f59b2 mqtt code sanitizations 2020-05-20 12:40:37 +02:00
Klaus K Wilting
e0b04775e0 sdcard.h: bugfix conditional compile 2020-05-20 12:34:58 +02:00
Klaus K Wilting
c5c9e933d4 MQTT client (experimental) 2020-05-17 23:07:38 +02:00
Klaus K Wilting
73ee2df3d4 Ethernet MQTT client (experimental) 2020-05-16 23:49:34 +02:00
Klaus K Wilting
6e487983b5 SD card reader native mode added 2020-05-16 15:30:05 +02:00
Klaus K Wilting
cdf60c6df9 changed ssoled to OneBitDisplay library 2020-05-09 23:38:51 +02:00
Klaus K Wilting
62d28c54b6 charge current control added 2020-05-09 22:48:29 +02:00
Klaus K Wilting
cce3589858 i2c.h/.cpp: add IP5306 address 2020-05-01 12:23:46 +02:00
Klaus K Wilting
2624f7b35b M5 battery monitor improved (read IP5306 chip) 2020-04-19 19:51:23 +02:00
Klaus K Wilting
53be14d8a6 battery level code switched to callback 2020-04-14 10:57:30 +02:00
Klaus K Wilting
0531a3fda8 battery level processing fix 2020-04-14 09:57:02 +02:00
Klaus K Wilting
af02c2c661 battery level calculation fixes 2020-04-14 00:15:51 +02:00
Klaus K Wilting
c8a5896043 power.h sanitization 2020-04-13 23:47:59 +02:00
Klaus K Wilting
316517337a battery percentage calculation improved 2020-04-13 22:07:26 +02:00
Klaus K Wilting
1e8671984c battery level calculation fixes 2020-04-13 15:07:27 +02:00
Klaus K Wilting
60391792d1 battery level display fixes 2020-04-12 22:12:13 +02:00
Klaus K Wilting
4a1499b2bb battery percentage display fixes 2020-04-12 17:33:13 +02:00
Klaus K Wilting
bf2d32896f battery percentage display fixes 2020-04-11 23:36:17 +02:00
Klaus K Wilting
f4e8c67117 Battery percentage display 2020-04-11 21:30:09 +02:00
Klaus K Wilting
90a004ec79 prepare LMIC battlevel MAC request 2020-04-10 23:26:29 +02:00
Klaus K Wilting
bdcd05cb21 M5 display support fixes 2020-04-10 18:40:40 +02:00
Klaus K Wilting
4584a5a34b M5 display support (experimental) 2020-04-06 17:40:45 +02:00
Klaus K Wilting
59930870fd enhanced RGB LED control for M5fire 2020-04-06 11:53:55 +02:00
Klaus K Wilting
a56c534195 M5stack display support (experimental) 2020-04-05 23:01:39 +02:00
Klaus K Wilting
2f8301d36a M5 display support (experimental) 2020-03-29 23:05:42 +02:00
Klaus K Wilting
7fcf93a655 M5 TFT display initial commit (experimental) 2020-03-29 19:41:33 +02:00
Klaus K Wilting
a90889dce3 #include cleanup 2 2020-03-29 18:09:52 +02:00
Klaus K Wilting
87d93f6978 #include cleanup 2020-03-29 18:08:52 +02:00
Klaus K Wilting
4029d545a2 display support reworked, prepared for TFT/LCD 2020-03-29 12:10:42 +02:00
Julian Flake
e7d5df6f4b Fix i2c address for OLED on TTGOv1 (use 0x3C instead of 0x3D) 2020-03-17 22:37:18 +01:00
Verkehrsrot
ffa4c6d1c6
Merge pull request #570 from cyberman54/development
update branch sds011 to dev
2020-03-14 07:52:07 +01:00
Verkehrsrot
8392b8c308
Merge branch 'SDS011' into SDS011 2020-03-14 07:38:22 +01:00
August Quint
f33494b84f
Update payload.h 2020-03-13 15:35:42 +01:00
August Quint
8f7ba2943f
Update payload.h 2020-03-13 15:33:47 +01:00
August Quint
406f71eea5
Update payload.h 2020-03-13 15:23:22 +01:00
Klaus K Wilting
42ee21a2f7 timesync code sanitziations 2020-03-11 23:49:06 +01:00
Klaus K Wilting
1057a25fc4 gpsread code sanitizations 2020-03-11 23:47:33 +01:00
Klaus K Wilting
aa042f6968 update display lib 2020-03-11 23:47:16 +01:00
Klaus K Wilting
1da355b7b0 further fixes in timesync.cpp 2020-03-08 16:15:46 +01:00
Klaus K Wilting
795ca18f6a remove old functions from timekeeper.h 2020-03-08 16:14:37 +01:00
Klaus K Wilting
f5399d8108 timesync code refactored 2020-03-07 23:18:36 +01:00
Klaus K Wilting
1467d2145b timesync code refactoring 2020-03-07 19:41:08 +01:00
Klaus K Wilting
c79a36ef3b mac_decode code sanitized 2020-03-07 00:03:05 +01:00
Klaus K Wilting
73a612779b deeply reworked timesync code 2020-03-06 19:24:58 +01:00
Klaus K Wilting
2cf52f1af6 big timesync code sanitization 2020-03-04 21:54:26 +01:00
Klaus K Wilting
efd0cc3819 lorawan.cpp: code sanitizations 2020-03-03 16:52:29 +01:00
Klaus K Wilting
c17bfa02af reworked lora appserver timesync logic (part 2) 2020-03-03 16:38:29 +01:00
Klaus K Wilting
1516d71018 reworked lora appserver timesync logic (part 1) 2020-03-03 12:54:42 +01:00
August Quint
a2a53f7617
Update payload.h 2020-02-28 16:13:20 +01:00
August Quint
3382f5507a
Cayenne: added constant for PM-values 2020-02-28 16:04:22 +01:00
Klaus K Wilting
39f99043d6 SDS011 code sanitizations 2020-02-25 22:18:20 +01:00
Klaus K Wilting
417c3c7e69 Merge branch 'SDS011' of https://github.com/cyberman54/ESP32-Paxcounter into SDS011 2020-02-25 21:16:23 +01:00
Klaus K Wilting
2cb5325181 ESP32 platform update; show more Lora Params 2020-02-25 20:23:41 +01:00
Verkehrsrot
867c5477df sds011 code sanitizations 2020-02-05 22:13:30 +01:00
Verkehrsrot
bc198b722b
Merge pull request #544 from cyberman54/master
sync sds011 with master
2020-02-05 19:43:02 +01:00
August Quint
5aefaf2b2f
Update payload.h
copy+paste-error corrected
2020-02-05 15:54:06 +01:00
August Quint
acf42ef27b
Update sds011read.h 2020-02-03 15:24:49 +01:00
August Quint
1ec0f8f3f7
Update payload.h 2020-02-03 15:24:07 +01:00
August Quint
6eccb475e3
Update cyclic.h 2020-02-03 15:23:13 +01:00
August Quint
0bc7afe023
Update sdcard.h 2020-02-03 15:22:33 +01:00
Verkehrsrot
298ded12d4 externalized Bosch BSEC library 2020-01-28 21:49:24 +01:00
Verkehrsrot
2d04dc2bd2 spislave.h: bugfix missing TaskHandle declaration 2020-01-28 21:42:37 +01:00
Verkehrsrot
19f00bf09c
Merge pull request #535 from AugustQu/patch-8
initial
2020-01-22 19:11:58 +01:00
August Quint
7a465f7c75
added support for SDS011 2020-01-22 15:44:54 +01:00
August Quint
804cbfb879
added support for SDS011 2020-01-22 15:43:13 +01:00
August Quint
6fad4e2e79
initial 2020-01-21 14:57:36 +01:00
Verkehrsrot
f960627910 auto page flip mode 2020-01-20 11:41:31 +01:00
Verkehrsrot
e8abe8567b skip display pages with no content (issue #523) 2020-01-19 22:21:45 +01:00
Verkehrsrot
acabc8b7d6 gps fix detection enhanced 2020-01-03 09:59:10 +01:00
Verkehrsrot
4e1472caae
Merge pull request #513 from cyberman54/sdcard
add sdcard support to branch development
2019-12-28 17:16:31 +01:00
Verkehrsrot
04aa7e1d60 removed static at some functions 2019-12-25 23:21:31 +01:00
Verkehrsrot
86c3685f6c sdcard support (experimental) 2019-12-25 23:07:34 +01:00
Verkehrsrot
c65c32275e update ss_oled lib (experimental) 2019-12-21 15:18:42 +01:00
Verkehrsrot
12f00a9203
Merge pull request #506 from cyberman54/master
sync dev to master
2019-12-21 14:29:04 +01:00
Verkehrsrot
97b02d34b9 i2c functions moved from power.cpp to i2c.cpp 2019-12-21 14:27:33 +01:00
Cristiano José Sulzbach
e08bf4d64a Added support for Bosch BMP180 sensor 2019-12-08 09:58:12 -02:00
Verkehrsrot
39c68d7d7f new feature: rcmd 0x17 wifi sniffer on/off 2019-11-11 12:28:31 +01:00
Verkehrsrot
ba6fa5ee98 compile error user_request_network_time_callback 2019-10-24 19:14:56 +02:00
Verkehrsrot
3cbda10f40 LMIC key storage moved to event handler 2019-10-22 08:18:22 +02:00
Verkehrsrot
b786323036 fix join DR2 for TTN; RTC save FCnt in event 2019-10-22 07:16:04 +02:00
Verkehrsrot
221fde0026 deep sleep fixes 2019-10-20 20:47:03 +02:00
Verkehrsrot
bc034b1a67 added new reset logic; deep sleep fixes 2019-10-20 20:05:13 +02:00
Verkehrsrot
f3b3838e09 deep sleep, clock error rate, static callbacks 2019-10-19 21:14:04 +02:00
Verkehrsrot
f75cdd4f5c deep sleep (experimental) 2019-10-16 21:14:34 +02:00
Verkehrsrot
06814d3190 i2c release time increased, for AXP192 chip 2019-10-12 15:59:21 +02:00
Verkehrsrot
7e5d053ec5 lmic event msg display optimizations 2019-10-12 14:07:55 +02:00
Verkehrsrot
88e73e2eb8 Lora network setup + event handler elaborated 2019-10-09 20:07:16 +02:00
Verkehrsrot
01fb7c53b4 randomize time sync seq nr 2019-10-05 15:03:15 +02:00
Verkehrsrot
36d9b3dedb curve plotter fixes 2019-10-05 13:12:58 +02:00
Verkehrsrot
a518c1a5e5
Merge pull request #460 from cyberman54/ss_oled
New OLED driver
2019-10-04 16:10:03 +02:00
Verkehrsrot
c56c973534 curve plotter (experimental) 2019-10-04 15:47:33 +02:00
Marius Gripp
ba732012b9 move timesync seq_no into message body from port 2019-10-04 15:31:31 +02:00
Marius Gripp
f86bfaefb6 extract timezone from time sync answer and add to UTC timestamp 2019-10-04 13:06:59 +02:00
Verkehrsrot
0440e536dd scalefactor for curve plotter 2019-10-01 18:06:49 +02:00
Verkehrsrot
66af2b8c54 pax curve plotter (experimental) 2019-10-01 13:02:30 +02:00
Verkehrsrot
449d681c7b LEDmatrixdisplay.cpp/.h rename scrollfunction 2019-09-30 19:44:49 +02:00
Verkehrsrot
c93b0867a9 AXP192 low level I2C mutexing 2019-09-30 12:35:03 +02:00
Verkehrsrot
c6c455b922 QR display of DEVEUI (experimental) 2019-09-29 16:46:48 +02:00
Verkehrsrot
8cb5bbab54 removed productname 2019-09-27 17:57:19 +02:00
Verkehrsrot
0f9e2dfd63 new oled driver (experimental) 2019-09-27 12:47:00 +02:00
Verkehrsrot
7daa36366b v1.8.34 (power on/off features for T-BEAM V10) 2019-09-23 15:45:47 +02:00
Verkehrsrot
af9d2150bf display line6 code sanitized 2019-09-20 19:45:37 +02:00
Verkehrsrot
c3bad526a7 Changed Lora SF to Lora DR control 2019-09-20 13:22:45 +02:00
Verkehrsrot
cc248419ae optimize SF display 2019-09-20 09:51:33 +02:00
Verkehrsrot
d9c6153559 bugfix getBattLevel() (issue #444) 2019-09-20 09:04:24 +02:00
Verkehrsrot
c8531ca466 TTGO Beam v10 (AXP192) battery monitor enhanced 2019-09-18 22:38:39 +02:00
Verkehrsrot
ff6fce0a1d T-BEAM v1.0 ON/OFF button function added 2019-09-09 23:00:06 +02:00
Verkehrsrot
50c6ba2837 T-Beam V10 (AXP192 PMU) enhanced power functions 2019-09-09 21:45:19 +02:00
Verkehrsrot
56f1ed4b8e battery & power code sanitization 2019-09-07 23:10:53 +02:00
Verkehrsrot
a1b7c102d0 power.cpp added, i2cscan adapted 2019-09-07 19:52:25 +02:00
Verkehrsrot
76a79940b3 MAC command up/down evaluation 2019-09-07 14:52:18 +02:00
Verkehrsrot
8b12b7aee2 axp192 support added 2019-09-02 16:53:39 +02:00
Verkehrsrot
ac2f67e98f rcommand code sanitization 2019-08-31 18:37:36 +02:00
Verkehrsrot
1d2c79133f MAC command decoder (experimental) 2019-08-31 18:36:49 +02:00
Verkehrsrot
80a24f10ab introduced LMIC user events 2019-08-31 15:19:49 +02:00
Verkehrsrot
02326a1c7f lora_send code sanitization 2019-08-30 18:54:53 +02:00
Verkehrsrot
258e830470 move lmic os sendjob to new lora_send task 2019-08-29 10:13:47 +02:00
Verkehrsrot
829ab0ea05 bugfix message queuing to LMIC while LMIC is busy 2019-08-28 10:48:39 +02:00
Verkehrsrot
43cf6b7fe5 ledmatrix.cpp small code sanitization 2019-08-19 21:48:11 +02:00
Verkehrsrot
012bf545c4 ledmatrix: bugfix scrolling 2019-08-18 22:16:35 +02:00
Verkehrsrot
a4419ab6f0 LED matrix scroll function added 2019-08-18 16:47:28 +02:00
Verkehrsrot
b926d908b2 timekeeper/timesync: fixed dependencies 2019-08-13 22:40:33 +02:00
Oliver Brandmueller
3518c2660f
Update vendor_array.h with new vendor codes 2019-08-07 20:10:37 +02:00
Verkehrsrot
be208ab539 GPS timing fine tuning 2019-08-04 23:18:04 +02:00
Verkehrsrot
1efc9be6c3 GPS handling and timesync code refactored 2019-08-04 15:17:50 +02:00
cyberman54
7fa9269d0b GPS msec handling added (experimental) 2019-08-03 14:01:25 +02:00
Verkehrsrot
139738a14d timesync code sanitized 2019-08-03 12:27:24 +02:00
Verkehrsrot
bf70f2f9f2 removed spi & lora houskeeping functions 2019-08-03 11:35:16 +02:00
Verkehrsrot
5dcb3b315e Moved LMiC to dedicated task with raised prio 2019-08-02 21:53:05 +02:00
Verkehrsrot
85aa9655c6 BME task removed / do i2c masking via interrupt 2019-07-29 20:23:27 +02:00
Verkehrsrot
11cfa27c76 i2c locking for rtc & timesync streamlined 2019-07-29 14:43:37 +02:00
Verkehrsrot
cc9997c64b removed unused variable gps_pps_time 2019-07-29 10:29:44 +02:00
Verkehrsrot
57d0624fd0 removed GPS IRQ, since not really needed 2019-07-29 10:26:58 +02:00
Verkehrsrot
4973568546 GPS fixes & code sanitization 2019-07-28 23:51:24 +02:00
Gijs Noorlander
45b0bae945 Cleanup of packed payload encoder
- Cleanup of write*int functions
- Multiply pressure by 10 (decoder was already dividing by 10)
- Fix undefined behavior on intToBytes function.
2019-07-28 17:21:21 +02:00
cyberman54
3058973f66 payload.h: bugfix defines from paxcounter.conf 2019-07-27 15:29:08 +02:00
cyberman54
1f9e93cf39 Increased GPS altitude resolution, further fixes 2019-07-27 13:35:12 +02:00
cyberman54
8fdd83edf9 ota.h: code sanitization 2019-07-27 13:30:24 +02:00
Verkehrsrot
dc540e15b3 BOSCH BSEC update to v1.4.7.4 2019-07-26 12:11:23 +02:00
Verkehrsrot
b7b41968ab if482 correction factor fixed 2019-07-24 20:51:17 +02:00
Verkehrsrot
d35f1d97cd timesync i2c lock fixing 2019-07-24 12:37:02 +02:00
Verkehrsrot
4a2845a3f6 further fixes irq mask & i2c lock 2019-07-23 20:43:10 +02:00
Verkehrsrot
8869909720 further fixes in mutex lock & irq masking 2019-07-23 20:07:24 +02:00