forked from snaptec/openWB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Konfiguration for Flexible EVU Kits moduleconfig and updateConfig.sh with the new varaibles. * New main.sh for evukitflex calls the changed flex modules * bugfix moduleconfigevu * bugfix config add evuflexversion * bugfix * bugfix
- Loading branch information
Showing
3 changed files
with
87 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
OPENWBBASEDIR=$(cd `dirname $0`/../../ && pwd) | ||
RAMDISKDIR="${OPENWBBASEDIR}/ramdisk" | ||
MODULEDIR=$(cd `dirname $0` && pwd) | ||
#DMOD="EVU" | ||
DMOD="MAIN" | ||
Debug=$debug | ||
|
||
#For development only | ||
#Debug=1 | ||
|
||
if [ ${DMOD} == "MAIN" ]; then | ||
MYLOGFILE="${RAMDISKDIR}/openWB.log" | ||
else | ||
MYLOGFILE="${RAMDISKDIR}/evu_json.log" | ||
fi | ||
|
||
openwbDebugLog ${DMOD} 2 "EVU KIT Version: ${evukitversion}" | ||
openwbDebugLog ${DMOD} 2 "EVU IP: ${evuflexip}" | ||
openwbDebugLog ${DMOD} 2 "EVU Port : ${evuflexport}" | ||
openwbDebugLog ${DMOD} 2 "EVU ID : ${evuflexid}" | ||
|
||
sudo python3 ${OPENWBBASEDIR}/modules/bezug_ethmpm3pm/test.py ${evuflexip} ${evuflexport} ${evuflexid} >>${MYLOGFILE} 2>&1 | ||
ret=$? | ||
#if (( evukitversion == 1 )); then | ||
#sudo python3 ${OPENWBBASEDIR}/modules/bezug_ethmpm3pm/readlovato.py ${evuflexip} ${evuflexport} ${evuflexid} >>${MYLOGFILE) 2>&1 | ||
#ret=$? | ||
#elif (( evukitversion == 2 )); then | ||
#sudo python3 ${OPENWBBASEDIR}/modules/bezug_ethmpm3pm/readsdm.py ${evuflexip} ${evuflexport} ${evuflexid} >>${MYLOGFILE) 2>&1 | ||
#ret=$? | ||
#else | ||
#sudo python3 ${OPENWBBASEDIR}/modules/bezug_ethmpm3pm/readmpm3pm.py ${evuflexip} ${evuflexport} ${evuflexid} >>${MYLOGFILE) 2>&1 | ||
#ret=$? | ||
#fi | ||
openwbDebugLog ${DMOD} 2 "EVU RET: ${ret}" | ||
|
||
wattbezug=$(<${RAMDISKDIR}/wattbezug) | ||
echo $wattbezug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters