Authorization · Video 9 of 19

OCPP local authorization list and authorization cache explained

Choose between the authorization cache and a local authorization list so cards keep working when a charger is offline.

Length: 4:35

In this video

Send a list with SendLocalList, full or differential, with the right version, and clear the cache with ClearCache.

Chapters

Transcript

Local authorization list and authorization cache. Learn how a charger decides on a card when it cannot reach Powerfill. Picture the residents' garage at Talvara Residences. Down there, the charger's mobile signal comes and goes. Online, each tap is sent to Powerfill as an Authorize request, and Powerfill answers. Offline, nobody answers. So a charger can keep two lists of its own: the authorization cache and the local authorization list.

The cache fills by itself. The charger remembers the answers it got for the cards used there. The local list is different. You send it from Powerfill on purpose, with the cards you choose. The cache only knows cards that were used at this charger before. A new resident's card is not in it. It also keeps old answers. A card you blocked today may still be accepted from the cache while the charger is offline.

The Clear Cache command empties the cache, so the charger asks again about each card. The local list stays as it is. Each entry in the local list is a card with its state. The list also carries a version number, so you can tell which list the charger holds. A full update replaces the whole list. A differential update only adds, changes or removes the cards you name. Each new list needs a higher version than the one on the charger.

Otherwise a differential update is refused. A full update sends the list from your OCPP tags and replaces what the charger held. The charger only knows its list. Offline, it accepts every card the list calls accepted. So give each charger only the cards that should charge there: on an empty list, a differential update with that site's cards. When your cards change, send a new list. A blocked card is no longer offered in the picker, so a differential update cannot remove it.

Empty the charger's list first: a full update with Send Empty List. Then send the cards that remain. Three settings on the charger decide how the two are used. You can read them with the Get Configuration command. LocalAuthListEnabled turns the local list on, and AuthorizationCacheEnabled turns the cache on. LocalAuthorizeOffline lets the charger accept cards from them while it is offline.

Which one should you rely on? The cache needs no work, and it covers regular drivers who charged there before. The local list covers every card you choose, even on its first visit. But you keep it up to date. For a garage with a weak signal, send a local list. Here is how, on the garage charger. Open All Chargers, search for the garage charger by its ID, and open it. It is the one in Building B garage.

Open the Operations tab. The charger must be online for these commands. Under Configuration, click Get Local List Version. The dialog explains the answer: zero means the list is empty, and minus one means the charger does not support a local list. Click Get Version. The charger answers zero: its list is empty. Click Send Local List. Choose Differential Update and search for the residents' cards.

Only the cards you pick are sent. Blocked and expired tags are not offered here. Pick the cards of the residents who park in this garage. The version is one, higher than the zero on the charger. Click Send Local List. The charger accepts the list. A new resident moves in. Open the same dialog and choose a differential update again. Search for the new resident's card and pick it.

Send it with version one again, and the charger refuses it: Local list version mismatch. Raise the version to two. Send again. This time the charger accepts it. Under Maintenance, click Clear Cache. The dialog says it plainly: the next time each card is used, the charger asks the server again. Click Clear Cache. Ask for the list version once more. It is still two: clearing the cache left the list alone.

You can now choose between the cache and a local list, and send a list with the right version.