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

How to determine the status connectivity of the charger whether it is connected or disconnected ? #41

Open
Anmirazik opened this issue Apr 18, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Anmirazik
Copy link

is there a way for me to determine whether the charger is still connected or disconnected from the server ? because when the charger has been successfully connected to the central server , there are no indicators for me to know the charger connectivity status whether it is online or offline . we can only determine from here only

image

I would like to have a message sent to the debug node to indicate that the charger is connected or disconnected . Is there a way for me to Implement this features ? Thank you

@bnystrom
Copy link
Collaborator

bnystrom commented Apr 18, 2023

Currently, when the JSON node gets an "Open" event (connected on the websockets level), there is a message sent as:

msg.ocpp.websocket = 'ONLINE'

and when the websocket session is closed it sends:

msg.ocpp.websocket = 'OFFLINE'

This message has no payload, so you would want to change your debug node to output "complete msg object" to see it.

I will consider adding a msgType 99 that requests that websockets status so you could force that message. Otherwise, it is only sent when the status changes to or from open/closed.

@Anmirazik
Copy link
Author

Hi, thanks for the quick reply @bnystrom

i have tried changing my debug node to "complete msg object" and still not able to see the message msg.ocpp.websocket = 'ONLINE' or msg.ocpp.websocket = 'OFFLINE' from debug node

here is my flow

image

however I have found the workaround for me to indicate the charger status whether it is online or offline through shorten the heartbeat interval configuration from the charger itself and trigger offline message in node-red when heartbeat is not received from charger to central server within specified period .

But i think this method is not efficient as it is depends on the heartbeat intervals of the charger . I think It might be good if you can implement the features of sending online and offline status through msg.payload when the charger and central server have successfully connected on the websocket level in the near future.

@bnystrom
Copy link
Collaborator

Sorry for the miss-understanding. I thought you meant from the client node, not the server node. The "ONLINE/OFFLINE" is only given from the "CP Client JSON" node. There currently isn't a way to have the server tell you which Charge Points it thinks are connected/disconnected. I'll consider this a feature request for a future release.

@bnystrom bnystrom added the enhancement New feature or request label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants