Skip to content

RFID Card support

steff393 edited this page Feb 11, 2023 · 5 revisions

RFID is not supported in wbecLan and wbecPremium!

Enable

  • Open the LittleFS file editor using http://x.x.x.x/edit
  • Create a new file "rfid.txt" (enter the filename -> click 'Create' -> modify content -> click 'Save')
  • Enter the allowed RFID tags line by line into the file:
0cb6a781 User A
12345abc User B  
da3fa326 User C  

Only the first 8 characters are evaluated, the rest of the line is ignored (you can use it as comment, name, etc.).
Only the first 10 lines are evaluated, so only 10 cards/chips can be used.
The file will only be read after a reset!

Read card IDs

When a card was detected, then its ID will be shown in http://x.x.x.x/json in the section rfid.

  "rfid": {
    "enabled": true,
    "release": false,
    "lastId": "0cb6a781"
  },

Release

When a card was detected and its ID is found in the file, then wbec will allow charging by setting the allowed current to 16A (respectively the value configured by S1, currMax):
Still to be defined: Which value to set? 16A? Old value? Interaction with other systems like openWB, App, ...?

Charging is not released when:

  • no valid card was detected
  • vehicle is not plugged within 60s
  • vehicle was unplugged (typically after charging) In these cases, wbec will set the allowed current to 0A.

Remark

RFID needs some GPIOs, so whenever RFID is enabled (i.e. RFID.txt exists) it's no longer possible to switch GPIOs via http://x.x.x.x/gpio.
RFID is currently implemented only for 1 box (BusID = 1).