26 Commits
Author SHA1 Message Date
xsider b65f274541 data_objects typo fixed 2026-07-20 11:37:19 +02:00
Martin Jäger 6cc505c5b2 Upgrade to Zephyr v4.4 2026-04-16 08:41:31 +02:00
Martin Jäger b59cede24f Switch to ThingSet SDK 2026-03-09 08:18:21 +01:00
Martin Jäger 167fc5d3ac Upgrade to Zephyr v4.3 and migrate boards
Also use new Zephyr CI environment and compile all boards.

Board migration script example:

python ../zephyr/scripts/utils/board_v1_to_v2.py --board-root . \
  -v libresolar -g libresolar -b pwm_2420_lus -s stm32l072xx
2026-03-08 06:25:56 +01:00
Martin Jäger 5622cb97e6 Upgrade to Zephyr v3.4 2023-12-24 15:15:49 +01:00
Martin Jäger af6784c11a Fix OLED compile error 2023-01-20 06:04:56 +01:00
Martin Jäger f5528b64b8 Improve data item names for mobile app 2023-01-19 13:40:32 +01:00
Martin Jäger 4573ca11a5 ThingSet serial: Fix tx buffer mutex for consecutive messages
If the device received a command before the previous one was processed,
it could get stalled inside the ISR, as the rx fifo was never read and
the interrupts kept firing, while processing (in lower priority thread)
cannot happen.
2023-01-15 08:44:05 +01:00
Martin Jäger 538d40002f Update ThingSet library and allow messages of 1 byte 2023-01-15 08:44:04 +01:00
Martin Jäger 88467118be Upgrade to Zephyr v3.2 2023-01-13 20:34:38 +01:00
Martin Jäger 0a043108d0 Upgrade to Zephyr v3.1 2022-09-28 00:16:16 +02:00
Martin Jäger 3c78dd0f0a Upgrade to Zephyr v3.0 2022-09-28 00:12:13 +02:00
Martin Jäger 4e52fd837f Update ThingSet library (new NVM handling) 2022-03-21 15:10:45 +01:00
Martin Jäger 0d07bcf055 Major update of ThingSet Data Object structure for v0.5
The structure has been changed to match the new ThingSet v0.5 spec which
is more suitable to be used in mobile phone apps because the data is
structured based on logical subsystems (Battery, Load) and not on data type
(conf, input, etc.) anymore.

This required some updates in the ThingSet library aswell. Especially the
update mechanism for configuration data had to be changed.

The data_objects_parser script is now able to extract the units itself,
reducing the commenting effort.

All IDs have been kept the same, so previously stored settings in charge
controllers NVM should be compatible.
2022-02-10 17:40:29 +01:00
Martin Jäger 0087114020 DC/DC: Split P&O algorithm into buck and boost function
The previous combined function was hard to read and understand. Now using
a dedicated function for both power flow directions.
2022-02-10 17:39:57 +01:00
Martin Jäger d670f8bd6a DC/DC: Fix startup mode check
The allowed mode of the DC/DC is fixed at compile-time (in setup.cpp).

The start conditions have to match this mode.
2022-02-10 15:35:03 +01:00
Martin Jäger 923d536ae2 DC/DC: Add output_hvs_enable/disable calls
Without these calls the functions introduced in 6316dcd are useless.

Remark: These functions are currently only used on a prototype for testing.
2022-02-08 18:43:12 +01:00
Martin Jäger b4272ce7de DC/DC: Fix HS MOSFET short detection
Previously, the first_time_detected variable was never
reset after the error was detected once.
2022-02-08 18:32:08 +01:00
Martin Jäger 5bdbecf19d Add Clang-Format file and apply it
The format tries to maintain the previously used Libre Solar firmware coding
style as much as possible.

Applying the format fixed some issues and re-ordered some parts of the code.
2022-01-26 13:56:31 +01:00
hogthrob 2359a96bbe Provide detailed log out for rejected battery configuration requests (#127)
It also gets rid of the duplication of code between the debug output
and the actual return value calculation by folding both into the same
loop.
2022-01-25 12:56:47 +01:00
Martin Jäger debb98e5a3 Fix CAN compilation error introduced by Zephyr PR 41531
Commit in Zephyr v2.7-branch: 8af83eac4f6c7afc0d201737da24d3cdc78657c5
2022-01-19 18:46:47 +01:00
Martin Jäger 77d49c5d56 Add PWM switch documentation and list of features 2021-12-18 08:03:31 +01:00
Martin Jäger 4568267288 Use Sphinx for documentation
This change makes the API documentation look much nicer.

Also build instructions were moved from README to docs.
2021-12-16 15:54:05 +01:00
Martin Jäger ce90f7710b Configure west with workspace outside this repo
This allows to re-use upstream Zephyr repository and modules.
2021-12-14 09:45:12 +01:00
Martin Jäger fd158f215c Configure OLED display as Zephyr module 2021-12-14 09:32:19 +01:00
Martin Jäger 8ab8ea244a Move to standard Zephyr T2 workspace structure (star topology)
https://docs.zephyrproject.org/latest/guides/west/workspaces.html

Previously, west manifest and CMake entry point were in zephyr subfolder
as required for PlatformIO. As PlatformIO support was dropped, we can
follow the default Zephyr folder structure more closely.

The application is built and flashed from app subfolder, where as unit
tests are run from tests subfolder.
2021-12-12 14:09:05 +01:00