Skip to content

goRaspy/ocpp-charger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCPP charger simulator Build Status

Actor based representation of ocpp chargers. Can be run standalone against Central System as ordinary charger.

It now also supports OCPP-J (OCPP over WebSocket with JSON) but it does not support receiving incoming requests this way, and does a blocking wait on the responses from the central system. This happens because we implemented the OCPP-SOAP API on top of the JSON API. If the package were refactored to use the JSON API natively it could be more functional and performant.

Setup

  1. Add this repository to your pom.xml:

    <repository>
        <id>thenewmotion</id>
        <name>The New Motion Repository</name>
        <url>http://nexus.thenewmotion.com/content/repositories/releases-public</url>
    </repository>
  2. Add dependency to your pom.xml:

    <dependency>
        <groupId>com.thenewmotion.chargenetwork</groupId>
        <artifactId>ocpp-charger_2.10</artifactId>
        <version>2.2-SNAPSHOT</version>
    </dependency>

Start the charger

Compile & run with sbt run

Options

See the source file src/main/scala/com/thenewmotion/chargenetwork/ocpp/charger/ChargerApp.scala for the different options.

Options can be passed using the a -Dexec.args="..." option to Maven, like this:

sbt "run --connection-type soap http://localhost:8080/ocpp/"

or

sbt "run --connection-type json http://localhost:8080/ocppws/"

About

Simple ocpp charger simulator

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%