This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Ocpp, possible to send heartbeat signal?
#1
Hello

Would it be possible, maybe through websocket? to send heartbeat command to ocpp backend? 
What I'm really after is to use a energy meter and send consumption to the backends Load managment but if I could mange to figure out just the heartbeat function I should be able to get the rest working by my self


json script for heartbeat response:
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "urn:OCPP:1.6:2019:12:HeartbeatResponse",
    "title": "HeartbeatResponse",
    "type": "object",
    "properties": {
        "currentTime": {
            "type": "string",
            "format": "date-time"
        }
    },
    "additionalProperties": false,
    "required": [
        "currentTime"
    ]
}



/Jonas
Reply
#2
We're looking into OCPP at the moment. Examples will be posted when ready.
Reply
#3
See attached code for OCPP v1.6 client example.

Attached Files
.lua   ocpp-client-v16.lua (Size: 2.01 KB / Downloads: 57)
.lua   user.websocket.lua (Size: 13.76 KB / Downloads: 49)
Reply
#4
(14.09.2022, 10:48)admin Wrote: See attached code for OCPP v1.6 client example.

Cool. Thanks Smile
Reply
#5
(09.09.2022, 13:17)admin Wrote: We're looking into OCPP at the moment. Examples will be posted when ready.

Many thanks, looks promising! Do you see a difference to using it with OCPP 2.0?
Reply
#6
The base protocol is the same but the command structure is different. Meaning this example won't work with 2.0 without modifications.
Reply
#7
Thanks admin for the quick reply! Are you planning to supply also a template for OCPP version 2.0 in future?
Reply
#8
Attached v2.0 client example.

Attached Files
.lua   ocpp-client-v20.lua (Size: 2 KB / Downloads: 32)
Reply
#9
Many thanks for the prompt help!
Reply
#10
(14.09.2022, 10:48)admin Wrote: See attached code for OCPP v1.6 client example.

Thanks for sharing examples. 

I ran this in a Resident with the user.websocket and get 
arg1 string: ws connection failed
arg2 string: connection refused

tried it on an Easee chargebox.

Attached Files Thumbnail(s)
   
Reply
#11
This example emulates a charger so LM acts as a client. Connecting charger to LM is a different thing.
Reply
#12
(07.10.2022, 14:11)admin Wrote: This example emulates a charger so LM acts as a client. Connecting charger to LM is a different thing.

Okey, but is it possible to connect a charger to LM via OCPP for doing a smart charging solution? 

Heres the developer doc from Easee
https://developer.easee.cloud/docs/ocpp-smart-charging
Reply
#13
Possible but we don't have a ready example at the moment. See this for Easee connectivity: https://forum.logicmachine.net/showthread.php?tid=3301
Reply
#14
(11.10.2022, 09:28)admin Wrote: Possible but we don't have a ready example at the moment. See this for Easee connectivity: https://forum.logicmachine.net/showthread.php?tid=3301

Okey thank you!
Reply
#15
Is there any solutioon to take information from EV CHARGING Expert SCHNEIDER HMIBSC...

For example take the total/zone consumsion of evlink.... I know we can communicate modbus to the evlink (but I have 20 evlink). I was looking for a solution to interface with the SE EV HMI.
Do you know it ?
thanks
-----------
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT
Reply
#16
(27.09.2024, 15:26)domotiqa Wrote: Is there any solutioon to take information from EV CHARGING Expert SCHNEIDER HMIBSC...

For example take the total/zone consumsion of evlink.... I know we can communicate modbus to the evlink (but I have 20 evlink). I was looking for a solution to interface with the SE EV HMI.
Do you know it ?
thanks

The EV Charging Expert does not expose that information in the API they developed for the EVCE.

You are better off requesting the info over modbus tcp.
Reply
#17
ok
I ssaw that we can provide ocpp server on the EV but not yet implemented on LM I guess
I didn't know there was an API

when you say modbus ip you mean to the evlink not the EVCE, cause I didn't find any modbus register for it, only for the evlink station
-----------
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT
Reply
#18
(27.09.2024, 17:13)domotiqa Wrote: ok
I ssaw that we can provide ocpp server on the EV but not yet implemented on LM I guess
I didn't know there was an API

when you say modbus ip you mean to the evlink not the EVCE, cause I didn't find any modbus register for it, only for the evlink station

Yes, I mean polling the EVlinks via modbus TCP.
Reply


Forum Jump: