Data processing method and device, building control system, electronic equipment and medium

By establishing a dynamic mapping relationship between data transmission equipment and virtual controllers in the building control system, the problem that traditional controller local logic processing mode is difficult to meet the complex logic processing and large data volume concurrent processing is achieved, and efficient and accurate data routing and system scalability are improved.

CN119717612APending Publication Date: 2025-03-28GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411830820.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In modern building control systems, the traditional controller local logic processing mode is difficult to meet the needs of complex logic processing and large data concurrent processing, and how to ensure accurate data transmission to cloud logic processing services after the increase in the number of devices becomes a challenge.

Method used

When the data transmission device requests registration, it establishes an association relationship based on the points it needs to upload and the points that the virtual controller can process in the mapping table, and records it in the mapping table, and realizes dynamic mapping between the data transmission device and the virtual controller. When the data transmission device uploads point data, it quickly determines the target virtual controller according to the mapping table and routes the data to the target virtual controller for processing.

Benefits of technology

It realizes efficient and accurate data routing, improves data processing efficiency, reduces human intervention, and improves the scalability and maintenance efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119717612A_ABST
    Figure CN119717612A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, a building control system, electronic equipment and a medium. The method comprises the following steps: when a data transmission device requests for registration, establishing an association relationship between the data transmission device and a virtual controller according to a point location which needs to be uploaded by the data transmission device and a point location which can be processed by each virtual controller in a mapping table, and recording the association relationship in the mapping table; when the point location data uploaded by any registered data transmission device is received, determining a target virtual controller according to the association relationship related to the point location of the data transmission device in the mapping table; and forwarding the point location data to the target virtual controller for processing. According to the invention, when the data transmission device requests for registration, the data transmission device and the corresponding virtual controller are automatically associated based on the point location, dynamic mapping is realized, the target virtual controller can be quickly determined based on the mapping table, efficient and accurate data routing is realized, and the data processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method, device, building control system, electronic equipment and medium. Background Art

[0002] In the field of modern building control, with the development of building intelligence and equipment automation, various devices in the building are managed by a large number of controllers. The main task of the controller is to collect data from the underlying equipment. In traditional control systems, the controller not only performs data collection, but also undertakes some logic processing tasks. However, with the continuous expansion of the scale of building systems, the types and number of equipment have increased dramatically, and the traditional controller local logic processing mode has exposed some obvious problems. First, the hardware resources of the controller are limited, and the computing power and storage capacity are difficult to withstand complex logic processing and concurrent processing of large amounts of data. Secondly, if the controller needs to update the logic or adjust the control strategy, it is often necessary to modify the controller one by one, which is inefficient and has high maintenance costs. In addition, with the increasing requirements for the intelligence of building automation systems, the control logic has become more and more complex, and the traditional local processing mode is difficult to meet these requirements.

[0003] You can consider migrating the logic processing function of the controller to the cloud to form a centralized and modular logic processing architecture. The controller is only responsible for data collection and transmission, and the complex logic processing tasks are handed over to the cloud server. This architecture reduces the hardware burden of the controller and facilitates unified management and upgrading of logic processing services. Centralized processing in the cloud not only improves the flexibility and scalability of the system, but also allows dynamic allocation of computing resources according to actual needs, making full use of the computing and storage capabilities of the cloud.

[0004] However, as the number of devices and controllers continues to increase, how to ensure that the data of each controller can be accurately transmitted to the corresponding logical processing service (i.e., virtual controller) in the cloud has become a new technical challenge. Summary of the invention

[0005] Embodiments of the present invention provide a data processing method, device, building control system, electronic device and medium to at least solve the problem in the prior art of how to accurately transmit data to a corresponding logical processing service in the cloud.

[0006] To solve the above technical problems, an embodiment of the present invention provides a data processing method, including:

[0007] When the data transmission device requests registration, an association relationship between the data transmission device and the virtual controller is established according to the points that the data transmission device needs to upload and the points that can be processed by each virtual controller in the mapping table, and is recorded in the mapping table;

[0008] When receiving point data uploaded by any registered data transmission device, determining the target virtual controller according to the association relationship involved in the point of the data transmission device in the mapping table;

[0009] The point data is forwarded to the target virtual controller for processing.

[0010] Optionally, when the data transmission device requests registration, an association relationship between the data transmission device and the virtual controller is established according to the points that the data transmission device needs to upload and the points that can be processed by each virtual controller in the mapping table, and is recorded in the mapping table, including:

[0011] Receive registration information of the data transmission device, wherein the registration information of the data transmission device includes: a unique identifier of the data transmission device and location information of the data transmission device to be uploaded;

[0012] Adding the registration information of the data transmission device to the device registration table;

[0013] For each point involved in the data transmission device, a virtual controller that can handle the point is searched in the mapping table, and the unique identifier of the data transmission device, the unique identifier of the virtual controller and the point identifier of the point are associated and recorded in the mapping table.

[0014] Optionally, the above method further includes:

[0015] Receive registration information of a virtual controller, wherein the registration information of the virtual controller includes: a unique identifier of the virtual controller and point information that it can process;

[0016] The registration information of the virtual controller is stored in the mapping table.

[0017] Optionally, determining the target virtual controller according to the association relationship involved in the point position of the data transmission device in the mapping table includes:

[0018] Obtaining a unique identifier of the data transmission device and a point identifier of the point data;

[0019] Searching the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data;

[0020] The found virtual controller is used as the target virtual controller.

[0021] Optionally, after searching the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data, the method further includes:

[0022] If the number of found virtual controllers is two or more, a currently idle virtual controller is selected as the target virtual controller.

[0023] Optionally, after searching the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data, the method further includes:

[0024] If there are two or more servers in the cloud, obtain the load status of each server, select the server with the lowest load, and use the virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data in the server with the lowest load as the target virtual controller.

[0025] An embodiment of the present invention further provides a data processing device, including:

[0026] A registration module, used for establishing an association relationship between the data transmission device and the virtual controller according to the points that the data transmission device needs to upload and the points that can be processed by each virtual controller in the mapping table when the data transmission device requests registration, and recording it in the mapping table;

[0027] A determination module, configured to determine a target virtual controller according to an association relationship involved in the point of the data transmission device in the mapping table when receiving point data uploaded by any registered data transmission device;

[0028] The forwarding module is used to forward the point data to the target virtual controller for processing.

[0029] An embodiment of the present invention further provides a building control system, comprising: a data transmission device and a cloud server, wherein the cloud server comprises the data processing device described in the embodiment of the present invention and at least one virtual controller.

[0030] An embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data processing method described in the embodiment of the present invention when executing the computer program.

[0031] An embodiment of the present invention further provides a non-volatile computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data processing method described in the embodiment of the present invention is implemented.

[0032] By applying the technical solution of the present invention, when the data transmission device requests registration, the data transmission device is automatically associated with the corresponding virtual controller based on the point, and the association relationship is recorded in a mapping table, thereby realizing dynamic mapping of the data transmission device and the virtual controller. When the data transmission device subsequently uploads point data, the target virtual controller is quickly determined directly according to the mapping table, and the point data is routed to the target virtual controller for processing, thereby realizing efficient and accurate data routing, improving data processing efficiency, and eliminating the need for human intervention, thereby greatly improving the scalability and maintenance efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a flow chart of a data processing method provided by an embodiment of the present invention;

[0034] Figure 2 is an architecture diagram of data processing provided by an embodiment of the present invention;

[0035] Figure 3 is an automatic registration flow chart provided by an embodiment of the present invention;

[0036] Figure 4 is a schematic diagram of dynamic mapping of the scheduling layer provided by an embodiment of the present invention,

[0037] Figure 5 is a structural block diagram of a data processing device provided by an embodiment of the present invention;

[0038] Figure 6 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0041] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0042] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0043] The optional embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0044] Example 1

[0045] This embodiment provides a data processing method, which is applied to a building control scenario and can accurately transmit data to a corresponding logic processing service in the cloud. The data processing method can be executed by a cloud server. Figure 1 is a flow chart of a data processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0046] S101, when a data transmission device requests registration, an association relationship between the data transmission device and a virtual controller is established according to points that the data transmission device needs to upload and points that can be processed by each virtual controller in a mapping table, and the association relationship is recorded in the mapping table.

[0047] S102, when receiving point data uploaded by any registered data transmission device, determining a target virtual controller according to an association relationship involved in the point of the data transmission device in the mapping table.

[0048] S103, forwarding the point data to the target virtual controller for processing.

[0049] The data transmission device can be the underlying device itself, that is, the underlying device directly communicates with the cloud server, and the underlying device directly uploads data to the cloud server. The data transmission device can also be a controller, that is, the underlying device communicates with the cloud server through the controller, and the controller uploads data to the cloud server.

[0050] Any underlying device can be regarded as a collection of points, each of which corresponds to a functional module. For example, fire alarm equipment includes points such as temperature collection, smoke alarm, and lighting control. For any point, if its data needs to be uploaded to the cloud for logical processing, it is considered that the point is the point that the data transmission device to which it belongs needs to upload.

[0051] The virtual controller is located in the cloud server. The virtual controller is used to provide logic processing services to process the corresponding point data. The virtual controller can be divided into functional modules and is responsible for specific types of equipment or tasks, such as a virtual controller responsible for temperature regulation, a virtual controller responsible for lighting control, etc. Both the data transmission device and the virtual controller need to be registered in the cloud server.

[0052] This embodiment automatically establishes an association between the data transmission device and the corresponding virtual controller based on the point when the data transmission device requests registration, and records the association relationship in a mapping table, thereby realizing dynamic mapping of the data transmission device and the virtual controller. When the data transmission device subsequently uploads point data, the target virtual controller is quickly determined directly according to the mapping table, and the point data is routed to the target virtual controller for processing, thereby realizing efficient and accurate data routing, improving data processing efficiency, and eliminating the need for human intervention, greatly improving the scalability and maintenance efficiency of the system.

[0053] In one embodiment, when a data transmission device requests registration, an association relationship between the data transmission device and the virtual controller is established according to the points that the data transmission device needs to upload and the points that can be processed by each virtual controller in the mapping table, and is recorded in the mapping table, including:

[0054] Receive registration information of the data transmission device, wherein the registration information of the data transmission device includes: a unique identifier of the data transmission device and location information of the data transmission device to be uploaded;

[0055] Adding the registration information of the data transmission device to the device registration table;

[0056] For each point involved in the data transmission device, a virtual controller that can handle the point is searched in the mapping table, and the unique identifier of the data transmission device, the unique identifier of the virtual controller and the point identifier of the point are associated and recorded in the mapping table.

[0057] After the data transmission device is started, it will connect to the cloud server through the preset communication protocol and automatically report the registration information. The registration information of the data transmission device includes: the unique identifier of the data transmission device (such as UUID or MAC address) and its point information (such as point unique identifier, point attributes, etc.). After the cloud server receives the registration information of the data transmission device, it adds the registration information to the device registration table to realize the automatic registration of the data transmission device. In addition, when the data transmission device is registered, the association relationship between the data transmission device and the virtual controller is established based on the point identifier and recorded in the mapping table to realize the dynamic mapping of the data transmission device and the virtual controller. A scheduling layer can be set up in the cloud server to be responsible for registration, maintenance of mapping tables and data routing.

[0058] This implementation method can dynamically maintain the associated mapping relationship between all virtual controllers and data transmission devices in the system through an automated registration mechanism and a dynamic mapping mechanism, realize the automation of device discovery and location management, ensure the effective registration and management of data transmission devices and their locations without the need for human intervention, and greatly improve the scalability and maintenance efficiency of the system.

[0059] The registration of the virtual controller can be achieved through the following steps: receiving the registration information of the virtual controller, wherein the registration information of the virtual controller includes: the unique identification of the virtual controller and the point information that it can process; storing the registration information of the virtual controller in the mapping table.

[0060] When the virtual controller starts, it automatically collects its own IP address, port number, and processable point information (such as point unique identifier, point attributes, etc.), packages it into a data packet (i.e., the registration information of the virtual controller), and sends it to the scheduling layer through the preset interface. After receiving the data packet, the scheduling layer dynamically updates the mapping table according to the registration information of the virtual controller, thereby realizing automatic registration of the virtual controller. The IP address and port number can uniquely identify a virtual controller. When registering a virtual controller, the cloud server can automatically assign an unoccupied port number to the virtual controller without the user having to set up a configuration file, simplifying user operations.

[0061] This implementation method realizes automatic registration and management of virtual controllers based on the mapping table without manual intervention, which greatly improves the scalability and maintenance efficiency of the system.

[0062] The mapping table records the point ID, the unique ID of the virtual controller that can process the point, and the unique ID of the data transmission device that needs to upload the point. Based on the associations recorded in the mapping table, it is possible to quickly determine which virtual controller the point data uploaded by the data transmission device needs to be forwarded to for processing, thus achieving efficient and accurate data routing. With the registration of data transmission devices and virtual controllers, the mapping table can be dynamically updated to ensure that the system's device management is more intelligent and efficient, reducing human intervention and errors.

[0063] In an optional embodiment, the target virtual controller is determined based on the association relationship involved in the point of the data transmission device in the mapping table, including: obtaining the unique identifier of the data transmission device and the point identifier of the point data; searching the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data; and using the found virtual controller as the target virtual controller.

[0064] Based on the mapping table, this implementation can quickly determine which virtual controller the point data uploaded by the data transmission device needs to be forwarded to for processing, thereby achieving efficient and accurate data routing between the data transmission device and the virtual controller, ensuring that the data of each data transmission device can be accurately forwarded to its corresponding virtual controller, and achieving efficient data transmission and management.

[0065] Considering that there may be multiple virtual controllers with the same processing logic, in one embodiment, after searching the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data, the method further includes: if the number of virtual controllers found is two or more, selecting a currently idle virtual controller as the target virtual controller, thereby ensuring that the data can be processed in a timely manner.

[0066] In actual applications, multiple servers can be set up in the cloud, so the virtual controller may run on different servers at the same time, so it is necessary to dynamically handle cross-server routing issues. In one embodiment, after searching the mapping table for the virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data, it also includes: if there are two or more servers in the cloud, obtain the load status of each server, select the server with the lowest load, and use the virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data in the server with the lowest load as the target virtual controller.

[0067] This implementation method dynamically allocates tasks among virtual controllers of different servers through a distributed scheduling algorithm, selects a server with low load and sufficient resources, and forwards point data to the corresponding virtual controller on the server for processing, thereby achieving accurate data routing across servers.

[0068] The cloud server can use scheduled tasks to determine whether the registered data transmission device and virtual controller are online. If no response is received from the other party within a timeout period, it is considered that the other party is offline and its status is marked in the mapping table to avoid forwarding the point data to the offline virtual controller. In other words, the aforementioned target virtual controller needs to be online to ensure that the point data can be logically processed in a timely manner.

[0069] If the point that the data transmission device needs to upload is changed, for example, a new underlying device is connected to the controller, the data transmission device sends a message to the cloud server to inform the cloud server of the specific point change information, so that the cloud server can update the mapping table in time according to the point change information.

[0070] Example 2

[0071] This embodiment provides a specific implementation of the data processing method based on the above embodiment. The explanations of terms that are the same or corresponding to the above embodiment will not be repeated in this embodiment.

[0072] The above data processing method is described below in conjunction with a specific embodiment. However, it should be noted that this specific embodiment is only for better illustrating the present application and does not constitute an improper limitation on the present application.

[0073] like Figure 2 As shown, it is a data processing architecture diagram. The cloud server includes a scheduling layer 10 and at least one virtual controller 20. The scheduling layer 10 is used to realize dynamic port mapping and data routing between the virtual controller 20 and the data transmission device. The scheduling layer 10 maintains a mapping table, which records the unique identifier of the virtual controller, the point identifier that the virtual controller can process, and the unique identifier of the associated data transmission device. The virtual controller 20 is mainly used for data collection, processing and forwarding, device management and resource optimization.

[0074] The data transmission device includes: a physical controller 30 and / or a device 40. The device 40 is a bottom-level device or a field device. The physical controller 30 can be connected to at least one device 40 to control, collect data and transmit data to the connected device, and also has configuration and maintenance functions.

[0075] like Figure 3 As shown in the figure, it is an automatic registration flow chart, which includes the following steps:

[0076] S301, the virtual controller is started.

[0077] S302, obtaining registration information of the virtual controller, including: the IP address, port, alias, and processable point information of the virtual controller.

[0078] S303, the physical controller starts.

[0079] S304, obtaining registration information of the physical controller, including: UUID, MAC, and point information to be uploaded of the physical controller.

[0080] S305, the device starts.

[0081] S306, obtaining the registration information of the device, including: the UUID, MAC, and location information of the device to be uploaded.

[0082] S307, the scheduling layer receives and stores the registration information, updates the mapping table according to the registration information, and completes the registration.

[0083] One of the core functions of the scheduling layer is to implement dynamic port mapping and data routing between virtual controllers and data transmission devices. The scheduling layer maintains a mapping table that records the unique identifier of each virtual controller, the point identifier that the virtual controller can process, and the unique identifier of its associated data transmission device, such as Figure 4 After receiving the point data reported by the data transmission device, the scheduling layer matches the unique identifier of the data transmission device and the point identifier of the point data with the virtual controller instance in the mapping table to determine which virtual controller the point data should be forwarded to, ensuring that the data of each data transmission device can be accurately forwarded to its corresponding virtual controller instance, achieving accurate routing, and realizing efficient data transmission and management.

[0084] Multiple virtual controllers may run on different servers at the same time, so the scheduling layer needs to dynamically handle cross-server routing issues. The scheduling layer uses a distributed scheduling algorithm to monitor the virtual controller instances running on each server in real time, and dynamically allocates tasks between virtual controller instances based on the unique identifier of the data transmission device. The scheduling layer will select a server with low load and sufficient resources based on the point data uploaded by the data transmission device, and forward the data to the corresponding virtual controller instance on the server, thereby achieving accurate data routing across servers.

[0085] This embodiment provides a virtual controller port mapping and data processing solution based on a digital base, which can be applied to building control systems, can dynamically manage and allocate ports, ensure the establishment of a mapping relationship between data transmission devices and virtual controller instances, achieve accurate communication paths, and support efficient data transmission and logic processing. Data transmission devices can be connected to cloud logic services in real time and accurately to achieve efficient control and management of large-scale equipment systems. The core scheduling and management platform of the entire digital base system is the infrastructure for building automated and intelligent building control systems.

[0086] Whether it is a virtual controller or a data transmission device, its unique identification and related point information will be automatically registered to the scheduling layer when it is started. It can not only automatically manage the online, configuration and data point mapping of the data transmission device, but also update the mapping table through dynamic mapping to ensure that the device management is more intelligent and efficient, reduce human intervention and errors, and realize automated device discovery, data point management and mapping.

[0087] The scheduling layer dynamically maps the unique identifier of the data transmission device with the unique identifier of the virtual controller in real time, ensuring that the point data uploaded by the data transmission device can be accurately routed to the corresponding virtual controller instance for processing without the need for fixed port configuration, thereby greatly improving the flexibility and scalability of the system. This dynamic mapping mechanism can also be adjusted according to the system load and controller status to ensure efficient data transmission and processing.

[0088] Through the automated port mapping mechanism, data transmission devices can quickly find the corresponding virtual controller instance in a complex network environment, greatly improving data processing efficiency. When a new data transmission device or virtual controller instance is added, it can be automatically identified and mapped without manual intervention, greatly improving the scalability and maintenance efficiency of the system.

[0089] Example 3

[0090] Based on the same inventive concept, this embodiment provides a data processing device, which can be used to implement the data processing method described in the above embodiment. The data processing device can be implemented by software and / or hardware, and the data processing device can generally be integrated into a cloud server. The data processing device is equivalent to the scheduling layer described in the above embodiment.

[0091] Figure 5 is a structural block diagram of a data processing device provided by an embodiment of the present invention, such as Figure 5 As shown, the data processing device includes:

[0092] A registration module 51, for establishing an association relationship between the data transmission device and the virtual controller according to the points that the data transmission device needs to upload and the points that can be processed by each virtual controller in the mapping table when the data transmission device requests registration, and recording the association relationship in the mapping table;

[0093] The determination module 52 is used to determine the target virtual controller according to the association relationship involved in the point of the data transmission device in the mapping table when receiving the point data uploaded by any registered data transmission device;

[0094] The forwarding module 53 is used to forward the point data to the target virtual controller for processing.

[0095] Optionally, the registration module 51 includes:

[0096] A receiving unit, configured to receive registration information of the data transmission device, wherein the registration information of the data transmission device includes: a unique identifier of the data transmission device and location information of the data transmission device to be uploaded;

[0097] An adding unit, used to add the registration information of the data transmission device to a device registration table;

[0098] An association unit is used to search the mapping table for a virtual controller that can handle each point involved in the data transmission device, and associate the unique identifier of the data transmission device, the unique identifier of the virtual controller and the point identifier of the point and record them in the mapping table.

[0099] Optionally, the data processing device further includes:

[0100] A receiving module, used for receiving registration information of a virtual controller, wherein the registration information of the virtual controller includes: a unique identifier of the virtual controller and processable point information thereof;

[0101] A storage module is used to store the registration information of the virtual controller in the mapping table.

[0102] Optionally, the determination module 52 includes:

[0103] An acquisition unit, used for acquiring a unique identifier of the data transmission device and a point identifier of the point data;

[0104] A searching unit, configured to search the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data;

[0105] The first determining unit is configured to use the found virtual controller as the target virtual controller.

[0106] Optionally, the determination module 52 also includes: a second determination unit, which is used to search the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data, and if the number of virtual controllers found is two or more, select a currently idle virtual controller as the target virtual controller.

[0107] Optionally, the determination module 52 also includes: a third determination unit, which is used to search the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data, and if there are two or more servers in the cloud, obtain the load status of each server, select the server with the lowest load, and use the virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data in the server with the lowest load as the target virtual controller.

[0108] The above data processing device can execute the data processing method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the data processing method provided by the embodiment of the present invention.

[0109] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0110] Example 4

[0111] This embodiment provides a building control system, including: a data transmission device and a cloud server, wherein the cloud server includes the data processing device described in the above embodiment and at least one virtual controller.

[0112] Example 5

[0113] This embodiment provides a non-volatile computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data processing method described in the above embodiment is implemented.

[0114] Example 6

[0115] This embodiment provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data processing method described in the above embodiment when executing the computer program.

[0116] Figure 6is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention, such as Figure 6 As shown, the electronic device includes: one or more processors 610 and a memory 620, Figure 6 A processor 610 is taken as an example. The electronic device may further include: an input device 630 and an output device 640.

[0117] The processor 610, the memory 620, the input device 630 and the output device 640 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0118] The memory 620 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the data processing method in the embodiment of the present invention. The processor 610 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 620, that is, implementing the above-mentioned data processing method.

[0119] The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store an application required for operating the device and at least one function; the data storage area may store threshold data, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0120] The input device 630 can receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 640 can include a display device such as a display screen.

[0121] The one or more modules are stored in the memory 620, and when executed by the one or more processors 610, the above-mentioned data processing method is performed.

[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data processing method, characterized in that: include: When the data transmission device requests registration, an association relationship between the data transmission device and the virtual controller is established according to the points that the data transmission device needs to upload and the points that can be processed by each virtual controller in the mapping table, and is recorded in the mapping table; When receiving point data uploaded by any registered data transmission device, determining the target virtual controller according to the association relationship involved in the point of the data transmission device in the mapping table; The point data is forwarded to the target virtual controller for processing.

2. The method according to claim 1, characterized in that: When the data transmission device requests registration, an association relationship between the data transmission device and the virtual controller is established according to the points that the data transmission device needs to upload and the points that can be processed by each virtual controller in the mapping table, and is recorded in the mapping table, including: Receive registration information of the data transmission device, wherein the registration information of the data transmission device includes: a unique identifier of the data transmission device and location information of the data transmission device to be uploaded; Adding the registration information of the data transmission device to the device registration table; For each point involved in the data transmission device, a virtual controller that can handle the point is searched in the mapping table, and the unique identifier of the data transmission device, the unique identifier of the virtual controller and the point identifier of the point are associated and recorded in the mapping table.

3. The method according to claim 1, characterized in that Also includes: Receive registration information of a virtual controller, wherein the registration information of the virtual controller includes: a unique identifier of the virtual controller and point information that it can process; The registration information of the virtual controller is stored in the mapping table.

4. The method according to claim 1, characterized in that: Determining a target virtual controller according to the association relationship involved in the point position of the data transmission device in the mapping table includes: Obtaining a unique identifier of the data transmission device and a point identifier of the point data; Searching the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data; The found virtual controller is used as the target virtual controller.

5. The method according to claim 4, characterized in that After searching the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data, the method further includes: If the number of found virtual controllers is two or more, a currently idle virtual controller is selected as the target virtual controller.

6. The method according to claim 4, characterized in that After searching the mapping table for a virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data, the method further includes: If there are two or more servers in the cloud, obtain the load status of each server, select the server with the lowest load, and use the virtual controller associated with the unique identifier of the data transmission device and the point identifier of the point data in the server with the lowest load as the target virtual controller.

7. A data processing device, characterized in that: include: A registration module, used for establishing an association relationship between the data transmission device and the virtual controller according to the points that the data transmission device needs to upload and the points that can be processed by each virtual controller in the mapping table when the data transmission device requests registration, and recording it in the mapping table; A determination module, configured to determine a target virtual controller according to an association relationship involved in the point of the data transmission device in the mapping table when receiving point data uploaded by any registered data transmission device; The forwarding module is used to forward the point data to the target virtual controller for processing.

8. A building control system, characterized in that: include: A data transmission device and a cloud server, wherein the cloud server comprises the data processing device according to claim 7 and at least one virtual controller.

9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data processing method according to any one of claims 1 to 6 when executing the computer program.

10. A non-volatile computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Virtualization cluster control method and equipment as well as virtualization cluster system

    CN103218249A

  • Data processing method and device

    CN112748679A

  • Dual-computer system and control method thereof

    CN113220448A

  • Building protocol data processing method, device and system

    CN116320059A

  • Configuration method and device of equipment control system, electronic equipment and storage medium

    CN117518971A