question

gilemon avatar image
gilemon asked

EV Charging Station API or remote access

Is there any information about an API or a remote access so that the/some parameters can be updated programmatically?

I tried connecting by ssh using the admin credentials, but it seems like a very limited shell that just displays some "File system content".

I also listened to the POST request when calling the settingsSave method but the request is encrypted.

I'm looking in particular to be able to modify the scheduler using an external program.

ev charging stationapissh
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
nickdb avatar image
nickdb answered ·

There are nodered nodes for pulling and pushing settings/data

screenshot-2023-04-16-at-125216.png


5 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

nickdb avatar image nickdb ♦♦ commented ·

1681642855615.png

modbus register

0 Likes 0 ·
1681642855615.png (47.7 KiB)
Lucian Popescu (Victron Energy Staff) avatar image Lucian Popescu (Victron Energy Staff) ♦♦ nickdb ♦♦ commented ·
More parameters are available if connecting directly to the charging station, have a look at my post below
0 Likes 0 ·
andreas-siebenmorgen avatar image andreas-siebenmorgen Lucian Popescu (Victron Energy Staff) ♦♦ commented ·

Hi Lucian,

just for my understanding:

- When EVCS is in off grid mode

- And backup battery will start draining (because solar power drops) and cannot deliver enough power to supply car charging and backup battery charging at the same time, then a timer starts and EVCS will stop charging.

But afterwards backup battery starts charging again and after a timer EVCS starts charging again (and stops again)...


Result is EVCS does: Timer 40s - START - timer 65s - STOP - timer 40s - START - timer 65s - STOP ..... and so on. (I've modified timers using Modbus)

HOW can I tell my EVCS NOT to STOP charging even if my backup battery starts draining (until SoC treshold is reached)?

Because I thougt this paramert is exactly for that reason available:

1682504602612.png

BTW: I'm not connected to the grid, there is a generator (Phoenix) connected to AC in, but if I disconnect the generator the behavior is exacly the same!


0 Likes 0 ·
1682504602612.png (9.5 KiB)
Lucian Popescu (Victron Energy Staff) avatar image Lucian Popescu (Victron Energy Staff) ♦♦ andreas-siebenmorgen commented ·
That parameter is for manual mode. So you can't configure it not to stop, automatic mode is designed to use only PV power. We will think about this and maybe add a parameter to allow discharging the battery
0 Likes 0 ·
andreas-siebenmorgen avatar image andreas-siebenmorgen Lucian Popescu (Victron Energy Staff) ♦♦ commented ·

Ok, i understand.

It would be really great if this will be possilble very soon, because this on/off behaviour is for sure not really good for my car.

And I am sure I'm not the only one begging for this feature ;-)

1 Like 1 ·
Lucian Popescu (Victron Energy Staff) avatar image
Lucian Popescu (Victron Energy Staff) answered ·

Over Modbus TCP you can modify lots of parameters. For example, you can keep the scheduled logic outside the device, and just star/stop it when necessary. Have fun! :)

Unit-id: 1





Address Description Type Range Default Access Notes
5000 Product ID uint16 0 to 65535 - R 0xc024 or 0xc025 or 0xc026 - const
5001
string
- R 6 registers, 12 characters
5007 FW version H uint16 0 to 65535 - R HH: major number (8bit)
5008 FW version L uint16 0 to 65535 - R MM: minor number(8bit), LL: revision number(8bit)
5009 Charge mode uint16 0 to 1 0 R/W 0 - manual, 1 - auto, 2 - scheduled
5010 Start/stop charging uint16 0 to 1 - R/W 0 - stop, 1 - start
5011 L1 power used uint16 0 to 65335 - R W
5012 L2 power used uint16 0 to 65335 - R W
5013 L3 power used uint16 0 to 65335 - R W
5014 Total power uint16 0 to 65335 - R W
5015 Charger status uint16 0 - 23 - R 0 - disconnected,
1 - connected,
2 - charging,
3 - charged,
4 - waiting for sun,
5 - waiting for RFID,
6 - waiting for start,
7 - low SOC,
8 - ground test error,
9 - welded contacts test error,
10 - CP input test error (shorted)
11 - Residual current detected
12 - Undervoltage detected
13 - Overvoltage detected
14 - Overheating detected
15 - Reserved
16 - Reserved
17 - Reserved
19 - Reserved
20 - Charging limit
21 - start charging
22 - switching to 3 phase
23 - switching to 1 phase
5016 Charging current uint16 6 to 32 6 R/W A (for manual mode)
5017 Max current uint16 6 to 32 10 R/W A
5018 Charging current actual uint16 (0 to 32)*10 - R A*10 (actual value of current)
5019 Total charging time H uint16 0 to 65535 - R s
5020 Total charging time L uint16 0 to 65535 - R s
5021 Total charging power uint16 0 to 65535 - R kWh*100
5022 Total charging cost uint16 0 to 65535 - R €*100
5025 CP voltage uint16 0 to 1200 - R V*100
5026 Charger position uint16 0 to 1 0 R/W 0 - Inverter Ac Out, 1 - Inverter Ac Input
5027 Device name string
- R/W UTF-8 encoded string, 22 registers, 44 bytes
5049 Charger autostart uint16 0 to 1 1 R/W 0 - autostart disabled, 1 - autostart enabled
5050 Control via display uint16 0 to 1 1 R/W 0 - control disabled, 1 - control enabled
5051 Display active backlight uint16 1 to 100 100 R/W %
5052 Display idle backlight uint16 1 to 100 7 R/W %
5053 Display active timeout uint16 1 to 65535 120 R/W s
5054 Contactor active when charged uint16 0 to 1 0 R/W 0 - contactor disabled, 1 - contactor enabled
5055 Manual mode phase uint16 0 to 1 1 R/W 0 - 3Phase, 1 - Single Phase
5056 Auto mode phase uint16 0 to 2 1 R/W 0 - 3Phase, 1 - Single Phase, 2 - Single+3Phase
5057 Power for 3phase uint16 1 to 65535 4800 R/W W
5058 Power for single phase uint16 1 to 65535 4300 R/W W
5059 Phase switching timeout uint16 1 to 65535 60 R/W s
5060 CP Calibration command uint16 1 to 4 - R/W 1 - calibration start
2 - car is connected
3 - reserved
4 - calibration abort
5061 CP Calibration status uint16 0 to 4 - R 0 - idle
1 - in progress
2 - successfully
3 - failed
4 - aborted
5062 Min current uint16 6 to 31 6 R/W A
5063 Power calibration offset uint16 60 - 140 100 R/W From 0.6 to 1.4 multiplied by 100
5064 EVCS reset uint16 1 - R/W 1 - reset command for EVCS
5065 Auto mode type uint16 0 to 1 0 R/W 0 - Feed in, 1 - Battery powered
5066 Backup battery SOC for start charging in Battery powered uint16 1 to 100 90 R/W %
5067 Backup battery min SOC to allow charging if OFF Grid uint16 1 to 100 20 R/W %
5068 Backup battery emulation uint16 0 to 1 0 R/W 0 - disabled, 1 - enabled
5069 'Feed in'. Start delay uint16 1 to 65535 30 R/W s
5070 'Feed in'. Stop delay uint16 1 to 65535 60 R/W s
5071 'Feed in'. Single phase. Grid power for start int16 -32768 to +32767 -500 R/W W
5072 'Feed in'. Multi phase. Grid power for start int16 -32768 to +32767 -1400 R/W W
5073 'Feed in'. Grid power threshold for increase int16 -32768 to +32767 -250 R/W W
5074 'Feed in'. Grid power threshold for decrease int16 -32768 to +32767 250 R/W W
5075 'Feed in'. Backup battery discharging power threshold int16 -32768 to +32767 -100 R/W W
5076 'Feed in'. Current step uint16 1 to 65535 2 R/W A*10
5077 'Feed in'. Time step uint16 1 to 65535 1000 R/W ms
5078 'Battery powered'. Start delay uint16 1 to 65535 30 R/W s
5079 'Battery powered'. Stop delay uint16 1 to 65535 60 R/W s
5080 'Battery powered'. Start abort delay uint16 1 to 65535 5 R/W s
5081 'Battery powered'. BKPB balance power uint16 0 to 65535 500 R/W W
5082 'Battery powered'. BKPB balance SOC max uint16 1 - 100 98 R/W %
5083 'Battery powered'. Available sun power threshold for start uint16 0 to 65535 100 R/W W
5084 'Battery powered'. Grid power threshold for start uint16 0 to 65535 25 R/W W
5085 'Battery powered'. BKPB power threshold for decrease uint16 1 to 65535 250 R/W W
5086 'Battery powered'. Grid power threshold for decrease uint16 1 to 65535 250 R/W W
5087 'Battery powered'. Discharging detect timeout uint16 1 to 65535 7 R/W s
5088 'Battery powered'. Next try timeout for increase uint16 1 to 65535 45 R/W s
5089 'Battery powered'. Time step uint16 1 to 65535 15 R/W s
5090 'Battery powered'. Current step uint16 1 to 65535 10 R/W A*10
7 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

andreas-siebenmorgen avatar image andreas-siebenmorgen commented ·

Is there an updated list available?

I also could read some values 5028/5029/5030 etc. which are not in the above list.

And some ranges and values do not match...

5000 -16347 49189 0xC025 Response ok
5001 20808 20808 0x5148 Response ok
5002 12850 12850 0x3232 Response ok
5003 14641 14641 0x3931 Response ok
5004 19802 19802 0x4D5A Response ok
5005 22871 22871 0x5957 Response ok
5006 65 65 0x0041 Response ok
5007 1 1 0x0001 Response ok
5008 9727 9727 0x25FF Response ok
5009 1 1 0x0001 Response ok
5010 0 0 0x0000 Response ok
5011 0 0 0x0000 Response ok
5012 0 0 0x0000 Response ok
5013 0 0 0x0000 Response ok
5014 0 0 0x0000 Response ok
5015 4 4 0x0004 Response ok
5016 8 8 0x0008 Response ok
5017 15 15 0x000F Response ok
5018 0 0 0x0000 Response ok
5019 0 0 0x0000 Response ok
5020 6057 6057 0x17A9 Response ok
5021 382 382 0x017E Response ok
5022 46 46 0x002E Response ok
5023 0 0 0x0000 Response ok
5024 0 0 0x0000 Response ok
5025 784 784 0x0310 Response ok
5026 0 0 0x0000 Response ok
5027 24919 24919 0x6157 Response ok
5028 27756 27756 0x6C6C Response ok
5029 28514 28514 0x6F62 Response ok
5030 120 120 0x0078 Response ok
5031 0 0 0x0000 Response ok
5032 0 0 0x0000 Response ok
5033 0 0 0x0000 Response ok
5034 0 0 0x0000 Response ok
5035 0 0 0x0000 Response ok
5036 0 0 0x0000 Response ok
5037 0 0 0x0000 Response ok
5038 0 0 0x0000 Response ok
5039 0 0 0x0000 Response ok
5040 0 0 0x0000 Response ok
5041 0 0 0x0000 Response ok
5042 0 0 0x0000 Response ok
5043 0 0 0x0000 Response ok
5044 0 0 0x0000 Response ok
5045 0 0 0x0000 Response ok
5046 0 0 0x0000 Response ok
5047 0 0 0x0000 Response ok
5048 0 0 0x0000 Response ok
5049 1 1 0x0001 Response ok
5050 1 1 0x0001 Response ok
5051 50 50 0x0032 Response ok
5052 5 5 0x0005 Response ok
5053 120 120 0x0078 Response ok
5054 1 1 0x0001 Response ok
5055 -1 65535 0xFFFF Response ok
5056 -1 65535 0xFFFF Response ok
5057 -1 65535 0xFFFF Response ok
5058 -1 65535 0xFFFF Response ok
5059 -1 65535 0xFFFF Response ok
5060 0 0 0x0000 Response ok
5061 0 0 0x0000 Response ok
5062 8 8 0x0008 Response ok
5063 100 100 0x0064 Response ok
5064 0 0 0x0000 Response ok
5065 1 1 0x0001 Response ok
5066 35 35 0x0023 Response ok
5067 30 30 0x001E Response ok
5068 0 0 0x0000 Response ok
5069 30 30 0x001E Response ok
5070 60 60 0x003C Response ok
5071 -500 65036 0xFE0C Response ok
5072 -1400 64136 0xFA88 Response ok
5073 -250 65286 0xFF06 Response ok
5074 250 250 0x00FA Response ok
5075 -100 65436 0xFF9C Response ok
5076 2 2 0x0002 Response ok
5077 1000 1000 0x03E8 Response ok
5078 30 30 0x001E Response ok
5079 60 60 0x003C Response ok
5080 10 10 0x000A Response ok
5081 500 500 0x01F4 Response ok
5082 98 98 0x0062 Response ok
5083 100 100 0x0064 Response ok
5084 25 25 0x0019 Response ok
5085 250 250 0x00FA Response ok
5086 250 250 0x00FA Response ok
5087 7 7 0x0007 Response ok
5088 45 45 0x002D Response ok
5089 15 15 0x000F Response ok
5090 10 10 0x000A Response ok
5091 -100 65436 0xFF9C Response ok
5092 0 0 0x0000 Response ok
5093 0 0 0x0000 Response ok
5094 0 0 0x0000 Response ok
5095 0 0 0x0000 Response ok
5096 0 0 0x0000 Response ok
5097 0 0 0x0000 Response ok
5098 0 0 0x0000 Response ok
5099 0 0 0x0000 Response ok
0 Likes 0 ·
Lucian Popescu (Victron Energy Staff) avatar image Lucian Popescu (Victron Energy Staff) ♦♦ andreas-siebenmorgen commented ·

Sorry, not yet. As soon as we have an updated version, we will share it

0 Likes 0 ·
andreas-siebenmorgen avatar image andreas-siebenmorgen Lucian Popescu (Victron Energy Staff) ♦♦ commented ·

Can you please add what those registers are intendet for.

Maybe there is an aswer for some of the problems some users have, including me ;-.)

111.jpg222.jpg


1 Like 1 ·
111.jpg (73.1 KiB)
222.jpg (37.1 KiB)
Lucian Popescu (Victron Energy Staff) avatar image Lucian Popescu (Victron Energy Staff) ♦♦ andreas-siebenmorgen commented ·
No, those registers are not for public, at least not yet
-1 Like -1 ·
andreas-siebenmorgen avatar image andreas-siebenmorgen Lucian Popescu (Victron Energy Staff) ♦♦ commented ·
Well, then I hope that victron will at least make some more registers accessible via Web Interface, so there is no need for manipulating them using Modbus.
1 Like 1 ·
andreas-siebenmorgen avatar image andreas-siebenmorgen Lucian Popescu (Victron Energy Staff) ♦♦ commented ·
So this table does not fit firmware 1.25 ?
0 Likes 0 ·
Lucian Popescu (Victron Energy Staff) avatar image Lucian Popescu (Victron Energy Staff) ♦♦ andreas-siebenmorgen commented ·
It does, you can use it if it's necessary
0 Likes 0 ·