Data processing method and device, electronic equipment and storage medium
By acquiring the register information of the sensing device and performing conversion processing using a preset object model, the problem of mapping multi-attribute data of sensors to multiple registers in the building control system is solved, realizing unified display and management of sensor data, and improving the development and management efficiency of the equipment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- EASYLINKIN TECH CO LTD
- Filing Date
- 2022-11-08
- Publication Date
- 2026-04-14
AI Technical Summary
In building control systems, existing technologies cannot effectively solve the problem of mapping multi-attribute data from sensors to multiple registers, resulting in the direct display of multiple values or multiple devices on the software platform, lacking a unified data display and management solution.
By acquiring the register information of the sensing device, determining the parsing information using the preset object model, and performing conversion processing, the attribute information is obtained so that it can be comprehensively displayed on the display device.
It enables unified display and management of sensor data, improves the efficiency of equipment development and management, and simplifies the data display and debugging process.
Smart Images

Figure CN115712402B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a data processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] Currently, edge gateways are commonly used in building control systems. An edge gateway is a gateway deployed at the network edge, connecting the physical and digital worlds through network connectivity and protocol conversion, providing lightweight connection management, real-time data analysis, and application management functions. Edge gateways include Programmable Logic Controllers (PLCs) and Direct Digital Controls (DDCs), which are used to control various systems such as air conditioning, ventilation, and lighting. Edge gateways have programming capabilities, allowing for the programming of input / output interfaces to acquire sensor data and control device actions, forming a closed-loop control. In edge gateways such as PLCs and DDCs, data is stored in registers. However, in the corresponding programming software, data is displayed as variables. If a sensor has multiple attributes (e.g., a temperature and humidity sensor has temperature and humidity attributes), and each attribute is fed back through voltage or current signals, then the temperature and humidity data need to be connected to multiple input interfaces of the programmable edge gateway, thus mapping to multiple registers, corresponding to multiple variables in the programming. Related technologies directly display multiple values or multiple devices on the software platform. There is currently no effective solution to this phenomenon. Summary of the Invention
[0003] In view of this, the main objective of the present invention is to provide a data processing method, apparatus, electronic device and storage medium.
[0004] To achieve the above objectives, the technical solution of the present invention is implemented as follows:
[0005] This invention provides a data processing method applied to a control system, the control system including at least one sensing device and a display device; the method includes:
[0006] Obtain register information related to the first sensing device; the first sensing device is any one of the at least one sensing devices;
[0007] Based on the register information, the parsing information corresponding to the first sensing device is determined from the preset object model;
[0008] The register information is converted based on the parsed information to obtain attribute information corresponding to the first sensing device; the attribute information is used to display the information on the display device.
[0009] In the above scheme, the register information includes at least a register address and register data; the step of determining the parsing information corresponding to the first sensing device from the preset object model based on the register information includes:
[0010] Based on the register address and register data, the parsing information corresponding to the first sensing device is determined from the preset object model.
[0011] In the above scheme, determining the parsing information corresponding to the first sensing device from the preset object model based on the register information includes:
[0012] The second sensing device corresponding to the first sensing device is determined based on the register address;
[0013] Based on the second sensing device, the parsing information corresponding to the first sensing device is determined from the preset object model.
[0014] In the above scheme, determining the parsing information corresponding to the first sensing device from the preset object model based on the register information includes:
[0015] The first identification information corresponding to the first sensing device is determined based on the register address;
[0016] Based on the first identification information, the parsing information corresponding to the first sensing device is determined from the preset object model.
[0017] In the above scheme, determining the parsing information corresponding to the first sensing device from the preset object model based on the first identification information includes:
[0018] Based on the first identification information, a second identification information corresponding to the first sensing device is determined; wherein, the second identification information corresponds to multiple different first identification information;
[0019] Based on the second identification information, the parsing information corresponding to the first sensing device is determined from the preset object model.
[0020] In the above scheme, the attribute information includes at least attribute values; the step of converting the register information according to the parsed information to obtain the attribute information corresponding to the first sensing device includes:
[0021] The parsing method corresponding to the first sensing device is determined based on the parsing information;
[0022] The register data is converted and processed based on the parsing method to obtain the attribute value corresponding to the first sensing device.
[0023] In the above scheme, the attribute information includes at least attribute parameters; the step of converting the register information according to the parsed information to obtain the attribute information corresponding to the first sensing device includes:
[0024] Determine the third identification information corresponding to the register address based on the parsed information;
[0025] The attribute parameters corresponding to the first sensing device are determined based on the third identification information.
[0026] This invention provides a data processing apparatus applied to a control system, the control system including at least one sensing device and a display device; the apparatus includes:
[0027] An acquisition module is used to acquire register information related to a first sensing device; the first sensing device is any one of the at least one sensing devices.
[0028] The determination module is used to determine the parsing information corresponding to the first sensing device from the preset object model based on the register information;
[0029] The processing module is used to convert the register information according to the parsed information to obtain attribute information corresponding to the first sensing device; the attribute information is used to display the display device.
[0030] This invention provides a data processing device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements any step of the above-described method.
[0031] This invention provides a storage medium storing executable instructions, which, when executed by a processor, implement any step of the above-described data processing method.
[0032] This invention provides a data processing method, apparatus, electronic device, and storage medium. The method is applied to a control system, which includes at least one sensing device and a display device. The method includes: acquiring register information related to a first sensing device; the first sensing device being any one of the at least one sensing devices; determining parsing information corresponding to the first sensing device from a preset object model based on the register information; converting the register information according to the parsing information to obtain attribute information corresponding to the first sensing device; and displaying the attribute information on the display device. By employing the technical solution of this invention, data in the form of register information is converted into attribute information corresponding to the first sensing device, and then displayed through the display device, thereby realizing the conversion of single register information into attribute information considering the first sensor device as a whole, and the comprehensive display of the attribute information of the first sensing device. Attached Figure Description
[0033] Figure 1 This is a schematic diagram illustrating the implementation flow of the data processing method according to an embodiment of the present invention;
[0034] Figure 2 This is a schematic diagram of the DDC hardware architecture of the data processing method according to an embodiment of the present invention;
[0035] Figure 3 This is a schematic diagram of the gateway sub-device data parsing architecture of the data processing method according to an embodiment of the present invention;
[0036] Figure 4 This is a schematic diagram of the sensor data display list in the data processing method of this invention embodiment;
[0037] Figure 5 This is a schematic diagram of the composition structure of the data processing device according to an embodiment of the present invention;
[0038] Figure 6 This is a schematic diagram of a hardware entity structure of a data processing device in an embodiment of the present invention. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the specific technical solutions of the invention will be further described in detail below with reference to the accompanying drawings of the embodiments of the present invention. The following embodiments are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0040] This embodiment provides a data processing method applied to a data processing device. The function implemented by this method can be achieved by the processor in the data processing device calling program code. Of course, the program code can be stored in a computer storage medium. It can be seen that the computing device includes at least a processor and a storage medium.
[0041] Figure 1 This is a schematic diagram illustrating the implementation flow of the data processing method according to an embodiment of the present invention, such as... Figure 1 As shown, the method is applied to a control system, which includes at least one sensing device and a display device; the method includes:
[0042] Step 101: Obtain register information related to the first sensing device; the first sensing device is any one of the at least one sensing devices.
[0043] Step 102: Determine the parsing information corresponding to the first sensing device from the preset object model based on the register information.
[0044] Step 103: Convert the register information according to the parsed information to obtain attribute information corresponding to the first sensing device; the attribute information is used to display on the display device.
[0045] In step 101, the data processing method can be determined according to the actual situation and is not limited here. As an example, the data processing method can be a data parsing and encoding method.
[0046] The control system includes at least a sensing layer, a network layer, a platform layer, and an application layer. The control system also includes an edge gateway device and a base station. Specifically, the at least one sensing device is located within the sensing layer; the display device is located within the application layer; the edge gateway device is located within both the sensing layer and the platform layer; and the base station is located within the network layer.
[0047] The sensing layer connects to the sensors via the edge gateway device and encodes the sensor data. The network layer receives the data from the sensing layer via the wireless network corresponding to the base station and forwards it to the platform layer, while simultaneously receiving data from the platform layer and forwarding it to the sensing layer. The platform layer connects to virtual sensors via the edge gateway device and parses the sensor data. The application layer displays the data from the sensing layer via the display device. The control system can be determined according to actual conditions and is not limited here. As an example, the control system could be a building control system.
[0048] The at least one sensing device can be one sensing device or multiple sensing devices. The number of the at least one sensing device can be determined according to the actual situation and is not limited here.
[0049] The first sensing device can be determined according to the actual situation and is not limited here. As an example, the first sensing device can be a sensor used to collect data. For ease of understanding, the first sensing device can be a duct temperature and humidity sensor, a water pressure gauge, etc.
[0050] As an example, the first sensing device can also be a device status monitoring sensor for monitoring device status. For ease of understanding, the first sensing device could be a water pump start / stop monitoring sensor.
[0051] As an example, the first sensing device can also be an actuator for controlling the state of the equipment, wherein the actuator can control the state of the equipment based on the collected data. For ease of understanding, the first sensing device can be an equipment state controller, which may include a valve angle controller, a water pump start / stop controller, etc.
[0052] The register information can be determined based on the actual situation and is not limited here. As an example, the register information can be information stored in register state.
[0053] In step 102, the preset object model can be an object model, which can be a digital description of the product, defining the product's functions. The object model abstracts and summarizes different product functions to form a "standard object model," facilitating all parties to describe, control, and understand product functions using a unified language. The preset object model can be determined according to actual circumstances and is not limited here. As an example, the preset object model can be an object model that includes the first mapping relationship between the register information and the parsed information.
[0054] The parsing information may at least include a first correspondence between the register information and the attribute information. The parsing information can be determined based on actual circumstances and is not limited here. As an example, the parsing information may be a parsing program. The parsing program may at least include the first correspondence between the register information and the attribute information.
[0055] In step 103, the step of converting the register information according to the parsed information to obtain the attribute information corresponding to the first sensing device can be achieved by converting the register information according to the parsing program to obtain the attribute information corresponding to the first sensing device.
[0056] This invention provides a data processing method applied to a control system, the control system including at least one sensing device and a display device. The method includes: acquiring register information related to a first sensing device; the first sensing device being any one of the at least one sensing devices; determining parsing information corresponding to the first sensing device from a preset object model based on the register information; converting the register information based on the parsing information to obtain attribute information corresponding to the first sensing device; the attribute information being displayed on the display device. By employing the technical solution of this invention, data in the form of register information is converted into attribute information corresponding to the first sensing device, and displayed through the display device, thereby realizing the conversion of single register information into attribute information with the first sensor device as a whole, and the comprehensive display of the attribute information of the first sensing device.
[0057] In an optional embodiment of the present invention, the register information includes at least a register address and register data; the step of determining the parsing information corresponding to the first sensing device from the preset object model based on the register information includes:
[0058] Based on the register address and register data, the parsing information corresponding to the first sensing device is determined from the preset object model.
[0059] In this embodiment, the process of determining the register address can be determined according to the actual situation and is not limited here. As an example, the process of determining the register address may be as follows: determining the first interface to which the first sensing device is connected; determining the first register corresponding to the first sensing device based on the first interface; and determining the register address related to the first sensing device based on the first register.
[0060] The process for determining the register data can be determined according to the actual situation and is not limited here. As an example, the process for determining the register data can be as follows: determine the first physical signal value output by the first sensor device, and determine the register data related to the first sensor device based on the first physical signal value.
[0061] The parsing information can be determined based on actual circumstances and is not limited here. As an example, the parsing information may at least include a first correspondence between the register address and register data and the attribute information. The parsing program may at least include the first correspondence between the register address and register data and the attribute information.
[0062] In an optional embodiment of the present invention, determining the parsing information corresponding to the first sensing device from the preset object model based on the register information includes:
[0063] The second sensing device corresponding to the first sensing device is determined based on the register address;
[0064] Based on the second sensing device, the parsing information corresponding to the first sensing device is determined from the preset object model.
[0065] In this embodiment, the second sensing device can be determined according to the actual situation and is not limited here. As an example, the second sensing device can be a virtual device in the control system that corresponds one-to-one with the first sensing device. For ease of understanding, the second sensing device can be a sub-device of the control system, such as a duct temperature and humidity sensor, a water pressure gauge, a water pump start / stop monitoring sensor, a valve angle controller, a water pump start / stop controller, etc.
[0066] The preset object model can be determined according to the actual situation and is not limited here. As an example, the preset object model can be an object model that includes a second mapping relationship between the second sensing device and the parsed information.
[0067] The parsing information can be determined based on actual circumstances and is not limited here. As an example, the parsing information may at least include a second correspondence between the second sensing device and the attribute information. The parsing program may at least include the second correspondence between the second sensing device and the attribute information.
[0068] In an optional embodiment of the present invention, determining the parsing information corresponding to the first sensing device from the preset object model based on the register information includes:
[0069] The first identification information corresponding to the first sensing device is determined based on the register address;
[0070] Based on the first identification information, the parsing information corresponding to the first sensing device is determined from the preset object model.
[0071] In this embodiment, the first identification information can be determined according to the actual situation, and is not limited here. As an example, the first identification information may be the serial number of the first sensing device. Each first sensing device corresponds to a unique piece of the first identification information.
[0072] As an example, since the second sensing device can be a virtual device that corresponds one-to-one with the first sensing device, the first identification information can be the identification information of the first sensing device and the second sensing device. Specifically, the first identification information uniquely corresponds to both the first sensing device and the second sensing device.
[0073] The identification information may be a device number, and the process for determining the identification information can be determined according to the actual situation, and is not limited here. As an example, the process for determining the identification information may be based on the register address.
[0074] As an example, the process of determining the identification information can also be to determine the identification information based on the register address and the edge gateway device information that has the register set, wherein the edge gateway device information can be the edge gateway device number.
[0075] As an example, edge gateway device information may include one or more of the following: the project number for which the edge gateway device is applied, the name of the edge gateway device, and the address of the edge gateway device.
[0076] The preset object model can be determined according to the actual situation and is not limited here. As an example, the preset object model can be an object model that includes a third mapping relationship between the first identification information and the parsed information.
[0077] The parsing information can be determined based on actual circumstances and is not limited here. As an example, the parsing information may at least include a third correspondence between the first identification information and the attribute information. The parsing program may at least include a third correspondence between the first identification information and the attribute information.
[0078] In an optional embodiment of the present invention, determining the parsing information corresponding to the first sensing device from the preset object model based on the first identification information includes:
[0079] Based on the first identification information, a second identification information corresponding to the first sensing device is determined; wherein, the second identification information corresponds to multiple different first identification information;
[0080] Based on the second identification information, the parsing information corresponding to the first sensing device is determined from the preset object model.
[0081] In this embodiment, the second identification information can be determined according to actual conditions, and is not limited here. As an example, the second identification information can be the model identification information of the first sensing device. Each set of first identification information corresponds to a unique second identification information.
[0082] The model identification information may be the device model number, and the process for determining the model identification information can be determined according to the actual situation, and is not limited here. As an example, the process for determining the model identification information may be based on the performance, specifications, and size of the first sensing device.
[0083] The preset object model can be determined according to the actual situation and is not limited here. As an example, the preset object model can be an object model that includes a fourth mapping relationship between the second identification information and the parsed information.
[0084] The parsing information can be determined based on actual circumstances and is not limited here. As an example, the parsing information may at least include a fourth correspondence between the second identification information and the attribute information. The parsing program may at least include a fourth correspondence between the second identification information and the attribute information.
[0085] In an optional embodiment of the present invention, the attribute information includes at least attribute values; the step of converting the register information according to the parsed information to obtain attribute information corresponding to the first sensing device includes:
[0086] The parsing method corresponding to the first sensing device is determined based on the parsing information;
[0087] The register data is converted and processed based on the parsing method to obtain the attribute value corresponding to the first sensing device.
[0088] In this embodiment, the parsing information can be determined according to actual conditions and is not limited here. As an example, the parsing information may at least include a fifth correspondence between the first sensing device and the parsing method. The parsing program may at least include a fifth correspondence between the first sensing device and the parsing method. Wherein, the first sensing device corresponds to a unique parsing method.
[0089] The parsing method can be determined based on the actual situation and is not limited here. As an example, the parsing method may at least include a sixth correspondence between the register data and the attribute value.
[0090] The attribute value can be the actual physical value of the first sensing device.
[0091] In an optional embodiment of the present invention, the attribute information includes at least attribute parameters; the step of converting the register information according to the parsed information to obtain attribute information corresponding to the first sensing device includes:
[0092] Determine the third identification information corresponding to the register address based on the parsed information;
[0093] The attribute parameters corresponding to the first sensing device are determined based on the third identification information.
[0094] In this embodiment, the parsing information can be determined according to actual conditions and is not limited here. As an example, the parsing information may at least include a seventh correspondence between the register address and the third identification information, and an eighth correspondence between the third identification information and the attribute parameter. The parsing program may at least include a seventh correspondence between the register address and the third identification information, and an eighth correspondence between the third identification information and the attribute parameter. Wherein, the register address corresponds to a unique third identification information, and the third identification information corresponds to a unique attribute parameter. The attribute parameter may be an attribute field.
[0095] The third identification information can be parameter identification information. The parameter identification information can be determined based on actual circumstances and is not limited here. As an example, the parameter identification information can be personalized parameters.
[0096] To understand the embodiments of the present invention, the following description uses the edge gateway device as a DDC device as an example. Other programmable edge gateways that store data in registers are implemented in a similar way to DDC.
[0097] Figure 2 This is a schematic diagram of the DDC hardware architecture of the data processing method according to an embodiment of the present invention, as shown below. Figure 2 As shown, a typical DDC (Data Center) includes four types of input / output interfaces (DI / DO / AI / AO), an RS485 interface, and a network port. The input / output interfaces are used for sensor data acquisition and actuator control, while the RS485 interface and network port are primarily used for communication with other devices, including sensors, various edge gateways, and cloud platforms. The meanings of the input / output interfaces are as follows:
[0098] DI (Digital Input): Digital input, with a Boolean data type. The input has only two states: 0 and 1, where 0 represents off and 1 represents on. It can be used to monitor sensors with only two states, such as detecting the start and stop of a water pump or the opening and closing of a valve.
[0099] DO (Digital Output): Digital output, data type Boolean, with only two states: 0 and 1, where 0 indicates disconnection and 1 indicates conduction. It can be used to control the status of equipment, such as controlling the start and stop of a water pump or the opening and closing of a valve.
[0100] AI (Analog Input): Analog input, data type is numerical, supports programmable selection of voltage and current signals, usually with a value range such as 0-100, converts the value 0-100 into a physically meaningful real value. It can be used to connect to sensors such as duct temperature and humidity sensors and water level monitors.
[0101] AO (Analog Output): Analog output, data type is numerical, supports programmable selection of voltage and current signals. It can be used to control the opening angle of feedback solenoid valves, equipment operating frequency, etc.
[0102] All data in the DDC is stored in the form of registers. If the cloud platform connects to the DDC via the network port using the Data Communication Protocol for Building Automation and Control Network (BACnet), and wants to obtain the status of a certain sensor, it needs to find the corresponding input / output interface of the sensor and obtain the data of its corresponding register.
[0103] Any monitoring or control indicator needs to be connected through the hardware interface of the DDC. Table 1 shows the mapping between DDC register information and sensor indicators in the data processing method of this embodiment of the invention. As shown in Table 1, some sensor indicators and register information used in HVAC systems are listed in Table 1.
[0104]
[0105] Table 1 is a mapping table of DDC register information and sensor indicators in the data processing method of the present invention.
[0106] Taking a duct temperature and humidity sensor as an example, the sensor monitors the temperature and humidity within the duct. Both temperature and humidity are analog quantities. The hardware interface for temperature is AI1, and the register mapped to AI1 is also AI1. The register data is 40. Converting the register data to the actual temperature value requires two steps. The first step is to convert the register data into a real physical signal value. The second step is to convert the physical signal value into the actual temperature value based on the temperature curve of the temperature sensor. Assuming the temperature is a voltage signal with a range of 0-10V, corresponding to a registered data range of 0-100, the register data value is determined to be 10 times the voltage value. If the temperature curve is T(°C) = 10U - 20, where U is the voltage value, then T = 10 × (40 / 10) - 20 = 20°C.
[0107] Similarly, taking a water pump start / stop controller as an example, the interface connected to the water pump start / stop is DO1, and the mapped register is BO1 (Binary Output 1), with a corresponding register address of 30001. A register data of 0 indicates that output DO is disconnected. In the external circuit, the water pump is typically started by conducting and stopped by disconnecting, so its physical meaning is stopping the water pump. The same logic applies to analyzing the variables of other common input / output interfaces.
[0108] As for RS485 water pressure gauges, since they acquire data through RS485 communication interface, the data acquired through communication needs to be converted into internal variables in DDC. The analog internal variables in DDC are mapped to AV (Analog Value) type registers, so it is necessary to find the corresponding registers and convert them into real physical values.
[0109] The data parsing reported by DDC uses a data model of gateway and sub-devices. Figure 3 This is a schematic diagram of the gateway sub-device data parsing architecture of the data processing method according to an embodiment of the present invention, as shown below. Figure 3 As shown, the key components of the overall architecture are the sensing layer and the platform layer.
[0110] At the sensing layer, the DDC (Data Center) connects to various sensors via input / output interfaces. Sensor control points are distinguished by addresses, which are the addresses of the connected DDC interfaces or the register addresses mapped to those interfaces. The platform layer manages the devices and data. Figure 3 The diagram shows the object model parsing section. An object model is a device parsing model on an IoT platform. It parses register information (register data and register addresses) to generate combinations of attribute fields and attribute values (key, value). In object model parsing, the DDC corresponds to the gateway's data model parsing, and the connected sensors or actuators correspond to different sub-device parsing programs or methods.
[0111] During uplink, the gateway first determines which sub-device it is based on register information, then forwards the register information to the sub-device, which then performs the actual parsing of the register information. This ensures consistency between data parsing at the platform layer, data display at the application layer, and data from the actual devices in the sensing layer. When registering a device at the platform layer, the sub-device needs to be associated with the edge gateway device, and the associated address must be consistent with the device address (register address) at the sensor layer. The platform layer also calls the corresponding object model parsing program for the sub-device based on different device addresses (register addresses).
[0112] A base station is a carrier base station, mainly used for wireless network connection and data forwarding. The base station sends device data to the platform layer according to the IP address, and at the same time receives data from the platform and forwards it to the device.
[0113] Since the data (register information) reported by the DDC only contains register addresses and register data, taking a duct temperature and humidity sensor as an example, with temperature connected to AI1 of the DDC and humidity connected to AI2, the reported data format (data type) for temperature is {portAddress:10001, portValue:40, ...}, and the reported data format (data type) for humidity is {portAddress:10002, portValue:40, ...}. These data types correspond to register types, and only the register address and register data are reported. Users need to parse the data according to the register type corresponding to the data type and convert it into the actual physical value. The usual approach is to store a device location map on the platform and then index and display it based on the register address. This device location map includes at least the register address, register type, sensor type, indicator value, and conversion method. This solution can only determine the corresponding indicator value based on the current register address, lacking the concept of device dimensions, making data display, viewing, and debugging inconvenient. Therefore, it is necessary to map register information to the attributes of a specific device type.
[0114] In this embodiment, a device type is created, and the register address is associated with the device's attribute parameters as a personalized parameter. During device parsing, the register address can be obtained from the reported data (register information). Based on the register address and attribute fields corresponding to the personalized parameters, the device's attribute fields are determined. Then, the register data is converted into actual physical values (attribute values), and the device's attribute information (attribute fields and attribute values) is displayed. The personalized parameters are not fixed and may differ for each device. For example, for a current transformer meter, the actual current can be the product of the meter's current reading and the transformer ratio. Since the meter reports its current reading, the platform needs to display the meter's actual current. Therefore, a corresponding transformer ratio needs to be configured for each meter based on its actual installation, and the transformer ratio is used as a personalized parameter for the meter. Table 2 shows the mapping table between DDC register information and attribute fields in this embodiment of the invention. As shown in Table 2, Table 2 includes the mapping relationship from register information to sensor attribute information (attribute fields and attribute values).
[0115] Register address Register value attribute fields Attribute value Personalized parameters 10001 40 tempture 20℃ temptureAdr 10002 56 humidity 56% humidityAdr
[0116] Table 2 is a mapping table of DDC register information and attribute fields in the data processing method of the present invention.
[0117] Since the reported data (register information) only contains register addresses and register data, it is necessary to associate the device number with the register address, i.e., to perform device encoding. Each register address corresponds to a unique device number, multiple device numbers correspond to a unique device model, and each device model corresponds to a unique parsing program. Table 3 is a mapping table of DDC register information and device model in the data processing method of this embodiment of the invention. As shown in Table 3, Table 3 includes the mapping relationship from register information to device model. When this register address is reported, the unique device number can be determined based on the register address, and the corresponding device model can be found based on the device number. The parsing program for the corresponding model is then called to parse the reported data (register information). This is then displayed using attribute fields and attribute values, where the attribute values represent the actual values with physical meaning.
[0118]
[0119] Table 3 is a mapping table of DDC register information and device model in the data processing method of the present invention.
[0120] In device coding, since DDCs of the same model share identical registers, each DDC must be uniquely coded. This ensures the platform can locate the corresponding DDC device and transmit data to it. If the DDC uses IP communication, it will have a unique IP address. When registering a DDC on the platform, the unique identifier can be "Project Number + DDC + IP Address". The Project Number represents the project number used by the device, such as "XX Smart Park Project," "XX Apartment Management Project," etc. Each project can be assigned a unique number, similar to a contract number.
[0121] For example, if the project number is 0001 and the IP address is 192.168.1.1, then the DDC number could be 0001DDC1921680010001. The corresponding sub-device number can be the DDC number plus the register address of a specific attribute of the sub-device, separated by a "-", indicating that the data parsing data model type of this device is a sub-device. For instance, the device number for duct temperature and humidity monitoring could be encoded using the register address of the temperature attribute, resulting in 0001DDC192168001001-10001, or it could be encoded using the register address of the humidity attribute, resulting in 0001DDC192168001001-10002.
[0122] After normal data parsing, the device can display data based on the hardware sensors and assign the sensors to corresponding spatial areas. If the upper application layer needs to display the data, it can directly retrieve the corresponding device attribute values based on the device ID, or filter the data based on the spatial area. Figure 4 This is a schematic diagram of the sensor data display list in the data processing method of this invention, as shown in the embodiment of the invention. Figure 4 As shown, a list of sensor cards is displayed. Each card is labeled with the device name (usually a combination of space and type), device type, device icon, device attributes and attribute values, and the time of the latest reported data.
[0123] This embodiment utilizes the data model of the gateway sub-device at the platform layer to parse and process device data. Through personalized parameters, register data is converted into sensor field data. A device encoding mechanism is established to achieve unified device encoding, facilitating data analysis. Furthermore, through device data parsing and device encoding, data is displayed at the platform layer in the form of sensors, achieving a one-to-one correspondence between platform-level data display and sensor hardware. A universal data interface is provided, allowing upper-layer application systems to directly call the interface to obtain data. This ensures that the intuitive display on the software platform should show a single device with multiple attributes, rather than directly displaying multiple values or multiple devices.
[0124] This embodiment designs a device parsing and encoding method to convert data in the form of register addresses from PLCs and DDCs into data in the form of sensor devices, enabling comprehensive data display using sensors and facilitating integration with third-party application platforms. By establishing a device parsing and encoding method, data from registers as a single data source is converted into data from sensors as a whole. In terms of software parsing, it enables "develop once, apply many times," solving the difficulties of traditional register data analysis and improving the efficiency of device development and management.
[0125] This invention provides a data processing device. Figure 5 This is a schematic diagram of the composition structure of the data processing device according to an embodiment of the present invention, as shown below. Figure 5 As shown, the data processing device 500 is applied to a control system, which includes at least one sensing device and a display device; the data processing device 500 includes:
[0126] The acquisition module 501 is used to acquire register information related to the first sensing device; the first sensing device is any one of the at least one sensing devices;
[0127] The determining module 502 is used to determine the parsing information corresponding to the first sensing device from the preset object model based on the register information;
[0128] The processing module 503 is used to convert the register information according to the parsed information to obtain attribute information corresponding to the first sensing device; the attribute information is used to display on the display device.
[0129] In other embodiments, the register information includes at least a register address and register data; the determining module 502 is further configured to determine parsing information corresponding to the first sensing device from the preset object model based on the register address and register data.
[0130] In other embodiments, the determining module 502 is further configured to determine a second sensing device corresponding to the first sensing device based on the register address; and to determine parsing information corresponding to the first sensing device from the preset object model based on the second sensing device.
[0131] In other embodiments, the determining module 502 is further configured to determine first identification information corresponding to the first sensing device based on the register address; and determine parsing information corresponding to the first sensing device from the preset object model based on the first identification information.
[0132] In other embodiments, the determining module 502 is further configured to determine second identification information corresponding to the first sensing device based on the first identification information; wherein the second identification information corresponds to multiple different first identification information; and to determine parsing information corresponding to the first sensing device from the preset object model based on the second identification information.
[0133] In other embodiments, the attribute information includes at least attribute values; the processing module 503 is further configured to determine a parsing method corresponding to the first sensing device based on the parsing information; and to perform conversion processing on the register data based on the parsing method to obtain attribute values corresponding to the first sensing device.
[0134] In other embodiments, the attribute information includes at least attribute parameters; the processing module 503 is further configured to determine third identification information corresponding to the register address based on the parsed information; and to determine attribute parameters corresponding to the first sensing device based on the third identification information.
[0135] The description of the above device embodiments is similar to that of the above method embodiments, and has similar beneficial effects. For technical details not disclosed in the device embodiments of the present invention, please refer to the description of the method embodiments of the present invention for understanding.
[0136] It should be noted that, in the embodiments of the present invention, if the above-described data processing method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a data processing device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of the present invention are not limited to any specific hardware and software combination.
[0137] Correspondingly, embodiments of the present invention provide a data processing device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements any step of the above-described method.
[0138] Correspondingly, embodiments of the present invention provide a storage medium storing executable instructions, which, when executed by a processor, implement any step of the above-described data processing method.
[0139] It should be noted that the descriptions of the storage medium and device embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of the present invention, please refer to the descriptions of the method embodiments of the present invention for understanding.
[0140] It should be noted that, Figure 6 This is a schematic diagram of a hardware entity structure of a data processing device in an embodiment of the present invention, such as... Figure 6 As shown, the hardware entity of the data processing device 600 includes a processor 601 and a memory 603. Optionally, the data processing device 600 may also include a communication interface 602.
[0141] It is understood that memory 603 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 603 described in this embodiment of the invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0142] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 601. Processor 601 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 601 or by instructions in software form. The processor 601 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 601 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present invention can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 603. Processor 601 reads the information in memory 603 and combines it with its hardware to complete the steps of the aforementioned method.
[0143] In an exemplary embodiment, the data processing device may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0144] In the several embodiments provided by this invention, it should be understood that the disclosed methods and apparatus can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components may be combined, or integrated into another observation, or some features may be ignored or not executed. In addition, the communication connections between the various components shown or discussed may be through some interfaces, indirect coupling or communication connections between devices or units, and may be electrical, mechanical, or other forms.
[0145] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0146] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0147] Alternatively, if the integrated units described above in the embodiments of the present invention are implemented as software functional units and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a data processing device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0148] The data processing method, apparatus, and computer storage medium described in this invention are only examples of embodiments of this invention, but are not limited thereto. Any data processing method, apparatus, and computer storage medium involved are within the protection scope of this invention.
[0149] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of the invention, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the invention. The sequence numbers of the above-described embodiments of the invention are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0150] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0151] The above description is merely an embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A data processing method, characterized in that, The method is applied to a control system, which includes at least one sensing device and a display device; the method includes: Obtain register information related to the first sensing device; the first sensing device is any one of the at least one sensing devices; Based on the register information, the parsing information corresponding to the first sensing device is determined from the preset object model, including: The second sensing device corresponding to the first sensing device is determined based on the register address; Based on the second sensing device, the parsing information corresponding to the first sensing device is determined from the preset object model; The register information is converted and processed according to the parsed information to obtain the attribute information corresponding to the first sensing device; The attribute information includes at least attribute parameters; the step of converting the register information according to the parsed information to obtain the attribute information corresponding to the first sensing device includes: Determine the third identification information corresponding to the register address based on the parsed information; Based on the third identification information, the attribute parameters corresponding to the first sensing device are determined; The attribute information is used for display on the display device.
2. The method according to claim 1, characterized in that, The register information includes at least a register address and register data; the step of determining the parsing information corresponding to the first sensing device from the preset object model based on the register information includes: Based on the register address and register data, the parsing information corresponding to the first sensing device is determined from the preset object model.
3. The method according to claim 1 or 2, characterized in that, The step of determining the parsing information corresponding to the first sensing device from the preset object model based on the register information includes: The first identification information corresponding to the first sensing device is determined based on the register address; Based on the first identification information, the parsing information corresponding to the first sensing device is determined from the preset object model.
4. The method according to claim 3, characterized in that, The step of determining the parsing information corresponding to the first sensing device from the preset object model based on the first identification information includes: Based on the first identification information, a second identification information corresponding to the first sensing device is determined; wherein, the second identification information corresponds to multiple different first identification information; Based on the second identification information, the parsing information corresponding to the first sensing device is determined from the preset object model.
5. The method according to claim 2, characterized in that, The attribute information includes at least attribute values; the step of converting the register information according to the parsed information to obtain attribute information corresponding to the first sensing device includes: The parsing method corresponding to the first sensing device is determined based on the parsing information; The register data is converted and processed based on the parsing method to obtain the attribute value corresponding to the first sensing device.
6. A data processing apparatus, characterized in that, The device is applied to a control system, which includes at least one sensing device and a display device; the device includes: An acquisition module is used to acquire register information related to a first sensing device; the first sensing device is any one of the at least one sensing devices. The determining module is used to determine the parsing information corresponding to the first sensing device from the preset object model based on the register information, including: The second sensing device corresponding to the first sensing device is determined based on the register address; Based on the second sensing device, the parsing information corresponding to the first sensing device is determined from the preset object model; The processing module is used to convert the register information according to the parsed information to obtain attribute information corresponding to the first sensing device; The attribute information includes at least attribute parameters; the step of converting the register information according to the parsed information to obtain the attribute information corresponding to the first sensing device includes: Determine the third identification information corresponding to the register address based on the parsed information; Based on the third identification information, the attribute parameters corresponding to the first sensing device are determined; The attribute information is used for display on the display device.
7. A data processing device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the method according to any one of claims 1 to 5.
8. A storage medium, characterized in that, The storage medium stores executable instructions, which, when executed by a processor, implement the data processing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Information display method and device, equipment and storage medium
CN112905396A
Data processing method and device, electronic equipment and storage medium
CN114070863A