Coder Social home page Coder Social logo

Comments (5)

matth-x avatar matth-x commented on July 22, 2024

Hi @demirschmid61,

To answer your questions,

  1. Yes, I would say using the same idTag for both connectors is an acceptable solution. I have never seen a backend system which requires unique idTags per connector. To test it with SteVe, it's necessary to increase the maximum concurrent transactions for the freevend idTag.
  2. If you set Cst_PreBootTransaction to true, then no OCPP connection is necessary in freevend mode. However, the transaction queue will get full at some point and by default, MicroOcpp will reject further offline transactions. To override that behavior, set Cst_SilentOfflineTransactions to true, then the next transactions will become "silent" when the queue is full and won't occupy any space.

from microocpp.

demirschmid61 avatar demirschmid61 commented on July 22, 2024

@matth-x Thank you very much for your reply.
I'll implement this and let you know the outcome.

from microocpp.

demirschmid61 avatar demirschmid61 commented on July 22, 2024

@matth-x

The following keys are configured for the charger.
Cst_FreeVendActive = True
Cst_PreBootTransactions = True
Cst_SilentOfflineTransactions = True
Cst_FreeVendIdTag = "abcde"

My observation:

  1. The charging transaction is perfectly executed and only recent 4 transactions are saved in the flash

Problem Faced:
1. After some (e.g.: 12) transactions, if somehow the charger gets reset (Manually or remotely), the charger is not starting the transaction in free vending mode, provided the charger is not connected to the internet

Please have a look at the logs free vending working perfectly:
`
------------------------For start transaction in free vending------------------------------------------
14:17:19.870 > [MO] info (Connector.cpp:430): begin FreeVend Tx using idTag abcde
14:17:20.562 > [MO] info (StatusNotification.cpp:50): New status: Preparing (connectorId 1)
14:17:20.731 > [MO] info (Connector.cpp:290): Session mngt: trigger StartTransaction
14:17:20.940 > [MO] info (StartTransaction.cpp:48): StartTransaction initiated
14:17:21.002 > [MO] info (StatusNotification.cpp:50): New status: Charging (connectorId 1)

------------------------For stop transaction in free vending------------------------------------------
14:19:52.250 > [MO] info (Connector.cpp:353): Session mngt: trigger StopTransaction
14:19:52.675 > [MO] info (StopTransaction.cpp:50): StopTransaction initiated
14:19:52.683 > [MO] info (RequestQueueStorageStrategy.cpp:162): Replace cached operation (cache full): StartTransaction
14:19:52.707 > [MO] info (StatusNotification.cpp:50): New status: Finishing (connectorId 1)
14:19:52.713 > [MO] info (RequestQueueStorageStrategy.cpp:162): Replace cached operation (cache full): StatusNotification
14:20:01.306 > [MO] info (StatusNotification.cpp:50): New status: Available (connectorId 1)
14:20:01.314 > [MO] info (RequestQueueStorageStrategy.cpp:162): Replace cached operation (cache full): MeterValues
14:20:02.211 > [MO] info (main.cpp:1994): MeterValues reset for connector 1
`

When the charger gets reset the freevending transactions does not started.

Please acknowledge on my observation, is it correct or not.

Am I missing something in the configuration keys?

from microocpp.

matth-x avatar matth-x commented on July 22, 2024

Hi @demirschmid61, this could actually be related to a regression bug in v1.0. Can you upgrade to v1.1?

Everything on your side looks correct. Cst_PreBootTransactions and Cst_SilentOfflineTransactions are both set correctly and Freevend is also properly set up.

from microocpp.

demirschmid61 avatar demirschmid61 commented on July 22, 2024

@matth-x Thank you very much,

The free vending mode for both connectors perfectly worked for me and regarding pure offline free vending mode, I'll upgrade the library version to 1.1 and let you know the observations.

from microocpp.

Related Issues (20)

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.