mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
update dumps
This commit is contained in:
4491
dump_entities.csv
4491
dump_entities.csv
File diff suppressed because it is too large
Load Diff
@@ -107,7 +107,7 @@ telegram_type_id,name,is_fetched
|
|||||||
0x02A2,RC300Curves,
|
0x02A2,RC300Curves,
|
||||||
0x02A5,RC300Monitor,
|
0x02A5,RC300Monitor,
|
||||||
0x02A6,RC300Monitor,
|
0x02A6,RC300Monitor,
|
||||||
0x02A7,CRFMonitor,
|
0x02A7,RC300Monitor,
|
||||||
0x02A8,RC300Monitor,
|
0x02A8,RC300Monitor,
|
||||||
0x02A9,RC300Monitor,
|
0x02A9,RC300Monitor,
|
||||||
0x02AA,RC300Monitor,
|
0x02AA,RC300Monitor,
|
||||||
|
|||||||
|
@@ -1,6 +1,5 @@
|
|||||||
import fileinput
|
import fileinput
|
||||||
import csv
|
import csv
|
||||||
import sys
|
|
||||||
from itertools import groupby
|
from itertools import groupby
|
||||||
|
|
||||||
# static data
|
# static data
|
||||||
|
|||||||
@@ -3,4 +3,3 @@
|
|||||||
make clean
|
make clean
|
||||||
make ARGS=-DEMSESP_STANDALONE
|
make ARGS=-DEMSESP_STANDALONE
|
||||||
echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py | python3 ./scripts/generate-modbus-register-doc.py
|
echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py | python3 ./scripts/generate-modbus-register-doc.py
|
||||||
|
|
||||||
|
|||||||
@@ -3,28 +3,28 @@
|
|||||||
# Update modbus parameters from entity definitions.
|
# Update modbus parameters from entity definitions.
|
||||||
# This script generates c++ code for the modbus parameter definitions.
|
# This script generates c++ code for the modbus parameter definitions.
|
||||||
#
|
#
|
||||||
# Run this script from the EMS-ESP32 root directory with the command `sh ./scripts/update_modbus_registers.sh`.
|
# Run this script from the EMS-ESP32 root directory with the command `bash ./scripts/update_modbus_registers.sh`.
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
--reset)
|
--reset)
|
||||||
RESET=YES
|
RESET=YES
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--force)
|
--force)
|
||||||
FORCE=YES
|
FORCE=YES
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
*|-*|--*)
|
* | -* | --*)
|
||||||
echo "Unknown option $1"
|
echo "Unknown option $1"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$RESET" = "YES" ]; then
|
if [ "$RESET" = "YES" ]; then
|
||||||
if [ "$FORCE" != "YES" ]; then
|
if [ "$FORCE" != "YES" ]; then
|
||||||
read -p "Are you sure you want to reset all modbus entity parameters, potentially generating new register mappings? WARNING: This might introduce breaking changes for end users. [yes/no] " CONFIRMATION
|
read -p "Are you sure you want to reset all modbus entity parameters, potentially generating new register mappings? WARNING: This might introduce breaking changes for end users. [yes/no] " CONFIRMATION
|
||||||
if [ "$CONFIRMATION" != "yes" ]; then
|
if [ "$CONFIRMATION" != "yes" ]; then
|
||||||
echo "Aborted."
|
echo "Aborted."
|
||||||
exit 1
|
exit 1
|
||||||
@@ -60,6 +60,5 @@ fi
|
|||||||
|
|
||||||
make clean
|
make clean
|
||||||
make ARGS=-DEMSESP_STANDALONE
|
make ARGS=-DEMSESP_STANDALONE
|
||||||
echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py | python3 ./scripts/update_modbus_registers.py > ./src/modbus_entity_parameters.hpp
|
echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py | python3 ./scripts/update_modbus_registers.py >./src/modbus_entity_parameters.hpp
|
||||||
echo "Modbus entity parameters written to ./src/modbus_entity_parameters.hpp."
|
echo "Modbus entity parameters written to ./src/modbus_entity_parameters.hpp."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user