Equipment communication method and related equipment thereof

By obtaining and processing the information of new electromechanical equipment in the building automatic control system in the cloud platform and determining the corresponding communication protocol and point information, efficient communication between the cloud platform and the target equipment is achieved, cumbersome communication methods in the existing technology are solved, and development and communication efficiency are improved.

CN119766810APending Publication Date: 2025-04-04GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411916152.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the building automatic control system, the communication methods between the new electromechanical equipment and the control equipment are cumbersome, which affects the development efficiency and the equipment communication efficiency.

Method used

The target device information of the target device is obtained through the cloud platform, the target protocol component corresponding to the target device information is determined, and the target point information of the target device is determined based on the target protocol component, so as to realize communication between the cloud platform and the target device.

Benefits of technology

There is no need to frequently modify the control program of the control equipment in the building automatic control system, which reduces the development technology threshold and improves the development efficiency and the communication efficiency between the cloud platform and the target equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766810A_ABST
    Figure CN119766810A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment communication method and related equipment thereof, and the method comprises the steps: obtaining target equipment information corresponding to target equipment when a cloud platform is connected with the target equipment; determining a target protocol component corresponding to the target equipment information from a preset protocol component set; target point location information corresponding to the target equipment is determined according to the target protocol component, and the target point location information represents parameter information needing to be monitored by the target equipment; and enabling the cloud platform to communicate with the target equipment by using the target point location information and the target protocol component. According to the building automatic control system, the control program of the control equipment in the building automatic control system does not need to be continuously modified manually, so that the technical threshold of development is reduced, and the development efficiency and the communication efficiency between the equipment and the target equipment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a device communication method and related devices. Background Art

[0002] In a building automatic control system, if it is necessary to realize automatic control of a building, a variety of electromechanical equipment are usually installed in the building to monitor the condition of the building through the electromechanical equipment, so that the information monitored by the electromechanical equipment is displayed on a display device, thereby realizing automatic control of the building.

[0003] At present, if new electromechanical equipment is installed in a building, in order to realize the communication between the new electromechanical equipment and the control equipment used to control the electromechanical equipment in the building automatic control system, so as to realize more intelligent building automatic control, it is usually necessary to configure the control equipment and modify the control program of the control equipment, so as to realize the communication between the control equipment in the building automatic control system and the new electromechanical equipment. However, the above steps to realize the communication between the control equipment and the electromechanical equipment are relatively cumbersome, which affects the development efficiency and equipment communication efficiency. Summary of the invention

[0004] The present application provides a device communication method and related devices thereof to solve the technical problems in the prior art that affect the development efficiency and device communication efficiency when new electromechanical devices set in a building automation system communicate.

[0005] In a first aspect, the present application provides a device communication method, comprising:

[0006] When a target device is connected to the cloud platform, obtaining target device information corresponding to the target device;

[0007] Determine a target protocol component corresponding to the target device information from a preset protocol component set;

[0008] Determine, according to the target protocol component, target point information corresponding to the target device, wherein the target point information represents parameter information required to be monitored by the target device;

[0009] The target point information and the target protocol component are used to enable the cloud platform to communicate with the target device.

[0010] In an optional implementation, the using the target point information and the target protocol component to enable the cloud platform to communicate with the target device includes:

[0011] Determining a target protocol format corresponding to the target protocol component from a plurality of preset protocol formats;

[0012] Processing the target protocol format using the target point information to obtain the processed target protocol format;

[0013] The processed target protocol format is utilized to enable the cloud platform to communicate with the target device.

[0014] In an optional implementation, determining the target protocol format corresponding to the target protocol component from a plurality of preset protocol formats includes:

[0015] Determine a target hash value corresponding to the target protocol component;

[0016] According to the target hash value, determining the preset protocol format corresponding to the target hash value from a preset hash table, wherein the preset hash table stores a correspondence between multiple sets of preset hash values ​​and the preset protocol formats, and the preset hash value is determined by a preset protocol component in the preset protocol component set;

[0017] The preset protocol format corresponding to the target hash value is determined as the target protocol format corresponding to the target protocol component.

[0018] In an optional implementation, when there are multiple target devices, each target device corresponds to the processed target protocol format;

[0019] The using the processed target protocol format to enable the cloud platform to communicate with the target device includes:

[0020] When there are multiple target devices, obtaining a connection channel between each target device and the cloud platform based on the cloud platform;

[0021] For each of the target devices, the processed target protocol format corresponding to the target device is sent to the target device through the connection channel corresponding to the target device, so that the cloud platform communicates with the target device.

[0022] In an optional implementation, the acquiring, based on the cloud platform, a connection channel between each of the target devices and the cloud platform includes:

[0023] generating a first display interface according to the plurality of target devices, wherein the first display interface is used to configure a connection channel corresponding to each of the target devices;

[0024] Displaying the first display interface in the cloud platform;

[0025] When a trigger operation on a first control in the first display interface is detected, first configuration information corresponding to the first display interface is acquired based on the first display interface, where the first control indicates that configuration of connection channels corresponding to each of the target devices is completed;

[0026] A connection channel between each of the target devices and the cloud platform is obtained from the first configuration information.

[0027] In an optional implementation, determining the target point information corresponding to the target device according to the target protocol component includes:

[0028] Determine a preset point template corresponding to the target protocol component from a first association relationship, wherein the first association relationship stores a correspondence between each preset protocol component in the preset protocol component set and the preset point template;

[0029] Parsing the preset point template corresponding to the target protocol component to obtain target point information corresponding to the target device;

[0030] The method further comprises:

[0031] After the cloud platform communicates with the target device, receiving target return information corresponding to the target point information returned by the target device;

[0032] Filling the target return information into the preset point template corresponding to the target protocol component to obtain the processed preset point template;

[0033] The processed preset point template is displayed in the cloud platform.

[0034] In an optional implementation, the acquiring target device information corresponding to the target device includes:

[0035] Displaying a second display interface in the cloud platform, wherein the second display interface is used to select the target device to be communicated with the cloud platform;

[0036] When a trigger operation on a second control in the second display interface is detected, second configuration information corresponding to the second display interface is acquired based on a plurality of preset devices displayed on the second display interface, wherein the second control represents completion of selection of the target device to be communicated with the cloud platform;

[0037] Acquire target device information corresponding to the target device to be communicated with the cloud platform from the second configuration information;

[0038] The step of determining the target protocol component corresponding to the target device information from the preset protocol component set includes:

[0039] Displaying a third display interface on the cloud platform, wherein the third display interface is used to select the target protocol component for the cloud platform to communicate with the target device;

[0040] When a trigger operation for a third control in the third display interface is detected, third configuration information corresponding to the third display interface is acquired based on each preset protocol component in the preset protocol component set displayed by the third display interface, and the third control represents the completion of selection of the target protocol component for communication between the cloud platform and the target device;

[0041] A target protocol component corresponding to the target device information is determined from the third configuration information.

[0042] In an optional implementation, before executing the step of determining the target protocol component corresponding to the target device information from the preset protocol component set, the method further includes:

[0043] When receiving a first protocol component, updating the preset protocol component set by using the first protocol component to obtain an updated preset protocol component set, wherein the first protocol component is different from each preset protocol component in the preset protocol component set;

[0044] The step of determining the target protocol component corresponding to the target device information from the preset protocol component set includes:

[0045] A target protocol component corresponding to the target device information is determined from the updated preset protocol component set.

[0046] In a second aspect, the present application provides a device communication apparatus, including:

[0047] An acquisition module, used for acquiring target device information corresponding to the target device when the cloud platform is connected to the target device;

[0048] A determination module, used to determine the target protocol component corresponding to the target device information from a preset protocol component set;

[0049] The determination module is further used to determine the target point information corresponding to the target device according to the target protocol component, wherein the target point information represents the parameter information required to be monitored by the target device;

[0050] A communication module is used to utilize the target point information and the target protocol component to enable the cloud platform to communicate with the target device.

[0051] In a third aspect, the present application provides a cloud platform, comprising: a processor and a memory, wherein the processor is used to execute a device communication program stored in the memory to implement the device communication method described above.

[0052] In a fourth aspect, the present application provides a building automation system, including: a cloud platform and a target device;

[0053] The cloud platform is used to obtain target device information corresponding to the target device when the cloud platform is connected to the target device; determine the target protocol component corresponding to the target device information from the preset protocol component set; determine the target point information corresponding to the target device according to the target protocol component, and the target point information represents the parameter information required to be monitored by the target device; use the target point information and the target protocol component to enable the cloud platform to communicate with the target device;

[0054] The target device is used to communicate with the cloud platform according to the target point information and the target protocol component.

[0055] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages compared with the prior art. The device communication method provided by the embodiment of the present application is applied to a cloud platform, including obtaining target device information corresponding to the target device when the cloud platform is connected to the target device; determining the target protocol component corresponding to the target device information from the preset protocol component set; determining the target point information corresponding to the target device according to the target protocol component, the target point information represents the parameter information that needs to be monitored by the target device; and using the target point information and the target protocol component to enable the cloud platform to communicate with the target device. Through the above method, the present application integrates the control equipment in the building automatic control system into the cloud platform, so that when the communication configuration of the target device connected to the cloud platform is performed, the target device information of the target device is obtained through the cloud platform to determine the target protocol component corresponding to the target device information, and then the target point information corresponding to the target device is determined according to the target protocol component, so that the cloud platform uses the determined target point information and target protocol component to directly realize the communication between the cloud platform and the target device, thereby realizing the control of the target device by the cloud platform. In this way, there is no need to manually modify the control program of the control equipment in the building automatic control system continuously, which not only reduces the technical threshold for development, but also improves the development efficiency and the communication efficiency between the cloud platform and the target device. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0058] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0059] Figure 1 A schematic diagram of a flow chart of a device communication method provided in an embodiment of the present application;

[0060] Figure 2 A flowchart of another device communication method provided in an embodiment of the present application;

[0061] Figure 3 A schematic diagram of the structure of a building automation system provided in an embodiment of the present application;

[0062] Figure 4 A state diagram of a device communication process provided in an embodiment of the present application;

[0063] Figure 5 Another state diagram of implementing a device communication process provided in an embodiment of the present application;

[0064] Figure 6 A schematic diagram of the structure of a device communication apparatus provided in an embodiment of the present application;

[0065] Figure 7 A schematic diagram of the structure of a cloud platform provided in an embodiment of the present application;

[0066] In the above attached figure:

[0067] 301, cloud platform; 302, target device;

[0068] 601, acquisition module; 602, determination module; 603: communication module;

[0069] 700, cloud platform; 701, processor; 702, memory; 7021, operating system; 7022, application; 703, user interface; 704, network interface; 705, bus system. DETAILED DESCRIPTION

[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0071] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0072] refer to Figure 1 , Figure 1 A flow chart of a device communication method provided for the implementation of this application. A device communication method provided in this embodiment includes the following steps:

[0073] S101: When a target device is connected to the cloud platform, target device information corresponding to the target device is obtained.

[0074] In this embodiment, the cloud platform is integrated with the control device in the building automation system. The cloud platform can realize the communication between the cloud platform and the target device, and the control information for controlling the target device can be displayed in the cloud platform. Figure 3 The target device mentioned above may be an electric meter device, a water meter device, a fire fighting device, etc. The target device is usually a device for monitoring the condition of a building. The specific form of the target device can be set according to actual needs, and the specific form of the target device is not limited in this embodiment.

[0075] Specifically, the cloud platform is connected to the target device, which can be understood as the cloud platform is connected to the target device through a communication bus (i.e., a connection channel), but the cloud platform is not clear at this time what communication protocol the cloud platform needs to use to communicate with the target device. At this time, it is necessary to determine the communication protocol used by the cloud platform and the target device to achieve communication between the cloud platform and the target device through the determined communication protocol. In this embodiment, in order to avoid modifying the control program of the control device in the building automation system when achieving target device communication, a simpler device communication method is provided, so that when the cloud platform is connected to the target device, communication between the target device and the cloud platform can also be achieved by non-technical personnel.

[0076] More specifically, when the communication between the cloud platform and the target device is realized based on the cloud platform, the target device currently connected to the cloud platform can be selected based on the cloud platform, so that the cloud platform can obtain the target device information corresponding to the target device based on the selected target device. Among them, the target device information can be the name of the target device. After obtaining the target device information corresponding to the target device, the communication protocol used by the cloud platform to communicate with the target device can be determined based on the target device information, so as to realize the communication between the cloud platform and the target device using the determined communication protocol. In this way, there is no need to modify the control program of the control device in the building automatic control system, and non-technical personnel can also realize the communication between the cloud platform and the target device based on the cloud platform, thereby improving the development efficiency and the communication efficiency between the cloud platform and the target device.

[0077] S102: Determine a target protocol component corresponding to the target device information from a preset protocol component set.

[0078] In this embodiment, the preset protocol component set includes multiple preset protocol components. The preset protocol component is a protocol component used by the device connected to the cloud platform to communicate with the cloud platform. Among them, the correspondence between each preset protocol component and the device information in the preset protocol component set can be pre-set, and after obtaining the target device information corresponding to the target device, the target protocol component corresponding to the target device information can be determined according to the correspondence between the preset protocol component and the device information. After determining the target protocol component, the cloud platform can send the target protocol component to the target device, thereby realizing the communication between the target protocol component and the target device. Since the parameters of the building that need to be monitored by different devices connected to the cloud platform are different, in order to realize accurate communication between the target device and the cloud platform, it is necessary to determine the parameter information that needs to be monitored by the target device, so as to realize accurate communication between the cloud platform and the target device by using the determined parameter information that needs to be monitored by the target device and the target protocol component.

[0079] S103: Determine the target point information corresponding to the target device according to the target protocol component.

[0080] In this embodiment, the target point information represents the parameter information that needs to be monitored by the target device. For example, when the target device is an air conditioner, the target point information may include switches, working modes, ambient temperature, set temperatures, and fault information. The point information corresponding to different devices can be set according to actual needs, which is not limited in this embodiment. Among them, after determining the target protocol component corresponding to the target device information, the target point information corresponding to the target device can be determined by using the target protocol component according to the correspondence between each preset protocol component in the preset protocol component set and the point information.

[0081] S104: Utilize the target point information and the target protocol component to enable the cloud platform to communicate with the target device.

[0082] In this embodiment, after obtaining the target point information corresponding to the target device, the target protocol component can be processed using the target point information to obtain the processed target protocol component, so that the cloud platform sends the processed target protocol component to the target device, so that the target device communicates with the cloud platform according to the processed target protocol component. After obtaining the processed target protocol component, when the cloud platform and the target device establish a communication connection, the target device returns the corresponding information to the cloud platform according to the processed target protocol component, so that the cloud platform displays the relevant information obtained by the target device on the cloud platform. The device communication process can be realized without technical personnel, which improves development efficiency.

[0083] A device communication method provided in this embodiment integrates the control device in the building automatic control system into the cloud platform, so that when the communication configuration is performed on the target device connected to the cloud platform, the target device information of the target device is obtained through the cloud platform to determine the target protocol component corresponding to the target device information, and then the target point information corresponding to the target device is determined according to the target protocol component, so that the cloud platform directly realizes the communication between the cloud platform and the target device by using the determined target point information and the target protocol component, thereby realizing the control of the target device by the cloud platform. In this way, there is no need to constantly modify the control program of the control device in the building automatic control system manually, which not only reduces the technical threshold for development, but also improves the development efficiency and the communication efficiency between the cloud platform and the target device.

[0084] refer to Figure 2 , Figure 2 A schematic diagram of a flow chart of another device communication method provided in an embodiment of the present application. A device communication method provided in this embodiment includes the following steps:

[0085] S201: When a target device is connected to the cloud platform, target device information corresponding to the target device is obtained.

[0086] In this embodiment, obtaining target device information corresponding to the target device in step S201 includes:

[0087] Display the second display interface on the cloud platform;

[0088] When a trigger operation on a second control in the second display interface is detected, second configuration information corresponding to the second display interface is acquired based on a plurality of preset devices displayed in the second display interface;

[0089] The target device information corresponding to the target device to be communicated with the cloud platform is obtained from the second configuration information.

[0090] Among them, the second display interface is used to select the target device to be communicated with the cloud platform, and the second control represents the completion of the selection of the target device to be communicated with the cloud platform. When the cloud platform needs to communicate with the target device, the cloud platform can be operated to display the second display interface on the cloud platform. After the cloud platform displays the second display interface, the relevant personnel can select the target device to be communicated with the cloud platform based on the multiple preset devices displayed on the second display interface. When the relevant personnel select the target device, the second control used to represent the completion of the selection of the target device to be communicated with the cloud platform in the second display interface can be triggered, thereby obtaining the second configuration information corresponding to the second display interface. The second configuration information is parsed, and the target device information corresponding to the target device to be communicated with the cloud platform can be obtained from the second configuration information. In this embodiment, the target device information corresponding to the target device is obtained through the second display interface displayed by the cloud platform, so as to determine the target protocol component corresponding to the target device based on the acquired target device information, and then realize the communication between the cloud platform and the target device based on the target protocol component. Even non-technical personnel can realize the communication between the cloud platform and the target device, which improves the development efficiency and the communication efficiency between the cloud platform and the target device.

[0091] Specifically, the specific form of the second display interface can be set according to actual needs, and the specific form of the second display interface is not limited in this embodiment. The triggering operation of the second control can be a touch operation, a click operation, etc.

[0092] S202: Determine a target protocol component corresponding to the target device information from a preset protocol component set.

[0093] In this embodiment, determining the target protocol component corresponding to the target device information from the preset protocol component set in step S202 includes:

[0094] Display the third display interface on the cloud platform;

[0095] When a trigger operation on a third control in the third display interface is detected, third configuration information corresponding to the third display interface is acquired based on each preset protocol component in the preset protocol component set displayed in the third display interface;

[0096] A target protocol component corresponding to the target device information is determined from the third configuration information.

[0097] Among them, the third display interface is used to select the target protocol component for the cloud platform to communicate with the target device, and the third control represents the selection of the target protocol component for the cloud platform to communicate with the target device. When the trigger operation for the second control in the second display interface is detected, the third display interface is displayed on the cloud platform (wherein, the third display interface can be displayed in the second display interface, or it can be displayed separately, and the display form of the third display interface is not specifically limited in this embodiment). After the third display interface is displayed on the cloud platform, the relevant personnel can select the target protocol component corresponding to the target device based on each preset protocol component in the preset protocol component set displayed by the third display interface. When the relevant personnel select the target protocol component, the third control in the third display interface used to represent the selection of the target protocol component for the cloud platform to communicate with the target device can be triggered, thereby obtaining the third configuration information corresponding to the third display interface. By parsing the third configuration information, the target protocol component corresponding to the target device information can be determined from the third configuration information. In this embodiment, the target protocol component corresponding to the target device is determined through the third display interface displayed by the cloud platform, so that communication between the cloud platform and the target device is achieved based on the determined target protocol component. Even non-technical personnel can achieve communication between the cloud platform and the target device, thereby improving development efficiency and communication efficiency between the cloud platform and the target device.

[0098] Specifically, the specific form of the third display interface can be set according to actual needs, and the specific form of the third display interface is not limited in this embodiment. The triggering operation of the third control can be a touch operation, a click operation, etc. It should be noted that when selecting the target protocol component, the target protocol component can be dragged to the protocol delivery position to obtain the third configuration information corresponding to the third display interface.

[0099] In this embodiment, before executing step S202, a device communication method provided in this embodiment further includes the following steps:

[0100] When the first protocol component is received, the preset protocol component set is updated using the first protocol component to obtain an updated preset protocol component set, wherein the first protocol component is different from each preset protocol component in the preset protocol component set.

[0101] In step S202, the target protocol component corresponding to the target device information is determined from the preset protocol component set, including:

[0102] The target protocol component corresponding to the target device information is determined from the updated preset protocol component set.

[0103] Among them, when the cloud platform needs to communicate with a device of a new communication protocol, a new first protocol component can be input based on the cloud platform, so as to complete the update of the preset protocol component set by using the first protocol component, and then when determining the target protocol component corresponding to the target device, the target protocol component corresponding to the target device can be determined from the updated preset protocol component. In this embodiment, when a new communication protocol is added, there is no need to develop the control program of the control device of the building automatic control system, which improves the development efficiency and the communication efficiency between the cloud platform and the target device.

[0104] S203: Determine the target point information corresponding to the target device according to the target protocol component.

[0105] In this embodiment, in step S203, the target point information corresponding to the target device is determined according to the target protocol component, including:

[0106] Determine a preset point template corresponding to the target protocol component from the first association relationship, wherein the first association relationship stores a correspondence between each preset protocol component in the preset protocol component set and the preset point template;

[0107] Parse the preset point template corresponding to the target protocol component to obtain the target point information corresponding to the target device.

[0108] Among them, after determining to obtain the target protocol component, the first association relationship can be queried based on the target protocol component, so as to obtain the preset point template corresponding to the target protocol component. After obtaining the preset point template corresponding to the target protocol component, the preset point template corresponding to the target protocol component can be parsed, so as to obtain the target point information corresponding to the target device. This embodiment provides a method for determining target point information, so as to determine the preset point template corresponding to the target device using the target protocol component, so as to realize the determination of the target point information corresponding to the target device using the determined preset point template, and then the target point information and the target protocol component can be used to realize the communication between the cloud platform and the target device, thereby improving the development efficiency and the communication efficiency between the cloud platform and the target device, and after the cloud platform communicates with the target device, the return information can be filled into the determined preset point template based on the return information returned by the target device, so as to realize the control of the target device by the cloud platform.

[0109] S204: Determine a target protocol format corresponding to the target protocol component from a plurality of preset protocol formats.

[0110] S205: Processing the target protocol format using the target point information to obtain a processed target protocol format.

[0111] S206: Using the processed target protocol format to enable the cloud platform to communicate with the target device.

[0112] In this embodiment, for steps S204 to S206, in order to facilitate the communication between the cloud platform and the target device, so that the cloud platform can more conveniently parse the return information of the target device, this embodiment pre-sets the correspondence between multiple preset protocol components and preset protocol formats in the preset protocol component set, so that after determining the target protocol component, the target protocol format corresponding to the target protocol component is determined from the above correspondence, so as to process the target protocol format using the target point information to obtain the processed target protocol format, and then send the processed target protocol format to the target device, so that the cloud platform can communicate with the target device. In this way, when the cloud platform receives the return information returned by the target device, it can parse according to the processed target protocol format to clarify the specific data returned by the target device, thereby improving the convenience of communication between the cloud platform and the target device.

[0113] In the above, after executing step S206 to enable the cloud platform to communicate with the target device, the device communication method provided in this embodiment further includes the following steps:

[0114] After the cloud platform communicates with the target device, the target return information corresponding to the target point information returned by the target device is received;

[0115] Fill the target return information into the preset point template corresponding to the target protocol component to obtain the processed preset point template;

[0116] The processed preset point template is displayed on the cloud platform.

[0117] Specifically, in order to facilitate relevant personnel to view the relevant information collected by the target device based on the cloud platform and to realize the control of the target device by the cloud platform, after the cloud platform communicates with the target device, the target device can obtain relevant information (the relevant information corresponds to the target point information) according to the processed target protocol format, so that after the target device obtains the relevant information, it returns it to the cloud platform as target return information, so that the cloud platform fills the target return information into the preset point template corresponding to the target protocol component, obtains the processed preset point template, and displays the processed preset point template on the cloud platform, so that relevant personnel can understand the relevant situation of the building in a timely manner based on the cloud platform and facilitate the cloud platform to control the target device.

[0118] In this embodiment, determining the target protocol format corresponding to the target protocol component from a plurality of preset protocol formats in the above step S204 includes:

[0119] Determine the target hash value corresponding to the target protocol component;

[0120] According to the target hash value, determine the preset protocol format corresponding to the target hash value from the preset hash table;

[0121] The preset protocol format corresponding to the target hash value is determined as the target protocol format corresponding to the target protocol component.

[0122] Among them, the preset hash table stores the correspondence between multiple groups of preset hash values ​​and preset protocol formats, and the preset hash values ​​are determined by the preset protocol components in the preset protocol component set. In order to ensure the security of the storage of each preset protocol format, when storing each preset protocol format, the preset hash value corresponding to each preset protocol component is determined. Since each preset protocol component corresponds to a preset protocol format, the preset hash value corresponding to the preset protocol component is matched with the preset protocol format corresponding to the preset protocol component to obtain the preset hash table. Therefore, after obtaining the target protocol component, the target hash value corresponding to the target protocol component can be determined according to the prior art, so that the preset hash table is queried using the target hash value to obtain the preset protocol format corresponding to the target hash table, and then the preset protocol format corresponding to the target hash value is determined as the target protocol format corresponding to the target protocol component, thereby ensuring the security of the target protocol format corresponding to the target protocol component.

[0123] It should be noted that the preset hash value in the preset hash table is Key, and the preset protocol format in the preset hash table is Value.

[0124] In this embodiment, when there are multiple target devices, each target device corresponds to a processed target protocol format. Using the processed target protocol format in step S206 to enable the cloud platform to communicate with the target device includes:

[0125] When there are multiple target devices, the connection channel between each target device and the cloud platform is obtained based on the cloud platform;

[0126] For each target device, the processed target protocol format corresponding to the target device is sent to the target device through the connection channel corresponding to the target device, so that the cloud platform communicates with the target device.

[0127] Among them, in order to enable the cloud platform to accurately send each processed target protocol format to the corresponding target device, so that each target device can accurately communicate with the cloud platform, when there are multiple target devices, the connection channel between each target device and the cloud platform can be obtained based on the cloud platform, so that for each target device, the processed target protocol format corresponding to the target device can be sent to the target device through the connection channel corresponding to the target device, so that the cloud platform and the target device can communicate, ensuring the communication efficiency and communication accuracy between the cloud platform and each target device. Specifically, the connection channel can be understood as a communication bus.

[0128] Specifically, the connection channel between each target device and the cloud platform obtained based on the cloud platform includes:

[0129] Generate a first display interface according to multiple target devices;

[0130] Display the first display interface on the cloud platform;

[0131] When a trigger operation on a first control in a first display interface is detected, first configuration information corresponding to the first display interface is acquired based on the first display interface;

[0132] A connection channel between each target device and the cloud platform is obtained from the first configuration information.

[0133] Among them, the first display interface is used to configure the connection channel corresponding to each target device, and the first control represents the completion of the configuration of the connection channel corresponding to each target device. When there are multiple target devices, after determining the processed target protocol format corresponding to each target device, a first display interface for configuring the connection channel corresponding to each target device can be generated according to the multiple target devices. The relevant personnel can configure the connection channel between each target device and the cloud platform based on the first display interface. After the configuration is completed, the relevant personnel can trigger the first control in the first display interface to obtain the first configuration information corresponding to the first display interface, thereby parsing the first configuration information to obtain the connection channel between each target device and the cloud platform, and then according to the connection channel corresponding to each target device, each processed target protocol format can be accurately issued, thereby improving the communication efficiency and communication accuracy between the target device and the cloud platform. This embodiment provides a method for obtaining the connection channel between the cloud platform and the target device, so as to achieve the accurate issuance of each processed target protocol format through each acquired connection channel, thereby improving the development efficiency and the communication efficiency between the cloud platform and each target device.

[0134] A device communication method provided in this embodiment integrates the control device in the building automatic control system into the cloud platform, so that when the communication configuration is performed on the target device connected to the cloud platform, the target device information of the target device is obtained through the cloud platform to determine the target protocol component corresponding to the target device information, and then the target point information corresponding to the target device is determined according to the target protocol component, so that the cloud platform directly realizes the communication between the cloud platform and the target device by using the determined target point information and the target protocol component, thereby realizing the control of the target device by the cloud platform. In this way, there is no need to constantly modify the control program of the control device in the building automatic control system manually, which not only reduces the technical threshold for development, but also improves the development efficiency and the communication efficiency between the cloud platform and the target device.

[0135] As an example, refer to Figure 3 and Figure 4 As shown in the figure, the whole device communication process is introduced in detail, as follows:

[0136] When the cloud platform is connected to a target device, target device information corresponding to the target device is obtained based on a second display interface displayed by the cloud platform, and a target protocol component corresponding to the target device information is determined based on a third display interface displayed by the cloud platform;

[0137] Determine the preset point template corresponding to the target protocol component, and parse the preset point template corresponding to the target protocol component to obtain the target point information corresponding to the target device (refer to Figure 3 shown);

[0138] The target hash value corresponding to the target protocol component is determined, so as to determine the target protocol format corresponding to the target protocol component based on the preset hash table and the target hash value (see Figure 4 shown);

[0139] The target protocol format corresponding to the target protocol component is processed using the target point information to obtain a processed target protocol format;

[0140] Send the processed target protocol format to the target device so that the target device can communicate with the cloud platform;

[0141] After the cloud platform receives the target return information corresponding to the target point information returned by the target device, the target return information is stored in the shared memory area. When the relevant personnel query the relevant situation of the building collected by the target device based on the cloud platform, the protocol service obtains the target return information from the shared memory area and fills the target return information into the preset point template (refer to Figure 3 As shown), the filled preset point template is displayed on the cloud platform.

[0142] refer to Figure 6 , Figure 6 A schematic diagram of the structure of a device communication apparatus provided in an embodiment of the present application. A device communication apparatus provided in this embodiment includes: an acquisition module 601, a determination module 602 and a communication module 603. Among them, the acquisition module 601 is used to obtain the target device information corresponding to the target device when the cloud platform is connected to the target device; the determination module 602 is used to determine the target protocol component corresponding to the target device information from the preset protocol component set; the determination module 602 is also used to determine the target point information corresponding to the target device according to the target protocol component, and the target point information represents the parameter information required to be monitored by the target device; the communication module 603 is used to use the target point information and the target protocol component to enable the cloud platform to communicate with the target device.

[0143] In this embodiment, the communication module 603 is also used for:

[0144] Determining a target protocol format corresponding to the target protocol component from a plurality of preset protocol formats;

[0145] Processing the target protocol format using the target point information to obtain the processed target protocol format;

[0146] The processed target protocol format is utilized to enable the cloud platform to communicate with the target device.

[0147] In this embodiment, the communication module 603 is also used for:

[0148] Determine a target hash value corresponding to the target protocol component;

[0149] According to the target hash value, determining the preset protocol format corresponding to the target hash value from a preset hash table, wherein the preset hash table stores a correspondence between multiple sets of preset hash values ​​and the preset protocol formats, and the preset hash value is determined by a preset protocol component in the preset protocol component set;

[0150] The preset protocol format corresponding to the target hash value is determined as the target protocol format corresponding to the target protocol component.

[0151] In this embodiment, when there are multiple target devices, each target device corresponds to the processed target protocol format.

[0152] In this embodiment, the communication module 603 is also used for:

[0153] When there are multiple target devices, obtaining a connection channel between each target device and the cloud platform based on the cloud platform;

[0154] For each of the target devices, the processed target protocol format corresponding to the target device is sent to the target device through the connection channel corresponding to the target device, so that the cloud platform communicates with the target device.

[0155] In this embodiment, the communication module 603 is also used for:

[0156] generating a first display interface according to the plurality of target devices, wherein the first display interface is used to configure a connection channel corresponding to each of the target devices;

[0157] Displaying the first display interface in the cloud platform;

[0158] When a trigger operation on a first control in the first display interface is detected, first configuration information corresponding to the first display interface is acquired based on the first display interface, where the first control indicates that configuration of connection channels corresponding to each of the target devices is completed;

[0159] A connection channel between each of the target devices and the cloud platform is obtained from the first configuration information.

[0160] In this embodiment, the determination module 602 is further configured to:

[0161] Determine a preset point template corresponding to the target protocol component from a first association relationship, wherein the first association relationship stores a correspondence between each preset protocol component in the preset protocol component set and the preset point template;

[0162] The preset point template corresponding to the target protocol component is parsed to obtain the target point information corresponding to the target device.

[0163] The device communication apparatus provided in this embodiment further includes a display module, which is further used for:

[0164] After the cloud platform communicates with the target device, receiving target return information corresponding to the target point information returned by the target device;

[0165] Filling the target return information into the preset point template corresponding to the target protocol component to obtain the processed preset point template;

[0166] The processed preset point template is displayed in the cloud platform.

[0167] In this embodiment, the acquisition module 601 is further used for:

[0168] Displaying a second display interface in the cloud platform, wherein the second display interface is used to select the target device to be communicated with the cloud platform;

[0169] When a trigger operation on a second control in the second display interface is detected, second configuration information corresponding to the second display interface is acquired based on a plurality of preset devices displayed on the second display interface, wherein the second control represents completion of selection of the target device to be communicated with the cloud platform;

[0170] Target device information corresponding to the target device to be communicated with the cloud platform is obtained from the second configuration information.

[0171] In this embodiment, the determination module 602 is further configured to:

[0172] Displaying a third display interface on the cloud platform, wherein the third display interface is used to select the target protocol component for the cloud platform to communicate with the target device;

[0173] When a trigger operation for a third control in the third display interface is detected, third configuration information corresponding to the third display interface is acquired based on each preset protocol component in the preset protocol component set displayed by the third display interface, and the third control represents the completion of selection of the target protocol component for communication between the cloud platform and the target device;

[0174] A target protocol component corresponding to the target device information is determined from the third configuration information.

[0175] The device communication apparatus provided in this embodiment further includes an updating module, which is used to:

[0176] When a first protocol component is received, the preset protocol component set is updated using the first protocol component to obtain the updated preset protocol component set, wherein the first protocol component is different from each preset protocol component in the preset protocol component set.

[0177] In this embodiment, the determination module 602 is further configured to:

[0178] A target protocol component corresponding to the target device information is determined from the updated preset protocol component set.

[0179] A device communication apparatus provided in this embodiment integrates the control device in the building automatic control system into the cloud platform, so that when the communication configuration is performed on the target device connected to the cloud platform, the target device information of the target device is obtained through the cloud platform to determine the target protocol component corresponding to the target device information, and then the target point information corresponding to the target device is determined according to the target protocol component, so that the cloud platform directly realizes the communication between the cloud platform and the target device by using the determined target point information and the target protocol component, thereby realizing the control of the target device by the cloud platform. In this way, there is no need to manually modify the control program of the control device in the building automatic control system continuously, which not only reduces the technical threshold for development, but also improves the development efficiency and the communication efficiency between the cloud platform and the target device.

[0180] refer to Figure 3 As shown, this embodiment provides a building automation system, which includes a cloud platform 301 and a target device 302. The cloud platform 301 is used to implement the device communication method as described above, and the target device 302 is used to communicate with the cloud platform according to the target point information and the target protocol component.

[0181] Figure 7 A schematic diagram of the structure of a cloud platform provided in an embodiment of the present application, Figure 7 The cloud platform 700 shown includes: at least one processor 701, a memory 702, at least one network interface 704 and other user interfaces 703. The various components in the cloud platform 700 are coupled together through a bus system 705. It can be understood that the bus system 705 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 705 is not shown in FIG. Figure 7 Various buses are labeled as bus system 705.

[0182] The user interface 703 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0183] It can be understood that the memory 702 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a 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), 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), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 702 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0184] In some implementations, the memory 702 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 7021 and an application 7022 .

[0185] The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 6022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 7022.

[0186] In the embodiment of the present invention, by calling the program or instruction stored in the memory 702, specifically, the program or instruction stored in the application 7022, the processor 701 is used to execute the method steps provided by each method embodiment.

[0187] The method disclosed in the above embodiment of the present invention can be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 701 or the instruction in the form of software. The above processor 701 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.

[0188] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0189] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0190] The cloud platform provided in this embodiment can be as follows Figure 7 The cloud platform shown in , can execute Figure 1 and Figure 2 All steps of the device communication method in 1 and Figure 2 For technical effects of the device communication method shown, please refer to Figure 1 and Figure 2 For the sake of brevity, the relevant description is not repeated here.

[0191] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0192] When one or more programs in the storage medium can be executed by one or more processors, the device communication method executed on the device communication device side is implemented.

[0193] The processor is used to execute the device communication program stored in the memory to implement the following steps of the device communication method executed on the device communication device side.

[0194] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0195] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0196] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A device communication method, characterized in that: Applied to a cloud platform, the method includes: When a target device is connected to the cloud platform, obtaining target device information corresponding to the target device; Determine a target protocol component corresponding to the target device information from a preset protocol component set; Determine, according to the target protocol component, target point information corresponding to the target device, wherein the target point information represents parameter information required to be monitored by the target device; The target point information and the target protocol component are used to enable the cloud platform to communicate with the target device.

2. The method according to claim 1, characterized in that The using the target point information and the target protocol component to enable the cloud platform to communicate with the target device includes: Determining a target protocol format corresponding to the target protocol component from a plurality of preset protocol formats; Processing the target protocol format using the target point information to obtain the processed target protocol format; The processed target protocol format is utilized to enable the cloud platform to communicate with the target device.

3. The method according to claim 2, characterized in that The determining of a target protocol format corresponding to the target protocol component from a plurality of preset protocol formats includes: Determine a target hash value corresponding to the target protocol component; According to the target hash value, determining the preset protocol format corresponding to the target hash value from a preset hash table, wherein the preset hash table stores a correspondence between multiple sets of preset hash values ​​and the preset protocol formats, and the preset hash value is determined by a preset protocol component in the preset protocol component set; The preset protocol format corresponding to the target hash value is determined as the target protocol format corresponding to the target protocol component.

4. The method according to claim 2, characterized in that: When there are multiple target devices, each target device corresponds to the processed target protocol format; The using the processed target protocol format to enable the cloud platform to communicate with the target device includes: When there are multiple target devices, obtaining a connection channel between each target device and the cloud platform based on the cloud platform; For each of the target devices, the processed target protocol format corresponding to the target device is sent to the target device through the connection channel corresponding to the target device, so that the cloud platform communicates with the target device.

5. The method according to claim 4, characterized in that The acquiring, based on the cloud platform, a connection channel between each of the target devices and the cloud platform comprises: generating a first display interface according to the plurality of target devices, wherein the first display interface is used to configure a connection channel corresponding to each of the target devices; Displaying the first display interface in the cloud platform; When a trigger operation on a first control in the first display interface is detected, first configuration information corresponding to the first display interface is acquired based on the first display interface, where the first control indicates that configuration of connection channels corresponding to each of the target devices is completed; A connection channel between each of the target devices and the cloud platform is obtained from the first configuration information.

6. The method according to claim 1, characterized in that Determining target point information corresponding to the target device according to the target protocol component includes: Determine a preset point template corresponding to the target protocol component from a first association relationship, wherein the first association relationship stores a correspondence between each preset protocol component in the preset protocol component set and the preset point template; Parsing the preset point template corresponding to the target protocol component to obtain target point information corresponding to the target device; The method further comprises: After the cloud platform communicates with the target device, receiving target return information corresponding to the target point information returned by the target device; Filling the target return information into the preset point template corresponding to the target protocol component to obtain the processed preset point template; The processed preset point template is displayed in the cloud platform.

7. The method according to claim 1, characterized in that The acquiring target device information corresponding to the target device includes: Displaying a second display interface in the cloud platform, wherein the second display interface is used to select the target device to be communicated with the cloud platform; When a trigger operation on a second control in the second display interface is detected, second configuration information corresponding to the second display interface is acquired based on a plurality of preset devices displayed on the second display interface, wherein the second control represents completion of selection of the target device to be communicated with the cloud platform; Acquire target device information corresponding to the target device to be communicated with the cloud platform from the second configuration information; The step of determining the target protocol component corresponding to the target device information from the preset protocol component set includes: Displaying a third display interface on the cloud platform, wherein the third display interface is used to select the target protocol component for the cloud platform to communicate with the target device; When a trigger operation for a third control in the third display interface is detected, third configuration information corresponding to the third display interface is acquired based on each preset protocol component in the preset protocol component set displayed by the third display interface, and the third control represents the completion of selection of the target protocol component for communication between the cloud platform and the target device; A target protocol component corresponding to the target device information is determined from the third configuration information.

8. The method according to claim 1, characterized in that Before executing the step of determining the target protocol component corresponding to the target device information from the preset protocol component set, the method further includes: When receiving a first protocol component, updating the preset protocol component set by using the first protocol component to obtain an updated preset protocol component set, wherein the first protocol component is different from each preset protocol component in the preset protocol component set; The step of determining the target protocol component corresponding to the target device information from the preset protocol component set includes: A target protocol component corresponding to the target device information is determined from the updated preset protocol component set.

9. A device communication apparatus, characterized in that: include: An acquisition module, used for acquiring target device information corresponding to the target device when the cloud platform is connected to the target device; A determination module, used to determine the target protocol component corresponding to the target device information from a preset protocol component set; The determination module is further used to determine the target point information corresponding to the target device according to the target protocol component, wherein the target point information represents the parameter information required to be monitored by the target device; A communication module is used to utilize the target point information and the target protocol component to enable the cloud platform to communicate with the target device.

10. A cloud platform, characterized in that: include: A processor and a memory, wherein the processor is used to execute a device communication program stored in the memory to implement the device communication method according to any one of claims 1 to 8.

11. A building automation system, characterized in that: include: Cloud platform and target device; The cloud platform is used to obtain target device information corresponding to the target device when the cloud platform is connected to the target device; Determine a target protocol component corresponding to the target device information from a preset protocol component set; determine target point information corresponding to the target device according to the target protocol component, wherein the target point information represents parameter information required to be monitored by the target device; and use the target point information and the target protocol component to enable the cloud platform to communicate with the target device; The target device is used to communicate with the cloud platform according to the target point information and the target protocol component.

Citation Information

Patent Citations

  • Equipment control method and device, equipment and storage medium

    CN114594714A

  • Message processing system, method and equipment and storage medium

    CN115396524A

  • Building automatic control system

    CN116743563A

  • Visual access method, device and system of equipment, equipment and medium

    CN117319198A

  • Configuration method and device, electronic equipment and storage medium

    CN117331377A