English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Manage Drivers on Tuya IoT Edge Gateway

Last Updated on : 2022-05-27 12:57:20download

This topic describes how to download and manage drivers for Tuya IoT Edge Gateway (TEdge). A Modbus driver is used in the following example.

Prerequisites

The edge gateway is installed and activated. For more information, see Deploy and Activate Tuya IoT Edge Gateway.

Download a driver

Download a Modbus driver

Download the official driver and package the files for installation (x86/Armv7).

Note:

  • The earlier files are overwritten after you run the Docker save command.
  • The files must be in the .tar format when they are saved with the Docker save command.
  1. Download an image.

     docker pull tuya/tedge-modbus-driver:latest
    
  2. Package the image.

    docker save tuya/tedge-modbus-driver:latest > \
    /var/tedge/edgex-driver-data/upload/library/tedge-modbus-driver.tar
    

Add a driver library

This section describes how to add a Modbus driver.

  1. Log in to Tuya IoT Edge Gateway. In the left-side navigation, choose Driver Settings > Driver Libraries and click Create. In the dialog box that appears, select the required driver file from the Driver File drop-down list.

  2. Download the Modbus configuration template and upload the configuration file. You do not need to modify the template in this example.

    Manage Drivers on Tuya IoT Edge Gateway

Add a driver instance

This section describes how to add a Modbus driver instance.

  1. In the left-side navigation, choose Driver Settings > Driver Instances and click Create. In the dialog box that appears, search the driver library by name. Fuzzy matching is supported. Create a driver instance.

    Manage Drivers on Tuya IoT Edge Gateway

  2. On the list of driver instances, click Stopped next to the newly created driver instance to run the driver.

    Manage Drivers on Tuya IoT Edge Gateway