From 96afe70ee93d843e97abc91fb9803473934d0ef7 Mon Sep 17 00:00:00 2001 From: Torsten Oltmanns Date: Thu, 18 Jan 2024 11:44:36 +0800 Subject: [PATCH] adjusted scripts and initial config files --- scripts/config.properties.mine | 4 ++-- scripts/log4j2.xml.mine | 2 +- scripts/pom.xml.mine | 16 ++++++++-------- scripts/startBmsToInverter.sh | 6 ++++++ 4 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 scripts/startBmsToInverter.sh diff --git a/scripts/config.properties.mine b/scripts/config.properties.mine index d088f86c..b594edeb 100644 --- a/scripts/config.properties.mine +++ b/scripts/config.properties.mine @@ -31,9 +31,9 @@ bms.portProtocol=CAN # The port name/device to use to communicate to the BMS #bms.portLocator=com3 -bms.portLocator=can0 #bms.portLocator=/dev/ttyS0 #bms.portLocator=/dev/ttyUSB0 +bms.portLocator=can0 #### Or for multiple BMSes connected to multiple ports #### #bms.0.portProtocol=CAN @@ -45,7 +45,7 @@ bms.portLocator=can0 #etc... # Interval to request BMS data (in seconds) -bms.pollInterval=60 +bms.pollInterval=1 ################################################################### diff --git a/scripts/log4j2.xml.mine b/scripts/log4j2.xml.mine index adaff6c0..5e9cebfc 100644 --- a/scripts/log4j2.xml.mine +++ b/scripts/log4j2.xml.mine @@ -22,7 +22,7 @@ - + diff --git a/scripts/pom.xml.mine b/scripts/pom.xml.mine index 2917638f..75759bf5 100644 --- a/scripts/pom.xml.mine +++ b/scripts/pom.xml.mine @@ -91,18 +91,18 @@ - - - - - - - com.ai-republic.bms-to-inverter - bms-daly-rs485 + bms-daly-can ${project.version} + + + + + + + diff --git a/scripts/startBmsToInverter.sh b/scripts/startBmsToInverter.sh new file mode 100644 index 00000000..f5a09c9d --- /dev/null +++ b/scripts/startBmsToInverter.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +### start the application +echo Starting the application... +cd ~/final/bms-to-inverter-main-0.0.1-SNAPSHOT +java -jar bms-to-inverter-main-0.0.1-SNAPSHOT.jar