cd /usr/local/src
pi@wal:/usr/local/src $ ls -l
-rw-r--r-- 1 pi staff 40021399 Okt 23 15:23 simpleevse.jar
pi@wal:/usr/local/src $ java -jar simpleevse.jar
Usage
SimpleEvSe: 0.0.1
usage: java SimpleEvSe
-a (--readall) : read all
read values of all registers
-d (--debug) : debug
create additional debug output if this switch is used
-g (--gui) : graphical user interface
show the graphical user interface
-h (--help) : help
show this usage
-j (--jmod2) : jmod2
use jmod2 communication library
-l (--list) : listserial
list the available serial ports
-p (--port) WERT : serialPort
the serial Port to use
-r (--read) WERT : read
read value for the given register
-s (--server) : web server
start the webserver
-t (--timeOut) N : timeOut
the serial Port timeout in msecs to apply
-v (--version) : showVersion
show current version if this switch is used
-vb (--verbose) : verbose
show descriptions and numbers
-w (--write) WERT : write
write value to the given register
pi@wal:/usr/local/src $ java -jar simpleevse.jar -a -p /dev/ttyUSB0
SetChargeCurrent= 32
ChargeCurrent= 0
VehicleState= 1
MaximumCurrent= 32
StopCharging= 0
FirmwareRevision= 7
DefaultCurrent= 32
ModbusActivate= 1
LowestANCurrent= 5
DigitalOrAnalog= 1
SaveValuesOnPowerDown= 0
StopLoadViaButton= 1
Reserved2006= 0
PP-Recognition= 0
Current1= 6
Current2= 10
Current3= 16
Current4= 25
Current5= 32
Current6= 48
Current7= 63
Current8= 80
pi@wal:/usr/local/src $ java -jar simpleevse.jar -s
Okt 23, 2017 3:32:12 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFORMATION: Scanning for root resource and provider classes in the packages:
com.bitplan.simpleevse.resources
com.bitplan.rest.providers
Okt 23, 2017 3:32:20 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFORMATION: Root resource classes found:
class com.bitplan.simpleevse.resources.SimpleEvseResource
Okt 23, 2017 3:32:20 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFORMATION: Provider classes found:
class com.bitplan.rest.providers.JsonProvider
Okt 23, 2017 3:32:21 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFORMATION: Initiating Jersey application, version 'Jersey: 1.19.3 10/24/2016 03:43 PM'
Okt 23, 2017 3:32:23 PM com.bitplan.rest.RestServerImpl addHttpHandler
INFORMATION: adding classpath httphandler /static/->/
Okt 23, 2017 3:32:23 PM org.glassfish.grizzly.http.server.NetworkListener start
INFORMATION: Started listener bound to [0.0.0.0:8102]
Okt 23, 2017 3:32:23 PM org.glassfish.grizzly.http.server.HttpServer start
INFORMATION: [HttpServer] Started.
Okt 23, 2017 3:32:23 PM com.bitplan.rest.RestServerImpl startWebServer
INFORMATION: starting server for URL: http://0.0.0.0:8102
http://wal:8102/charge/control/write/SetChargeCurrent/7
{
"ref": 1000,
"name": "SetChargeCurrent",
"description": "Ladestrom einstellen\nÜber dieses Register können Sie den gewünschten Ladestrom einstellen. (6-80A).",
"writeAble": true,
"value": 7
}
http://wal:8102/charge/control/write/StopCharging/0
{
"ref": 1004,
"name": "StopCharging",
"description": "Laden beenden\n1: Laden sofort beenden 0: default/start charging",
"writeAble": true,
"value": 0
}
http://wal:8102/charge/control/read/FirmwareRevision
{
"ref": 1005,
"name": "FirmwareRevision",
"description": "Firmware Revision",
"writeAble": true,
"value": 7
}
http://wal:8102/charge/control/read/all