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.

How to implement a JSON websocket server?
#1
Hello to all.

I'm planning to implement the OCPP 1.6 protocol. To control up to 20 EV chargers.
For that I would need to implement a JSON websocket server.
Can someone explain to me the best way of implementing a non blocking server which can handle multible clients?
There are so many options (luasocket, copas, lginx, ev, ...)
I already read a lot threads (most of them are describing clients), but it seems that there is no clear way how you should implement such a server.

Thank's a lot,
Christian
Reply
#2
See this: https://forum.logicmachine.net/showthread.php?tid=1796
Reply
#3
(07.04.2020, 12:37)admin Wrote: See this: https://forum.logicmachine.net/showthread.php?tid=1796

HI,
I am following a project to implement OCPP Protocol. Is there anyone who has develope in LM as this thread request?

Thanks.
Reply
#4
Which part do you want to implement: client (charge point) or server (central system)? There are no ready-made examples for OCPP. It's possible to implement this protocol but it's not an easy task.
Reply
#5
(02.03.2021, 07:27)admin Wrote: Which part do you want to implement: client (charge point) or server (central system)? There are no ready-made examples for OCPP. It's possible to implement this protocol but it's not an easy task.

Thank you Admin!

I have to communicate with one device only, hence best and easy way is use simply modbus.
Reply


Forum Jump: