Skip to content

this is a dlt645 Chinese intelligent power meter driver for Aliyun Iot Edge Gateway driver

License

Notifications You must be signed in to change notification settings

johngai19/dlt645Driver

Repository files navigation

English|中文


dlt645Driver

This is a dlt645 Chinese intelligent power meter driver for Aliyun Iot Edge Gateway driver using WebSocket protocal. The driver is currently works well on Aliyun Iot Platform, you need to setup Aliyun Enviroment, connect Dlt meter on the serialport of linkedge gateway before using it.

Operation Guide on Aliyun Iot Platform

See Aliyun linkedge-thing-access-websocket_client_sdk for the protocal details to connect device with Aliyun Linkedge Gateway.

Currently the Driver only support "onlineDevice","reportProperty" and "getProperty" methods, the rest methods are to be updated.

First of all,you need to create a DLT product and devices on aliyun Iot platform.See model.json for detailed product properties.

To use this driver you need to install an Aliyun Linkedge Gate way following Official Instruction, and deploy a WebSocket driver.Currently the driver is tested only under Unbuntu 18.04 platform.

To Use

  1. In config.json, setup the serialport information as well as the dlt meters. If you are using linux portName field just fill like ttyS1 or ttyUSB1 the driver will parse it to /dev/ttyS1, otherwise in windows just use COM1,COM2 (not testified).

  2. If you have changed default aliyun WebSocket server (ip address and port number), update server.json file. Currently TLS support is not available.

  3. If you want to support more DLT 645 properties, update the model.json file, please be sure to modify the propertyCode in dltparser too so as the driver can parse relative property properly.

  4. For aumomated installation download install.sh file first or copy the contents, run install.sh script to finish project installation, if you want to install node global, uncomment the global install file and comment nvminstallation file. If you are out of China, please comment the cnpm installation line and use npm directly.

  5. Use start.sh script for automated start.

To develop

Use Nodejs V8.16.2

Pull request is welcome to add more features.

See docs for development information.

Todo List

  • More Dlt645 properties support
  • Dlt645 Block property support
  • Write property and modify dlt parameter function support
  • Aliyun Linkedge setProperty,reportEvent function support
  • Aliyun Linkedge callService function support
  • Mock serialport function for test
  • Mock WebSocket server for test
  • Local Dlt 645 debugger
  • Local Web debug interface

About

this is a dlt645 Chinese intelligent power meter driver for Aliyun Iot Edge Gateway driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published