Before starting the configuration, ensure the following preparations are completed:
Please follow the steps below to configure in the Web interface of Edge2Cloud Factory.
Step 1: Open the Entry
Log in to the Edge2Cloud Factory management interface. Log in to the gateway management page -> [Data Collection] to enter the Edge2Cloud Factory configuration page.
Two methods are supported: Add Manually (Single Device) or Auto Search (Batch Devices).
Step 1: Add DeviceClick the "Create Device" button, fill in the device name (ensure uniqueness), and select the BACnet MS/TP protocol.
Step 2: Supplement InformationFill in the information on the current page, note do not click the [Auto Search] button, then save and submit after completion.Click the "Publish" button in the upper right corner of the page to make the configuration take effect.
| Parameter Name | Description | Example |
|---|---|---|
| Name | Device name, used to distinguish different devices. | Packaging Workshop A - Packaging Machine 03 |
| Protocol | Select the communication protocol between the gateway and the device; "BACnet MS/TP" must be selected. | BACnet MS/TP |
| Communication Method | Select the local serial interface (e.g., COM2) used for device communication. This serial port must be connected to the target bus. | COM2 |
| Local Node Address | The BACnet MAC address of the gateway itself on the MS/TP bus, ranging from 0 - 127, must be unique on the bus. | 10 |
| Maximum Number of Information Frames | The maximum number of data packets the gateway can send when holding the token at one time, ranging from 1 - 255, default is 5. | 5 |
| Maximum Number of Master Devices | Defines the upper limit of the token ring scale, must be ≥ the highest address of the actual master devices on the bus, ranging from 2 - 127, default is 10. | 10 |
| Device ID | The BACnet device instance number of the device, an integer between 0 and 4194303. | 12345 |
| Polling Cycle | The cycle time for device data collection, unit: seconds. | 10 |
| Description | Descriptive information about the device to facilitate user identification of device functions. | Packaging Workshop A - Packaging Machine 03 Device |
| Collection Timeout | The timeout time for the device to respond after the gateway initiates a data collection request, unit: milliseconds. | 1000 |
| Enable Batch Collection | Whether to enable the batch collection function; when enabled, variables with consecutive addresses are read in one collection request. | Enabled |
| Maximum Batch Collection Count | When batch collection is enabled, set the maximum number of data points collected in each batch. | 64 |
| Communication Interval Time | The interval time between two communication requests, unit: milliseconds. | 10 |
| Serial Port Parameters | (Display only) Shows the baud rate, data bits, parity bits, stop bits of the selected serial port, which should be consistent with other devices on the bus. | 9600,8,N,1 |
Step 1: Add DeviceClick the "Create Device" button and directly select the BACnet MS/TP protocol.
Step 2: Auto SearchClick the "Auto Search" button to jump to the auto search device pop-up, supplement the information, and click [Search].
Step 3: Select DevicesYou can check multiple devices in the list and click "Next" to perform batch addition.
The default device name is the original device name found by the search. Note that device names in the system cannot be duplicated; if duplicated, you can click to modify them directly.
| Parameter Name | Description | Example |
|---|---|---|
| Communication Method | Select the local serial interface (e.g., COM2) used for device communication. This serial port must be connected to the target bus. | COM2 |
| Local Node Address | The BACnet MAC address of the gateway itself on the MS/TP bus, ranging from 0 - 127, must be unique on the bus. | 10 |
| Maximum Number of Information Frames | The maximum number of data packets the gateway can send when holding the token at one time, ranging from 1 - 255. | 5 |
| Maximum Number of Master Devices | Defines the upper limit of the token ring scale, must be ≥ the highest address of the actual master devices on the bus, ranging from 2 - 127. | 10 |
Step 4: Other ConfigurationsAfter supplementing and confirming the following information, click "Save" to complete the batch addition of devices, or click "Save and Configure Variables" to continue quick batch configuration of device variables.
Click the "Publish" button in the upper right corner of the page to make the configuration take effect.
| Parameter Name | Description | Example |
|---|---|---|
| Polling Cycle | The cycle time for device data collection, unit: seconds. | 10 |
| Collection Timeout | The timeout time for the device to respond after the gateway initiates a data collection request, unit: milliseconds. | 1000 |
| Enable Batch Collection | Whether to enable the batch collection function; when enabled, variables with consecutive addresses are read in one collection request. | Enabled |
| Maximum Batch Collection Count | When batch collection is enabled, set the maximum number of data points collected in each batch. | 64 |
| Communication Interval Time | The interval time between two communication requests, unit: milliseconds. | 10 |
| Description | Descriptive information about the device to facilitate user identification of device functions. | Packaging Workshop A - Packaging Machine 03 Device |
Step 5: Configure VariablesIf you clicked "Save and Configure Variables" in the previous step, you can quickly configure device variables in batches.
Two methods: Add Manually (Single Tag) or Auto Search (Batch Tags).
| Parameter Name | Description | Example |
|---|---|---|
| Collection Mode | Select the data collection mode, which can be "Polling" or "Subscription". | Polling |
| Name | The name of the variable to be collected, which will be used in the data reporting message and cannot be duplicated within the same device. | Production Quantity |
| Variable Type | Select the type of variable, usually "Device Variable" or "Virtual Variable". | Device Variable |
| Object Type | Select the type of the collected object according to the object classification of the BACnet protocol, such as Analog Input, Digital Input, etc. | AI (Analog Input) |
| Instance Number | Fill in the instance number of the object type, an integer between 0 and 4194303. | 1 |
| Data Type | Defaulted by the system according to the object type; refer to the appendix table for mapping rules. | float(float32) |
| Read/Write Permission | Determined by the system according to the object type; refer to the appendix table for specifications. Users with read/write permission can select it by themselves, while those with read-only permission cannot modify it. | Read Only |
| Unit | The unit of the variable, such as unit, °C, KWh, etc. | unit |
| Associated Group | Select the data group to which the variable belongs. | - |
| Description | Fill in the descriptive information of the variable to help users understand the meaning of the variable. | The number of products produced this time |
| Data Calculation | Select the calculation method for the collected data, such as "None", "Offset Scaling", "Ratio Conversion", etc. | None |
Repeat this step to add all variables that need to be collected. After all variables are added/modified, click the "Publish" button in the upper right corner of the page to make the configuration take effect.
After all variables are added/modified, click the "Publish" button in the upper right corner of the page to make the configuration take effect.
Protocol Data Type Corresponding Description
When configuring variables in Edge2Cloud Factory, the data type correspondence is as follows:
| Object Type | C Language Type | Data Type | Read/Write Permission | Value Description |
|---|---|---|---|---|
| Analog Input (AI) | Float | Float (float32) | Read Only | Single-precision floating-point number |
| Analog Output (AO) | Float | Float (float32) | Read/Write | Single-precision floating-point number |
| Analog Value (AV) | Float | Float (float32) | Read/Write | Single-precision floating-point number |
| Binary Input (BI) | Bool | Boolean (boolean) | Read Only | 0 or 1, indicating ON/OFF status (INACTIVE/ACTIVE) |
| Binary Output (BO) | Bool | Boolean (boolean) | Read/Write | 0 or 1, indicating ON/OFF status (INACTIVE/ACTIVE) |
| Binary Value (BV) | Bool | Boolean (boolean) | Read/Write | 0 or 1, indicating ON/OFF status (INACTIVE/ACTIVE) |
| Multi-state Input (MSI) | uint32_t |
Integer (uint32) | Read Only | Unsigned integer, representing different values of multi-state status |
| Multi-state Output (MSO) | uint32_t |
Integer (uint32) | Read/Write | Unsigned integer, representing different values of multi-state status |
| Multi-state Value (MSV) | uint32_t |
Integer (uint32) | Read/Write | Unsigned integer, representing different values of multi-state status |
Detailed Explanation of MS/TP Key Parameters
| Parameter Name | Meaning and Function | Configuration Suggestions and Explanations |
|---|---|---|
| Local Node Address | The physical address (MAC address) of the gateway itself on the MS/TP bus. Used to identify and address the gateway device at the underlying hardware level. | Range: 0 - 127. Rule: Must ensure that this address does not conflict with the MAC addresses of all other MS/TP devices on the bus. |
| Maximum Number of Master Devices | Defines the upper limit of the MS/TP token ring scale. It sets a rule for the bus protocol: the expected number of devices that may become master devices (i.e., devices that need to participate in token passing). The token will circulate among addresses from 0 to (Max Master). | Must be ≥ the highest MAC address of all actual master devices on the bus. Example: If the master device with the highest address on the bus is 31, this parameter should be set to at least 31. If uncertain, it can be set to the maximum value of 127. |
| Maximum Number of Information Frames | Limits the "speaking time" of a device while holding the token. Specifies the maximum number of data packets a device can send once it obtains the token, after which it must pass the token to the next device. | Function: Prevents a single device from occupying the bus for a long time, ensuring the fairness and real-time performance of bus communication. Suggestion: The default value is usually 5 or 8. For gateways that need to collect a large amount of data, it can be appropriately increased (e.g., 16), but not too large to avoid affecting bus real-time performance. |
| Version | Date | Author | Changes |
|---|---|---|---|
| 1.0 | 2026-02-06 | WX | Initial document creation. |