Simple Report
Jump to navigation
Jump to search
see https://github.com/BITPlan/can4eve/issues/4
Example run script to create a report on MacOSX/Linux/Raspberry::
#!/bin/bash
# 2017-04-02
dev=/dev/ttyUSB0
os=`uname`
case $os in
Darwin)
#dev=/dev/tty.usbserial-113010822821
dev=/dev/cu.usbserial-113010822821
#dev=/dev/cu.usbserial
;;
esac
#
# show usage
#
usage() {
echo "$0 [-d|-h]"
echo " -h|--help : show this usage"
echo " -d|--debug : switch on debugging"
#exit 1
}
# commandline option
option=$1
# optionally show usage
case $option in
-h|--help)
usage
options="--help"
;;
# switch on debugging
# see https://sdqweb.ipd.kit.edu/wiki/Remote_Debugging_mit_Eclipse
-d|--debug) options="--debug"
esac
soption="-F";
case $os in
Darwin) soption="-f";;
esac
#stty $soption $dev 38400&
#stty $soption $dev 115200
stty $soption $dev 230400&
#stty $soption $dev 460800&
java -jar target/com.bitplan.obdii-0.0.1-jar-with-dependencies.jar $options --conn $dev --display Swing --report today.csv
Sample Report
date;2017-06-21 20:13:16
id;ELM327 v1.3a
description;SCANTOOL.NET LLC
firmwareId;STN1130 v4.0.1
hardwareId;OBDLink SX r4.2
Battery Capacity;45,5 Ah
VIN;VF31NZKYZHU800769 - year: 2017/Peugeot/Mizushima
# of Cells;80
Battery Capacity;45,5 Ah
Key;❌◎
Range;114 km
Accelerator; 0 %