How to test local authorization
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!
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.
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!
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.
Hi @c-jimenez , Remote Start Transaction is not working. please check this logs.