open-ocpp icon indicating copy to clipboard operation
open-ocpp copied to clipboard

How to test local authorization

Open kundantirex opened this issue 9 months ago • 4 comments

Hi,

I am working on an OCPP implementation and need to test local authorization with the Central Management System (CMS). how can i create test for offline mode.

Thank you!

kundantirex avatar Feb 28 '25 10:02 kundantirex

Hi,

If you want to test the local authorization for your specific charge point implementation:

  • Connect your charge point to your CSMS
  • Configure the local authorization (local list, cache, dedicated keys...)
  • Physically disconnect the charge point from the CSMS
  • Start a charge on your charge point

If you want to easily check the behavior of the stack for the local authorization, you can use https://github.com/c-jimenez/open-ocpp-simu instead of your real charge point implementation and to the above steps. This way, it will be easier for you to start charges and to disconnect network with the CSMS.

c-jimenez avatar Mar 05 '25 15:03 c-jimenez

Hi, thank you! Now I can authorize from the local list. But when we are disconnected from the internet, it does not update the CMS after the connection is re-established. Do we need to make any changes to the RequestFifoManager.cpp file?

Thank you!

kundantirex avatar Mar 13 '25 05:03 kundantirex

Hi,

The stack should automatically do the following actions when the connection has been lost with the CSMS:

  • Store the last notified connector statuses
  • Store all transaction related messages (Start/Stopp transaction, meter values) and critical security events

Then when the connection with the CSMS is up again, it shall automatically to the following actions:

  • Notifiy the connector statuses if it has changed since the last notification to the CSMS or if the disconnection was long enough
  • Send all the stored message respecting their creation order

So you don't have anything to do on your own. If you still have a problem with offline messages, please provide the logs of your test as well as the database managed by the stack.

c-jimenez avatar Mar 14 '25 06:03 c-jimenez

Hi @c-jimenez , Remote Start Transaction is not working. please check this logs.

remoteStartTestlog.txt

Image

kundantirex avatar Mar 27 '25 10:03 kundantirex