Plugin Setting

MQTT

  1. {
  2. "node": "",
  3. "params": {
  4. // required, subscription data reporting channel
  5. "upload-topic": "",
  6. // required, the json format selection of the reported data, 0 values (default), 1 tags
  7. "format": 1,
  8. // required, the size limit of memory cache
  9. "cache-mem-size": 0,
  10. // required, the size limit of disk cache
  11. "cache-disk-size": 0,
  12. // required, MQTT Broker host
  13. "host": "",
  14. // required, MQTT Broker port number
  15. "port": 1883,
  16. // optional, username to use when connecting to the broker
  17. "username": "",
  18. // optional, the password to use when connecting to the broker
  19. "password": "",
  20. // optional, whether to enable mqtt ssl
  21. "ssl": true,
  22. // ca file, only enabled when the ssl value is true, in which case it is required
  23. "ca": "",
  24. // optional, cert file, only enabled when the ssl value is true
  25. "cert": "",
  26. // optional, key file, only enabled when the ssl value is true
  27. "key": "",
  28. // optional, key file password, only enabled when the ssl value is true
  29. "keypass": ""
  30. }
  31. }

Modbus

modbus-tcp

  1. {
  2. "node": "modbus-tcp-1",
  3. "params": {
  4. // required, the ip of the remote device
  5. "host": "127.0.0.1",
  6. // required, the tcp port of the remote device
  7. "port": 502,
  8. // required, timeout for sending requests to the device
  9. "timeout": 3000
  10. }
  11. }

modbus-plus-tcp

  1. {
  2. "node": "modbus-plus-tcp",
  3. "params": {
  4. // required, 0 the neuron driver is used as the client, 1 the neuron driver is used as the server
  5. "connection_mode": 0,
  6. // required, client: host means the ip of the remote device. server: it means the ip used by neuron locally
  7. "host": "127.0.0.1",
  8. // required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
  9. "port": 502,
  10. // required, timeout for sending requests to the device
  11. "timeout": 3000
  12. }
  13. }

modbus-rtu

Serial connection setting

  1. {
  2. "node": "modbus-rtu",
  3. "params": {
  4. // required, connection method, 0 serial port, 1 tcp,
  5. "link": 0,
  6. // required, timeout for sending requests to the device
  7. "timeout": 3000,
  8. // serial port required, use a serial device
  9. "device": "dev/ttyUSB0",
  10. // serial port required, stopbits
  11. "stop": 0,
  12. // serial port required, parity bit
  13. "parity": 0,
  14. // serial port required, baudrate
  15. "baud": 4,
  16. // serial port required, bytesize
  17. "data": 3
  18. }
  19. }

TCP connection setting

  1. {
  2. "node": "modbus-rtu",
  3. "params": {
  4. // required, connection method, 0 serial port, 1 tcp,
  5. "link": 1,
  6. // required, timeout for sending requests to the device
  7. "timeout": 3000,
  8. // tcp required, client: host means the ip of the remote device. server: it means the ip used by neuron locally
  9. "host": "127.0.0.1",
  10. // tcp required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
  11. "port": 502,
  12. // tcp required, 0 the neuron driver is used as the client, 1 the neuron driver is used as the server
  13. "connection_mode": 0
  14. }
  15. }

OPC UA

  1. {
  2. "node": "opc ua",
  3. "params": {
  4. // required, the address of the remote access plc
  5. "url": "opc.tcp://127.0.0.1:4840/",
  6. // optional, the user used when connecting to plc
  7. "username": "",
  8. // optional, the password used when connecting to plc
  9. "password": "",
  10. // optional, the certificate to provide login user authentication
  11. "cert": "",
  12. // optional, the private key to provide signature and encrypted transmissions
  13. "key": ""
  14. }
  15. }

Simemens S7 ISOTCP

  1. {
  2. "node": "s7",
  3. "params": {
  4. // required, remote plc ip
  5. "host": "127.0.0.1",
  6. // required, remote plc port
  7. "port": 102,
  8. // required, plc rack number
  9. "rack": 0,
  10. // required, plc cpu slot
  11. "slot": 1
  12. }
  13. }

OMRON FINS on TCP

  1. {
  2. "node": "fins",
  3. "params": {
  4. // required, remote plc ip
  5. "host": "127.0.0.1",
  6. // required, remote plc port
  7. "port": 9600
  8. }
  9. }

Mitsubishi MELSEC-Q E71

  1. {
  2. "node": "e71",
  3. "params": {
  4. // required, remote plc ip
  5. "host": "127.0.0.1",
  6. // required, remote plc port
  7. "port": 2000
  8. }
  9. }

IEC 60870-5-104

  1. {
  2. "node": "iec104",
  3. "params": {
  4. // required, device ip
  5. "host": "127.0.0.1",
  6. // required, device port
  7. "port": 2404,
  8. // required, common address
  9. "ca": 1,
  10. // required, station interrogation interval
  11. "interval": 10
  12. }
  13. }

BACnet/IP

  1. {
  2. "node": "bacnet",
  3. "params": {
  4. // required, BACnet device ip
  5. "host": "127.0.0.1",
  6. // required, BACnet device port
  7. "port": 47808
  8. }
  9. }

DL/T645-2007

Serial connection setting

  1. {
  2. "node": "dlt645-1",
  3. "params": {
  4. // required, connection method, 0 serial port, 1 tcp
  5. "link": 0,
  6. // required, contact address
  7. "mail_address": 210220003011,
  8. // required, timeout for sending requests to the device
  9. "timeout": 3000,
  10. // serial port required, use a serial device
  11. "device": "dev/ttyUSB0",
  12. // serial port required, stopbits
  13. "stop": 0,
  14. // serial port required, parity bit
  15. "parity": 2,
  16. // serial port required, baudrate
  17. "baud": 4,
  18. // serial port required, bytesize
  19. "data": 3
  20. }
  21. }

TCP connection setting

  1. {
  2. "node": "dlt645-1",
  3. "params": {
  4. // required, connection method, 0 serial port, 1 tcp
  5. "link": 1,
  6. // required, contact address
  7. "mail_address": 210220003011,
  8. // required, timeout for sending requests to the device
  9. "timeout": 3000,
  10. // tcp required, client: host means the ip of the remote device. server: it means the ip used by neuron locally
  11. "host": "127.0.0.1",
  12. // tcp required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
  13. "port": 502,
  14. // tcp required, 0 the neuron driver is used as the client, 1 the neuron driver is used as the server
  15. "connection_mode": 0
  16. }
  17. }

Sparkplug_B

  1. {
  2. "node": "sparkplugb",
  3. "params": {
  4. // required, MQTT client ID, A unique identifier that can represent the edge end
  5. "client-id": "saprk-test",
  6. // required, the top-level logical group in Sparkplug_B
  7. "group-id": "test",
  8. // required, the egde node id
  9. "node-id": "neuron1",
  10. // required, whether to enable mqtt ssl,
  11. "ssl": false,
  12. // required, MQTT Broker host
  13. "host": "broker.emqx.io",
  14. // required, MQTT Broker port number
  15. "port": 1883,
  16. // optional, username to use when connecting to the broker
  17. "username": "",
  18. // optional, the password to use when connecting to the broker
  19. "password": "",
  20. // required, ca file, only enabled when the ssl value is true
  21. "ca": "",
  22. // optional, cert file, only enabled when the ssl value is true
  23. "cert": "",
  24. // optional, key file, only enabled when the ssl value is true
  25. "key": "",
  26. // optional, key file password, only enabled when the ssl value is true
  27. "keypass": ""
  28. }
  29. }

NON A11

  1. {
  2. "node": "nona11",
  3. "params": {
  4. // required, 0 the neuron driver is used as the client, 1 the neuron driver is used as the server
  5. "connection_mode": 0,
  6. // required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
  7. "host": "127.0.0.1",
  8. // required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
  9. "port": 10,
  10. // required, NON-A11 device site number
  11. "site": 1
  12. }
  13. }