OCPP Device Connectivity

Last Updated on : 2024-02-22 03:11:10download

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 IoT Development Platform using the TuyaLink solution.

OCPP support

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.

OCPP gateway

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 IoT Development 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.

OCPP Device Connectivity

Step 1: Create a product

  1. Open the OCPP charging station template.
  2. Click Copy Product and enter a product name and product model to create a standard Wi-Fi OCPP charging station product.

Step 2: Configure networking parameters

Data privacy and security are secured by TLS with Basic Authentication.

Three networking parameters are required:

  • Server URL:

    • China Data Center: wss://galaxygw.iot2cn.com:9001
    • Central Europe Data Center: wss://galaxygw-eu.iotbing.com:9001
    • Western America Data Center: wss://galaxygw-us.iotbing.com:9001
    • India Data Center: wss://galaxygw-in.iotbing.com:9001
    • Western Europe Data Center: OCPP connectivity is not generally available to this data center. Submit a service ticket to request this endpoint if needed.
    • Eastern America Data Center: OCPP connectivity is not generally available to this data center. Submit a service ticket to request this endpoint if needed.
  • Username: You can get it from the Tuya IoT Development Platform, which is described in the Register devices section.

  • Password: You can get it from the Tuya IoT Development 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.

Register devices

  • 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.

Parameter requirement

For cloud connectivity:

  • WebSocketPingInterval: Less than 3 minutes.
  • HeartbeatInterval: Less than 24 hours.

Step 3: Verify device connection

If the device is successfully connected to the cloud, the Device Status is Online in Development > Device Management on the Tuya IoT Development Platform.

Step 4: Debug online

Verify the remote control of the charging station in Online Debugging.

Next step

Develop application

Develop a mobile app or web app for the connected charging station. For more information, see Application Development.

Charging station management platform

If you need a charging station management platform, submit a service ticket.