Skip to content

Commit 06d3878

Browse files
committed
Minor release of foxBMS 2 (v1.6.0)
* foxBMS now supports the ADI ADES1830 AFE. * The default FreeRTOS behavior for foxBMS 2 is now to check for stack overflows. The BMS still tries to send a CAN message about the occurred problem. * The BMS tried to precharge a infinite times. This setting is now controlled by setting `BMS_PRECHARGE_TRIES` to a meaningful, finite number (needs to be defined by the user as part of the application setup) * The calculation of the string power has been fixed. * The SOX database entry has been split into SOC, SOH, and SOE to simplify adding further estimations. For a detailed list of changes, please refer to the documentation at https://iisb-foxbms.iisb.fraunhofer.de/foxbms/gen2/docs/html/v1.6.0/general/changelog.html.
1 parent 9eb6d1c commit 06d3878

File tree

1,095 files changed

+75359
-9736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,095 files changed

+75359
-9736
lines changed

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ tools/waf-sig*
1717
*.gz
1818
*.zip
1919
*.7z
20+
*.stats
21+
22+
# spelling
23+
dictionary.dic
24+
file.log*
25+
lex.txt
2026

2127
__pycache__
2228
.mypy_cache/
@@ -48,11 +54,14 @@ __pycache__
4854
*.~*
4955
*.~$*
5056

51-
**/foxbms-2_axivion_report.json
57+
**/foxbms-2_axivion_report*.json
58+
spa-artifacts/
5259

5360
*.exe
5461

5562
/races.txt
5663

5764
# CAN log files
5865
*.asc
66+
67+
*.tmp

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ keywords:
4646
- "BMS"
4747
message: "If the foxBMS project contributes to a project that leads to a scientific publication, please acknowledge this fact by citing."
4848
title: "foxBMS - The Most Advanced Open Source BMS Platform: foxBMS 2"
49-
version: "1.5.1"
50-
date-released: 2023-02-23
49+
version: "1.6.0"
50+
date-released: 2023-10-12

conf/bms/schema/slave.schema.json

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"ltc",
2525
"maxim",
2626
"nxp",
27-
"debug"
27+
"debug",
28+
"adi",
29+
"ti"
2830
]
2931
},
3032
"ic": {
@@ -111,6 +113,44 @@
111113
]
112114
}
113115
}
116+
},
117+
"else": {
118+
"if": {
119+
"properties": {
120+
"manufacturer": {
121+
"enum": [
122+
"adi"
123+
]
124+
}
125+
}
126+
},
127+
"then": {
128+
"properties": {
129+
"ic": {
130+
"enum": [
131+
"ades1830"
132+
]
133+
}
134+
}
135+
},
136+
"else": {
137+
"if": {
138+
"properties": {
139+
"manufacturer": {
140+
"enum": [
141+
"ti"
142+
]
143+
}
144+
}
145+
},
146+
"properties": {
147+
"ic": {
148+
"enum": [
149+
"dummy"
150+
]
151+
}
152+
}
153+
}
114154
}
115155
}
116156
}
@@ -185,7 +225,7 @@
185225
"properties": {
186226
"model": {
187227
"enum": [
188-
"ncu15xh103f6sxx"
228+
"ncxxxxh103"
189229
]
190230
}
191231
}

conf/env/paths_win32.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ C:\ti\ccs1200\ccs\utils\cygwin
55
C:\ti\ccs1200\ccs\utils\tiobj2bin
66
C:\ti\Hercules\HALCoGen\v04.07.01
77
C:\Program Files\LLVM\13.0.0\bin
8-
C:\Ruby\Ruby272-x64\bin
8+
C:\Ruby\Ruby3.1.3-x64\bin
99
C:\MinGW64\x86_64-8.1.0-release-posix-seh-rt_v6-rev0\mingw64\bin
1010
C:\Bauhaus\7.5.2\bin

conf/guidelines/rules.json

Lines changed: 48 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,45 @@
33
"7z",
44
"coverage",
55
"exe",
6-
"svg",
7-
"pyc",
8-
"png",
96
"gif",
107
"ico",
8+
"jpg",
119
"o",
12-
"vsdx",
10+
"png",
11+
"pptx",
12+
"pyc",
1313
"pyc",
14+
"stats",
15+
"svg",
1416
"svg",
1517
"tar",
1618
"tar.bz2",
1719
"tar.gz",
1820
"vsdx",
19-
"~vsdx",
20-
"zip"
21+
"vsdx",
22+
"zip",
23+
"~pptx",
24+
"~vsdx"
2125
],
2226
"global": [
2327
"**/**.log",
28+
"**/*.asc",
2429
"**/*~",
30+
"**/.lock-waf_*_build",
31+
"**/.vscode/**",
2532
"**/__pycache__/**",
2633
"**/foxbms-2_axivion_report.json",
27-
"**/*.asc",
28-
"**/.lock-waf_*_build",
34+
"**/foxbms_spa_report.json",
2935
".git/**",
3036
".mypy_cache/**",
31-
".vscode/**",
32-
"build/**",
3337
"build-tools-tests/**",
38+
"build/**",
3439
"conf/hcg/include/*",
3540
"conf/hcg/source/*",
3641
"docs/_ext/**",
3742
"foxbms/**",
3843
"libbuild/**",
44+
"spa-artifacts/**",
3945
"src/app/driver/afe/nxp/mc33775a/vendor/**",
4046
"src/app/driver/sbc/fs8x_driver/**",
4147
"src/os/freertos/**/*.asm",
@@ -45,32 +51,34 @@
4551
"src/os/freertos/GitHub-FreeRTOS-Kernel-Home.url",
4652
"src/os/freertos/History.txt",
4753
"src/os/freertos/LICENSE.md",
48-
"src/os/freertos/portable/memmang/ReadMe.url",
49-
"src/os/freertos/portable/readme.txt",
5054
"src/os/freertos/Quick_Start_Guide.url",
5155
"src/os/freertos/README.md",
56+
"src/os/freertos/portable/memmang/ReadMe.url",
57+
"src/os/freertos/portable/readme.txt",
5258
"src/os/safertos/**/*.asm",
5359
"src/os/safertos/**/*.c",
5460
"src/os/safertos/**/*.h",
5561
"tests/axivion/compiler-errata/ti-cgt-arm*/**",
5662
"tests/axivion/qualification-test/qualification-kit/**",
57-
"tests/unit/build/**",
5863
"tests/scripts/waf-core/general/**",
5964
"tests/scripts/waf-core/init/**",
6065
"tests/scripts/waf-core/install/**",
6166
"tests/scripts/waf-core/install_group/**",
6267
"tests/scripts/waf-core/preproc/**",
6368
"tests/scripts/waf-tools/f_guidelines/tests/**",
69+
"tests/unit/build/**",
6470
"tools/.waf3-**",
71+
"tools/dbc/third-party/**",
6572
"tools/vendor/**",
6673
"tools/waf",
67-
"tools/waf3-**",
68-
"tools/waf-verify-sig.py"
74+
"tools/waf-verify-sig.py",
75+
"tools/waf3-**"
6976
],
7077
"file_names": {
7178
"name": "GENERAL:001",
7279
"regex": "^[a-z0-9_\\-.]*$",
7380
"exclude": [
81+
"**/*.py1.stats",
7482
"**/*.~vsdx",
7583
"**/LICENSE.md",
7684
"**/README.md",
@@ -94,13 +102,18 @@
94102
"**/.clang-format",
95103
"**/.dummy",
96104
"**/.gitignore",
105+
"**/README.md",
97106
"**/__init__.py",
98107
"**/__main__.py",
99-
"**/README.md",
108+
"**/dir_exists",
109+
"**/misc.py",
100110
"**/wscript",
101111
"tests/axivion/addon-test/**/ok.c",
102-
"tests/axivion/addon-test/test_unique_filename/**",
103112
"tests/axivion/addon-test/test_*/**",
113+
"tests/axivion/addon-test/test_unique_filename/**",
114+
"tests/unit/axivion/axivion_config.json",
115+
"tests/unit/axivion/ci_config.json",
116+
"tests/unit/axivion/compiler_config.json",
104117
"tools/gui/LICENSE.md"
105118
]
106119
},
@@ -167,8 +180,8 @@
167180
"header": {
168181
"name": "C:002",
169182
"exclude": [
170-
"src/app/driver/sbc/fs8x_driver/**",
171-
"src/app/driver/afe/nxp/mc33775a/nxp_mc33775a-ll.*"
183+
"src/app/driver/afe/nxp/mc33775a/nxp_mc33775a-ll.*",
184+
"src/app/driver/sbc/fs8x_driver/**"
172185
],
173186
"text": [
174187
"/**",
@@ -282,8 +295,8 @@
282295
"source": {
283296
"exclude": [
284297
"conf/tpl/test_c.c",
285-
"docs/software/unit-tests/test_abc.c",
286298
"docs/developer-manual/style-guide/examples/c-006-test.c",
299+
"docs/software/unit-tests/test_abc.c",
287300
"src/app/driver/config/can_cfg.c",
288301
"src/app/engine/config/diag_cfg.c",
289302
"src/app/engine/config/sys_mon_cfg.c",
@@ -304,6 +317,14 @@
304317
"test_header": {
305318
"exclude": [
306319
"conf/tpl/c.h",
320+
"docs/developer-manual/style-guide/examples/c-005.h",
321+
"docs/developer-manual/style-guide/examples/c-006-source.h",
322+
"docs/developer-manual/style-guide/examples/c-007_abc.h",
323+
"docs/developer-manual/style-guide/examples/c-007_abc_cfg.h",
324+
"docs/developer-manual/style-guide/examples/c-008.h",
325+
"docs/developer-manual/style-guide/examples/c-011.h",
326+
"docs/developer-manual/style-guide/examples/c-013.h",
327+
"docs/developer-manual/style-guide/examples/c-015.h",
307328
"docs/developer-manual/style-guide/state-machine-example/state-machine.h",
308329
"docs/software/build-process/misc/libproject-example.h",
309330
"docs/software/unit-tests/abc.h",
@@ -312,6 +333,7 @@
312333
],
313334
"sections": [
314335
"/*========== Includes =======================================================*/",
336+
"/*========== Unit Testing Framework Directives ==============================*/",
315337
"/*========== Macros and Definitions =========================================*/"
316338
]
317339
},
@@ -352,10 +374,13 @@
352374
"docs/software/unit-tests/run_abc.c",
353375
"src/**",
354376
"tests/c-std/c-std-test.c",
355-
"tests/variants/lib-build/*"
377+
"tests/variants/lib-build/*",
378+
"tools/crc/crc-10_0x48f.c",
379+
"tools/crc/crc-15_0xc599.c"
356380
],
357381
"sections": [
358382
"/*========== Includes =======================================================*/",
383+
"/*========== Unit Testing Framework Directives ==============================*/",
359384
"/*========== Definitions and Implementations for Unit Test ==================*/",
360385
"/*========== Setup and Teardown =============================================*/",
361386
"/*========== Test Cases =====================================================*/"
@@ -510,7 +535,8 @@
510535
},
511536
"YAML": {
512537
"exclude": [
513-
"conf/env/conda_env_*.yaml"
538+
"conf/env/conda_env_*.yaml",
539+
"tests/hil/hil-env.yaml"
514540
],
515541
"files": [
516542
"**/*.dot",

conf/spa/.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ignore-patterns=
1616

1717
# Python code to execute, usually for sys.path manipulation such as
1818
# pygtk.require().
19-
init-hook='import sys; sys.path.extend(["tools/waf3-2.0.22-1241519b19b496207abef1f72bbf61c2", "tools/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2", "tools/gui"])'
19+
init-hook='import sys; sys.path.extend(["tools/waf3-2.0.22-1241519b19b496207abef1f72bbf61c2", "tools/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2", "tools/gui", "tests/hil"])'
2020

2121
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
2222
# number of processors available to use.

conf/spell/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Spelling Checking Configuration
2+
3+
## Setup
4+
5+
- Install aspell 0.60.8 or later
6+
- Install englisch dictionary
7+
- Install conda environment
8+
9+
## Usage
10+
11+
```bash
12+
$ # activate conda base environment
13+
$ conda activate pyspell-2-8-2
14+
$ cd path/to/foxbms-2
15+
$ pyspelling -c conf/spell/pyspell_cfg.yml
16+
```

0 commit comments

Comments
 (0)