A Device Centralized Control Method, System, Device and Readable Storage Medium
By obtaining device information and area identification, filtering and sending setting instructions, the problem of cumbersome operation in centralized control of the equipment is solved and the operation efficiency is improved.
Patent Information
- Application Number
- CN202310315858.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2043-03-28
AI Technical Summary
In centralized equipment control, when multiple devices in a designated area need to operate the same operation, the operation is complicated and inefficient.
By obtaining the setting parameters, area identification and device information, filtering the device information with the same area identification, and sending setting instructions when the control parameters in the device information are the same as the setting parameters, achieving unified operation of multiple devices.
It improves the efficiency of multiple devices in the designated area to perform the same operation, simplifies the operation process, and reduces cumbersomeness.
Smart Images

Figure CN116300636B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of centralized remote control, and in particular, to a method, system, device, and readable storage medium for centralized control of devices. Background Art
[0002] Centralized control means establishing a relatively stable control center in an organization. The control center uniformly processes various information inside and outside the organization, discovers problems, and proposes solutions to the problems. The characteristic of this form is that all information flows into the center, is centrally processed by the control center, and all control instructions are also uniformly issued by the control center.
[0003] In actual centralized control of devices, the centralized control center is connected to all devices in the area. By using the control center to control a certain device in the area, however, when the same operation needs to be performed on all devices in a partial area or the entire area, the devices need to be controlled one by one, resulting in a problem of cumbersome operations.
[0004] The above-mentioned existing technical solutions have the following defects: there is a problem of cumbersome operations. Summary of the Invention
[0005] In order to improve the problem of cumbersome operations when performing the same operation on devices in a specified area, this application provides a method, system, device, and readable storage medium for centralized control of devices.
[0006] In the first aspect of this application, a method for centralized control of devices is provided. The method includes:
[0007] Obtain setting parameters, area identifiers, and device information. The device information includes multiple pieces of data, and each piece of data includes a device area identifier and multiple control parameters;
[0008] Filter the device information with the same area identifier and device area identifier;
[0009] Traverse the device information. When the control parameters in the device information are the same as the setting parameters, send a setting instruction.
[0010] As can be seen from the above technical solution, by obtaining the setting parameters, area identifier, and device information, where the device information includes the device area identifier and multiple control parameters, filtering the device information with the same area identifier and device area identifier and traversing the above device information, when the control parameter in the device information is the same as the setting parameter, a setting instruction is sent to the device corresponding to the device information. By inputting the setting parameters and area identifier, comparing the setting parameters, area identifier, and device information and sending setting instructions to achieve the same operation for multiple devices, the problem of cumbersome operation when performing the same operation on multiple devices in a specified area is improved, and the effect of improving operation efficiency is achieved.
[0011] In one possible implementation, the method further includes:
[0012] Obtaining control feedback information, where the control feedback information includes feedback device information and a feedback identifier;
[0013] Obtaining the number of instructions of the setting instruction and the number of feedback data of the control feedback information;
[0014] When the number of feedback data is the same as the number of instructions, outputting control completion information;
[0015] When the number of feedback data is different from the number of instructions, outputting an error message.
[0016] In one possible implementation, the "when the number of feedback data is different from the number of instructions, outputting an error message" includes:
[0017] When the number of feedback data is greater than the number of instructions, outputting feedback exception information.
[0018] In one possible implementation, the "when the number of feedback data is different from the number of instructions, outputting an error message" includes:
[0019] Each piece of data corresponds to a device identifier;
[0020] The feedback device information includes a feedback device identifier;
[0021] When the number of feedback data is less than the number of instructions;
[0022] Sequentially comparing the device identifier corresponding to the setting instruction and the feedback device identifier;
[0023] When there is no feedback device identifier in the feedback device information that is the same as the device identifier, outputting control exception information according to the device identifier.
[0024] In one possible implementation, the method further includes:
[0025] Custom area acquisition instruction;
[0026] Add a custom area identifier to the device information according to the custom area instruction and the device information.
[0027] In a possible implementation, the method further includes:
[0028] Obtain a user linkage instruction and a linkage database, where the linkage database includes the corresponding relationships between multiple pieces of data;
[0029] Send a setting instruction according to the user linkage instruction and the linkage database.
[0030] In a possible implementation, the sending of the setting instruction according to the user linkage instruction and the linkage database includes:
[0031] Determine the target device information to be modified according to the user linkage instruction;
[0032] Retrieve the linked device information according to the target device information and the linkage database;
[0033] Send a setting instruction according to the target device information and the linked device information.
[0034] In a second aspect of the present application, a device centralized control system is provided. The system includes:
[0035] A data acquisition module for acquiring setting parameters, area identifiers, and device information, where the device information includes multiple pieces of data, and each piece of data includes a device area identifier and multiple control parameters;
[0036] A data screening module for screening the device information with the same area identifier as the area identifier;
[0037] An instruction sending module for traversing the device information and sending a setting instruction when the control parameters in the device information are the same as the setting parameters.
[0038] In a third aspect of the present application, an electronic device is provided. The electronic device includes: a memory and a processor, where a computer program is stored on the memory, and the processor implements the method as described above when executing the program.
[0039] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the program implements the method according to the first aspect of the present application when executed by a processor.
[0040] In summary, the present application includes at least one of the following beneficial technical effects:
[0041] By inputting setting parameters and area identifiers, comparing the setting parameters, area identifiers and device information, and sending setting instructions, the same operation can be performed on multiple devices, which improves the cumbersome operation problem that occurs when performing the same operation on multiple devices within a specified area and has the effect of improving operation efficiency. Brief Description of the Drawings
[0042] Figure 1 It is a schematic flowchart of the device centralized control method provided by this application.
[0043] Figure 2 It is a schematic structural diagram of the device centralized control system provided by this application.
[0044] Figure 3 It is a schematic structural diagram of the electronic device provided by this application.
[0045] In the figure, 200 is the device centralized control system; 201 is the data acquisition module; 202 is the data screening module; 203 is the instruction sending module; 301 is the CPU; 302 is the ROM; 303 is the RAM; 304 is the I / O interface; 305 is the input part; 306 is the output part; 307 is the storage part; 308 is the communication part; 309 is the driver; 310 is the removable medium. Detailed Embodiments
[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Apparently, the described embodiments are some, but not all, of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the protection scope of this application.
[0047] In addition, the term "and / or" in this document only describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after, unless otherwise specified.
[0048] The following further describes the embodiments of this application in detail with reference to the accompanying drawings of the specification.
[0049] The embodiments of this application provide a device centralized control method, and the main processes of the above method are described as follows.
[0050] As Figure 1 shown:
[0051] Step S101: Obtain setting parameters, area identifiers, and device information. The device information includes multiple pieces of data, and each piece of data includes a device area identifier and multiple control parameters.
[0052] Specifically, obtain the setting parameters, area identifiers, and device information. The above-mentioned setting parameters represent the parameters that the operator wants to use for the same operation, such as the temperature of the air conditioner and the on / off state of the air conditioner. The area identifier represents the area number of all devices within a certain area that the operator wants to set. The above-mentioned device information includes all device information that needs to be controlled. The device information includes multiple pieces of data, and each piece of data corresponds to a device. Each piece of data includes a device area identifier, a device identifier, and multiple control parameters. The device identifier represents the unique identifier of this device, which is used to distinguish it from other devices. The device area identifier represents the area number where a certain device is located. The control parameter represents the parameter attribute and parameter value that a certain device needs to set or read, such as the temperature of the air conditioner, the on / off state of the air conditioner, and the on / off state of the light.
[0053] For example, for a certain park, each building is regarded as an area, and the device area identifiers of all devices within the same area are the same. For Building A1, the corresponding area identifier is A1, and the above-mentioned A1 is the area number. The device area identifiers of all devices within Building A1 are all A1.
[0054] Step S102: Screen out the device information with the same area identifier and device area identifier.
[0055] Specifically, compare the area identifier input by the operator with the device area identifiers in all device information, and screen out the device information with the same area identifier and device area identifier.
[0056] Step S103: Traverse the device information. When the control parameter in the device information is the same as the setting parameter, send a setting instruction.
[0057] Specifically, traverse the device information completed by the above screening, compare the control parameters and set parameters in the above device information. When there is a control parameter in the above device information that is the same as the set parameter, send a setting instruction to the device corresponding to the above device information. The above setting instruction includes the set parameter and the attribute value corresponding to the set parameter. After the device receives the setting instruction, it modifies the attribute value of the control parameter corresponding to the device to the attribute value included in the setting instruction. For example, in a certain area, there are multiple lighting devices and multiple air-conditioning devices. The control parameters of the lighting devices are the lighting brightness and the switch state, and the control parameters of the air-conditioning devices are the air-conditioning temperature and the switch state. When the set parameter is the lighting brightness, a setting instruction will be sent to all the lighting devices in this area. The setting instruction includes the lighting brightness and the lighting brightness value. When the set parameter is the air-conditioning temperature, a setting instruction will be sent to all the air-conditioning devices in this area. The setting instruction includes the air-conditioning temperature and the air-conditioning temperature value. When the set parameter is the switch state, a setting instruction is sent to all the lighting devices and air-conditioning devices. The setting instruction includes the switch state and the switch state value. For example, 0 represents the off state and 1 represents the on state, then the switch state value included in the setting instruction is 0 or 1.
[0058] Step S104: Obtain control feedback information, and output a prompt message according to the number of instructions in the setting instruction and the number of feedback data in the control feedback information.
[0059] Specifically, when the device corresponding to the device information receives a setting instruction and completes the setting of the corresponding control parameters, a control feedback message will be sent. Obtain the above control feedback message, which includes feedback device information, feedback device identifier, and feedback identifier. The above feedback identifier indicates that this piece of data is feedback data. The above feedback device information represents the modified device information. The above feedback device identifier indicates that this control feedback message is sent by the device corresponding to the feedback device identifier, and the feedback device identifier is the same as the device identifier, which is the unique identifier of the device. Obtain the number of setting instructions of the above setting instruction and the number of feedback data of the above control feedback message; when the number of feedback data is the same as the number of instructions, it means that all devices have received the setting instruction and completed the setting and sent the control feedback message, and output a control completion message; when the number of feedback data is different from the number of instructions, it means that not all devices have received the setting instruction and completed the setting and sent the control feedback message, and output an error message. When the number of feedback data is greater than the number of instructions, it means that some devices may send multiple control feedback messages, that is, there are abnormal situations in the data feedback part of some devices. It is necessary to judge whether there are the same feedback device identifiers in the feedback device identifiers, that is, it is necessary to count the number of times each feedback device identifier appears in multiple control feedback messages. When the number is 1, it means that the device corresponding to the feedback device identifier has no feedback abnormality; when the number is not 1, it means that the device corresponding to the feedback device identifier has a feedback abnormality, and output a feedback abnormality message. When the number of feedback data is less than the number of instructions, compare the device identifier corresponding to the above setting instruction and the above feedback device identifier in turn. If there is a feedback device identifier in multiple feedback device information that is the same as the above device identifier, it means that this control feedback message has no abnormality; if there is no feedback device identifier in multiple feedback device information that is the same as the above device identifier, according to the above device identifier, output a control abnormality message, indicating that the device corresponding to the device identifier has an abnormality.
[0060] In this embodiment, an operator sends a setting instruction for setting control parameters to certain devices, and there will be an identifier with a function number of 11. Sending the setting instruction and the identifier with a function number of 11 will be recorded in the access log of the device receiving the setting instruction. After the device receives the setting instruction, it will perform specific operations on the device. After the operation is completed, a control feedback message with a feedback identifier of 3 will be sent out. The control feedback message records the latest state of the device, and the content of the control feedback message and the feedback identifier 3 will also be recorded in the access log of the corresponding device. According to the number of feedback data and the number of instructions, further judgment is made, and an error message or a control completion message is output.
[0061] The operator can also output a custom area instruction. According to the above custom area instruction and the above device information, a custom area identifier is added to the above device information. The above custom area instruction includes a custom area identifier, and the above custom area identifier can be added to different devices. When the operator only wants to operate on some of the devices within a specified area, a custom area identifier can be added to the devices to be operated. When inputting the area identifier, the value of the area identifier is input as the value of the custom area identifier, and then the above operation is performed, and finally, the unified operation of the devices with the custom area identifier is completed.
[0062] Step S105: Obtain a user linkage instruction and a linkage database, and send a setting instruction according to the user linkage instruction and the linkage database.
[0063] Specifically, obtain a user linkage instruction and a linkage database. The above linkage database includes the corresponding relationships between multiple pieces of device information. The above user linkage instruction is manually input by the operator. The above linkage database is preset by the operator according to the control requirements. According to the above user linkage instruction and the above linkage database, the above user linkage instruction includes linkage parameters and a device identifier. According to the above user linkage instruction, determine the target device information to be modified, that is, according to the device identifier in the user linkage instruction, obtain the target device information corresponding to the device identifier. The above target device information includes target control parameters and a target device identifier. According to the above target device information and the above linkage database, retrieve the linkage device information. The above linkage device information includes a linkage device identifier and linkage control parameters; according to the above target control parameters, the above target device identifier, the above linkage device identifier, and the above linkage control parameters, send a setting instruction. That is, send a setting instruction to the devices corresponding to the target device identifier and the linkage device identifier, modify the target control parameters corresponding to the target device identifier, and modify the linkage control parameters corresponding to the linkage device identifier.
[0064] An embodiment of the present application provides a device centralized control system 200. Refer to Figure 2 , the device centralized control system 200 includes:
[0065] A data acquisition module 201, configured to acquire setting parameters, area identifiers, and device information. The device information includes multiple pieces of data, and each piece of data includes a device area identifier and multiple control parameters;
[0066] A data screening module 202, configured to screen the device information with the same area identifier as the above area identifier;
[0067] An instruction sending module 203, configured to traverse the device information, and when the control parameters in the device information are the same as the setting parameters, send a setting instruction.
[0068] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the described modules can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0069] Embodiments of the present application disclose an electronic device. Referring to Figure 3 , the electronic device includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage section 307 into the random access memory (RAM) 303. In the RAM 303, various programs and data required for system operation are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus. The input / output (I / O) interface 304 is also connected to the bus.
[0070] The following components are connected to the I / O interface 304: an input section 305 including a keyboard, a mouse, etc.; an output section 306 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and speakers, etc.; a storage section 307 including a hard disk, etc.; and a communication section 308 including a network interface card such as a LAN card, a modem, etc. The communication section 308 performs communication processing via a network such as the Internet. The drive 309 is also connected to the I / O interface 304 as required. A removable medium 310, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 309 as required, so that the computer program read from it can be installed into the storage section 307 as required.
[0071] In particular, according to the embodiments of the present application, the process described above with reference to the flowchart Figure 1 can be implemented as a computer software program. For example, embodiments of the present application include a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes program codes for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 308, and / or installed from the removable medium 310. When the computer program is executed by the central processing unit (CPU) 301, the above functions defined in the device of the present application are executed.
[0072] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0073] The above description is only a preferred embodiment of this application and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the application involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned application concept. For example, a technical solution formed by mutually replacing the above features with (but not limited to) technical features having similar functions applied in this application.
Claims
1. A method for centralized control of devices, characterized in that, Including: Obtain setting parameters, area identifiers, and device information. The device information includes multiple pieces of data, and each piece of data includes a device area identifier and multiple control parameters; Filter the device information where the area identifier is the same as the device area identifier; Traverse the device information. When the control parameters in the device information are the same as the setting parameters, send a setting instruction; Obtain control feedback information, which includes feedback device information and a feedback identifier; Obtain the number of setting instructions and the number of feedback data items in the control feedback information; Each piece of data corresponds to a device identifier; The feedback device information includes a feedback device identifier; When the number of feedback data items is less than the number of instructions; Compare the device identifiers corresponding to the setting instructions and the feedback device identifiers in sequence; When there is no feedback device identifier in the feedback device information that is the same as the device identifier, output control exception information according to the device identifier; When the number of feedback data items is greater than the number of instructions, count the number of occurrences of each feedback device identifier. When the number is not 1, output feedback exception information.
2. The method according to claim 1, wherein The method further includes: When the number of feedback data items is the same as the number of instructions, output control completion information; When the number of feedback data items is different from the number of instructions, output error information.
3. The device centralized control method according to claim 1, wherein The method further includes: Obtain a custom area instruction; Add a custom area identifier to the device information according to the custom area instruction and the device information.
4. The device centralized control method according to claim 1, wherein The method further includes: Obtain a user linkage instruction and a linkage database, where the linkage database includes the correspondence relationships between multiple pieces of data; Send a setting instruction according to the user linkage instruction and the linkage database.
5. The device centralized control method according to claim 4, wherein The sending a setting instruction according to the user linkage instruction and the linkage database includes: Determine the target device information to be modified according to the user linkage instruction; Retrieve linkage device information according to the target device information and the linkage database; Send a setting instruction according to the target device information and the linkage device information.
6. A device centralized control system, characterized in that, For implementing the method according to any one of claims 1 to 5, the system includes: A data acquisition module (201) for obtaining setting parameters, area identifiers, and device information. The device information includes multiple pieces of data, and each piece of data includes a device area identifier and multiple control parameters; A data screening module (202) for screening the device information where the area identifier is the same as the device area identifier; An instruction sending module (203) for traversing the device information and sending a setting instruction when the control parameters in the device information are the same as the setting parameters.
7. An electronic device, characterized in that, Including a memory and a processor. A computer program is stored on the memory, and when the processor executes the program, it implements the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and when the program is executed by the processor, it implements the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent device control method and device, computing device and storage medium
CN110531663A