Simple Report
Revision as of 20:01, 21 June 2017 by Wf (talk | contribs) (→Sample Report for {{Link|target=OBDLink LX}})
see https://github.com/BITPlan/can4eve/issues/4
how to get a simple csv report
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 %
Sample Report / raspberry / OBDLink lx
Prepare your OBDLink LX to be forwarded via port 7000 on localhost. Then run:
java -jar target/com.bitplan.obdii-0.0.1-jar-with-dependencies.jar --host localhost --port 7000 --display Swing --report today.csv -d
result
date;2017-06-21 20:49:42
id;ELM327 v1.3a
description;SCANTOOL.NET LLC
firmwareId;STN1155 v4.0.0
hardwareId;OBDLink LX BT r1.2
Battery Capacity;45,5 Ah
Battery Capacity;45,5 Ah
Key;❌◎
Range;122 km