Multi-intelligent device control system and method, electronic device and storage medium
By designing a multi-intelligent device control system, and using the program management center to automatically analyze and execute program loading instructions, the problem of time-consuming and labor-consuming manual programming in the prior art is solved, and an efficient and automated program loading process is achieved.
Patent Information
- Application Number
- CN202311865410.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2043-12-29
AI Technical Summary
In the multi-intelligent device collaboration application scenario, the prior art requires manual programming to change the program of the smart device, resulting in high time and manpower consumption and prone to errors.
Design a multi-intelligent device control system, including a program management center and an intelligent device. By receiving and parsing program loading instructions, the target program and the target smart device are automatically determined, and the target program installation instructions are sent to achieve automated program loading.
No personnel are required to enter the site where the smart device is located, saving time to attend and manual loading program time, greatly improving the program loading efficiency of multiple smart devices, and reducing the probability of errors.
Smart Images

Figure CN117971245B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automation control, and in particular to a multi-intelligent device control system and method, an electronic device and a storage medium. Background Art
[0002] With the rapid development of artificial intelligence, artificial intelligence devices have been applied to different scenarios, improving production efficiency and facilitating people's lives.
[0003] A multi-agent system (MAS) is a computing system composed of multiple intelligent devices interacting in an environment. Compared with using a single intelligent device, a multi-agent system has higher robustness and scalability, which makes it more resistant to interference in complex environments.
[0004] Due to portability and security considerations, the hardware performance of most smart devices is limited. Therefore, a single program is loaded on a single smart device. If the program needs to be changed, it is necessary to load the program for a single smart device manually. In application scenarios where hundreds or thousands of smart devices collaborate, changing the program of smart devices in this way will consume a lot of time and manpower, and is prone to errors. Summary of the invention
[0005] In view of this, the present disclosure proposes a multi-intelligent device control solution.
[0006] According to one aspect of the present disclosure, a multi-intelligent device control system is provided, comprising: a program management center and at least one intelligent device; the program management center receives program loading indication information, wherein the program loading indication information represents different program loading scenarios; the program management center parses the program loading indication information to obtain identification information, and determines a target program to be installed and a target intelligent device based on the identification information; the program management center sends a target program installation instruction to the target intelligent device to instruct the target intelligent device to install the target program; the target intelligent device installs the target program in response to receiving the target program installation instruction, and runs the target program after the installation is complete to execute a task corresponding to the target program.
[0007] In one possible implementation, the system also includes an upper-level decision system; the upper-level decision system is used to send the program loading indication information to the program management center in response to an access request from a new smart device or a new program, or in response to a task switching request from a smart device; the program management center is used to receive the program loading indication information sent by the upper-level decision system, and send a target program installation instruction to the target smart device according to the program loading indication information.
[0008] In one possible implementation, the program management center is used to register a handle to the at least one intelligent device and the upper-level decision-making system, and the handle represents a preset sending condition for sending the program loading indication information; the upper-level decision-making system is used to receive the handle and, if the preset sending condition is met, send the program loading indication information to the program management center; the intelligent device is used to receive the handle and, if the preset sending condition is met, send the program loading indication information to the program management center.
[0009] In one possible implementation, the program loading indication information includes a program restoration instruction, the program loading scenario represented by the program restoration instruction is a smart device program restoration scenario, and the identification information includes a target smart device identification and a time point to be restored; the program management center parses the program restoration instruction to obtain the time point to be restored and the target smart device identification; the program management center determines the program information of the program installed on the target smart device at the time point to be restored from historical data stored in a database, and obtains the target program to be installed.
[0010] In one possible implementation, the program loading indication information includes smart device fault information, the program loading scenario represented by the smart device fault information is a smart device program reinstallation scenario, and the identification information includes a target smart device identification; the program management center parses the smart device fault information to obtain the target smart device identification; based on the target smart device identification, obtains attribute information of the target smart device from the corresponding target smart device; the program management center, based on the attribute information of the target smart device, determines the program information corresponding to the attribute information from historical data stored in a database, and obtains the target program to be installed.
[0011] In one possible implementation, the program loading indication information includes a switching task instruction, the program loading scenario represented by the switching task instruction is a smart device task switching scenario, and the identification information includes a first task identifier and a target smart device identifier: the program management center parses the switching task instruction to obtain the first task identifier and the target smart device identifier, the first task identifier representing the task to be executed; the program management center obtains the hardware information of the target smart device from the target smart device based on the target smart device identifier; the program management center determines the target program that matches the hardware information of the target smart device from the multiple programs corresponding to the first task identifier.
[0012] In one possible implementation, the program loading indication information includes a new smart device access instruction, the program loading scenario represented by the switching task instruction is a scenario of smart device access to the system, and the identification information includes a second task identifier and a target smart device identifier: the program management center parses the new smart device access instruction to obtain the target smart device identifier and the second task identifier of the target smart device to be accessed, the second task identifier representing the task that needs to be performed by the smart device to be accessed; the program management center performs a global scan to obtain new devices for access scanning, and obtains the hardware information of the target smart device from the scanned new devices according to the target smart device identifier; the program management center determines the target program that matches the hardware information of the target smart device from the multiple programs corresponding to the second task identifier.
[0013] In a possible implementation, the program management center obtains the hierarchical identification of each smart device, and determines the order in which the smart devices stop executing tasks based on the hierarchical identification; the program management center sends a stop task instruction to the target smart device in the order in which the tasks are stopped; the target smart device, in response to receiving the stop task instruction, stops the program being executed on the target smart device; the program management center sends a target program installation instruction to the target smart device after the target smart device stops the program being executed; the target smart device, in response to receiving the target program installation instruction, installs the target program; after the target program is installed, the program management center determines the order in which the smart devices resume executing tasks based on the hierarchical identification, and the order in which the tasks are resumed is the reverse of the order in which the tasks are stopped; the program management center resumes running the program on the target smart device in the order in which the tasks are resumed.
[0014] In one possible implementation, the system includes: multiple isomorphic smart devices and / or multiple co-located smart devices; the multiple isomorphic smart devices are multiple smart devices with the same hardware functions; the multiple co-located smart devices are multiple smart devices with the same software functions.
[0015] According to another aspect of the present disclosure, a method for loading programs on multiple smart devices is provided, comprising: receiving program loading indication information, wherein the program loading indication information represents different program loading scenarios; parsing the program loading indication information to obtain identification information, and determining a target program to be installed and a target smart device based on the identification information; and sending a target program installation instruction to the target smart device to instruct the target smart device to install the target program.
[0016] In a possible implementation, the program loading indication information includes a program restore instruction, the program loading scenario represented by the program restore instruction is a smart device program restore scenario, and the identification information includes a target smart device identification and a time point to be restored; the program loading indication information is parsed to obtain the identification information, and the target program to be installed and the target smart device are determined based on the identification information, including: parsing the program restore instruction to obtain the time point to be restored and the target smart device identification; determining the program information of the program installed on the target smart device at the time point to be restored from historical data stored in a database, and obtaining the target program to be installed.
[0017] In a possible implementation, the program loading indication information includes smart device fault information, the program loading scenario represented by the smart device fault information is a smart device program reinstallation scenario, and the identification information includes a target smart device identification; the program loading indication information is parsed to obtain the identification information, and the target program to be installed and the target smart device are determined based on the identification information, including: parsing the smart device fault information to obtain the target smart device identification; based on the target smart device identification, obtaining attribute information of the target smart device from the corresponding target smart device; based on the attribute information of the target smart device, determining the program information corresponding to the attribute information from historical data stored in a database to obtain the target program to be installed.
[0018] In one possible implementation, the program loading indication information includes a switching task instruction, the program loading scenario represented by the switching task instruction is a smart device task switching scenario, and the identification information includes a first task identifier and a target smart device identifier: the program loading indication information is parsed to obtain the identification information, and the target program to be installed and the target smart device are determined based on the identification information, including: parsing the switching task instruction to obtain the first task identifier and the target smart device identifier, the first task identifier representing the task to be executed; based on the target smart device identifier, obtaining the hardware information of the target smart device from the target smart device; and determining the target program that matches the hardware information of the target smart device from multiple programs corresponding to the first task identifier.
[0019] In one possible implementation, the program loading indication information includes a new smart device access instruction, the program loading scenario represented by the switching task instruction is a scenario of smart device access to the system, and the identification information includes a second task identifier and a target smart device identifier: the program loading indication information is parsed to obtain the identification information, and the target program to be installed and the target smart device are determined based on the identification information, including: parsing the new smart device access instruction to obtain the target smart device identifier and the second task identifier of the target smart device to be accessed, the second task identifier representing the task that needs to be performed by the smart device to be accessed; performing a global scan to obtain a new device for access scanning, and according to the target smart device identifier, obtaining the hardware information of the target smart device from the scanned new device; and determining the target program that matches the hardware information of the target smart device from the multiple programs corresponding to the second task identifier.
[0020] In one possible implementation, the sending of a target program installation instruction to the target smart device to instruct the target smart device to install the target program includes: obtaining a hierarchical identifier of each smart device, and determining, based on the hierarchical identifier, an order in which the smart device stops executing tasks; sending a stop task instruction to the target smart device in accordance with the order in which the tasks are stopped; in response to receiving the stop task instruction, stopping the program being executed on the target smart device; after the target smart device stops executing the program, sending a target program installation instruction to the target smart device; after the target program is installed, determining, based on the hierarchical identifier, an order in which the smart device resumes executing tasks, the order in which the tasks are resumed being the reverse of the order in which the tasks are stopped; and resuming running the program on the target smart device in accordance with the order in which the tasks are resumed.
[0021] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0022] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.
[0023] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0024] In an embodiment of the present disclosure, a multi-intelligent device control system includes a program management center and at least one intelligent device; the program management center receives program loading indication information, and the program loading indication information represents different program loading scenarios; the program management center parses the program loading indication information to obtain identification information, and determines the target program to be installed and the target intelligent device based on the identification information; the program management center sends a target program installation instruction to the target intelligent device to instruct the target intelligent device to install the target program; the target intelligent device, in response to receiving the target program installation instruction, installs the target program and runs the target program after the installation is completed. Thus, the program management center can determine the program loading scenario, determine the target program for the target intelligent device, automatically determine the target program, and automatically load the target program onto the intelligent device. There is no need for personnel to enter the site where the intelligent device is located, saving the time of arrival, the preparation time of program loading tools, and the time of manual program loading. Moreover, when manually loading programs for multiple intelligent devices, the intelligent devices may be loaded in sequence, so the method in the embodiment of the present disclosure also saves the time of waiting for the loading program, greatly improving the efficiency of program loading for multiple intelligent devices. Furthermore, by directly determining the target smart device through the program loading information and determining the target program through the program loading information and the program loading scenario, the probability of program loading errors can be reduced.
[0025] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0027] Figure 1 A schematic diagram of the structure of an intelligent device control system provided in an embodiment of the present disclosure.
[0028] Figure 2 A schematic diagram of the structure of another intelligent device control system provided in an embodiment of the present disclosure.
[0029] Figure 3 A flowchart of a method for loading programs on multiple intelligent devices provided in an embodiment of the present disclosure.
[0030] Figure 4 A schematic diagram of the structure of an electronic device for loading programs on multiple intelligent devices provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0032] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0033] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0034] During the operation of the smart device, if there is a need to change the program loaded on the smart device, the user is often required to go to the site to change the program for the smart device.
[0035] The method disclosed in the present invention can be applied to a program management center, which can form a smart device control system together with at least one smart device. The method disclosed in the present invention can be applied to a variety of application scenarios where programs need to be automatically loaded for smart devices.
[0036] Figure 1 This is a schematic diagram of the structure of the intelligent device control system provided by the embodiment of the present disclosure. Figure 1 As shown, the system includes: a program management center and at least one smart device; the program management center receives program loading indication information, wherein the program loading indication information represents different program loading scenarios; the program management center parses the program loading indication information to obtain identification information, and determines a target program to be installed and a target smart device based on the identification information; the program management center sends a target program installation instruction to the target smart device to instruct the target smart device to install the target program; the target smart device installs the target program in response to receiving the target program installation instruction, and runs the target program after the installation is complete to execute the task corresponding to the target program.
[0037] The program loading indication information is used to indicate the target smart device on which the program is to be installed and the target program to be installed, which may specifically include: program restoration instructions, smart device fault information, switching task instructions, and new smart device access instructions. The program loading indication information may include information used to indicate the target program and the target smart device. In one example, the program loading indication information includes one or more of the following information: the network address of the target smart device, instructions, task identifier, time point to be restored, smart device identifier, etc. The program loading indication information required for different program loading scenarios may be different, and the type of program loading indication information required in the same scenario may be fixed. Therefore, the program loading scenario can be determined based on the program loading indication information.
[0038] The program loading instruction information may include the target smart device identification and / or the network address of the target smart device, based on which the target smart device can be easily determined. In addition, the program loading instruction information may also come from the target smart device. Therefore, the target smart device can be determined based on the program loading instruction information. In the embodiment of the present disclosure, different program loading scenarios can be divided according to the reason for loading a program to the smart device.
[0039] Program loading scenarios may include: program restoration scenarios, program reinstallation scenarios after smart device failure, task switching scenarios when the smart device performs a task change, and new smart device access scenarios, etc. For different program loading scenarios, the process of determining the target program is often different. For details, please refer to the possible implementation methods provided in the present disclosure, which will not be elaborated here.
[0040] In the disclosed embodiment, there is no need for personnel to enter the site where the smart devices are located, which saves the time of arrival, the time of preparing program loading tools, and the time of manually loading programs. Moreover, when manually loading programs for multiple smart devices, the smart devices may be loaded one by one, so the method in the disclosed embodiment also saves the time of waiting for program loading, greatly improving the efficiency of program loading for multiple smart devices. In addition, directly determining the target smart device through program loading indication information, and determining the target program through program loading indication information and program loading scenario can reduce the probability of program loading errors.
[0041] In one possible implementation, the system also includes an upper-level decision system; the upper-level decision system is used to send the program loading indication information to the program management center in response to an access request from a new smart device or a new program, or in response to a task switching request from a smart device; the program management center is used to receive the program loading indication information sent by the upper-level decision system, and send a target program installation instruction to the target smart device according to the program loading indication information.
[0042] In order to improve the security of the system, when a new smart device is to be connected to the smart device system, or when the task of the smart device is switched, the upper decision system can send the program loading instruction information to the program management center. The program management center then determines the target program and controls the target smart device to complete the program loading.
[0043] In addition, the upper-level decision system can also directly load the target program into the target intelligent device. For details, please refer to the multi-intelligent device loading method provided in the present disclosure, which will not be described here.
[0044] In this way, not only the security of the system is improved, but also the upper-level decision-making system and the program management center can control the intelligent devices to complete program loading, which are redundant and improve the stability of the system.
[0045] In one possible implementation, the program management center is used to register a handle to the at least one intelligent device and the upper-level decision-making system, and the handle represents a preset sending condition for sending the program loading indication information; the upper-level decision-making system is used to receive the handle and, if the preset sending condition is met, send the program loading indication information to the program management center; the intelligent device is used to receive the handle and, if the preset sending condition is met, send the program loading indication information to the program management center.
[0046] In the disclosed embodiment, the handle is pre-registered to the smart device and the upper decision system, so that when the preset sending conditions are met, the smart device and the upper decision system can send program loading instruction information to the software management center, so as to trigger program loading in different scenarios and improve the efficiency of program loading.
[0047] Figure 2 This is a schematic diagram of the structure of another intelligent device control system provided by the embodiment of the present disclosure. Figure 2 As shown, the intelligent device control system includes: an upper-level decision-making system, a program management center, intelligent device A, intelligent device B, intelligent device C, and intelligent device D. Among them, intelligent device B, intelligent device C, and intelligent device D are intelligent devices with the same hardware functions. The software functions loaded on intelligent device C and intelligent device D are the same. The program management center may include a database, and the database may be a time series database or a version database. Each record in the database is different. A single record may include attribute information of an intelligent device, such as addressing information, hardware information, program information, business information, and other information. The database can generate a status identifier based on the content of a single record, for example: generating a message digest algorithm (Message-Digest Algorithm, MD5) code based on the content of a single record as a status identifier. A single record corresponds to a status identifier.
[0048] Among them, addressing information may include: network address, communication method, communication data definition rules, etc.; hardware information may include: hardware type, hardware model, physical address, device identification, etc.; program information may include: program identification, program version, etc.; business information may include: task type, configuration file, etc. The program here may include: artificial intelligence module.
[0049] The upper decision-making system, smart devices, and program management center can communicate with each other. Smart devices can be divided into one or more levels, and smart devices can communicate with each other. Figure 2 The communication and hierarchy between smart devices are not shown. After the smart device control system is started, the program management center can register the handle to the upper decision system. The handle determines the first format and first condition for the upper decision system to send the program loading instruction information to the program management center. There can be multiple first conditions to adapt to different scenarios. For example: a single scenario corresponds to a first condition and a first format.
[0050] The program management center can also register a fault handle to each smart device. The fault handle defines the second format and second condition for the smart device to send program loading instruction information to the management center. The program loading instruction information sent by the smart device and the program loading instruction information sent by the upper decision system can be applicable to different program loading scenarios.
[0051] When the first condition is met, the upper decision system can send program loading instruction information to the program management center, and the program management center loads the target program to the smart device based on the program loading instruction information. The first condition may include: a new smart device or a new program is connected to the smart device control system, or the smart device needs to switch tasks.
[0052] When the second condition is met, the target smart device may send program loading instruction information to the program management center, and the program management center loads the target program to the smart device based on the program loading instruction information. The second condition may include that the target smart device fails.
[0053] In one possible implementation, when the second condition is met, the target smart device can send program loading indication information to the upper-level decision system, and the upper-level decision system sends the program loading indication information to the program management center, which loads the target program to the smart device based on the program loading indication information.
[0054] In a possible implementation, the program management center may obtain the program loading instruction information input by the user in response to the user's first input operation on the program loading instruction information, and load the target program for the smart device.
[0055] In a possible implementation, the upper-level decision system may respond to the user's second input operation on the program loading instruction information and send the program loading instruction information to the program management center, and the program management center loads the target program for the smart device.
[0056] It should be noted that, after obtaining the target program, the intelligent agents with different hardware or the intelligent agents with different operating systems installed on them may have different processes for installing the target program, and the specific process may depend on the operating system or the hardware.
[0057] In an embodiment of the present disclosure, a multi-intelligent device control system includes a program management center and at least one intelligent device; the program management center receives program loading indication information, and the program loading indication information represents different program loading scenarios; the program management center parses the program loading indication information to obtain identification information, and determines the target program to be installed and the target intelligent device based on the identification information; the program management center sends a target program installation instruction to the target intelligent device to instruct the target intelligent device to install the target program; the target intelligent device, in response to receiving the target program installation instruction, installs the target program and runs the target program after the installation is completed. Thus, the program management center can determine the program loading scenario, determine the target program for the target intelligent device, automatically determine the target program, and automatically load the target program onto the intelligent device. There is no need for personnel to enter the site where the intelligent device is located, saving the time of arrival, the preparation time of program loading tools, and the time of manual program loading. Moreover, when manually loading programs for multiple intelligent devices, the intelligent devices may be loaded in sequence, so the method in the embodiment of the present disclosure also saves the time of waiting for the loading program, greatly improving the efficiency of program loading for multiple intelligent devices. Furthermore, directly determining the target smart device through program loading information, and determining the target program through program loading information and program loading scenario can reduce the probability of program loading errors. In a possible implementation, the program loading instruction information includes a program restoration instruction, the program loading scenario represented by the program restoration instruction is a smart device program restoration scenario, and the identification information includes the target smart device identification and the time point to be restored; the program management center parses the program restoration instruction to obtain the time point to be restored and the target smart device identification; the program management center determines the program information of the program installed on the target smart device at the time point to be restored from the historical data stored in the database, and obtains the target program to be installed.
[0058] When the program loading instruction information is a program restoration instruction, it can be determined that the program loading scenario is a program restoration scenario.
[0059] In the disclosed embodiment, the upper decision system may send a program restoration instruction to the program management center; alternatively, the program management center obtains the program restoration instruction in response to a user input operation on the program restoration instruction.
[0060] The program restoration instruction may include the time point to be restored and may also include the target smart device identifier. In the program restoration instruction of the embodiment of the present disclosure, one or more target smart device identifiers may be included, and a single target smart device identifier may correspond to one time point to be restored.
[0061] In the disclosed embodiment, the target program may be a program that the target smart device has loaded at the time point to be restored. As previously mentioned, the state identifier may be an identifier generated based on a record in a database. If the content in a single record does not change over a period of time, the smart device corresponding to the single record corresponds to the same state identifier during this period of time. Therefore, for the same target smart device (i.e., the same target smart device identifier), a first mapping relationship may exist between the state identifier and the time period (time point).
[0062] By parsing the program restore instruction, the time point to be restored and the target smart device identifier can be obtained. According to the first mapping relationship corresponding to the single target smart device identifier, the first state identifier corresponding to the time point to be restored can be determined. Then, according to the first state identifier, the record corresponding to the first state identifier is queried from the database. The program information of the target smart device can be obtained from the record. Based on the program information, the target program is selected from the database. And the target program is installed on the target smart device.
[0063] Exemplarily, in warehouse A, goods are distinguished by packaging boxes of different colors. In warehouse B, goods are distinguished by packaging boxes of different sizes. Therefore, the picking robot needs to load the color recognition program when working in warehouse A, and needs to load the size recognition program when working in warehouse B. For example, the same batch of picking robots worked in warehouse A from March 2 to March 8, were transferred to warehouse B from March 9 to March 12, and were transferred back to warehouse A on March 13. At this time, a time between March 2 and March 8 can be determined as the time point to be restored, and the target program corresponding to the time point to be restored can be loaded to the picking robot, so that the picking robot reloads the target program to meet the needs of working in warehouse A.
[0064] Therefore, when a program restoration instruction is received, the program restoration scenario can be determined, and the time point to be restored can be automatically determined; the target program is automatically determined according to the time point to be restored, and the target program is automatically loaded onto the target smart device, thereby improving the program loading efficiency and accuracy in the program restoration scenario.
[0065] In one possible implementation, the program loading indication information includes smart device fault information, the program loading scenario represented by the smart device fault information is a smart device program reinstallation scenario, and the identification information includes a target smart device identification; the program management center parses the smart device fault information to obtain the target smart device identification; based on the target smart device identification, obtains attribute information of the target smart device from the corresponding target smart device; the program management center, based on the attribute information of the target smart device, determines the program information corresponding to the attribute information from historical data stored in a database, and obtains the target program to be installed.
[0066] In the case where the program loading indication information is intelligent device fault information, it can be determined that the program loading scenario is a program reinstallation scenario.
[0067] In the disclosed embodiment, the target smart device may be a faulty smart device. The target smart device may send fault information to the upper-level decision system. The fault information may include: an error code, a target smart device identifier, and a network address of the target smart device. The upper-level decision system may send the fault information to the program management center, or the target smart device may directly send the fault information to the program management center.
[0068] In the disclosed embodiment, the target program may be a program loaded or run when the target smart device fails. The program management center scans the target smart device according to the network address of the target smart device to obtain the attribute information of the target smart device. It is also possible to determine the network address recorded in the latest record corresponding to the target smart device based on the target smart device identifier in the database, and then scan the target smart device according to the network address to obtain the attribute information of the target smart device. Then generate a second state identifier based on the attribute information. The second state identifier can characterize the attribute information when the target smart device fails. The attribute information may at least include program information. The record corresponding to the state identifier that is the same as the second state identifier is queried in the database, and the program information of the target smart device is obtained from the record. Based on the program information, the target program is selected from the database. In this way, if the target smart device fails after the program is switched and before the database record is updated, the target program can be accurately determined so that the target smart device can quickly resume work. Of course, if the target smart device does not switch the program and fails, the above method can also be used to determine the target program.
[0069] In the case that the target smart device fails after program switching, the attribute information of the target smart device in the latest record where the target smart device identifier is located can be determined in the database based on the target smart device identifier. The program information is obtained from the attribute information, and then the target program is selected from the database. The efficiency of determining the target program can be improved.
[0070] In addition, since multiple intelligent devices with different hardware functions (multiple heterogeneous intelligent devices) have differences in hardware, their respective faults may be different. Therefore, for multiple heterogeneous intelligent devices that have failed, the program management center can determine the target program based on their respective fault information to complete the program loading of multiple heterogeneous intelligent devices. Exemplarily, the intelligent device G is the upper-level intelligent device of the intelligent device H. The intelligent device G sends an erroneous instruction to the intelligent device H, so that the intelligent device H cannot work normally. In this case, the intelligent device H can send the preset error code and the network address of the intelligent device H to the upper decision-making system and / or the program management center. The program management center scans the intelligent device H according to the network address to obtain the attribute information of the intelligent device H and generate a second state identifier. The attribute information obtained at this time is consistent with the attribute information when the intelligent device H fails. Therefore, the program management center can determine the program loaded by the intelligent device H when the failure occurs according to the second state identifier, and send the program to the intelligent device H to reload the program; so that the intelligent device H resumes normal operation.
[0071] Thus, when receiving the intelligent device failure information, the program reinstallation scenario can be determined, and the attribute information of the target intelligent device can be automatically obtained, and the second state identifier can be generated. Then, the target program is automatically determined according to the second state identifier, thereby improving the program loading efficiency and accuracy in the program reinstallation scenario.
[0072] In one possible implementation, the program loading indication information includes a switching task instruction, the program loading scenario represented by the switching task instruction is a smart device task switching scenario, and the identification information includes a first task identifier and a target smart device identifier: the program management center parses the switching task instruction to obtain the first task identifier and the target smart device identifier, the first task identifier representing the task to be executed; the program management center obtains the hardware information of the target smart device from the target smart device based on the target smart device identifier; the program management center determines the target program that matches the hardware information of the target smart device from the multiple programs corresponding to the first task identifier.
[0073] In the case where the program loading instruction information is a switching task instruction, it can be determined that the program loading scenario is a switching task scenario.
[0074] In the disclosed embodiment, the target smart device may be the smart device of the task to be switched. The target smart device may send a first message to the upper-level decision system. The first message here may be the execution result of the current task, and / or a task switching request. The upper-level decision system may generate a switching task instruction and send the switching task instruction to the program management center. The switching task instruction may include the first task identifier of the task to be executed and the target smart device identifier. It may also include: the network address of the target smart device. According to the target smart device identifier, the network address in the latest record corresponding to the target smart device identified by the target smart device identifier may be determined in the database.
[0075] Alternatively, the upper decision system responds to the user's input operation on the switching task instruction and sends the switching task instruction to the program management center. Alternatively, the program management center obtains the switching task instruction in response to the user's input operation on the switching task instruction.
[0076] In the disclosed embodiment, the target program may be a program corresponding to the task to be performed by the target smart device, that is, a program that can control the target smart device to complete the task to be performed. The program management center scans the target smart device according to the network address of the target smart device to obtain the attribute information of the target smart device. According to the first task identifier, a first candidate program suitable for the task represented by the first task identifier is determined in the database. According to the hardware information in the attribute information of the target smart device, a target program that meets the target smart device is determined from the candidate programs.
[0077] Exemplarily, drone A performs a cable freezing identification task. Drone A is loaded with an ice identification program. After identifying that a certain section of cable is frozen, the identification result is sent to the upper decision system. The upper decision system determines that drone A can then de-ice the section of cable. Therefore, the upper decision system generates a task switching instruction, which includes the network address of drone A and the identifier of the de-icing task; and sends the task switching instruction to the program management center. The program management center scans drone A according to the network address of drone A to obtain the hardware information of drone A; according to the identifier of the de-icing task, it queries the database for multiple first candidate programs suitable for the de-icing task; according to the hardware information of drone A, it determines the target program from the multiple first candidate programs, and loads the target program onto drone A. In this way, drone A does not need to wait for other drones to arrive at the site to replace its work, and can implement de-icing after identifying the freezing of the cable.
[0078] Therefore, when a switching task instruction is received, the switching task scenario can be determined. And the first task identifier can be parsed from the switching task instruction, and the attribute information of the target smart device can be automatically obtained. According to the first task identifier and the attribute information of the target smart device, the target program is determined. The same smart device can perform task switching according to task requirements. There is no need to wait for personnel to arrive on site to replace the program, which improves the program loading efficiency and accuracy in the program reinstallation scenario. Moreover, there is no need to wait for other smart devices to arrive on site to execute the task to be switched, which improves the execution efficiency of the entire task.
[0079] In one possible implementation, the program loading indication information includes a new smart device access instruction, the program loading scenario represented by the switching task instruction is a scenario of smart device access to the system, and the identification information includes a second task identifier and a target smart device identifier: the program management center parses the new smart device access instruction to obtain the target smart device identifier and the second task identifier of the target smart device to be accessed, the second task identifier representing the task that needs to be performed by the smart device to be accessed; the program management center performs a global scan to obtain new devices for access scanning, and obtains the hardware information of the target smart device from the scanned new devices according to the target smart device identifier; the program management center determines the target program that matches the hardware information of the target smart device from the multiple programs corresponding to the second task identifier.
[0080] In the case where the program loading instruction information is a new smart device access instruction, it can be determined that the program loading scenario is a new smart device access scenario.
[0081] In the disclosed embodiment, the target smart device may be a smart device to be connected to the smart device control system. The upper-level decision system may generate a new smart device access instruction and send the new smart device access instruction to the program management center. The new smart device access instruction may include a target smart device identifier and a second task identifier of a task to be performed by the target smart device. The new smart device access instruction may also include a network address of the target smart device. Based on the target smart device identifier, the network address in the latest record corresponding to the target smart device identified by the target smart device identifier may be determined in the database.
[0082] Alternatively, the upper decision system responds to the user's input operation of the new smart device access instruction and sends the new smart device access instruction to the program management center. Alternatively, the program management center responds to the user's input operation of the new smart device access instruction and obtains the new smart device access instruction.
[0083] In the disclosed embodiment, the target program may be an intelligent device to be connected to the intelligent device control system. The program management center scans the intelligent device to be connected (target intelligent device) according to the network address of the target intelligent device to obtain the attribute information of the intelligent device to be connected. Then, according to the second task identifier, a second candidate program suitable for the task represented by the second task identifier is determined in the database; according to the hardware information in the attribute information of the target intelligent device, a target program that meets the target intelligent device is determined from the second candidate programs.
[0084] Exemplarily, smart device J is responsible for transporting goods from warehouse C to warehouse D. The user hopes to improve the efficiency of transportation, so he purchased smart device K. The user can select the second task identifier corresponding to the transportation task through the interface of the upper decision system to complete the input operation of the new smart device access instruction. The user can turn on the smart device K. The upper decision system can perform an identification operation to identify the smart device K. The upper decision system can assign a network address to the smart device K, and include the network address of the smart device K in the new smart device access instruction input by the user. The upper decision system sends the new smart device access instruction to the program management center. The program management center obtains the attribute information of the smart device K according to the network address of the smart device K. According to the second task identifier, multiple second candidate programs suitable for the transportation task are queried in the database; according to the hardware information in the attribute information of the smart device K, the target program is determined from the multiple second candidate programs, and the target program is loaded onto the smart device K.
[0085] Therefore, when a new smart device access instruction is received, it can be determined that the program loading scenario is a new smart device access scenario. And the second task identifier can be parsed from the switching task instruction, and the attribute information of the target smart device can be automatically obtained. According to the second task identifier and the attribute information of the target smart device, the target program is determined; the new smart device can be automatically connected to the smart device control system and can start to execute the task. The program loading efficiency and accuracy in the new smart device access scenario are improved, and the task execution efficiency can also be improved.
[0086] In one possible implementation, after determining the target program, the method further includes: obtaining the latest attribute information of the target smart device; obtaining a third status identifier based on the latest attribute information of the target smart device; and updating the latest attribute information into the database when the third status identifier does not match the status identifier of the target smart device in the database.
[0087] After determining the target program, the latest attribute information of the target smart device can be obtained according to the network address of the target smart device in the new smart device access instruction. The latest attribute information and the previously obtained attribute information are for the same smart device, but the acquisition time is different. The previously obtained attribute information was obtained when the target smart device was not connected; the latest attribute information is obtained after the target smart device is successfully connected. Compared with the previously obtained attribute information, the latest attribute information has different program information.
[0088] In the disclosed embodiment, a third state identifier can be generated based on the latest attribute information of the target smart device. If the state identifier identical to the third state identifier is not found in the database, the latest attribute information and the third state identifier are stored in the database together. If the state identifier identical to the third state identifier is found in the database, it does not need to be stored repeatedly. In this way, the database is automatically maintained after the target smart device is successfully connected, providing accurate information for other program loading scenarios.
[0089] In a possible implementation, the program management center obtains the hierarchical identification of each smart device, and determines the order in which the smart devices stop executing tasks based on the hierarchical identification; the program management center sends a stop task instruction to the target smart device in the order in which the tasks are stopped; the target smart device, in response to receiving the stop task instruction, stops the program being executed on the target smart device; the program management center sends a target program installation instruction to the target smart device after the target smart device stops the program being executed; the target smart device, in response to receiving the target program installation instruction, installs the target program; after the target program is installed, the program management center determines the order in which the smart devices resume executing tasks based on the hierarchical identification, and the order in which the tasks are resumed is the reverse of the order in which the tasks are stopped; the program management center resumes running the program on the target smart device in the order in which the tasks are resumed.
[0090] As mentioned above, multiple smart devices can be divided into levels. The specific order of the levels can be the order in which the smart devices communicate with the upper decision-making system or program management center, or can be pre-specified for each smart device.
[0091] For example, among multiple intelligent devices, the first part of the intelligent devices can command the second part of the intelligent devices to work. Therefore, after the upper decision-making system or program management center issues the target instruction, it first reaches the first part of the intelligent devices. The first part of the intelligent devices then communicate with the second part of the intelligent devices, so that the second part of the intelligent devices complete the tasks indicated by the target instructions. When the second part of the intelligent devices needs to feedback the task status to the upper decision-making system or program management center, the second part of the intelligent devices can feedback the information to the first part of the intelligent devices, and the first part of the intelligent devices can process the information to obtain the processed information. The first part of the intelligent devices can directly feedback the information to the upper decision-making system or program management center, or feedback the processed information to the upper decision-making system or program management center. According to the above communication sequence, the first part of the intelligent devices can be first-level intelligent devices; the second part of the intelligent devices can be second-level intelligent devices.
[0092] The level identifier may be included in the attribute information and may be used to characterize the level of the smart device in the smart device control system.
[0093] According to the level identifier, the pause sequence can be determined. For example, the pause sequence is: first suspend the program running of the first part of the smart devices, and then suspend the program running of the second part of the smart devices.
[0094] Furthermore, the recovery order can be determined according to the level identifier, for example, the recovery order is: first recover the program of the second part of the smart devices, and then recover the program of the first part of the smart devices. The recovery order can also be determined by directly arranging the smart devices that are suspended in sequence in reverse order.
[0095] In the disclosed embodiment, the programs of the smart devices can be temporarily scheduled in batches, and the target programs can be loaded in batches, and the operation of the smart devices can be restored in batches. Therefore, the impact of program loading on the task execution efficiency can be reduced. It can also reduce the probability of excessive information load of the smart device control system due to program loading on multiple smart devices and reduce the probability of message blockage in the smart device control system.
[0096] Figure 3 The flowchart of the method for loading programs for multiple intelligent devices provided by the embodiment of the present disclosure is shown in FIG. The method can be applied to a software management center or an upper-level decision-making system. Figure 3 As shown, the method includes:
[0097] S11, receiving program loading instruction information, where the program loading instruction information represents different program loading scenarios.
[0098] The program loading indication information is used to indicate the target smart device on which the program is to be installed and the target program to be installed, which may specifically include: program restoration instructions, smart device fault information, switching task instructions, and new smart device access instructions. The program loading indication information may include information used to indicate the target program and the target smart device. In one example, the program loading indication information includes one or more of the following information: the network address of the target smart device, instructions, task identifier, time point to be restored, smart device identifier, etc. The program loading indication information required for different program loading scenarios may be different, and the type of program loading indication information required in the same scenario may be fixed. Therefore, the program loading scenario can be determined based on the program loading indication information.
[0099] The program loading instruction information may include the target smart device identification and / or the network address of the target smart device, based on which the target smart device can be easily determined. In addition, the program loading instruction information may also come from the target smart device. Therefore, the target smart device can be determined based on the program loading instruction information. In the embodiment of the present disclosure, different program loading scenarios can be divided according to the reason for loading a program to the smart device.
[0100] Program loading scenarios may include: program restoration scenarios, program reinstallation scenarios after smart device failure, task switching scenarios when the smart device performs a task change, and new smart device access scenarios, etc. For different program loading scenarios, the process of determining the target program is often different. For details, please refer to the possible implementation methods provided in the present disclosure, which will not be elaborated here.
[0101] S12, parsing the program loading instruction information to obtain identification information, and determining a target program to be installed and a target smart device based on the identification information.
[0102] The identification information can be used to determine the target program. The identification information can include one or more of the following: target smart device identification, restoration event point, network address of the target smart device, identification of the task to be executed, etc. The embodiment of the present disclosure does not specifically limit the identification information.
[0103] In different program loading scenarios, the target program required is often different, and the process of determining the target program is often different. Some steps in the process of determining the target program can be started after determining the specific program loading information and the specific program loading scenario. In different program loading scenarios, in order to obtain the target program, the required program loading information is also different.
[0104] For example, smart device E is loaded with an object recognition program. After the smart device fails, the smart device E needs to send an error code to the program management center or the upper decision-making system. The program management center reloads the object recognition program to the smart device E. Therefore, in the scenario where the smart device fails, the program loading information can be an error code; the target program can be the program loaded by the target smart device when the failure occurs.
[0105] For another example, the smart device F is loaded with an object recognition program. When it recognizes an object, it sends a task switching request to the program management center or the upper decision-making system. The program management center loads the program for processing the object onto the smart device F. Therefore, in the task switching scenario, the program loading information can be a task switching request. The target program is the program corresponding to the task to be executed.
[0106] S13, sending a target program installation instruction to the target smart device to instruct the target smart device to install the target program.
[0107] In an embodiment of the present disclosure, a multi-intelligent device control system includes a program management center and at least one intelligent device; the program management center receives program loading indication information, and the program loading indication information represents different program loading scenarios; the program management center parses the program loading indication information to obtain identification information, and determines the target program to be installed and the target intelligent device based on the identification information; the program management center sends a target program installation instruction to the target intelligent device to instruct the target intelligent device to install the target program; the target intelligent device, in response to receiving the target program installation instruction, installs the target program and runs the target program after the installation is completed. Thus, the program management center can determine the program loading scenario, determine the target program for the target intelligent device, automatically determine the target program, and automatically load the target program onto the intelligent device. There is no need for personnel to enter the site where the intelligent device is located, saving the time of arrival, the preparation time of program loading tools, and the time of manual program loading. Moreover, when manually loading programs for multiple intelligent devices, the intelligent devices may be loaded in sequence, so the method in the embodiment of the present disclosure also saves the time of waiting for the loading program, greatly improving the efficiency of program loading for multiple intelligent devices. Furthermore, by directly determining the target smart device through the program loading information and determining the target program through the program loading information and the program loading scenario, the probability of program loading errors can be reduced.
[0108] In a possible implementation, the program loading indication information includes a program restore instruction, the program loading scenario represented by the program restore instruction is a smart device program restore scenario, and the identification information includes a target smart device identification and a time point to be restored; the program loading indication information is parsed to obtain the identification information, and the target program to be installed and the target smart device are determined based on the identification information, including: parsing the program restore instruction to obtain the time point to be restored and the target smart device identification; determining the program information of the program installed on the target smart device at the time point to be restored from historical data stored in a database, and obtaining the target program to be installed.
[0109] In a possible implementation, the program loading indication information includes smart device fault information, the program loading scenario represented by the smart device fault information is a smart device program reinstallation scenario, and the identification information includes a target smart device identification; the program loading indication information is parsed to obtain the identification information, and the target program to be installed and the target smart device are determined based on the identification information, including: parsing the smart device fault information to obtain the target smart device identification; based on the target smart device identification, obtaining attribute information of the target smart device from the corresponding target smart device; based on the attribute information of the target smart device, determining the program information corresponding to the attribute information from historical data stored in a database to obtain the target program to be installed.
[0110] In one possible implementation, the program loading indication information includes a new smart device access instruction, the program loading scenario represented by the switching task instruction is a scenario of smart device access to the system, and the identification information includes a second task identifier and a target smart device identifier: the program loading indication information is parsed to obtain the identification information, and the target program to be installed and the target smart device are determined based on the identification information, including: parsing the new smart device access instruction to obtain the target smart device identifier and the second task identifier of the target smart device to be accessed, the second task identifier representing the task that needs to be performed by the smart device to be accessed; performing a global scan to obtain a new device for access scanning, and according to the target smart device identifier, obtaining the hardware information of the target smart device from the scanned new device; and determining the target program that matches the hardware information of the target smart device from the multiple programs corresponding to the second task identifier.
[0111] In one possible implementation, the sending of a target program installation instruction to the target smart device to instruct the target smart device to install the target program includes: obtaining a hierarchical identifier of each smart device, and determining, based on the hierarchical identifier, an order in which the smart device stops executing tasks; sending a stop task instruction to the target smart device in accordance with the order in which the tasks are stopped; in response to receiving the stop task instruction, stopping the program being executed on the target smart device; after the target smart device stops executing the program, sending a target program installation instruction to the target smart device; after the target program is installed, determining, based on the hierarchical identifier, an order in which the smart device resumes executing tasks, the order in which the tasks are resumed being the reverse of the order in which the tasks are stopped; and resuming running the program on the target smart device in accordance with the order in which the tasks are resumed.
[0112] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0113] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0114] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0115] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0116] Figure 4 The schematic diagram of the structure of the electronic device for loading programs on multiple intelligent devices provided by the embodiment of the present disclosure. For example, the electronic device 1900 can be provided as a server or a terminal device. Figure 4, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0117] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output interface 1958 (I / O interface). The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2003. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM or similar.
[0118] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0119] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0120] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0121] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0122] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0123] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0124] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0125] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0126] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0127] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A multi-intelligent device control system, characterized in that: It includes: a program management center and at least one intelligent device; The system also includes an upper-level decision-making system; The upper-layer decision system is used to send program loading instruction information to the program management center in response to an access request of a new smart device or a new program, or in response to a task switching request of a smart device, wherein the task switching request is issued by a target smart device; The program management center receives the program loading indication information, where the program loading indication information represents different program loading scenarios; The program management center parses the program loading instruction information to obtain identification information, and determines the target program to be installed and the target smart device based on the identification information, wherein the program loading instruction information includes information for indicating the target program and the target smart device. It is also used to determine the hardware information of the target intelligent device according to the identification information when parsing the program loading instruction information corresponding to the task switching request, and determine the target program matching the hardware information; The program management center sends a target program installation instruction to the target smart device to instruct the target smart device to install the target program; The target smart device that has completed the task switching, in response to receiving the target program installation instruction, installs the target program, and runs the target program after the installation is completed to execute the task corresponding to the target program; The program loading instruction information includes a program restoration instruction, the program loading scenario represented by the program restoration instruction is a smart device program restoration scenario, and the identification information includes a target smart device identification and a time point to be restored; The program management center parses the program restoration instruction to obtain the time point to be restored and the target smart device identifier; The program management center determines the program information of the program installed on the target smart device at the time point to be restored from the historical data stored in the database, and obtains the target program to be installed.
2. The system according to claim 1, characterized in that The system also includes an upper-level decision-making system; The upper-layer decision system is used to send the program loading indication information to the program management center in response to an access request of a new smart device or a new program, or in response to a task switching request of a smart device; The program management center is used to receive the program loading instruction information sent by the upper decision-making system, and send a target program installation instruction to the target smart device according to the program loading instruction information.
3. The system according to claim 2, characterized in that: The program management center is used to register a handle to the at least one intelligent device and the upper decision-making system, wherein the handle represents a preset sending condition for sending the program loading instruction information; The upper decision system is used to receive the handle and send the program loading instruction information to the program management center when the preset sending condition is met; The smart device is used to receive the handle and send the program loading indication information to the program management center when the preset sending condition is met.
4. The system according to claim 1, characterized in that The program loading indication information includes smart device fault information, the program loading scenario represented by the smart device fault information is a smart device program reinstallation scenario, and the identification information includes a target smart device identification; The program management center analyzes the intelligent device fault information to obtain the target intelligent device identifier; Based on the target smart device identifier, acquiring attribute information of the target smart device from the corresponding target smart device; The program management center determines the program information corresponding to the attribute information from the historical data stored in the database based on the attribute information of the target smart device, and obtains the target program to be installed.
5. The system according to claim 1, characterized in that The program loading instruction information includes a switching task instruction. The program loading scenario represented by the switching task instruction is a smart device task switching scenario. The identification information includes a first task identification and a target smart device identification. The program management center parses the switching task instruction to obtain the first task identifier and the target smart device identifier, wherein the first task identifier represents the task to be executed; The program management center obtains hardware information of the target smart device from the target smart device based on the target smart device identifier; The program management center determines a target program that matches the hardware information of the target smart device from the multiple programs corresponding to the first task identifier.
6. The system according to claim 1, characterized in that The program loading instruction information includes a new smart device access instruction, the program loading scenario represented by the switching task instruction is a scenario where the smart device accesses the system, and the identification information includes a second task identifier and a target smart device identifier: The program management center parses the new smart device access instruction to obtain a target smart device identifier and a second task identifier of the target smart device to be accessed, wherein the second task identifier represents a task that needs to be performed by the smart device to be accessed; The program management center performs a global scan to obtain new devices connected to the scan, and obtains hardware information of the target smart device from the scanned new devices according to the target smart device identifier; The program management center determines a target program that matches the hardware information of the target smart device from the multiple programs corresponding to the second task identifier.
7. The system according to claim 1, characterized in that: The program management center obtains the level identification of each smart device, and determines the order in which the smart devices stop executing tasks according to the level identification; The program management center sends a stop task instruction to the target smart device according to the order of stopping the execution of the task; The target smart device, in response to receiving the stop task instruction, stops the program being executed on the target smart device; The program management center sends a target program installation instruction to the target smart device after the target smart device stops executing the program; The target smart device, in response to receiving the target program installation instruction, installs the target program; After the target program is installed, the program management center determines the order in which the smart device resumes executing tasks according to the level identifier, and the order in which the tasks are resumed is the inverse of the order in which the tasks are stopped; The program management center resumes running the program on the target smart device according to the order of resuming execution tasks.
8. The system according to claim 1, characterized in that The system includes: a plurality of homogeneous smart devices and / or a plurality of co-located smart devices; The multiple homogeneous smart devices are multiple smart devices with the same hardware functions; The multiple co-located smart devices are multiple smart devices with the same software functions.
9. A method for loading programs on multiple intelligent devices, characterized in that: include: receiving program loading indication information, wherein the program loading indication information represents different program loading scenarios, wherein the program loading indication information is sent by an upper-layer decision system in response to an access request of a new smart device or a new program, or in response to a task switching request of a smart device, wherein the task switching request is sent by a target smart device; Parsing the program loading instruction information to obtain identification information, and determining a target program to be installed and a target smart device based on the identification information, wherein the program loading instruction information includes information for indicating the target program and the target smart device, and in the case of parsing the program loading instruction information corresponding to the task switching request, determining hardware information of the target smart device according to the identification information, and determining a target program matching the hardware information; Sending a target program installation instruction to the target smart device that has completed the task switching, so as to instruct the target smart device to install the target program; The program loading instruction information includes a program restoration instruction, the program loading scenario represented by the program restoration instruction is a smart device program restoration scenario, and the identification information includes a target smart device identification and a time point to be restored; The step of parsing the program loading instruction information to obtain identification information, and determining the target program to be installed and the target smart device based on the identification information includes: Parsing the program restoration instruction to obtain the time point to be restored and the target smart device identifier; The program information of the program installed on the target smart device at the time point to be restored is determined from the historical data stored in the database, and the target program to be installed is obtained.
10. The method according to claim 9, characterized in that The program loading indication information includes smart device fault information, the program loading scenario represented by the smart device fault information is a smart device program reinstallation scenario, and the identification information includes a target smart device identification; The step of parsing the program loading instruction information to obtain identification information, and determining the target program to be installed and the target smart device based on the identification information includes: Parsing the intelligent device fault information to obtain the target intelligent device identifier; based on the target intelligent device identifier, obtaining the attribute information of the target intelligent device from the corresponding target intelligent device; Based on the attribute information of the target smart device, program information corresponding to the attribute information is determined from historical data stored in a database to obtain a target program to be installed.
11. The method according to claim 9, characterized in that The program loading instruction information includes a switching task instruction. The program loading scenario represented by the switching task instruction is a smart device task switching scenario. The identification information includes a first task identification and a target smart device identification. The step of parsing the program loading instruction information to obtain identification information, and determining the target program to be installed and the target smart device based on the identification information includes: Parsing the switching task instruction to obtain the first task identifier and the target smart device identifier, wherein the first task identifier represents the task to be executed; Based on the target smart device identifier, obtaining hardware information of the target smart device from the target smart device; A target program matching the hardware information of the target smart device is determined from a plurality of programs corresponding to the first task identifier.
12. The method according to claim 9, characterized in that The program loading instruction information includes a new smart device access instruction, the program loading scenario represented by the switching task instruction is a scenario where the smart device accesses the system, and the identification information includes a second task identifier and a target smart device identifier: The step of parsing the program loading instruction information to obtain identification information, and determining the target program to be installed and the target smart device based on the identification information includes: Parsing the new smart device access instruction to obtain a target smart device identifier and a second task identifier of the target smart device to be accessed, wherein the second task identifier represents a task that needs to be performed by the smart device to be accessed; Perform a global scan to obtain new devices connected to the scan, and obtain hardware information of the target smart device from the scanned new devices according to the target smart device identifier; A target program matching the hardware information of the target smart device is determined from a plurality of programs corresponding to the second task identifier.
13. The method according to claim 9, characterized in that The step of sending a target program installation instruction to the target smart device that has completed the task switching, so as to instruct the target smart device to install the target program, includes: Obtaining a level identifier of each smart device, and determining the order in which the smart devices stop executing tasks according to the level identifier; Sending a stop task instruction to the target smart device according to the order of stopping the execution of the task; In response to receiving the stop task instruction, stopping the program being executed on the target smart device; After the target smart device stops executing the program, sending a target program installation instruction to the target smart device; After the target program is installed, determining the order in which the smart device resumes executing tasks according to the level identifier, wherein the order in which the tasks are resumed is the inverse of the order in which the tasks are stopped; The program on the target smart device is resumed in the order of resuming the execution of the tasks.
14. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method described in any one of claims 9 to 13 when executing the instructions stored in the memory.
15. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 9 to 13 is implemented.
Citation Information
Patent Citations
Method and apparatus for starting terminal device system program
CN106874031A
Fault-handling method and device
CN109542660A
Control equipment program updating method and device, storage medium and control equipment
CN110543318A
Electronic equipment management method and system, server and computer readable storage medium
CN114584624A