Commit Graph
100 Commits
Author SHA1 Message Date
EmpirePhoenix 7c128a27eb Refactor OTA update handling and improve error reporting.
Added a CRC check to firmware uploads, streamlined OTA partition management, and replaced detailed slot states with a single unified state representation. Improved consistency in variable formatting, error handling, and code readability across multiple modules.
2026-03-17 22:16:31 +01:00
EmpirePhoenix a069888341 reboot after 5 times error code without powercycle 2026-03-17 19:59:55 +01:00
EmpirePhoenix 86f29a336c Merge branch 'develop' of ssh://git.mannheim.ccc.de:1337/C3MA/PlantCtrl into develop 2026-03-15 20:02:05 +01:00
EmpirePhoenix c61a586595 new ota logic 2026-03-15 19:57:19 +01:00
EmpirePhoenix 32db326266 update: use Instant to dynamically adjust loop timing and maintain consistent 50ms interval 2026-03-12 21:12:14 +01:00
EmpirePhoenix a4d764c4fe remove: eliminate MoistureSensorState::Disabled, simplify moisture sensor processing, refactor pump logic, and clean up redundant/unnecessary code 2026-03-12 21:12:14 +01:00
EmpirePhoenix 5c78495bd5 update: initialize all pump expander pins to low before setting output mode 2026-03-12 21:12:14 +01:00
EmpirePhoenix 07ab69075a bms intro 2026-03-10 22:38:06 +01:00
EmpirePhoenix 125b3efad3 update: reduce pause duration in blinking sequence from 2 seconds to 400 milliseconds 2026-02-27 23:17:25 +01:00
EmpirePhoenix 9b21d505e6 allow single sensor detection, get rid of sensor disabled hardware state == nomessage 2026-02-27 23:12:40 +01:00
EmpirePhoenix c575fc2c36 add: extend CAN task with collision detection and beacon handling, refactor error blinking logic, and optimize GPIO initialization for modularity 2026-02-27 22:12:52 +01:00
EmpirePhoenix 3128e32fb2 sensor case 2026-02-20 22:20:57 +01:00
EmpirePhoenix 6bba9b1f27 update: adjust sensor STEP file to reflect updated geometries and placement adjustments, correct timestamp, and align with KiCad output changes 2026-02-13 23:24:32 +01:00
EmpirePhoenix c909b33af0 remove: comment out unused plant visibility logic, update moisture sensor processing, and enhance plant ID handling in TWAI communication 2026-02-13 23:24:21 +01:00
EmpirePhoenix 979f982565 add: implement CAN communication channels, create can_task for RX/TX handling, enhance error detection, and reorganize configuration validation logic 2026-02-13 21:53:48 +01:00
EmpirePhoenix e6f8e34f7d remove: delete initial_hal implementation, update moisture sensor logic to handle optional raw values, optimize TWAI management, and improve CAN data handling 2026-02-01 03:57:36 +01:00
EmpirePhoenix ce10d084f8 update: refactor and enhance CAN sensor initialization, reorganize GPIO assignments, improve error detection and logging, and streamline TWAI handling 2026-01-31 00:06:42 +01:00
EmpirePhoenix 355388aa62 update: refactor and enhance CAN sensor initialization, reorganize GPIO assignments, improve error detection and logging, and streamline TWAI handling 2026-01-30 22:01:37 +01:00
EmpirePhoenix 0c0b62e2ed update: improve documentation and restructure code for modular hardware integration, add CAN communication to HAL, and update KiCad layouts 2026-01-23 22:02:14 +01:00
EmpirePhoenix 1de40085fb add: implement UART-based serial configuration handling and improve error handling in charge indicator updates 2026-01-05 19:57:57 +01:00
EmpirePhoenix 8fc2a89503 refactor: simplify battery monitoring logic, remove unused fields, and replace BQ34Z100G1 integration with WCH I2C implementation 2026-01-04 23:59:14 +01:00
EmpirePhoenix 350820741a update: adjust sensor programmer hardware files, add new footprint, and reassign nets 2026-01-04 18:42:09 +01:00
EmpirePhoenix d33b05e1d7 remove HAL implementation files for v3 and v4, and the build script 2026-01-04 18:41:38 +01:00
EmpirePhoenix 412a26390a add hardware files for sensor programmer 2025-12-25 22:22:30 +01:00
EmpirePhoenix af275abf15 minify pcb for can 2025-12-22 18:46:56 +01:00
EmpirePhoenix ca2fd8a5e1 improved sensor canbus code 2025-12-06 04:01:16 +01:00
EmpirePhoenix 6ffbf710d3 slight adjustments 2025-11-19 12:20:26 +01:00
EmpirePhoenix f6767d1827 refactor: organize dependencies in Cargo.toml for clarity and consistency 2025-11-13 21:33:01 +01:00
EmpirePhoenix 3db71eea45 Merge branch 'goodby-espidf' of ssh://git.mannheim.ccc.de:1337/C3MA/PlantCtrl into goodby-espidf 2025-11-13 20:08:45 +01:00
EmpirePhoenix 576b81bb66 vcs config 2025-11-13 20:08:19 +01:00
EmpirePhoenix 8cd9e08e93 shared flash test 2025-11-02 02:30:21 +01:00
EmpirePhoenix 0519ca3efe read and write to nal 2025-10-31 23:39:10 +01:00
EmpirePhoenix f366aace7f esp-hal release wip 2025-10-31 23:22:40 +01:00
EmpirePhoenix 8b0734d029 config for sensor 2025-10-31 14:01:43 +01:00
EmpirePhoenix cafe1b264e refactor: unify moisture handling, update config structure, and add peer dependencies 2025-10-23 22:44:44 +02:00
EmpirePhoenix a446f3ace2 sensor and esp and canable call all communicate with each other. 2025-10-18 00:58:12 +02:00
EmpirePhoenix ea608dfa6a cleanup 2025-10-16 20:10:00 +02:00
EmpirePhoenix 5137fd2baf can sensor start 2025-10-16 18:48:18 +02:00
EmpirePhoenix 4cfda300a3 versions 2025-10-15 02:47:31 +02:00
EmpirePhoenix 90d5a0f2a2 test pin remapping 2025-10-15 02:36:47 +02:00
EmpirePhoenix f6f8829cf5 cleanups 2025-10-15 02:14:49 +02:00
EmpirePhoenix 45e948636b switch to bulk measurements 2025-10-10 19:40:57 +02:00
EmpirePhoenix 083573de4a remove old stuff 2025-10-08 20:44:03 +02:00
EmpirePhoenix e5c5f31112 make async can useable 2025-10-08 19:48:13 +02:00
EmpirePhoenix 7f3910bcd0 sensor sweep tester 2025-10-07 21:50:33 +02:00
EmpirePhoenix 712e8c8b8f cleanups 2025-10-06 16:44:46 +02:00
EmpirePhoenix 4ba68182e5 start of plantsensor 2025-10-06 13:18:37 +02:00
EmpirePhoenix a3cdd92af8 fix ota abort/invalid switching 2025-10-06 02:43:37 +02:00
EmpirePhoenix 894be7c373 fix some ota stuff 2025-10-04 03:05:11 +02:00
EmpirePhoenix 0ddf6a6886 stuff 2025-10-04 01:24:00 +02:00
EmpirePhoenix 27b18df78e ota is back 2025-10-01 21:56:16 +02:00
EmpirePhoenix 9c6dcc465e canbus sensor stub and pcnt impl 2025-10-01 00:36:15 +02:00
EmpirePhoenix cf58486cf5 we should be feature compatible with main version now! 2025-09-30 22:37:45 +02:00
EmpirePhoenix cfe23c8a09 mqtt via mcutie 2025-09-29 01:00:11 +02:00
EmpirePhoenix 3d18b0dbf6 split webserver into submodules 2025-09-28 19:08:43 +02:00
EmpirePhoenix 7ebc147f51 v3 wip 2025-09-28 13:42:30 +02:00
EmpirePhoenix f0bda32d7a use rom linked functions for pin keeping 2025-09-26 23:32:41 +02:00
EmpirePhoenix 76f59b093d enable deepsleep and gpio1 + timer wake 2025-09-26 22:07:48 +02:00
EmpirePhoenix 7fc8d0c882 sta config mode 2025-09-26 01:13:08 +02:00
EmpirePhoenix 6d5bb5b966 sntp and wifi sta mode working 2025-09-26 00:44:40 +02:00
EmpirePhoenix 336961f0a0 not working wip of station mode 2025-09-25 22:32:10 +02:00
EmpirePhoenix e20b474dfd bring selftest online, bring tz online, fix set_config/get_config race 2025-09-24 22:29:58 +02:00
EmpirePhoenix 5b009f50e5 tanksensor and rtc sync 2025-09-23 22:59:08 +02:00
EmpirePhoenix d010c5d12a get more functions online 2025-09-23 20:51:59 +02:00
EmpirePhoenix b594a02870 fix progress display 2025-09-23 00:43:19 +02:00
EmpirePhoenix 1f3349c348 add pump expander 2025-09-23 00:26:05 +02:00
EmpirePhoenix 5b0e2b6797 i2c working, rtc working, eeprom working 2025-09-22 23:44:33 +02:00
EmpirePhoenix 1791f463b7 remove anyhow 2025-09-22 01:49:25 +02:00
EmpirePhoenix c94f5bdb45 get log to work, make time accessible 2025-09-20 11:31:51 +02:00
EmpirePhoenix 584d6df2d0 file up & download and delete 2025-09-18 01:39:32 +02:00
EmpirePhoenix cd63e76469 set read config initial somewhat ready 2025-09-17 03:50:21 +02:00
EmpirePhoenix 4c54edbcea littlefs2 impl stuff 2025-09-17 01:36:53 +02:00
EmpirePhoenix 8b938e7687 small adjustments 2025-09-16 22:41:45 +02:00
EmpirePhoenix 1c84cd00da rework wifi controller share 2025-09-16 02:24:03 +02:00
EmpirePhoenix 1397f5d775 keep ota around for alter queries to it 2025-09-16 01:41:38 +02:00
EmpirePhoenix 65f6670ca4 adda lot of basic webserver back 2025-09-15 01:21:50 +02:00
EmpirePhoenix 049a9d027c use ssid 2025-09-14 13:50:46 +02:00
EmpirePhoenix 4aa25c687b minimal startup running 2025-09-14 13:19:30 +02:00
EmpirePhoenix b3cc313139 initial webserver stub running 2025-09-14 05:29:23 +02:00
EmpirePhoenix be3c4a5095 startup and ota state detection working, now wifi_ap next 2025-09-13 20:56:11 +02:00
EmpirePhoenix 4160202cdc more changes and linking 2025-09-13 02:47:53 +02:00
EmpirePhoenix 9de85b6e37 it's alive 2025-09-13 01:39:47 +02:00
EmpirePhoenix 79087c9353 more async migration 2025-09-12 16:30:35 +02:00
EmpirePhoenix 47ad4c70de Merge branch 'can' into develop 2025-09-03 19:08:55 +02:00
EmpirePhoenix c4aa3a1450 1.3 baseplane 2025-08-29 21:11:04 +02:00
EmpirePhoenix f0d89417b6 Merge branch 'premerge' into develop 2025-08-29 21:09:20 +02:00
EmpirePhoenix a8e17cda3b wip min 2025-08-29 17:14:15 +02:00
EmpirePhoenix a38d704498 new case and can sensor board 2025-08-25 10:15:36 +02:00
EmpirePhoenix 50b2e994ca can prepare stuff 2025-08-14 22:10:53 +02:00
EmpirePhoenix 7a7f000743 add missing sensor port labels 2025-08-08 23:24:05 +02:00
EmpirePhoenix d650358bab Add flowsensor prototype, add canbus to backplane 2025-07-27 13:38:53 +02:00
EmpirePhoenix 9f113adf7e v4 case 2025-07-26 17:52:19 +02:00
EmpirePhoenix 735f836458 fix unit being wrong for solar display 2025-07-02 19:11:36 +02:00
EmpirePhoenix f02d935f40 hide unused html elements based on config test1 2025-06-27 21:23:18 +02:00
EmpirePhoenix cc4e9efffd v4.0 backplane 1.1 2025-06-26 22:38:03 +02:00
EmpirePhoenix 5d91daf23d add pump current configuration 2025-06-26 02:39:32 +02:00
EmpirePhoenix 577c38d026 allow mppt module to fail during startup without aborting 2025-06-25 01:38:54 +02:00
EmpirePhoenix 6b711e29fc extract rtc module, extract tank module, fix backupview refresh, switch to embedded storage for eeprom 2025-06-25 01:18:36 +02:00
EmpirePhoenix 5fb8705d9a split rtc module out to reduce repreated exactly same code 2025-06-24 20:59:12 +02:00
EmpirePhoenix e57e87af3f fix backplane usb placement, use uncritial pins for high during flash/boot 2025-06-23 23:19:36 +02:00