GithubHelp home page GithubHelp logo

muhammedalmaz / ma-ocpp-simulator Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 5.0 1.89 MB

OCPP 1.6 Charging Point Simulator

License: MIT License

JavaScript 1.63% HTML 0.31% Dockerfile 0.25% TypeScript 65.21% SCSS 32.60%
charge-point-simulator evcharger ocpp ocpp16 ocpp16j ocpp201 ocpp-simulator

ma-ocpp-simulator's Introduction

Charge Point Simulator

It is a charge point simulator for testing back-end applications. This client is supporting OCPP 1.6 protocol.

Running on Docker

First of all clone github project. And open root folder run sh codes.

# clone project
git clone [email protected]:MuhammedAlmaz/ma-ocpp-simulator.git

# build docker for creating image of application
docker build --tag "ma-ocpp-simulator" .

# Create container which image you created before
docker run -p 2024:80 -d ma-ocpp-simulator

Finnaly, you can open http://localhost:2024 on your browser and the front-end application should running.

Supported Core Functions

  • BootNotification
  • Authorize
  • StatusNotification
  • UnlockConnector
  • Heartbeat
  • MeterValues
  • RemoteStartTransaction
  • RemoteStopTransaction
  • StartTransaction
  • StopTransaction
  • ChangeAvailability
  • ChangeConfiguration
  • GetConfiguration

Planed Adding Features

  • SmartCharging
  • Reservation
  • Multiple Brand Charging Points (Siemens, Vestel, Trugo, Tesla etc.)
  • Store settings and variables on database with back-end application
  • Multiple Car Settings (Tesla, TOGG, Xiaomi, Porsche etc.)
  • Error Handling like OverVoltage, WeakSignal, HighTemperature etc.
  • OCPP 2.0.1 Functions

License

ma-ocpp-simulator is open-sourced software licensed under the MIT license

ma-ocpp-simulator's People

Contributors

ercanvs avatar hhuseyinpay avatar mmzeynalli avatar muhammedalmaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ma-ocpp-simulator's Issues

[fix] Fix 'value' type on startSendMeterValues() payload

When StartTransaction runs, my backend server throws the following error:

ERROR:ocpp:Error while handling request '<Call - unique_id=7a987bfa-9774-4d2b-928e-9a72afd748d2, action=MeterValues, payload={'connectorId': 1, 'transactionId': 1, 'meterValue': [{'timestamp': '2024-04-25T17:41:04.844Z', 'sampledValue': [{'unit': 'Wh', 'value': 1736.9196833333333, 'location': 'Outlet', 'measurand': 'Energy.Active.Import.Register'}, {'unit': 'W', 'value': '180000', 'location': 'Outlet', 'measurand': 'Power.Active.Import'}, {'unit': 'W', 'value': '180000', 'location': 'Outlet', 'measurand': 'Power.Offered'}, {'unit': 'Percent', 'value': '17.7212', 'location': 'EV', 'measurand': 'SoC'}]}]}>'

Failed validating 'type' in schema['properties']['meterValue']['items']['properties']['sampledValue']['items']['properties']['value']:
    {'type': 'string'}

On instance['meterValue'][0]['sampledValue'][0]['value']:
    1736.9196833333333

It does not stop the Transaction, it's just on backend. I converted the 'value' type to string with toString() and it worked just fine

branch name change not reflected in instructions

Dear Muhammed,

By the looks of it, you changed the rep name from ma-charge-point-simulator to ma-ocpp-simulator. The instructions have not been updated and the suggested git and docker commands don't work. Took me a while to figure out.

Thanks for your contribution.

[config] Struggling to test StartTransaction

Hey! I can't test StartTransaction and simulate a charging scenario. Connector keeps on "Preparing" status. Perhaps I missed something. Am I doing something wrong or is it bug?

Captura de tela de 2024-04-25 10-05-01
Captura de tela de 2024-04-25 10-05-07

Thank you!

StartTransaction with idTag

Thanks for making this public! I've noticed that the start transaction with an ID Tag on connector 2 is starting the session on connector 1.

[2,"d9541e0d-92c9-4c92-88a6-bb8e9220b129","StatusNotification",{"connectorId":2,"errorCode":"NoError","status":"Preparing"}]
[3,"d9541e0d-92c9-4c92-88a6-bb8e9220b129",{"status":"Accepted"}]
[2,"0afa62c7-7145-4ba8-9fe2-0808fafa50a0","Authorize",{"idTag":"1001001"}]
[3,"0afa62c7-7145-4ba8-9fe2-0808fafa50a0",{"idTagInfo":{"status":"Accepted"}}]
[2,"27732646-4dd3-4fca-9f73-22bcf537ce77","StartTransaction",{"idTag":"1001001","meterStart":0,"connectorId":2,"timestamp":"2024-05-10T04:46:00.386Z"}]
[3,"27732646-4dd3-4fca-9f73-22bcf537ce77",{"transactionId":14,"idTagInfo":{"status":"Accepted"}}]
[2,"c51ea7a4-f07c-4987-a09e-4ce7687b971a","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"Charging"}]
[3,"c51ea7a4-f07c-4987-a09e-4ce7687b971a",{"status":"Accepted"}]

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.