Last Updated on : 2024-06-19 03:11:27download
The Open Charge Point Protocol (OCPP) is an open-source communication protocol for electric vehicle (EV) charging stations and charging station management systems. This topic describes how to connect an OCPP charging station to the Tuya Developer Platform using the TuyaLink solution.
TuyaLink supports OCPP 1.6-J currently. For communication security, TuyaLink supports TLS with Basic Authentication. For more information, visit OCPP website and Security for OCPP 1.6.
The OCPP gateway service can perform protocol conversions between the OCPP protocol and TuyaLink’s things data model protocol. OCPP devices can be connected to the Tuya Developer Platform and registered with a TuyaLink things data model after a simple configuration. Then, you can integrate these connected OCPP devices into a Tuya-based charging station management platform.
A things data model is a virtual representation of a physical device, which can help to reduce the development efforts for devices, mobile apps, and SaaS apps. For more information, see TuyaLink.
Data privacy and security are secured by TLS with Basic Authentication.
Three networking parameters are required:
Server URL:
wss://galaxygw.iot2cn.com:9001
wss://galaxygw-eu.iotbing.com:9001
wss://galaxygw-us.iotbing.com:9001
wss://galaxygw-in.iotbing.com:9001
Username
: You can get it from the Tuya Developer Platform, which is described in the Register devices section.
Password
: You can get it from the Tuya Developer Platform, which is described in the Register devices section.
For security purposes, both the username and password must be 16 characters long. For certain charging stations, their software might be updated for adaptation. If you have any questions, please submit a service ticket.
Under the Device Development tab, choose OCPP Protocol Access.
Click Activation & Verification > Register Device.
After the device is registered, it is assigned a unique credential:
DeviceID
: Used to query device logs and enroll to a charging station management platform.
Username
: Used to connect to the cloud.
Password
: Used to connect to the cloud.
Keep the password in a safe place.
For cloud connectivity:
WebSocketPingInterval
: Less than 3 minutes.HeartbeatInterval
: Less than 24 hours.If the device is successfully connected to the cloud, the Device Status is Online in Development > Device Management on the Tuya Developer Platform.
Verify the remote control of the charging station in Online Debugging.
Develop a mobile app or web app for the connected charging station. For more information, see Application Development.
If you need a charging station management platform, submit a service ticket.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback