Difference between revisions of "Simple EVSE"

From BITPlan can4eve Wiki
Jump to navigation Jump to search
 
(33 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
* http://www.goingelectric.de/forum/ladeequipment/simple-evse-charge-controler-von-ev-power-t7556-100.html
 
* http://www.goingelectric.de/forum/ladeequipment/simple-evse-charge-controler-von-ev-power-t7556-100.html
 
= Parts =
 
= Parts =
* https://www.elektrofahrzeug-umbau.de/shop/ladetechnik/
+
# [https://www.elektrofahrzeug-umbau.de/shop/ladetechnik/ SimpleEVSE Wallbox] <img src='https://image.jimcdn.com/app/cms/image/transf/dimension=1820x1280:format=gif/path/s9f797ea9ad7dc140/image/i3b98618ecb7a3048/version/1468768366/image.gif' width='150'>
* https://www.bauhaus.info/sicherungsautomaten/abb-install-schuetz24a-4-schliesser/p/20409784?q=installationssch%C3%BCtz
+
# [https://www.bauhaus.info/sicherungsautomaten/abb-install-schuetz24a-4-schliesser/p/20409784?q=installationssch%C3%BCtz 24 Ampere 4 Fach Schütz] <img src='https://media.bahag.com/assets/resp_product/13/15/1315833_22404234.jpg' width='250px'>
 +
# [http://www.ebay.de/itm/Sicherungskasten-Kleinverteiler-IP40-aufputz-Unterverteilung-LUX-PLUS-/291240725404 Kleinverteiler Sicherungskasten] http://i.ebayimg.com/images/g/-kgAAOSwQItUJWkW/s-l500.jpg
 +
# [https://www.reichelt.de//index.html?ARTICLE=164977 Raspberry PI 3] https://cdn-reichelt.de/bilder/web/artikel_ws/A300/RASP_03_01.jpg
 +
# [https://www.reichelt.de/index.html?ARTICLE=160286 Raspberry PI Hutschienen-Gehäuse] https://cdn-reichelt.de/bilder/web/artikel_ws/C700/RPI_CASE_DINRAIL_01.jpg
 +
# [https://www.reichelt.de//index.html?ARTICLE=56051 ggf. Endhalter für Hutschine] https://cdn-reichelt.de/bilder/web/artikel_ws/C153/CLIPFIX35-5.jpg
 +
# [https://www.reichelt.de/index.html?ARTICLE=148095 5 Volt Netzteil Hutschiene] https://cdn-reichelt.de/bilder/web/artikel_ws/D400/DR_15_01.jpg
 +
# [http://bg-etech.de/os/product_info.php/products_id/429 Stromzähler]<img src='http://www.bg-etech.de/_shop/WG10/DRS155DE_web1.jpg' width='200px'>
 +
# [https://www.amazon.de/Demarkt-Adapter-RS232-PL2303HX-Konverter/dp/B013GBXZTM TTL - Uart / USB Converter]
 +
# [https://www.amazon.de/CSL-Seriell-Adapterkabel-Konverter-u/dp/B072M4NB5C RS232 - USB / USB Converter]
 +
 
 
= Manuals =
 
= Manuals =
 
* https://www.elektrofahrzeug-umbau.de/anleitungen/bluetooth-modul/
 
* https://www.elektrofahrzeug-umbau.de/anleitungen/bluetooth-modul/
Line 13: Line 22:
 
https://github.com/ed-chemnitz/qmodbus/
 
https://github.com/ed-chemnitz/qmodbus/
 
== Installation ==
 
== Installation ==
 +
=== Prerequisites ===
 +
<source lang='bash'>
 +
sudo apt-get install qt4-dev-tools
 +
</source>
 +
If you have no superuser rights prepend <nowiki>sudo</nowiki> before the commands below or type
 +
<source lang='bash'>
 +
sudo -s
 +
</source>
 +
before you start
 +
==== Debug tools ====
 +
<source lang='bash'>
 +
sudo apt-get install x11-apps
 +
</source>
 +
 +
=== qmodbus installations ===
 
<source lang='bash'>
 
<source lang='bash'>
 
cd /usr/local/src
 
cd /usr/local/src
Line 19: Line 43:
 
make
 
make
 
</source>
 
</source>
 +
 
== Start ==
 
== Start ==
 
<source lang='bash'>
 
<source lang='bash'>
 
ssh -Y <computer with QModBus>
 
ssh -Y <computer with QModBus>
 
cd /usr/local/scr/qmodbus
 
cd /usr/local/scr/qmodbus
QModBus&
+
./QModBus&
 
</source>
 
</source>
 +
 
== Example result ==
 
== Example result ==
 
[[File:registers2017-07-18.png|400px]]
 
[[File:registers2017-07-18.png|400px]]
= Software =
 
  
 +
= Volkszähler =
 +
* https://wiki.volkszaehler.org/
 +
 +
== S0 Pulse auslesen ==
 +
* https://wiki.volkszaehler.org/hardware/controllers/s0-an-rs232
 +
 +
= EVSE Software =
 +
To get this software simply contact us via http://web.bitplan.com/kontakt/
 
== Usage ==
 
== Usage ==
 
<source lang='bash'>
 
<source lang='bash'>
Line 73: Line 106:
 
<source lang='bash'>
 
<source lang='bash'>
 
java -jar simpleevse.jar  --port ttyUSB0 --readall
 
java -jar simpleevse.jar  --port ttyUSB0 --readall
INFO: Frame sent: 010303E8000645B8
 
INFO: Frame recv: 01030C0008000800030014000000051DD0
 
INFO: Frame sent: 010307D000084481
 
INFO: Frame recv: 01031000200001000000010000000000000000CB50
 
INFO: Frame sent: 010307DA00086483
 
INFO: Frame recv: 010310FB0600000000000000000000000000006128
 
 
SetChargeCurrent=  8
 
SetChargeCurrent=  8
 
ChargeCurrent=  8
 
ChargeCurrent=  8
Line 105: Line 132:
 
<source lang='bash'>
 
<source lang='bash'>
 
java -jar simpleevse.jar  --port ttyUSB0 --readall --verbose
 
java -jar simpleevse.jar  --port ttyUSB0 --readall --verbose
INFO: Frame sent: 010303E8000645B8
 
INFO: Frame recv: 01030C0008000800030014000000051DD0
 
INFO: Frame sent: 010307D000084481
 
INFO: Frame recv: 01031000200001000000010000000000000000CB50
 
INFO: Frame sent: 010307DA00086483
 
INFO: Frame recv: 010310FB0600000000000000000000000000006128
 
 
1000 (    SetChargeCurrent)=  8  
 
1000 (    SetChargeCurrent)=  8  
 
Ladestrom einstellen
 
Ladestrom einstellen
Line 192: Line 213:
 
Stromwert 8 (default 25A)
 
Stromwert 8 (default 25A)
 
</source>
 
</source>
 +
 
== read a single register ==
 
== read a single register ==
 
<source lang='bash'>
 
<source lang='bash'>
Line 204: Line 226:
 
Über dieses Register können Sie den gewünschten Ladestrom einstellen. (6-80A).
 
Über dieses Register können Sie den gewünschten Ladestrom einstellen. (6-80A).
 
</source>
 
</source>
 +
same but verbose and with debug information
 +
<source lang='bash'>
 +
java -jar simpleevse.jar  --port ttyUSB0 --read SetChargeCurrent --verbose --debug
 +
SimpleEvSe: 0.0.1
 +
 +
INFO: Frame sent: 010303E8000645B8
 +
INFO: Frame recv: 01030C0008000800030014000000051DD0
 +
INFO: Frame sent: 010307D000084481
 +
INFO: Frame recv: 01031000200001000000010000000000000000CB50
 +
INFO: Frame sent: 010307DA00086483
 +
INFO: Frame recv: 010310FB0600000000000000000000000000006128
 +
1000 (    SetChargeCurrent)=  8
 +
Ladestrom einstellen
 +
Über dieses Register können Sie den gewünschten Ladestrom einstellen. (6-80A).
 +
</source>
 +
== write a single register ==
 +
<source lang='bash'>
 +
java -jar simpleevse.jar  --write SetChargeCurrent=8 --port ttyUSB0
 +
SetChargeCurrent=  8
 +
</source>
 +
same but verbose
 +
<source lang='bash'>
 +
java -jar simpleevse.jar  --write SetChargeCurrent=8 --port ttyUSB0 --verbose
 +
1000 (    SetChargeCurrent)=  8
 +
Ladestrom einstellen
 +
Über dieses Register können Sie den gewünschten Ladestrom einstellen. (6-80A).
 +
</source>
 +
== start a local graphical user interface ==
 +
<source lang='bash'>
 +
java -jar simpleevse.jar  --port ttyUSB0 --gui
 +
to edit a value click the corresponding cell in the value column and press enter
 +
</source>
 +
== start a web server ==
 +
<source lang='bash'>
 +
java -jar simpleevse.ja --port ttyUSB0 --server --debug
 +
SimpleEvSe: 0.0.1
 +
 +
Jul 29, 2017 6:40:46 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
 +
Jul 29, 2017 6:40:54 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
 +
INFORMATION: Root resource classes found:
 +
  class com.bitplan.simpleevse.resources.SimpleEvseResource
 +
Jul 29, 2017 6:40:54 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
 +
INFORMATION: Provider classes found:
 +
  class com.bitplan.rest.providers.JsonProvider
 +
Jul 29, 2017 6:40:55 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 +
INFORMATION: Initiating Jersey application, version 'Jersey: 1.19.3 10/24/2016 03:43 PM'
 +
Jul 29, 2017 6:40:57 PM com.bitplan.rest.RestServerImpl addHttpHandler
 +
INFORMATION: adding classpath httphandler /static/->/
 +
Jul 29, 2017 6:40:57 PM org.glassfish.grizzly.http.server.NetworkListener start
 +
INFORMATION: Started listener bound to [0.0.0.0:8102]
 +
Jul 29, 2017 6:40:57 PM org.glassfish.grizzly.http.server.HttpServer start
 +
INFORMATION: [HttpServer] Started.
 +
Jul 29, 2017 6:40:57 PM com.bitplan.rest.RestServerImpl startWebServer
 +
INFORMATION: starting server for URL: http://0.0.0.0:8102
 +
</source>
 +
Now you can use your browser or curl to issue restful commands
 +
 +
Valid commands are e.g.:
 +
 +
*    http://localhost:8102/charge/control/write/StopCharging/1
 +
*    http://localhost:8102/charge/control/write/StopCharging/0
 +
*    http://localhost:8102/charge/control/write/SetChargeCurrent/6
 +
*    http://localhost:8102/charge/control/read/SetChargeCurrent
 +
*    http://localhost:8102/charge/control/read/all
 +
 
<headertabs/>
 
<headertabs/>

Latest revision as of 12:33, 7 October 2017