Equipment control method and system, electronic equipment and storage medium
By introducing service agent components into the HVAC control system, local control of remote devices is realized, the control logic modification problem caused by changes in the device connection location is solved, the reusability and development efficiency of the control program are improved, and maintenance costs are reduced.
Patent Information
- Application Number
- CN202411599106.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-03-07
AI Technical Summary
In HVAC control systems, changes in the connection position of remote devices require modification of the control logic and drivers of the main control board and expansion board, resulting in poor reusability of the control program, low development efficiency and high maintenance costs.
By introducing service agent components, remote devices can be mapped to locally for control, enabling decoupling of devices and control boards. When the device configuration changes, there is no need to modify the control logic and drivers of the main control board and expansion board.
It significantly improves the reusability of control programs, improves the development efficiency of HVAC control systems, and reduces the maintenance cost of the system.
Smart Images

Figure CN119575843A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electrical equipment, and in particular to an equipment control method and system, an electronic device and a storage medium. Background Art
[0002] In a HVAC control system, as the complexity of the system increases, multiple control panels are often required to work together to meet the connection requirements of a large number of external devices; in related technologies, for a HVAC control system, one of the control panels is usually used as the main control panel (referred to as the main control panel), and the other control panels are used as extended control panels (referred to as extended panels), and data exchange is achieved between the control panels through a communication bus; devices directly connected to the main control panel are called local devices, and devices connected to the extended panels are called remote devices; however, when the connection location of the remote device changes, for example, when the remote device becomes a local device or the local device becomes a remote device, it is necessary to make corresponding modifications to the control programs such as the control logic and driver of the main control panel and the extended panel, the reusability of the control program is poor, the development efficiency of the HVAC control system is low, and the maintenance cost is high. Summary of the invention
[0003] In view of the above problems, the present application provides a device control method and system, an electronic device and a storage medium to at least solve the technical problems in the related technology that the control program of the HVAC system has poor reusability, the development efficiency of the HVAC control system is low, and the maintenance cost is high.
[0004] According to the first aspect of an embodiment of the present application, a device control method is provided, which is applied to a first control board, including: receiving a read / write control instruction for a target device; in response to the read / write control instruction, determining a first service agent component corresponding to the target device, and a second control board communicatively connected to the target device, and sending a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; and receiving feedback information sent by the first service agent component, wherein the feedback information is feedback information sent by the second control board to the first service agent component regarding the read / write control request.
[0005] According to the second aspect of an embodiment of the present application, a device control method is provided, which is applied to a first service agent component, and the method includes: receiving a read / write control request for a target device sent by a first control board, the read / write control request carries the communication address of the target device, the target device is communicatively connected to a second control board, and the first control board and the second control board are connected via a bus; the communication address includes a device identifier of the target device and an identifier of the control board to which the target device is connected; generating an interface call parameter corresponding to the read / write control request, and sending the interface call parameter to the second control board; receiving feedback information for the interface call parameter sent by the second control board, and sending the feedback information to the first control board.
[0006] According to the third aspect of an embodiment of the present application, a device control method is provided, which is applied to a second control board, and the method includes: receiving an interface call parameter for a target device sent by a first service agent component; the target device is communicatively connected to the second control board; the first service agent component is a proxy component corresponding to the target device; the interface call parameter includes a device identifier of the target device; determining a control interface corresponding to the target device based on the device identifier, calling the control interface based on the interface call parameter, and obtaining feedback information corresponding to the interface call parameter; sending the feedback information to the first service agent component, so that the first service agent component forwards it to the first control board, and the first control board and the second control board are connected via a bus.
[0007] According to the fourth aspect of an embodiment of the present application, a device control method is provided, which is applied to a second control board, and the method includes: receiving an interface call parameter for a target device sent by a first service agent component, the target device is communicatively connected to a fourth control board, the first service agent component is an agent component corresponding to the target device, and the fourth control board is a subordinate control board of the second control board; sending the interface call parameter to the second service agent component, so that the second service agent component forwards the interface call parameter to the fourth control board; the second service agent component is an agent component corresponding to the target device; receiving feedback information corresponding to the interface call parameter sent by the second service agent component; the feedback information is feedback information obtained by the fourth control board calling the control interface corresponding to the target device based on the interface call parameter; sending the feedback information to the first service agent component, so that the first service agent component forwards the feedback information to the first control board, and the first control board is the superior control board of the second control board.
[0008] According to the fifth aspect of an embodiment of the present application, a device control apparatus is provided, comprising: a first receiving unit, for receiving a read / write control instruction for a target device; a first determining unit, for determining, in response to the read / write control instruction, a first service agent component corresponding to the target device, and a second control board communicatively connected to the target device, and sending a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; and a second receiving unit, for receiving feedback information sent by the first service agent component, the feedback information being feedback information sent by the second control board to the first service agent component regarding the read / write control request.
[0009] According to the sixth aspect of an embodiment of the present application, a device control apparatus is provided, comprising: a first receiving unit, for receiving a read / write control request for a target device sent by a first control board, the read / write control request carrying a communication address of the target device, the target device being communicatively connected to a second control board, the first control board and the second control board being connected via a bus; the communication address comprising a device identifier of the target device and an identifier of a control board to which the target device is connected; a generating unit, for generating an interface call parameter corresponding to the read / write control request, and sending the interface call parameter to the second control board; a second receiving unit, for receiving feedback information for the interface call parameter sent by the second control board, and sending the feedback information to the first control board.
[0010] According to the seventh aspect of an embodiment of the present application, a device control apparatus is provided, comprising: a receiving unit for receiving an interface call parameter for a target device sent by a first service agent component; the target device is communicatively connected to the second control board; the first service agent component is a proxy component corresponding to the target device; the interface call parameter includes a device identifier of the target device; a determining calling unit for determining a control interface corresponding to the target device based on the device identifier, calling the control interface based on the interface call parameter, and obtaining feedback information corresponding to the interface call parameter; a sending unit for sending the feedback information to the first service agent component, so that the first service agent component forwards the feedback information to the first control board, and the first control board and the second control board are connected via a bus.
[0011] According to an eighth aspect of an embodiment of the present application, a device control apparatus is provided, comprising: a first receiving unit, configured to receive an interface call parameter for a target device sent by a first service proxy component, wherein the target device is communicatively connected to a fourth control board, wherein the first service proxy component is a proxy component corresponding to the target device, and the fourth control board is a subordinate control board of the second control board; a first sending unit, configured to send the interface call parameter to a second service proxy component, so that the second service proxy component forwards the interface call parameter to the fourth control board; the second service proxy component is a proxy component corresponding to the target device; a second receiving unit, configured to receive feedback information corresponding to the interface call parameter sent by the second service proxy component; the feedback information is feedback information obtained by the fourth control board when calling a control interface corresponding to the target device based on the interface call parameter; and a second sending unit, configured to send the feedback information to the first service proxy component, so that the first service proxy component forwards the feedback information to the first control board, wherein the first control board is a superior control board of the second control board.
[0012] According to a ninth aspect of an embodiment of the present application, there is provided a device control system, the system comprising a first control board, a first service agent component, and a second control board;
[0013] The first control board is used to receive a read / write control instruction for a target device; in response to the read / write control instruction, determine a first service agent component corresponding to the target device, and a second control board connected to the target device for communication, and send a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; and receive feedback information sent by the first service agent component;
[0014] A first service proxy component is configured to receive the read / write control request sent by the first control board, the read / write control request carrying the communication address of the target device, the communication address including the device identifier of the target device and the identifier of the control board to which the target device is connected; generate an interface call parameter corresponding to the read / write control request, and send the interface call parameter to the second control board; receive feedback information sent by the second control board for the interface call parameter, and send the feedback information to the first control board;
[0015] The second control panel is used to receive interface call parameters for the target device sent by the first service agent component; the interface call parameters include a device identifier of the target device; determine the control interface corresponding to the target device based on the device identifier, call the control interface based on the interface call parameters, and obtain feedback information corresponding to the interface call parameters; and send the feedback information to the first service agent component.
[0016] According to a tenth aspect of an embodiment of the present application, there is provided a device control system, the system comprising a first control board, a first service agent component, a second control board, a second service agent component and a fourth control board;
[0017] The first control board is used to receive a read / write control instruction for a target device; in response to the read / write control instruction, determine a first service agent component corresponding to the target device, and the fourth control board connected to the target device in communication sends a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board is an upper-level control board of the second control board, and the fourth control board is a lower-level control board of the second control board; receive feedback information sent by the first service agent component;
[0018] A first service proxy component is configured to receive the read / write control request sent by the first control board, the read / write control request carrying the communication address of the target device, the communication address including the device identifier of the target device and the identifier of the control board to which the target device is connected; generate an interface call parameter corresponding to the read / write control request, and send the interface call parameter to the second control board; receive feedback information sent by the second control board for the interface call parameter, and send the feedback information to the first control board;
[0019] The second control panel is used to receive the interface call parameters for the target device sent by the first service proxy component; send the interface call parameters to the second service proxy component; the second service proxy component is the proxy component corresponding to the target device; receive feedback information corresponding to the interface call parameters sent by the second service proxy component; send the feedback information to the first service proxy component;
[0020] The second service proxy component is used to forward the interface call parameters to the fourth control board; receive feedback information sent by the fourth control board regarding the interface call parameters, and send the feedback information to the second control board;
[0021] The fourth control panel is used to call the control interface corresponding to the target device based on the interface calling parameters, obtain feedback information of the interface calling parameters; and send the feedback information to the first service proxy component.
[0022] According to the eleventh aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the device control method in the embodiments of any of the above aspects through the computer program.
[0023] According to the twelfth aspect of the embodiments of the present application, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to execute the device control method in the embodiments of any of the above aspects when running.
[0024] In an embodiment of the present application, by receiving a read / write control instruction for a target device; in response to the read / write control instruction, determining a first service agent component corresponding to the target device, and a second control board communicatively connected to the target device, sending a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; receiving feedback information sent by the first service agent component, wherein the feedback information is feedback information sent by the second control board to the first service agent component for the read / write control request. The present application can be based on the service agent component that can map remote devices to local devices for control, thereby achieving decoupling of devices and control boards. When the device configuration changes, there is no need to make corresponding modifications to the control logic and driver and other control programs of the main control board and the expansion board, which significantly improves the reusability of the control program. At the same time, it can also improve the low development efficiency of the HVAC control system and reduce the maintenance cost of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings:
[0026] Figure 1 is a flow chart of an optional device control method according to an embodiment of the present application;
[0027] Figure 2 is a schematic diagram of an architecture of an optional device control method according to an embodiment of the present application;
[0028] Figure 3is a schematic diagram of the architecture of another optional device control method according to an embodiment of the present application;
[0029] Figure 4 is a flowchart of another optional device control method according to an embodiment of the present application;
[0030] Figure 5 is a flowchart of another optional device control method according to an embodiment of the present application;
[0031] Figure 6 is a flowchart of another optional device control method according to an embodiment of the present application;
[0032] Figure 7 is a schematic diagram of the architecture of another optional device control method according to an embodiment of the present application;
[0033] Figure 8 It is a structural schematic diagram of a device control device provided in an embodiment of the present application;
[0034] Fig. 9 It is a structural schematic diagram of a device control device provided in an embodiment of the present application;
[0035] Fig.10 It is a structural schematic diagram of a device control device provided in an embodiment of the present application;
[0036] Fig.11 It is a structural schematic diagram of a device control device provided in an embodiment of the present application;
[0037] Fig.12 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0038] Fig.13 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0039] Fig.14 is a structural diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings 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.
[0042] In the related art, a HVAC control system usually uses one control board as a main control board (hereinafter referred to as the main control board), and the other control boards as extended control boards (hereinafter referred to as extended boards). Figure 2 As shown, data exchange is achieved between control boards through a communication bus; devices directly connected to the main control board (device 1 and device 2) are called local devices, and devices connected to the expansion board (device 3 and device 4) are called remote devices; however, when the connection position of the remote device changes, for example, when device 3 and device 4 are both connected to the main control board, or when device 1 or 2 is connected to the expansion board, the control logic and driver and other control programs of the main control board and the expansion board need to be modified accordingly, the reusability of the control program is poor, the development efficiency of the HVAC control system is low, and the maintenance cost is high.
[0043] In order to solve the above technical problems, as an optional implementation method, Figure 1 As shown, an embodiment of the present application provides a device control method, which is applied to a first control board, and the device control method includes:
[0044] S102, receiving a read / write control instruction for a target device.
[0045] Specifically, in the embodiments of the present application, Figure 2 As shown, the first control board (main control board) receives a read / write control instruction from the user for a target device. In one example, the target device can be a remote device relative to the main control board, device 3 or device 4; assuming that device 3 is an LED lamp and device 4 is a temperature sensor, when the user controls the LED lamp corresponding to device 3 on the main control board, an on / off control instruction can be issued to control the opening or closing of device 3. When the user clicks on the main control board to obtain the temperature detected by device 4, a control instruction to read the temperature can be issued to obtain the temperature data detected by device 4.
[0046] This application configures the input / output operation of the remote device as remote input / output IO, based on the client / server architecture: the access request initiator is the remote IO client of the main control board, and the request execution end is the remote IO server of the expansion board. The client and the server are connected through industrial communication buses such as RS4858 or controller area network bus (CAN, Controller Area Network), and the bus uses Modbus, Building Automation and Control Networks (BACNET) or CAN and other communication protocols for data exchange. It should be noted that on the main control board, each remote device corresponds to a service agent component and a server on the expansion board. For example, when operating device 3 on the main control board, the main control board will automatically call out the remote IO client 1 corresponding to device 3. When operating device 4 on the main control board, the main control board will automatically call out the remote IO client 1 corresponding to device 4.
[0047] S204, in response to the read / write control instruction, determine the first service agent component corresponding to the target device, and the second control board communicatively connected to the target device, and send a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus.
[0048] Specifically, Figure 2 As shown, after the main control board receives the read / write control instruction issued by the user, it determines the first service agent component corresponding to the target device and the second control board connected to the target device in communication in response to the read / write control instruction. Taking device 3 as an example, after the main control board receives the read / write control instruction issued by the user for device 3, it determines that the first service agent component corresponding to device 3 is service agent component 1, and the second control board connected to the target device in communication is an expansion board; finally, the main control board (first control board) sends a read / write control request corresponding to the read / write control instruction to the service agent component 1.
[0049] Taking device 4 as an example, after the main control board receives the read / write control instruction issued by the user for device 4, it determines that the first service agent component corresponding to device 4 is service agent component 2, and the second control board connected to the target device for communication is the expansion board, and the main control board (first control board) sends a read / write control request corresponding to the read / write control instruction to the service agent component 2.
[0050] It should be noted that the above-mentioned expansion board may be one or more. The multiple expansion boards (second control boards) and the main control board (first control board) are connected via a bus.
[0051] S206: Receive feedback information sent by the first service proxy component, where the feedback information is feedback information sent by the second control board to the first service proxy component in response to the read / write control request.
[0052] Specifically, in the embodiment of the present application, the main control board receives feedback information from the first service proxy component. This feedback information is actually the response of the second control board to the read / write control request issued by the first service proxy component, such as Figure 2 As shown, for example, when the expansion board receives a read / write control request for device 3, it calls the read / write port corresponding to device 3, obtains the response information corresponding to the read / write control request, and then generates feedback information based on the response information. The feedback information may include the result of the operation, such as success, failure or error information.
[0053] In another example, if Figure 3 As shown, the first service agent component (service agent component 1 and service agent component 2) can be configured on the main control board, so that the device user on the main control board (such as the control logic layer) can access the remote IO device in the same way as accessing the local IO device.
[0054] In an embodiment of the present application, by receiving a read / write control instruction for a target device; in response to the read / write control instruction, determining a first service agent component corresponding to the target device, and a second control board communicatively connected to the target device, sending a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; receiving feedback information sent by the first service agent component, wherein the feedback information is feedback information sent by the second control board to the first service agent component for the read / write control request. The present application can be based on the service agent component that can map remote devices to local devices for control, thereby achieving decoupling of devices and control boards. When the device configuration changes, there is no need to make corresponding modifications to the control logic and driver and other control programs of the main control board and the expansion board, which significantly improves the reusability of the control program. At the same time, it can also improve the low development efficiency of the HVAC control system and reduce the maintenance cost of the system.
[0055] In one or more embodiments, determining the first service agent component corresponding to the target device includes:
[0056] Acquire a mapping relationship between the first service proxy component and the target device from the locally stored device configuration information;
[0057] Based on the mapping relationship, a first service agent component corresponding to the target device is determined.
[0058] Specifically, in an embodiment of the present application, the locally stored device configuration information contains detailed information about the relationship between the device and the service proxy component. When a control instruction for a specific target device is received, the main control board first retrieves the configuration information related to the device from the local storage, and the configuration information includes a mapping relationship between the service proxy component and the target device. Based on the retrieved mapping relationship, it is possible to determine which service proxy component is responsible for communicating with the target device. For example, when the target device is device 3, the first service proxy component found is service proxy component 1. After receiving the control request for device 3, service proxy component 1 will communicate with the target device through the expansion board according to the mapping relationship and configuration information, perform read / write operations, and return the operation results.
[0059] In one or more embodiments, determining the second control board that is communicatively connected to the target device includes:
[0060] Acquire a communication address of the target device, wherein the communication address includes a device identifier of the target device and an identifier of a control board to which the target device is connected;
[0061] The control board corresponding to the identifier of the control board is determined as the second control board.
[0062] Specifically, in an embodiment of the present application, the target device has an independent communication address, which generally includes two parts of information, namely, a device identifier of the target device and an identifier of the control board to which the target device is connected. The device identifier is used to uniquely identify a device, while the control board identifier is used to identify which control board the device is connected to. After receiving a control instruction for a specific target device, the first control board obtains the communication address of the device and identifies the control board corresponding to the identifier as the second control board. The above-mentioned device identifier may be, for example, a Media Access Control Address (MAC address), a Universally Unique Identifier (UUID) and other identifiers, and the identifier of the control board may be, for example, the number of the control board. In one example, Figure 2 As shown, for example, the communication address of device 3 may be CP001-00:1A:2B:3C:4D:5E. Based on the independent communication address of the device, the device can be used by multiple control boards or host computers to perform remote operations, such as reading / writing device properties.
[0063] In one or more embodiments, the device control method further includes:
[0064] It is determined that the control board that is communicatively connected to the target device is changed from the second control board to the third control board, and based on the communication connection relationship between the target device and the third control board, the communication address of the target device in the device configuration information is updated.
[0065] Specifically, in the embodiment of the present application, for example, if the control board connected to the device 3 is changed from the second control board to the third control board, and the third control board is numbered CP003, the communication address of the device 3 needs to be modified to CP003-00:1A:2B:3C:4D:5E. This change and update method improves the flexibility and maintainability of the system, allowing the communication path of the device to be seamlessly switched when the control board fails, is upgraded or reconfigured, and also improves the scalability of the system.
[0066] As an optional implementation, Figure 4 As shown, the embodiment of the present application provides a device control method, which is applied to a first service agent component, including:
[0067] S402, receiving a read / write control request for a target device sent by a first control board, wherein the read / write control request carries a communication address of the target device, the target device is communicatively connected to a second control board, and the first control board and the second control board are connected via a bus; the communication address includes a device identifier of the target device and an identifier of a control board to which the target device is connected.
[0068] S404: Generate interface call parameters corresponding to the read / write control request, and send the interface call parameters to the second control board.
[0069] S406: Receive feedback information regarding the interface call parameters sent by the second control board, and send the feedback information to the first control board.
[0070] Specifically, Figure 2 As shown, taking device 3 as an example, after the main control board receives the read / write control instruction sent by the user to device 3, it determines that the first service agent component corresponding to device 3 is service agent component 1, and the second control board connected to the target device for communication is the expansion board; finally, service agent component 1 receives the read / write control request corresponding to the read / write control instruction sent by the main control board (first control board).
[0071] Taking device 4 as an example, after the main control board receives the read / write control instruction sent by the user to device 4, it determines that the first service agent component corresponding to device 4 is service agent component 2, and the second control board connected to the target device for communication is the expansion board. Service agent component 2 receives the read / write control request corresponding to the read / write control instruction sent by the main control board (first control board).
[0072] The first service proxy component generates interface call parameters corresponding to the read / write control request, and the interface call parameters can be operation type (read or write), communication address of the device, data, etc. Then, these interface call parameters are sent to the second control board (expansion board) through the bus. After receiving the interface call parameters, the second control board performs corresponding operations (such as reading device status or writing data to the device) and generates feedback information. The feedback information may include operation results, error codes, return data, etc. The second control board sends these feedback information to the first service proxy component.
[0073] As an optional implementation, Figure 5 As shown, an embodiment of the present application provides a device control method, which is applied to a second control board, and the method includes:
[0074] S502, receiving an interface call parameter for a target device sent by a first service proxy component; the target device is in communication connection with the second control board; the first service proxy component is a proxy component corresponding to the target device; the interface call parameter includes a device identifier of the target device;
[0075] S504, determining a control interface corresponding to the target device based on the device identifier, calling the control interface based on the interface calling parameters, and obtaining feedback information corresponding to the interface calling parameters;
[0076] S506: Send the feedback information to the first service agent component, so that the first service agent component forwards it to the first control board, and the first control board and the second control board are connected through a bus.
[0077] In the embodiments of the present application, Figure 2 As shown, taking the target device as device 3 as an example, the expansion board receives the interface call parameters for device 3 sent by the service proxy component 1. The interface call parameters can be data such as the operation type (read or write), the communication address of the device, and the read / write parameters. The device identifier of device 3 can be obtained from the communication address, and the control interface (IO port 3) corresponding to the target device is determined based on the device identifier, so that device 3 performs the required operation, and then obtains the feedback information corresponding to the interface call parameters, and forwards the obtained feedback information to the service proxy component 1, and the service proxy component 1 forwards the feedback information to the first control board (main control board).
[0078] As an optional implementation, Figure 6 As shown, an embodiment of the present application provides a device control method, which is applied to a second control board, and the method includes:
[0079] S602, receiving an interface call parameter for a target device sent by a first service proxy component, the target device is in communication connection with a fourth control board, the first service proxy component is a proxy component corresponding to the target device, and the fourth control board is a subordinate control board of the second control board;
[0080] S604, sending the interface call parameter to a second service proxy component, so that the second service proxy component forwards the interface call parameter to the fourth control board; the second service proxy component is a proxy component corresponding to the target device;
[0081] S606, receiving feedback information corresponding to the interface call parameter sent by the second service proxy component; the feedback information is feedback information obtained by the fourth control board calling the control interface corresponding to the target device based on the interface call parameter;
[0082] S608: Send the feedback information to the first service agent component, so that the first service agent component forwards the feedback information to a first control board, where the first control board is a superior control board of the second control board.
[0083] Specifically, in the embodiment of the present application, in order to improve the flexibility and scalability of the connection between the expansion boards, the control boards can be configured in the form of multi-level interconnection, and the address space of the bus can also be saved. Figure 7 As shown, the second control board is a first-level expansion board of the main control board relative to the main control board; the second control board is an upper-level expansion board of the second-level expansion board relative to the second-level expansion board.
[0084] Taking the target device as device 5 as an example, the second control board receives the interface call parameters for device 5 sent by the first service agent component (service agent component 1), the device 5 is communicatively connected to the fourth control board (secondary expansion board), and the service agent component 1 is the agent component corresponding to device 5; the second control board sends the interface call parameters to the second service agent component (service agent component 3) based on the remote IO client 3, and the service agent component 3 forwards the interface call parameters to the fourth control board; the service agent component 3 is the agent component corresponding to device 5.
[0085] The second control board receives feedback information corresponding to the interface call parameters sent by the service agent component 3; the feedback information is the feedback information obtained by the fourth control board calling the control interface (IO port 5) corresponding to the device 5 based on the interface call parameters; the second control board sends the feedback information to the service agent component 1, and the service agent component 1 forwards the received feedback information to the first control board.
[0086] According to another aspect of the embodiment of the present application, there is also provided a device control system for implementing the above device control method, the system comprising a first control board, a first service agent component and a second control board;
[0087] The first control board is used to receive a read / write control instruction for a target device; in response to the read / write control instruction, determine a first service agent component corresponding to the target device, and a second control board connected to the target device for communication, and send a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; and receive feedback information sent by the first service agent component;
[0088] A first service proxy component is configured to receive the read / write control request sent by the first control board, the read / write control request carrying the communication address of the target device, the communication address including the device identifier of the target device and the identifier of the control board to which the target device is connected; generate an interface call parameter corresponding to the read / write control request, and send the interface call parameter to the second control board; receive feedback information sent by the second control board for the interface call parameter, and send the feedback information to the first control board;
[0089] The second control panel is used to receive interface call parameters for the target device sent by the first service agent component; the interface call parameters include a device identifier of the target device; determine the control interface corresponding to the target device based on the device identifier, call the control interface based on the interface call parameters, and obtain feedback information corresponding to the interface call parameters; and send the feedback information to the first service agent component.
[0090] According to another aspect of the embodiment of the present application, there is also provided a device control system for implementing the above device control method, the system comprising a first control board, a first service agent component, a second control board, a second service agent component and a fourth control board;
[0091] The first control board is used to receive a read / write control instruction for a target device; in response to the read / write control instruction, determine a first service agent component corresponding to the target device, and the fourth control board connected to the target device in communication sends a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board is an upper-level control board of the second control board, and the fourth control board is a lower-level control board of the second control board; receive feedback information sent by the first service agent component;
[0092] A first service proxy component is configured to receive the read / write control request sent by the first control board, the read / write control request carrying the communication address of the target device, the communication address including the device identifier of the target device and the identifier of the control board to which the target device is connected; generate an interface call parameter corresponding to the read / write control request, and send the interface call parameter to the second control board; receive feedback information sent by the second control board for the interface call parameter, and send the feedback information to the first control board;
[0093] The second control panel is used to receive the interface call parameters for the target device sent by the first service proxy component; send the interface call parameters to the second service proxy component; the second service proxy component is the proxy component corresponding to the target device; receive feedback information corresponding to the interface call parameters sent by the second service proxy component; send the feedback information to the first service proxy component;
[0094] The second service proxy component is used to forward the interface call parameters to the fourth control board; receive feedback information sent by the fourth control board regarding the interface call parameters, and send the feedback information to the second control board;
[0095] The fourth control panel is used to call the control interface corresponding to the target device based on the interface calling parameters, obtain feedback information of the interface calling parameters; and send the feedback information to the first service proxy component.
[0096] According to another aspect of the embodiment of the present application, there is also provided a device control apparatus for implementing the above device control method, which is applied to a first control board, such as Figure 8 As shown, the device comprises:
[0097] The first receiving unit 802 is used to receive a read / write control instruction for a target device;
[0098] A first determining unit 804 is configured to determine, in response to the read / write control instruction, a first service agent component corresponding to the target device and a second control board communicatively connected to the target device, and send a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus;
[0099] The second receiving unit 806 is configured to receive feedback information sent by the first service proxy component, where the feedback information is feedback information sent by the second control board to the first service proxy component in response to the read / write control request.
[0100] In an embodiment of the present application, by receiving a read / write control instruction for a target device; in response to the read / write control instruction, determining a first service agent component corresponding to the target device, and a second control board communicatively connected to the target device, sending a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; receiving feedback information sent by the first service agent component, wherein the feedback information is feedback information sent by the second control board to the first service agent component for the read / write control request. The present application can be based on the service agent component that can map remote devices to local devices for control, thereby achieving decoupling of devices and control boards. When the device configuration changes, there is no need to make corresponding modifications to the control logic and driver and other control programs of the main control board and the expansion board, which significantly improves the reusability of the control program. At the same time, it can also improve the low development efficiency of the HVAC control system and reduce the maintenance cost of the system.
[0101] In one or more embodiments, the first determining unit 804 includes:
[0102] A first acquisition module, used to acquire a mapping relationship between the first service agent component and the target device from the locally stored device configuration information;
[0103] The first determining module is used to determine a first service agent component corresponding to the target device based on the mapping relationship.
[0104] In one or more embodiments, the first determining unit 804 includes:
[0105] A second acquisition module, configured to acquire a communication address of the target device, wherein the communication address includes a device identifier of the target device and an identifier of a control board to which the target device is connected;
[0106] The second determining module is used to determine the control board corresponding to the identifier of the control board as the second control board.
[0107] In one or more embodiments, the device control apparatus further comprises:
[0108] The second determining unit is used to determine that the control board that is communicatively connected to the target device is changed from the second control board to a third control board, and based on the communication connection relationship between the target device and the third control board, update the communication address of the target device in the device configuration information.
[0109] According to another aspect of the embodiment of the present application, there is also provided a device control apparatus for implementing the above device control method, which is applied to a first service agent component, such as Fig. 9 As shown, the device comprises:
[0110] The first receiving unit 902 is used to receive a read / write control request for a target device sent by a first control board, wherein the read / write control request carries a communication address of the target device, the target device is communicatively connected to a second control board, and the first control board and the second control board are connected via a bus; the communication address includes a device identifier of the target device and an identifier of a control board to which the target device is connected;
[0111] A generating unit 904, configured to generate an interface call parameter corresponding to the read / write control request, and send the interface call parameter to the second control board;
[0112] The second receiving unit 906 is configured to receive feedback information regarding the interface call parameters sent by the second control board, and send the feedback information to the first control board.
[0113] According to another aspect of the embodiment of the present application, there is also provided a device control apparatus for implementing the above device control method, which is applied to a second control board, such as Fig.10 As shown, the device comprises:
[0114] The receiving unit 1002 is used to receive an interface call parameter for a target device sent by a first service proxy component; the target device is in communication connection with the second control board; the first service proxy component is a proxy component corresponding to the target device; the interface call parameter includes a device identifier of the target device;
[0115] A determining and calling unit 1004 is used to determine a control interface corresponding to the target device based on the device identifier, call the control interface based on the interface calling parameters, and obtain feedback information corresponding to the interface calling parameters;
[0116] The sending unit 1006 is configured to send the feedback information to the first service agent component, so that the first service agent component forwards the feedback information to the first control board. The first control board and the second control board are connected via a bus.
[0117] According to another aspect of the embodiment of the present application, there is also provided a device control apparatus for implementing the above device control method, which is applied to a second control board, such as Fig.11 As shown, the device includes
[0118] The first receiving unit 1102 is used to receive an interface call parameter for a target device sent by a first service proxy component, the target device is communicatively connected to a fourth control board, the first service proxy component is a proxy component corresponding to the target device, and the fourth control board is a subordinate control board of the second control board;
[0119] The first sending unit 1104 is used to send the interface call parameter to the second service proxy component, so that the second service proxy component forwards the interface call parameter to the fourth control board; the second service proxy component is the proxy component corresponding to the target device;
[0120] The second receiving unit 1106 is used to receive feedback information corresponding to the interface call parameter sent by the second service proxy component; the feedback information is feedback information obtained by the fourth control board calling the control interface corresponding to the target device based on the interface call parameter;
[0121] The second sending unit 1108 is configured to send the feedback information to the first service agent component, so that the first service agent component forwards the feedback information to a first control board, where the first control board is a superior control board of the second control board.
[0122] According to another aspect of the embodiment of the present application, an electronic device for implementing the above device control method is also provided. The electronic device may be as follows: Figures 2 to 4 or Figure 7 Any control panel shown, or a terminal device with a device control client installed. Optionally, in this embodiment, the control panel can access a computer network through a wired or wireless network, communicate with the terminal device, receive a control instruction from the terminal device, and perform corresponding operations according to the control instruction.
[0123] Optionally, the terminal devices include but are not limited to mobile phones, laptops, tablet computers, PDAs, MIDs (Mobile Internet Devices), desktop computers, smart TVs, etc. The device control client in the embodiment of the present application includes but is not limited to a client that provides clothing processing device control services for video clients, instant messaging clients, browser clients, educational clients, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network, and a wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that implement wireless communication.
[0124] This embodiment is described by taking the electronic device as the first control board as an example. Fig.12 As shown, the clothes processing device includes a memory 1202 and a processor 1204. The memory 1202 stores a computer program, and the processor 1204 is configured to execute the steps in any of the above method embodiments through the computer program.
[0125] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0126] S11, receiving a read / write control instruction for a target device;
[0127] S12, in response to the read / write control instruction, determining a first service proxy component corresponding to the target device and a second control board communicatively connected to the target device, and sending a read / write control request corresponding to the read / write control instruction to the first service proxy component; the first control board and the second control board are connected via a bus;
[0128] S13: receiving feedback information sent by the first service proxy component, where the feedback information is feedback information sent by the second control board to the first service proxy component in response to the read / write control request.
[0129] Alternatively, a person skilled in the art may understand that: Fig.12 The structure shown is for illustration only. Fig.12 The structure of the electronic device is not limited. Fig.12 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.12 Different configurations are shown.
[0130] Among them, the memory 1202 can be used to store software programs and modules, such as the program instructions / modules corresponding to the device control method and apparatus in the embodiments of the present application. The processor 1204 executes various functional applications and data processing by running the software programs and modules stored in the memory 1202, that is, to implement the above-mentioned device control method. The memory 1202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1202 may further include a memory remotely located relative to the processor 1204, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1202 may specifically be used for, but is not limited to, storing control information of the device. As an example, such as Fig.12 As shown, the memory 1202 may include but is not limited to the first receiving unit 802, the first determining unit 804 and the second receiving unit 806 in the device control apparatus. In addition, it may also include but is not limited to other module units in the device control apparatus, which will not be repeated in this example.
[0131] Optionally, the transmission device 1206 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1206 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1206 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0132] In addition, the electronic device further includes: a display 1208 for displaying the operating status of the device; and a connection bus 1210 for connecting various module components in the electronic device.
[0133] According to another aspect of the embodiment of the present application, an electronic device for implementing the above device control method is also provided. The electronic device may be as follows: Figures 2 to 4 or Figure 7 Optionally, in this embodiment, the control panel can access a computer network through a wired or wireless network, communicate with the terminal device, receive control instructions from the terminal device, and perform corresponding operations according to the control instructions.
[0134] Optionally, the terminal devices include but are not limited to mobile phones, laptops, tablet computers, PDAs, MIDs (Mobile Internet Devices), desktop computers, smart TVs, etc. The device control client in the embodiment of the present application includes but is not limited to a client that provides clothing processing device control services for video clients, instant messaging clients, browser clients, educational clients, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network, and a wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that implement wireless communication.
[0135] This embodiment is described by taking the electronic device as the second control board as an example. Fig.13 As shown, the clothes processing device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any of the above method embodiments through the computer program.
[0136] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0137] S21, receiving an interface call parameter for a target device sent by a first service proxy component; the target device is in communication connection with the second control board; the first service proxy component is a proxy component corresponding to the target device; the interface call parameter includes a device identifier of the target device;
[0138] S22, determining a control interface corresponding to the target device based on the device identifier, calling the control interface based on the interface calling parameters, and obtaining feedback information corresponding to the interface calling parameters;
[0139] S23: Send the feedback information to the first service agent component, so that the first service agent component forwards it to the first control board, and the first control board and the second control board are connected through a bus.
[0140] Alternatively, a person skilled in the art may understand that: Fig.13 The structure shown is for illustration only. Fig.13 The structure of the electronic device is not limited. Fig.13 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.13 Different configurations are shown.
[0141] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the device control method and apparatus in the embodiments of the present application. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, to implement the above-mentioned device control method. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include a memory remotely located relative to the processor 1304, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1302 may specifically be used for, but is not limited to, storing control information of the device. As an example, such as Fig.13 As shown, the memory 1302 may include but is not limited to the receiving unit 1002, the determining and calling unit 1004 and the sending unit 1006 in the device control apparatus. In addition, it may also include but is not limited to other module units in the device control apparatus, which will not be described in detail in this example.
[0142] Optionally, the transmission device 1306 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1306 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0143] In addition, the electronic device further includes: a display 1308 for displaying the operating status of the device; and a connection bus 1310 for connecting various module components in the electronic device.
[0144] According to another aspect of the embodiment of the present application, an electronic device for implementing the above device control method is also provided. The electronic device may be as follows: Figures 2 to 4 or Figure 7 Optionally, in this embodiment, the control panel can access a computer network through a wired or wireless network, communicate with the terminal device, receive control instructions from the terminal device, and perform corresponding operations according to the control instructions.
[0145] Optionally, the terminal devices include but are not limited to mobile phones, laptops, tablet computers, PDAs, MIDs (Mobile Internet Devices), desktop computers, smart TVs, etc. The device control client in the embodiment of the present application includes but is not limited to a client that provides clothing processing device control services for video clients, instant messaging clients, browser clients, educational clients, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network, and a wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that implement wireless communication.
[0146] This embodiment is described by taking the electronic device as the second control board as an example. Fig.14 As shown, the clothes processing device includes a memory 1402 and a processor 1404. The memory 1402 stores a computer program, and the processor 1404 is configured to execute the steps in any of the above method embodiments through the computer program.
[0147] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0148] S31, receiving an interface call parameter for a target device sent by a first service proxy component, the target device is in communication connection with a fourth control board, the first service proxy component is a proxy component corresponding to the target device, and the fourth control board is a subordinate control board of the second control board;
[0149] S32, sending the interface call parameter to the second service proxy component, so that the second service proxy component forwards the interface call parameter to the fourth control board; the second service proxy component is a proxy component corresponding to the target device;
[0150] S33, receiving feedback information corresponding to the interface call parameter sent by the second service proxy component; the feedback information is feedback information obtained by the fourth control board calling the control interface corresponding to the target device based on the interface call parameter;
[0151] S34: Send the feedback information to the first service agent component, so that the first service agent component sends the feedback information to a first control board, where the first control board is a superior control board of the second control board.
[0152] Alternatively, a person skilled in the art may understand that: Fig.14 The structure shown is for illustration only. Fig.14 The structure of the electronic device is not limited. Fig.14 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.14 Different configurations are shown.
[0153] Among them, the memory 1402 can be used to store software programs and modules, such as the program instructions / modules corresponding to the device control method and apparatus in the embodiments of the present application. The processor 1404 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402, that is, to implement the above-mentioned device control method. The memory 1402 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1402 may further include a memory remotely located relative to the processor 1404, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1402 may specifically be used for, but is not limited to, storing control information of the device. As an example, such as Fig.14As shown, the memory 1402 may include, but is not limited to, the first receiving unit 1102, the first sending unit 1104, the second receiving unit 1106, and the second sending unit 1108 in the device control apparatus. In addition, it may also include, but is not limited to, other module units in the device control apparatus, which will not be repeated in this example.
[0154] Optionally, the transmission device 1406 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1406 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1406 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0155] In addition, the electronic device further includes: a display 1408 for displaying the operating status of the device; and a connection bus 1410 for connecting various module components in the electronic device.
[0156] In one or more embodiments, the present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned clothing processing device living thing detection method. Wherein, the computer program is configured to execute the steps of any of the above-mentioned method embodiments when running.
[0157] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0158] S11, receiving a read / write control instruction for a target device;
[0159] S12, in response to the read / write control instruction, determining a first service proxy component corresponding to the target device and a second control board communicatively connected to the target device, and sending a read / write control request corresponding to the read / write control instruction to the first service proxy component; the first control board and the second control board are connected via a bus;
[0160] S13, receiving feedback information sent by the first service proxy component, wherein the feedback information is feedback information sent by the second control board to the first service proxy component in response to the read / write control request. Or a computer program that performs the following steps:
[0161] S21, receiving an interface call parameter for a target device sent by a first service proxy component; the target device is in communication connection with the second control board; the first service proxy component is a proxy component corresponding to the target device; the interface call parameter includes a device identifier of the target device;
[0162] S22, determining a control interface corresponding to the target device based on the device identifier, calling the control interface based on the interface calling parameters, and obtaining feedback information corresponding to the interface calling parameters;
[0163] S23, sending the feedback information to the first service agent component, so that the first service agent component forwards it to the first control board, and the first control board and the second control board are connected via a bus. Or a computer program that performs the following steps:
[0164] S31, receiving an interface call parameter for a target device sent by a first service proxy component, the target device is in communication connection with a fourth control board, the first service proxy component is a proxy component corresponding to the target device, and the fourth control board is a subordinate control board of the second control board;
[0165] S32, sending the interface call parameter to the second service proxy component, so that the second service proxy component forwards the interface call parameter to the fourth control board; the second service proxy component is a proxy component corresponding to the target device;
[0166] S33, receiving feedback information corresponding to the interface call parameter sent by the second service proxy component; the feedback information is feedback information obtained by the fourth control board calling the control interface corresponding to the target device based on the interface call parameter;
[0167] S34: Send the feedback information to the first service agent component, so that the first service agent component sends the feedback information to a first control board, where the first control board is a superior control board of the second control board.
[0168] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0169] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0170] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention.
[0171] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0172] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0173] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A device control method, characterized in that: Applied to the first control board, the method comprises: Receive read / write control instructions for the target device; In response to the read / write control instruction, determine a first service agent component corresponding to the target device and a second control board communicatively connected to the target device, and send a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; The feedback information sent by the first service proxy component is received, where the feedback information is feedback information sent by the second control board to the first service proxy component in response to the read / write control request.
2. The method according to claim 1, characterized in that: The determining the first service agent component corresponding to the target device includes: Acquire a mapping relationship between the first service proxy component and the target device from the locally stored device configuration information; Based on the mapping relationship, a first service agent component corresponding to the target device is determined.
3. The method according to claim 1 or 2, characterized in that The determining of the second control board in communication connection with the target device comprises: Acquire a communication address of the target device, wherein the communication address includes a device identifier of the target device and an identifier of a control board to which the target device is connected; The control board corresponding to the identifier of the control board is determined as the second control board.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: It is determined that the control board that is communicatively connected to the target device is changed from the second control board to the third control board, and based on the communication connection relationship between the target device and the third control board, the communication address of the target device in the device configuration information is updated.
5. A device control method, characterized in that: Applied to the first service proxy component, the method comprises: receiving a read / write control request for a target device sent by a first control board, the read / write control request carrying a communication address of the target device, the target device being communicatively connected to a second control board, the first control board and the second control board being connected via a bus; the communication address including a device identifier of the target device and an identifier of a control board to which the target device is connected; Generate an interface call parameter corresponding to the read / write control request, and send the interface call parameter to the second control board; Receive feedback information regarding the interface call parameters sent by the second control board, and send the feedback information to the first control board.
6. A device control method, characterized in that: Applied to the second control board, the method comprises: Receiving an interface call parameter for a target device sent by a first service proxy component; the target device is in communication connection with the second control board; the first service proxy component is a proxy component corresponding to the target device; the interface call parameter includes a device identifier of the target device; Determine a control interface corresponding to the target device based on the device identifier, call the control interface based on the interface calling parameters, and obtain feedback information corresponding to the interface calling parameters; The feedback information is sent to the first service agent component, so that the first service agent component forwards it to the first control board, and the first control board and the second control board are connected through a bus.
7. A device control method, characterized in that: Applied to the second control board, the method comprises: Receiving an interface call parameter for a target device sent by a first service proxy component, the target device is in communication connection with a fourth control board, the first service proxy component is a proxy component corresponding to the target device, and the fourth control board is a subordinate control board of the second control board; Sending the interface call parameters to a second service proxy component, so that the second service proxy component forwards the interface call parameters to the fourth control board; the second service proxy component is a proxy component corresponding to the target device; receiving feedback information corresponding to the interface call parameters sent by the second service proxy component; the feedback information is feedback information obtained by the fourth control board calling the control interface corresponding to the target device based on the interface call parameters; The feedback information is sent to the first service agent component, so that the first service agent component forwards the feedback information to a first control board, where the first control board is a superior control board of the second control board.
8. A device control system, characterized in that: The system includes a first control board, a first service agent component, and a second control board; The first control board is used to receive a read / write control instruction for a target device; in response to the read / write control instruction, determine a first service agent component corresponding to the target device, and a second control board connected to the target device for communication, and send a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board and the second control board are connected via a bus; receiving feedback information sent by the first service agent component; A first service proxy component is used to receive the read / write control request sent by the first control board, wherein the read / write control request carries the communication address of the target device, and the communication address includes a device identifier of the target device and an identifier of the control board to which the target device is connected; Generate an interface call parameter corresponding to the read / write control request, and send the interface call parameter to the second control board; receive feedback information sent by the second control board for the interface call parameter, and send the feedback information to the first control board; The second control panel is used to receive the interface call parameters for the target device sent by the first service agent component; The interface call parameters include a device identifier of the target device; Determine a control interface corresponding to the target device based on the device identifier, call the control interface based on the interface calling parameters, and obtain feedback information corresponding to the interface calling parameters; The feedback information is sent to the first service agent component.
9. A device control system, characterized in that: The system includes a first control board, a first service agent component, a second control board, a second service agent component and a fourth control board; The first control board is used to receive a read / write control instruction for a target device; in response to the read / write control instruction, determine a first service agent component corresponding to the target device, and the fourth control board connected to the target device in communication sends a read / write control request corresponding to the read / write control instruction to the first service agent component; the first control board is an upper-level control board of the second control board, and the fourth control board is a lower-level control board of the second control board; receive feedback information sent by the first service agent component; A first service proxy component is used to receive the read / write control request sent by the first control board, wherein the read / write control request carries the communication address of the target device, and the communication address includes a device identifier of the target device and an identifier of the control board to which the target device is connected; Generate an interface call parameter corresponding to the read / write control request, and send the interface call parameter to the second control board; receive feedback information sent by the second control board for the interface call parameter, and send the feedback information to the first control board; The second control panel is used to receive the interface call parameters for the target device sent by the first service agent component; Sending the interface call parameters to a second service proxy component; the second service proxy component is a proxy component corresponding to the target device; receiving feedback information corresponding to the interface call parameters sent by the second service proxy component; and sending the feedback information to the first service proxy component; The second service proxy component is used to forward the interface call parameters to the fourth control board; receive feedback information sent by the fourth control board regarding the interface call parameters, and send the feedback information to the second control board; The fourth control panel is used to call the control interface corresponding to the target device based on the interface calling parameters, obtain feedback information of the interface calling parameters; and send the feedback information to the first service proxy component.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor runs the computer program to implement the method according to any one of claims 1 to 4, or claim 5, or claim 6, or claim 7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 4, or claim 5, or claim 6, or claim 7.