Skip to content
JelinaJelina DocumentationTechnical documentation
Back to website

Acquire sensor temperature over serial communication

Use Serial Communication to acquire temperature from a temperature/humidity sensor, process it, and display results in real time.

  • Devices

(1) RSDS13 RS485 temperature/humidity sensor, the acquisition data source.

Consult its manual or manufacturer website for protocol, communication output, and baud rate:

key name
Interface ttyO3
Baud rate 19200
Data bits 8
Parity None
Stop bits 1
Temperature read command 0f 03 00 00 00 01 85 24

(2) EPC-R3220 device.

Under Interface configuration, set both COM1 and COM2 serial modes to RS485.

Set serial interfaces to RS485

  • Plugins

Serial Communication, Data Processing, and MQTT Upload.

(1) Connect the RSDS13 RS485 sensor and EPC-R3220 according to the applicable wiring requirements.

(2) Enter the relevant parameters to acquire sensor data.

The resulting connection scheme is:

Sensor data flow

(1) Configure Serial Communication acquisition.

1). Connection settings. Scheme name is required.

Sensor parameter reference

Set sensor parameters as illustrated and enter:

  • Scheme name: Serial scheme 1
  • Interface: ttyO3
  • Baud rate: 19200
  • Data bits: 8
  • Parity: None
  • Stop bits: 1

Serial connection settings

2). Data frame configuration. Frames are parsed only when their enabled state is enabled.

Select Add configuration, enter data, and confirm. Valid data adds a new entry.

The device address (id) is 1. Enter:

  • Name: Group 1
  • Frame mode: HEX
  • Frame format: 01 03 00 00 00 01 84 0A
  • Cycle time: 2000
  • Enabled: Enabled

Note:

The RS485 temperature read command sends 01 03 00 00 00 01 84 0A.

Command 01 03 00 00 00 01 84 0A
Meaning Device address Read command Register start address high byte Register start address low byte Read quantity high byte Read quantity low byte CRCL CRCH

84 0A is the 16-bit CRC result for 01 03 00 00 00 01.

The CRC rule is CRC-16/MODBUS X16+X15+X2+1.

Temperature request frame

Configured data frame

3). Data frame parsing.

Select the tabs at the top → Add configuration, enter data, and confirm. Valid data adds a new entry.

Enter:

  • Name: Parser 1
  • Parsing: byte[3]byte[4]
  • Enabled: Enabled

Frame parsing configuration

Configured temperature parser

Open Digital Twin, hover over Serial Communication, select the scheme, and view real-time data.

Sensor acquisition scheme

Real-time temperature data