Synology DS418 Transactions in Surveillance Station 8.1.0 and above - Page 9

Serial port, Data Definition, tart Collecting Raw Data, Raw data, Filtered data, Start of transaction

Page 9 highlights

After completing the connection settings, you can click Next to set up parsing rules for the received raw data if you have selected TCP or Serial port for your device. Data Definition The following steps only apply to setting up filter rules for raw data over TCP and Serial Port connection. If Surveillance Station WebAPI is used as the connection type for the transaction device, please go to Set up the display style to set up display options. The purpose of data definition is to convert raw transaction data into coherent and structured information. You can omit or replace unwanted or redundant characters by setting up rules to filter and transform raw data into understandable text which are to be displayed on the screen. With this feature, you can precisely indicate the beginning and end of every transaction. 1. In Data Definition, you can start to collect raw data through the connection settings configured in the previous step by switching on Start Collecting Raw Data. 2. Please choose the correct encoding method for the received data before you start to transmit raw data to Surveillance Station. Choosing the wrong encoding method may result in the system failing to recognize the data and thereby unable to receive data. Although the system can automatically detect possible encoding methods upon receiving incoming data, the detected encoding method may not be 100% correct. Specifying the correct encoding method of your device before starting to transmit data is recommended. 3. The raw data that Surveillance Station received will be displayed in the Raw data area. You can set up parsing rules according to the received data. The transaction records will be filtered by the parsing rules and displayed in the Filtered data area. 4. The Start of transaction, End of transaction, and Canceling of transaction strings are the most important filer rules that should be set up first, since these are used to indicate the beginning and end of a transaction. When the received raw data contains strings that match Start transaction, Stop transaction, or Cancel transaction strings, a transaction record that includes data from the beginning to the end of a transaction will be automatically generated and stored in Surveillance Station. In addition, you can also add rules to mark certain strings as other text, replace certain strings with line breaks, or ignore certain strings. 5. Besides using strings in plain text, you can also use regular expression as the parsing rule for the Start of transaction, End of transaction, and Canceling of transaction strings. Compared with ordinary strings, regular expressions provide a more flexible format to represent a string. The following are examples of some of the most commonly used regular expressions: 1. If you want to parse a string in the date format of "yyyy-mm-dd", you can use the following regular expression: • [0-9]{4}-[0-1][0-2]-[0-3][0-9] or \d{4}-\d{2}-\d{2} Note: In the regular expression above, "[0-2]" represent digits from 0 to 2, "\d" represents normal digits from 0 to 9 and {4} means to repeat the previous character 4 times. 08 Installation

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35

08
Installation
After completing the connection settings, you can click
Next
to set up parsing rules for the
received raw data if you have selected
TCP
or
Serial port
for your device.
Data Definition
The following steps only apply to setting up filter rules for raw data over TCP and Serial Port
connection. If Surveillance Station WebAPI is used as the connection type for the transaction
device, please go to
Set up the display style
to set up display options.
The purpose of data definition is to convert raw transaction data into coherent and structured
information. You can omit or replace unwanted or redundant characters by setting up
rules to filter and transform raw data into understandable text which are to be displayed
on the screen. With this feature, you can precisely indicate the beginning and end of every
transaction.
1. In
Data Definition
, you can start to collect raw data through the connection settings
configured in the previous step by switching on S
tart Collecting Raw Data
.
2. Please choose the correct encoding method for the received data before you start to
transmit raw data to Surveillance Station. Choosing the wrong encoding method may result
in the system failing to recognize the data and thereby unable to receive data. Although the
system can automatically detect possible encoding methods upon receiving incoming data,
the detected encoding method may not be 100% correct. Specifying the correct encoding
method of your device before starting to transmit data is recommended.
3. The raw data that Surveillance Station received will be displayed in the
Raw data
area. You
can set up parsing rules according to the received data. The transaction records will be
filtered by the parsing rules and displayed in the
Filtered data
area.
4. The
Start of transaction
,
End of transaction
, and
Canceling of transaction
strings are
the most important filer rules that should be set up first, since these are used to indicate
the beginning and end of a transaction. When the received raw data contains strings that
match Start transaction, Stop transaction, or Cancel transaction strings, a transaction record
that includes data from the beginning to the end of a transaction will be automatically
generated and stored in Surveillance Station. In addition, you can also add rules to mark
certain strings as other text, replace certain strings with line breaks, or ignore certain
strings.
5. Besides using strings in plain text, you can also use regular expression as the parsing rule
for the
Start of transaction
,
End of transaction
, and
Canceling of transaction
strings.
Compared with ordinary strings, regular expressions provide a more flexible format to
represent a string. The following are examples of some of the most commonly used regular
expressions:
1.
If you want to parse a string in the date format of "yyyy-mm-dd", you can use the
following regular expression:
[0-9]{4}-[0-1][0-2]-[0-3][0-9] or \d{4}-\d{2}-\d{2}
Note:
In the regular expression above, "[0-2]" represent digits from 0 to 2, "\d"
represents normal digits from 0 to 9 and {4} means to repeat the previous character
4 times.