Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control charging current directly via Modbus #25

Closed
heisly opened this issue Jun 22, 2020 · 10 comments
Closed

Control charging current directly via Modbus #25

heisly opened this issue Jun 22, 2020 · 10 comments
Assignees

Comments

@heisly
Copy link

heisly commented Jun 22, 2020

Hello,
I like the Smart EVSE very much because of its pretty design including the display and it is a economic setup together with the RCM14, very good job!
I would like to integrate Smart EVSE within my Loxone Miniserver via existing Modbus Gateway with some existing SDM630 power meters.
Therefore I would like the visualize the actual state (ready, vehicle connected, charging) in the Loxone App (I think this is already possible) and control the charging current directly via modbus (as I already have all the power and energy information and the necessary logic in loxone).

Is that already possible (maybe I haven’t seen it) or something interesting to integrate in the future?
Maybe it is possible to simply allow an override of the charging current in the Solar Mode.
I would highly appreciate that!

Otherwise: I like the Smart EVSE anyway 😉.

Greetings, Stephan

@bobosch
Copy link
Collaborator

bobosch commented Jun 22, 2020

Hi,
yes, SmartEVSE can use the SDM630 and you can use modbus to get some information
https://github.com/SmartEVSE/smartevse#modbus-registers
But currently you have to update the configuration to set the charging current (would be saved every time :-( )
I like the idea of overriding the charging current, but it would be only possible in normal mode. In Smart and Solar mode the charging current is updated periodically...
Regards, Robert

@heisly
Copy link
Author

heisly commented Jun 23, 2020

Override the Charging Current in Normal Mode would also be fine. But to make sure, with the actual firmware this is not possible, right?

@bobosch
Copy link
Collaborator

bobosch commented Jun 24, 2020

Yes, only the commands listed on https://github.com/SmartEVSE/smartevse#modbus-registers (since Version 2.10)

@Fnikan
Copy link

Fnikan commented Jun 25, 2020

Hi,
I have the same problem. Actually i want to send START/STOP command with modbus to SmartEvse and control the charging current too. I am thinking about adding a new register for that and modifing the code for that( The part of IO2 which is for START/STOP). But until now no idea how to add a new register to SmartEvse.
Btw thanks for this big work!

@bobosch
Copy link
Collaborator

bobosch commented Jun 25, 2020

START/STOP charging is already possible by setting the access bit register 0xA7

@bobosch bobosch self-assigned this Jun 25, 2020
@bobosch
Copy link
Collaborator

bobosch commented Jun 25, 2020

I'll make the modbus charging current register 0xA6 writeable

@heisly
Copy link
Author

heisly commented Jun 26, 2020

Hey bobosch, that sounds really great, thanks for that!
BTW, the modbus Interface is working with a fixed Baudrate of 9600 Baud and a fixed Address, right? So I need to make some changes on my already existing meters to have them all on the same Modbus and bring them together with Smart EVSE within one gateway to the Modbus TCP.

@bobosch
Copy link
Collaborator

bobosch commented Jun 27, 2020

Solved with commit 759f2c0
Works also in Smart Mode. Don't forget to set value to 0 to let SmartEVSE control the current.
SmartEVSE2.X.production.zip

@bobosch bobosch closed this as completed Jun 27, 2020
@bobosch
Copy link
Collaborator

bobosch commented Jun 27, 2020

BTW: Yes, RS485 settings and the address are hardcoded.

@heisly
Copy link
Author

heisly commented Jun 28, 2020

That's fine, I've also seen it in the EVSE.c I'm already on the same Baudrate and just have to change the address of one of my meters to reserve 1 for the Smart EVSE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants