Equipment access method and device, controller, building automatic control system and medium

By designing a general controller platform in the building automatic control system, the automatic identification and control logic adaptation of equipment is achieved, which solves the problems of low controller configuration efficiency and fixed logic, and improves development efficiency and user experience.

CN119105343APending Publication Date: 2024-12-10GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411211672.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The problem of low controller configuration efficiency and fixed logic in building automatic control systems cannot meet the needs of agile development and rapid delivery, difficult user selection, and complex manufacturer product maintenance.

Method used

Design a generalized controller platform to support the operation of at least one control strategy, and realize automatic device identification and Control logic adaptation to reduce manual configuration steps.

Benefits of technology

It improves system development efficiency and shortens the project delivery cycle. Users can easily import control strategies based on application scenarios. The manufacturer does not need to develop serial products, and users select models and maintain products is simpler.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105343A_ABST
    Figure CN119105343A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment access method and device, a controller, a building automatic control system and a medium. The controller is a universal platform and supports running of at least one control strategy, the method comprises the steps that the needed control strategy is imported, the control strategy at least comprises control logic and corresponding equipment information, the control logic relates to logic point position identification, the equipment information comprises a protocol component, a connected hardware interface and a communication address, and the communication address is connected with the control logic; the protocol component comprises a protocol driver and a parameter template; when equipment access is detected, a physical point location identifier of the equipment is generated according to equipment information of the equipment and the parameter template; and according to the logic point location identifier and the physical point location identifier, association mapping of the logic point location and the physical point location is completed, and the physical point location identifier and the logic point location identifier corresponding to the same parameter of the same device are the same. The problems that in the prior art, an automatic control system controller is low in configuration efficiency and fixed in logic are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of controller technology, and in particular to a device access method, device, controller, building automatic control system and medium. Background Art

[0002] At present, in the development of building automatic control systems, it is necessary to configure the collected parameter points (such as switch settings, switch status, temperature settings, etc.) one by one for the devices connected to the controller. With the development of intelligence, building automatic control systems are transformed into building intelligent control systems. More and more devices are connected. The traditional configuration method is inefficient and can no longer meet the needs of agile development and rapid delivery.

[0003] In addition, traditional controllers are only suitable for a certain logic control application scenario. Manufacturers need to develop series of controller products one by one to cope with different application scenarios. It is difficult for users to select models, and it is complicated for manufacturers to maintain series products.

[0004] With regard to the problems of low configuration efficiency and fixed controller logic of the automatic control system controller in the prior art, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a device access method, apparatus, controller, building automatic control system and medium, so as to at least solve the problems of low configuration efficiency and fixed controller logic of the automatic control system controller in the prior art.

[0006] To solve the above technical problems, an embodiment of the present invention provides a device access method, which is applied to a controller. The controller is a universal platform that supports running at least one control strategy. The method includes:

[0007] Import the required control strategy, wherein the control strategy at least includes: control logic and device information corresponding to the control logic, the control logic involves a logic point identifier, the device information includes: the protocol component to which it belongs, the connected hardware interface and the communication address, and the protocol component includes: a protocol driver and a parameter template;

[0008] Detecting device access, generating a physical point identifier of the device according to device information of the device and the parameter template;

[0009] According to the logical point identifiers involved in the control logic of the device and the physical point identifiers of the device, the association mapping of the logical point and the physical point is completed, wherein the physical point identifier and the logical point identifier corresponding to the same parameter of the same device are the same.

[0010] Optionally, generating a physical point identifier of the device according to the device information of the device and the parameter template includes:

[0011] Initialize a physical point table of the device according to the device information of the device and the parameter template;

[0012] For each physical point in the physical point table of the device, a physical point identifier is generated according to the device information of the device.

[0013] Optionally, initializing a physical point table of the device according to the device information of the device and the parameter template includes:

[0014] Determine the protocol component to which the device belongs according to the device information of the device, so as to determine the protocol driver corresponding to the device;

[0015] According to the device information of the device and the parameter template in the protocol component to which the device belongs, the parameters that the device needs to collect are determined, and the physical point table required for the protocol drive corresponding to the device is obtained as the physical point table of the device.

[0016] Optionally, generating a physical point identifier according to the device information of the device includes:

[0017] For each physical point, a physical point identifier is generated according to the hardware interface to which the device is connected, the communication address of the device and the parameter name corresponding to the physical point.

[0018] Optionally, after completing the association mapping between the logical points and the physical points, the following is further included:

[0019] Starting a protocol driver corresponding to the device according to the protocol component to which the device belongs;

[0020] According to the physical point table of the device, the hardware driver is called through the protocol driver corresponding to the device to periodically send acquisition frames to the device;

[0021] Receiving the parameter value uploaded by the device through the protocol driver corresponding to the device, and when the current parameter value is different from the previous parameter value, pushing the current parameter value to the control logic;

[0022] The control logic matches the target logical point corresponding to the parameter according to the mapping relationship between the logical point and the physical point, and performs the logical operation corresponding to the target logical point;

[0023] According to the result of the logic operation, a control frame is sent to the device through a protocol driver corresponding to the device.

[0024] Optionally, sending a collection frame to the device includes:

[0025] Generate an acquisition frame according to the communication address of the device and the physical point table of the device through the protocol driver corresponding to the device;

[0026] The acquisition frame is sent to the device through a protocol driver corresponding to the device and a hardware interface to which the device is connected.

[0027] Optionally, sending a control frame to the device through a protocol driver corresponding to the device includes:

[0028] Output control instructions to the protocol driver corresponding to the device according to the logic operation result;

[0029] Generate a control frame according to the communication address of the device and the control instruction through the protocol driver corresponding to the device;

[0030] The control frame is sent to the device through a protocol driver corresponding to the device and a hardware interface to which the device is connected.

[0031] The embodiment of the present invention further provides a device access apparatus, which is applied to a controller. The controller is a universal platform and supports running at least one control strategy. The apparatus includes:

[0032] An import module, used to import the required control strategy, wherein the control strategy at least includes: control logic and device information corresponding to the control logic, the control logic includes a logic point identifier, the device information includes: the protocol component to which it belongs, the connected hardware interface and the communication address, and the protocol component includes: a protocol driver and a parameter template;

[0033] A generating module, configured to detect device access and generate a physical point identifier of the device according to device information of the device and the parameter template;

[0034] The mapping module is used to complete the association mapping of logical points and physical points according to the logical point identifiers involved in the control logic of the device and the physical point identifiers of the device, wherein the physical point identifier and the logical point identifier corresponding to the same parameter of the same device are the same.

[0035] An embodiment of the present invention further provides a controller, comprising: the device access apparatus described in the embodiment of the present invention.

[0036] The embodiment of the present invention further provides a building automatic control system, including: the controller described in the embodiment of the present invention.

[0037] The 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 device access method described in the embodiment of the present invention is implemented.

[0038] By applying the technical solution of the present invention, the controller is made into a universal platform, which supports the operation of at least one control strategy. Various control strategies can be developed in advance and stored in the server. The controller has no fixed logic. The user only needs to import the required control strategy according to the application scenario, which makes project deployment more convenient. The manufacturer does not need to develop serialized controller products for different scenarios one by one, and product maintenance is simpler. Users will not have difficulty in selecting products due to serialized products. By presetting the protocol components, the parameters to be collected can be known, and automatic identification without configuration is realized when the device is connected. There is no need to manually configure the parameter points one by one, which improves the system development efficiency and shortens the project delivery cycle. When developing the control logic, the logical point identification is set according to the rules. When the device is connected, the physical point identification is automatically generated according to the same rules. Based on the point identification, the automatic association mapping of the logical point in the control logic and the physical point of the actual device parameter can be completed, so as to realize the self-adaptation of the device control and the control logic. This embodiment solves the problems of low configuration efficiency of the automatic control system controller and fixed controller logic in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 Schematic diagram of the architecture of a building automation system provided by an embodiment of the present invention;

[0040] Figure 2 is a flow chart of a device access method provided by an embodiment of the present invention;

[0041] Figure 3 This is a schematic diagram of point identification naming provided by an embodiment of the present invention;

[0042] Figure 4 It is a schematic diagram of the modular structure of the control strategy APP provided in an embodiment of the present invention;

[0043] Figure 5 It is a schematic diagram of a mapping model between a device and a hardware driver and a protocol driver provided in an embodiment of the present invention;

[0044] Figure 6 is a schematic diagram of a framework of a universal controller provided by an embodiment of the present invention;

[0045] Figure 7 This is the controller operation process provided by the embodiment of the present invention;

[0046] Figure 8 It is a structural block diagram of a device access apparatus provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] 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.

[0048] 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.

[0049] 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.

[0050] 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.

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

[0052] The embodiments of the present invention are directed to an automatic control system, especially a building automatic control system, such as Figure 1 As shown in the figure, it is a schematic diagram of the architecture of the building automatic control system. The building automatic control system includes a three-layer architecture of the management layer, the control layer and the equipment layer. The equipment layer is the underlying equipment (or called field equipment) connected to the control layer, such as air conditioners, elevators, lighting, fire protection and other equipment; the control layer includes a controller, which is used to collect the parameter status of the underlying equipment and send control to the underlying equipment.

[0053] In order to solve the problems of low configuration efficiency and fixed controller logic of building automation system controllers, this embodiment provides a device access method applied to the controller. The controller is a universal platform that supports the operation of at least one control strategy. Various control strategies can be developed in advance and stored in the server. The controller has no fixed logic. Users only need to import the required control strategy according to the application scenario. The project deployment is more convenient. Manufacturers do not need to develop serialized controller products one by one for different scenarios. Product maintenance is simpler and users will not have difficulty in selecting serialized products.

[0054] Figure 2 is a flow chart of a device access method provided by an embodiment of the present invention, such as Figure 2 As shown, the method comprises the following steps:

[0055] S201, import the required control strategy, wherein the control strategy at least includes: control logic and device information corresponding to the control logic, the control logic involves logical point identification, the device information includes: the protocol component to which it belongs, the connected hardware interface and the communication address, and the protocol component includes: protocol driver and parameter template.

[0056] S202: Detect device access and generate a physical location identifier of the device according to device information of the device and the parameter template.

[0057] S203, completing the association mapping of the logical point and the physical point according to the logical point identifier involved in the control logic of the device and the physical point identifier of the device, wherein the physical point identifier and the logical point identifier corresponding to the same parameter of the same device are the same.

[0058] The control logic is the device control action written according to the scenario. The control logic corresponding to different types of devices is different. For example, the control logic of the air conditioner may include turning on the cooling when the indoor temperature is higher than the preset temperature. The control logic of the lighting device may include turning on the lighting when someone is detected or the indoor brightness is lower than the preset brightness.

[0059] The device information (also called the device list) is automatically classified and generated according to the devices involved in the control logic, and is used to record the information of the devices involved in the control logic, such as the protocol component to which the device belongs, the hardware interface to which the device is connected, the communication address of the device, etc., wherein the protocol component to which the device belongs needs to be manually configured, and the hardware interface and communication address are also preset. Exemplarily, for the control logic of the air conditioner, its device information may include: protocol component 1 to which air conditioner 1 belongs, hardware interface 1 to which air conditioner 1 is connected, communication address 1 of air conditioner 1, protocol component 2 to which air conditioner 2 belongs, hardware interface 2 to which air conditioner 2 is connected, communication address 2 of air conditioner 2..., wherein air conditioner 1 and air conditioner 2 may belong to the same protocol component and be connected to the same hardware interface, but their communication addresses are different, and different air conditioners can be distinguished by the communication addresses.

[0060] The protocol component includes the protocol driver and the parameter template. The protocol driver is the communication protocol parsing program of the controller for the device. The protocol driver is used to call the corresponding hardware driver to establish communication with the device and realize the mutual conversion of data and electrical signals. The hardware driver belongs to the controller and is the hardware interface for the controller to establish a communication link with the device, such as the network port, CAN interface, etc. The parameter template is a set of parameters for a specific device, such as mode settings, switches and other parameters. The protocol driver determines the device parameters to be collected based on the parameter template. The protocol component can be built into the controller or packaged with the control strategy APP. For example, the protocol component can be preset according to the protocol used by the device and its specific parameters.

[0061] The naming rules and formats of logical point identification and physical point identification are the same. Points correspond to the parameters of the equipment. For example, a light includes: point I1 for controlling the switch (i.e., the switch of the light), point I2 for controlling the brightness (i.e., the brightness of the light), and point I3 for controlling the color (i.e., the color of the light).

[0062] In this embodiment, the controller is made into a universal platform, which supports the operation of at least one control strategy. Various control strategies can be developed in advance and stored in the server. The controller does not have fixed logic. Users only need to import the required control strategy according to the application scenario. The project deployment is more convenient, and the manufacturer does not need to develop serialized controller products one by one for different scenarios. Product maintenance is simpler, and users will not have difficulty in selecting serialized products. Through the preset protocol components, the parameters to be collected can be obtained, and automatic identification without configuration is realized when the device is connected. There is no need to manually configure parameter points one by one, which improves the system development efficiency and shortens the project delivery cycle. When developing the control logic, the logical point identification is set according to the rules. When the device is connected, the physical point identification is automatically generated according to the same rules. Based on the point identification, the automatic association mapping of the logical point in the control logic and the physical point of the actual device parameter can be completed, so as to realize the self-adaptation of the device control and the control logic. This embodiment solves the problems of low configuration efficiency and fixed controller logic of the automatic control system controller in the prior art.

[0063] In one embodiment, S202 generates a physical point identification of the device according to the device information of the device and the parameter template, including: initializing a physical point table of the device according to the device information of the device and the parameter template; and generating a physical point identification for each physical point in the physical point table of the device according to the device information of the device.

[0064] After the device is connected, the controller can determine the protocol component to which the device belongs through the hardware interface to which the device is connected, and based on the parameter template in the protocol component, the parameters required to be collected for the device can be obtained, and then the physical point table of the device can be obtained. The physical point table refers to the collection of actual physical points of the device.

[0065] After the device is connected to the controller, this embodiment can automatically obtain the physical point table of the device based on the parameter template in the preset protocol component, and automatically generate the physical point identifier according to the rules, thereby ensuring the automatic association mapping of subsequent logical points and physical points.

[0066] Furthermore, according to the device information of the device and the parameter template, the physical point table of the device is initialized, including: determining the protocol component to which the device belongs according to the device information of the device to determine the protocol driver corresponding to the device; determining the parameters that need to be collected by the device according to the device information of the device and the parameter template in the protocol component to which the device belongs, and obtaining the physical point table required by the protocol driver corresponding to the device as the physical point table of the device.

[0067] This embodiment initializes the device physical point table required by the protocol driver and completes parameter initialization, thereby realizing automatic association mapping between logical points and physical points, and can also collect device parameters based on the physical point table.

[0068] Furthermore, a physical point identifier is generated according to the device information of the device, including: for each physical point, a physical point identifier is generated according to a hardware interface to which the device is connected, a communication address of the device and a parameter name corresponding to the physical point.

[0069] For example, the format of the point identification may be: hardware interface-communication address-parameter name.

[0070] This embodiment implements the physical point identification after the protocol component is instantiated. The point identification includes the hardware interface, communication address and parameter name. Different devices can be effectively distinguished based on the hardware interface and communication address, and different parameters of the same device can also be effectively distinguished based on the parameter name.

[0071] The naming rules and formats of logical point identifiers and physical point identifiers are the same, such as Figure 3 The figure shows a schematic diagram of point identification and naming. Mode setting and temperature setting are controllable parameters of the device (i.e., physical points or points). RS485-1 indicates the hardware interface where the device is located, D1 indicates the communication address of the device, and module setting / temperature setting are parameter names. Based on the automatically generated point identification, the logical points in the control logic can be automatically associated and mapped with the actual physical points of the device.

[0072] After completing the association mapping between the logical points and the physical points, the controller can collect and control the parameter status of the device, specifically including: starting the protocol driver corresponding to the device according to the protocol component to which the device belongs; calling the hardware driver through the protocol driver corresponding to the device according to the physical point table of the device to periodically send collection frames to the device; receiving the parameter value uploaded by the device through the protocol driver corresponding to the device, and when the parameter value this time is different from the parameter value of the previous time, pushing the parameter value this time to the control logic; the control logic matches the target logical point corresponding to the parameter according to the mapping relationship between the logical point and the physical point, and performs the logical operation corresponding to the target logical point; according to the logical operation result, sending the control frame to the device through the protocol driver corresponding to the device.

[0073] In this embodiment, after the device is connected to the controller and the association mapping between the logical points and the physical points is completed, the acquisition frame and the control frame can be sent down through the protocol driver according to the physical point table to realize the parameter acquisition and control of the device by the controller.

[0074] Furthermore, sending an acquisition frame to the device includes: generating an acquisition frame according to the communication address of the device and the physical point table of the device through a protocol driver corresponding to the device; and sending the acquisition frame to the device through the protocol driver corresponding to the device and a hardware interface connected to the device.

[0075] In this embodiment, the protocol driver generates an acquisition frame based on the physical point table to obtain parameter status data of the corresponding device, thereby realizing normal acquisition of device parameters.

[0076] Furthermore, sending a control frame to the device through the protocol driver corresponding to the device includes: outputting a control instruction to the protocol driver corresponding to the device according to a logical operation result; generating a control frame according to the communication address of the device and the control instruction through the protocol driver corresponding to the device; and sending the control frame to the device through the protocol driver corresponding to the device and a hardware interface to which the device is connected.

[0077] This embodiment can identify the device to which the parameter belongs through the hardware interface and the device communication address, and the protocol driver converts the control instruction into a control frame and sends it to the corresponding device, thereby realizing the normal control of the controller over the device.

[0078] The controller and the device access method are described below in conjunction with a specific embodiment. However, it is worth noting that this specific embodiment is only for better illustrating the present application and does not constitute an improper limitation on the present application. The explanation of terms that are the same or corresponding to the above embodiment will not be repeated in this embodiment.

[0079] like Figure 4 As shown in the figure, it is a schematic diagram of the modular structure of the control strategy APP. The control strategy includes control logic, device list and protocol component. After the device is connected, the physical point table can be initialized according to the parameter template in the device list and the protocol component, and the automatic association mapping of logical points and physical points can be realized, so that the protocol driver in the protocol component can periodically poll the device according to the physical point table to collect the device parameter status; then the protocol component sends the collected process data to the control logic, and after the control logic executes the corresponding operation, the control is sent to the device through the protocol driver.

[0080] like Figure 5As shown in the figure, it is a schematic diagram of the mapping model between the device and the hardware driver and protocol driver. The parameter template is a preset device parameter set. After the device is connected to the controller, it is known which parameters of the device need to be collected based on the parameter template, and then the actual parameter data of the device is collected using the hardware driver and protocol driver. Different devices can be distinguished by the device communication address or device identification, and different parameters under the same device can be distinguished by the parameter address or parameter identification. For example, the address of the parameter "mode setting" is 0x01, and the address of the parameter "temperature setting" is 0x02, etc.

[0081] like Figure 6 The figure shows the framework diagram of the universal controller. The controller adopts a layered design, including: underlying hardware driver, application layer logic and business layer. The underlying hardware driver is oriented to the underlying device connected to the controller. Through control logic, protocol driver and hardware driver, it can complete the collection of device data and the issuance of control instructions. The protocol driver can also upload the collected data to the business layer.

[0082] like Figure 7 The figure shows the controller operation process, which involves device self-identification and policy self-adaptation, including the following steps:

[0083] S701, the controller is powered on.

[0084] S702, import the control strategy APP.

[0085] S703, parsing the control strategy APP to obtain control logic, protocol components and device lists.

[0086] S704, initialize the device physical point table required by the protocol driver according to the device list and the parameter template in the protocol component, that is, initialize the acquisition parameters. Combined with the hardware interface and device communication address of the device in the device list, automatically generate the identifier of each physical point "hardware interface-device communication address-parameter", and complete the association mapping between the actual physical point table and the logical point.

[0087] S705: The controller starts the corresponding protocol driver according to the protocol component to which the device in the device list belongs.

[0088] S706, the protocol driver calls the corresponding hardware driver, completes the communication interface initialization, and enters the working mode.

[0089] S707, the protocol driver periodically polls the device according to the device physical point table to collect device parameter status. Specifically, the communication protocol directly generates a collection frame (ie, device status request frame) according to the device physical point table and sends it to the device to obtain device status data.

[0090] S708, determine whether the device parameter status has changed, if so, go to S709, if not, return to S707 to continue collecting.

[0091] S709, push the new state to the control logic.

[0092] S710, the control logic extracts the physical point identifier from the pushed parameter state.

[0093] S711, the control logic matches the logical point identifier in the logic according to the extracted physical point identifier and stores it in the logical operation, that is, triggering a logical operation.

[0094] S712, the control logic outputs a control instruction to the protocol driver according to the logic operation result.

[0095] S713: The protocol driver receives the control instruction.

[0096] S714: The protocol driver converts the control instruction into a control frame and sends it to the device to complete the system logic control.

[0097] The embodiment of the present invention proposes a combination of a control strategy APP + a universal platform to realize a configuration-free adaptive automatic control system. By making the controller into a universal platform, at least one control strategy can be run. The user only needs to import the corresponding control strategy according to the application scenario, which makes project deployment more convenient, and the manufacturer does not need to develop serialized products, making product maintenance simpler. Different devices are encapsulated as protocol components, and device protocol components are preset to realize automatic identification and direct communication without configuration of device access. There is no need to configure acquisition parameters, which improves system development efficiency and shortens project delivery cycle. Through the identification of logical point positions and the identification of physical point positions after instantiation of protocol components, automatic association mapping between control points in logic and device parameters is realized, so as to achieve the effect of self-adaptation of device control and logic, and automatically map input and output points in logic to corresponding physical points of equipment to realize a control closed loop.

[0098] Based on the same inventive concept, this embodiment provides a device access apparatus, which is applied to a controller and can be used to implement the device access method described in the above embodiment. The controller is a universal platform that supports running at least one control strategy. The device access apparatus can be implemented by software and / or hardware.

[0099] Figure 8 is a structural block diagram of a device access apparatus provided by an embodiment of the present invention, such as Figure 8 As shown, the device access device includes:

[0100] An import module 81 is used to import a required control strategy, wherein the control strategy at least includes: control logic and device information corresponding to the control logic, the control logic includes a logic point identifier, the device information includes: the protocol component to which it belongs, the connected hardware interface and the communication address, and the protocol component includes: a protocol driver and a parameter template;

[0101] A generating module 82, configured to detect device access and generate a physical point identifier of the device according to the device information of the device and the parameter template;

[0102] The mapping module 83 is used to complete the association mapping between the logical point and the physical point according to the logical point identifier involved in the control logic of the device and the physical point identifier of the device, wherein the physical point identifier and the logical point identifier corresponding to the same parameter of the same device are the same.

[0103] Optionally, the generating module 82 includes:

[0104] An initialization unit, configured to initialize a physical point table of the device according to the device information of the device and the parameter template;

[0105] The generating unit is used to generate a physical point identifier for each physical point in the physical point table of the device according to the device information of the device.

[0106] Optionally, the initialization unit is specifically used for:

[0107] Determine the protocol component to which the device belongs according to the device information of the device, so as to determine the protocol driver corresponding to the device;

[0108] According to the device information of the device and the parameter template in the protocol component to which the device belongs, the parameters that the device needs to collect are determined, and the physical point table required for the protocol drive corresponding to the device is obtained as the physical point table of the device.

[0109] Optionally, the generating unit is specifically configured to: for each physical point, generate a physical point identifier according to a hardware interface to which the device is connected, a communication address of the device, and a parameter name corresponding to the physical point.

[0110] Optionally, the device access apparatus further includes:

[0111] A startup module, used for starting the protocol driver corresponding to the device according to the protocol component to which the device belongs after completing the association mapping between the logical point and the physical point;

[0112] A first sending module is used to call a hardware driver through a protocol driver corresponding to the device according to the physical point table of the device, so as to periodically send acquisition frames to the device;

[0113] A push module, used to receive the parameter value uploaded by the device through the protocol driver corresponding to the device, and when the current parameter value is different from the previous parameter value, push the current parameter value to the control logic;

[0114] A processing module, used for matching the control logic to the target logical point corresponding to the parameter according to the mapping relationship between the logical point and the physical point, and performing a logical operation corresponding to the target logical point;

[0115] The second sending module is used to send a control frame to the device through a protocol driver corresponding to the device according to the logic operation result.

[0116] Optionally, the first sending module includes:

[0117] A first frame generating unit, configured to generate a collection frame according to a communication address of the device and a physical point table of the device through a protocol driver corresponding to the device;

[0118] The first sending unit is used to send the acquisition frame to the device through a protocol driver corresponding to the device and a hardware interface connected to the device.

[0119] Optionally, the second sending module includes:

[0120] An output unit, used for outputting control instructions to a protocol driver corresponding to the device according to a result of a logic operation;

[0121] A second frame generating unit, configured to generate a control frame according to the communication address of the device and the control instruction through a protocol driver corresponding to the device;

[0122] The second sending unit is used to send the control frame to the device through a protocol driver corresponding to the device and a hardware interface connected to the device.

[0123] The above device access apparatus can execute the device access 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 device access method provided by the embodiment of the present invention.

[0124] 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.

[0125] An embodiment of the present invention further provides a controller, comprising: the device access apparatus described in the above embodiment.

[0126] An embodiment of the present invention further provides a building automatic control system, comprising: the controller described in the above embodiment.

[0127] 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 device access method described in the above embodiment is implemented.

[0128] 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 device access method described in the above embodiment when executing the computer program.

[0129] 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.

[0130] 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 device access method, applied to a controller, characterized in that: The controller is a universal platform that supports running at least one control strategy. The method includes: Import the required control strategy, wherein the control strategy at least includes: control logic and device information corresponding to the control logic, the control logic involves a logic point identifier, the device information includes: the protocol component to which it belongs, the connected hardware interface and the communication address, and the protocol component includes: a protocol driver and a parameter template; Detecting device access, generating a physical point identifier of the device according to device information of the device and the parameter template; According to the logical point identifiers involved in the control logic of the device and the physical point identifiers of the device, the association mapping of the logical point and the physical point is completed, wherein the physical point identifier and the logical point identifier corresponding to the same parameter of the same device are the same.

2. The method according to claim 1, characterized in that Generating a physical point identifier of the device according to the device information of the device and the parameter template includes: Initialize a physical point table of the device according to the device information of the device and the parameter template; For each physical point in the physical point table of the device, a physical point identifier is generated according to the device information of the device.

3. The method according to claim 2, characterized in that Initializing a physical point table of the device according to the device information of the device and the parameter template, including: Determine the protocol component to which the device belongs according to the device information of the device, so as to determine the protocol driver corresponding to the device; According to the device information of the device and the parameter template in the protocol component to which the device belongs, the parameters that the device needs to collect are determined, and the physical point table required for the protocol drive corresponding to the device is obtained as the physical point table of the device.

4. The method according to claim 2, characterized in that: Generating a physical point identifier according to the device information of the device includes: For each physical point, a physical point identifier is generated according to the hardware interface to which the device is connected, the communication address of the device and the parameter name corresponding to the physical point.

5. The method according to claim 1, characterized in that After completing the association mapping between logical points and physical points, it also includes: Starting a protocol driver corresponding to the device according to the protocol component to which the device belongs; According to the physical point table of the device, the hardware driver is called through the protocol driver corresponding to the device to periodically send acquisition frames to the device; Receiving the parameter value uploaded by the device through the protocol driver corresponding to the device, and when the current parameter value is different from the previous parameter value, pushing the current parameter value to the control logic; The control logic matches the target logical point corresponding to the parameter according to the mapping relationship between the logical point and the physical point, and performs the logical operation corresponding to the target logical point; According to the result of the logic operation, a control frame is sent to the device through a protocol driver corresponding to the device.

6. The method according to claim 5, characterized in that Sending a collection frame to the device includes: Generate an acquisition frame according to the communication address of the device and the physical point table of the device through the protocol driver corresponding to the device; The acquisition frame is sent to the device through a protocol driver corresponding to the device and a hardware interface to which the device is connected.

7. The method according to claim 5, characterized in that Sending a control frame to the device through a protocol driver corresponding to the device includes: Output control instructions to the protocol driver corresponding to the device according to the logic operation result; Generate a control frame according to the communication address of the device and the control instruction through the protocol driver corresponding to the device; The control frame is sent to the device through a protocol driver corresponding to the device and a hardware interface to which the device is connected.

8. A device access device, applied to a controller, characterized in that: The controller is a universal platform that supports running at least one control strategy. The device includes: An import module, used to import the required control strategy, wherein the control strategy at least includes: control logic and device information corresponding to the control logic, the control logic includes a logic point identifier, the device information includes: the protocol component to which it belongs, the connected hardware interface and the communication address, and the protocol component includes: a protocol driver and a parameter template; A generating module, configured to detect device access and generate a physical point identifier of the device according to device information of the device and the parameter template; The mapping module is used to complete the association mapping of logical points and physical points according to the logical point identifiers involved in the control logic of the device and the physical point identifiers of the device, wherein the physical point identifier and the logical point identifier corresponding to the same parameter of the same device are the same.

9. A controller, characterized in that: include: The device access device as claimed in claim 8.

10. A building automation system, characterized in that: include: The controller of claim 9.

11. 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 device access method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Equipment control method, cloud server, building automatic control system, equipment and medium

    CN119316480A

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

    CN119717612A