English
English
简体中文
Contact Us
Register
Log In

OCPP Device Connectivity

Last Updated on : 2022-10-17 07:53:16download

This topic describes how to connect an OCPP charging station to the Tuya IoT Development Platform using the TuyaLink solution.

Concepts

OCPP

The Open Charge Point Protocol (OCPP) is an open-source communication protocol for electric vehicle (EV) charging stations and charging station management systems. TuyaLink supports OCPP 1.6-J currently. For communication security, TuyaLink supports TLS with Basic Authentication.

Tuya 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 Cloud 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 SaaS.

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.

Procedure

OCPP Device Connectivity

Step 1: Create a product

Click Copy Product to create a standard OCPP charging station product.

Step 2: Configure networking parameters

To meet the data compliance requirements of different countries or regions, TuyaLink supports TLS with Basic Authentication.

Three networking parameters are required:

  • Server URL:

    • China Data Center: baal.tuyacn.com:9000
    • Central Europe Data Center: baal.tuyaeu.com:9000
    • Eastern America Data Center: baal.tuyaus.com:9000
    • India Data Center: baal.tuyain.com:9000
    • Western Europe Data Center: OCPP connectivity is not generally available to this data center. You can request the endpoint to this data center from Tuya if needed. Click to submit a service ticket.
    • Eastern America Data Center: OCPP connectivity is not generally available to this data center. You can request the endpoint to this data center from Tuya if needed. Click to submit a service ticket.
  • Username: You can get it from the Tuya IoT Development Platform, which is described in the following section.

  • Password: You can get it from the Tuya IoT Development Platform, which is described in the following 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 the device before configuration

Under the Device Development tab, choose OCPP Protocol Access. Click Activation & Verification and Register Device.

OCPP Device Connectivity

After the device is registered, it is assigned a unique credential:

  • DeviceID: Used to query device logs and enroll to a SaaS.
  • Username: Used to connect to the Tuya IoT Cloud.
  • Password: Used to connect to the Tuya IoT Cloud.

Keep the password in a safe place.

Parameters for charging stations

Connection to the Tuya IoT Cloud:

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

Step 3: Verify device connection

If the device is successfully connected to the Tuya IoT 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

Application Development

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

Charging station management SaaS

For commercial charging stations, a SaaS application can be integrated to manage the connected charging stations. Submit a service ticket to request access to the SaaS.