Electronic device management method, system, server and computer-readable storage medium
By receiving and processing the client's management request on the server side, querying the product registry to obtain the device list, and performing remote management operations based on the device identification and management instructions fed back by the client, the existing technology solves the problem of short management distance, reliance on wired transmission, and It solves the problem of cumbersome management methods and realizes efficient and convenient remote management of intelligent electronic devices.
Patent Information
- Application Number
- CN202011340350.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-25
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2040-11-25
AI Technical Summary
The existing intelligent electronic device management methods have short management distances, rely on wired transmissions, cumbersome management methods, and rely on equipment, interfaces, tools or transmission methods, resulting in inconvenience in management and low applicability.
Provides a remote management method for electronic equipment. It receives the client's management request through the server, queries the product registry to obtain the device list, and performs remote management operations based on the device identification and management instructions fed back by the client to achieve unlimited distance to the target device. Remote management.
It realizes remote management without distance restrictions, reduces management costs, improves the convenience and applicability of management, and reduces dependence on equipment, communication methods or software environments.
Smart Images

Figure CN114584624B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent remote monitoring, and in particular to an electronic equipment management method, system, server and computer-readable storage medium. Background Art
[0002] In the field of smart electronic applications, users connect their terminals with smart electronic devices through Internet connection technology to achieve information sharing and device management with smart electronic devices.
[0003] Existing intelligent electronic device management methods mainly include two categories: wired network-based and wireless network-based. Among them, the intelligent electronic device management method based on wired network mainly manages electronic devices through wired connection methods such as USB, data cable, or network cable. For example, when the AppleTV (AppleTV, Apple Televisionp, Apple HDTV set-top box) box device is installed and managed, the wired network-based method mainly downloads the application software data package from the device (Mac device) equipped with the Mac (Mac, Macintosh, Macintosh) system, and transmits the application software data package to the AppleTV box device through USB or data cable to complete the application installation. The intelligent electronic device management method based on wireless network mainly relies on gateway devices or management tools, and uses wireless networks to transmit management instructions to gateway devices or management tools to achieve electronic device management. For example, in the AppleTV box device management, the AppleTV box devices in the same network segment are mainly managed by using management tools (for example, Apple Configurator 2, Apple Product Configurator) for devices equipped with Mac systems with system versions above macOS10.13 (macOS, Macintosh Operation System, Macintosh operating system).
[0004] When the existing technology manages electronic devices, the management method based on wired networking transmits management instructions through wires, requires on-site operation, and has a short management distance; the management method based on wireless networking manages electronic devices through management gateway devices or management tools, and the management method is cumbersome. Whether it is a smart electronic device management method based on wired networking or a smart electronic device management method based on wireless networking, it has more or less dependence on equipment, interfaces, tools or transmission methods, and cannot provide convenient smart electronic device management, which reduces the applicability of the smart electronic device management method. Summary of the invention
[0005] The present application provides an electronic device management method, system, server and computer-readable storage medium to solve the technical problems of existing electronic device management technologies such as limited management distance, high dependence on device interfaces and transmission methods, and low applicability of management methods.
[0006] In one aspect, the present application provides a method for remotely managing an electronic device, wherein the method for remotely managing an electronic device is applied to a server and comprises the following steps:
[0007] Receive a management device request sent by a client, and send a list of registered devices to the client, so that a user corresponding to the client selects a device identifier based on the device list and determines a management instruction;
[0008] Receiving the device identification and the management instruction fed back by the client:
[0009] A management operation is performed on the target device corresponding to the device identifier according to the management instruction.
[0010] In some embodiments of the present application, before receiving a management device request sent by a client and sending a list of registered devices to the client, the method includes:
[0011] Query the product registry, determine the registered device according to the product registry, and obtain the device identification of the device;
[0012] Determine the management authority and status of the equipment in storage;
[0013] The device identification, the management authority and the management status of the registered device are associated to generate a list of registered devices.
[0014] In some embodiments of the present application, after receiving the device identification and the management instruction fed back by the client, the method includes:
[0015] Query the list of registered devices to obtain the management authority and management status associated with the device identification;
[0016] Comparing the management instruction with the management authority and management status associated with the device identifier to determine whether the management instruction is executable;
[0017] If the management instruction is not executable, output a prompt message and send it to the client;
[0018] If the management instruction is executable, the step of performing a management operation on the target device corresponding to the device identifier according to the management instruction is performed.
[0019] In some embodiments of the present application, comparing the management instruction with the management authority and management status associated with the device identifier to determine whether the management instruction is executable includes:
[0020] Comparing the management instruction with the management authority and management status associated with the device identifier;
[0021] If the management instruction does not conform to the management state of the target device or exceeds the management authority, it is determined that the management instruction is not executable.
[0022] If the management instruction complies with the management state of the target device and does not exceed the management authority, it is determined that the management instruction can be executed.
[0023] In some implementation schemes of the present application, performing a management operation on the target device corresponding to the device identifier according to the management instruction includes:
[0024] According to the device identification, query the network address of the target device;
[0025] The target device is searched and awakened based on the network address, and the management instruction is sent to the target device, so that the target device performs a management operation according to the management instruction.
[0026] In some embodiments of the present application, after performing a management operation on the target device corresponding to the device identifier according to the management instruction, the method includes:
[0027] Monitoring and obtaining the execution status of the management instruction executed by the target device;
[0028] Sending the execution status to the client so that a user corresponding to the client can understand the management result of the target device;
[0029] If the execution status is completed, the final execution status of the target device is used as the management status and updated to the device list.
[0030] In some embodiments of the present application, before receiving a management device request sent by a client and sending a list of registered devices to the client, the method includes:
[0031] Establishing a communication network with the client via an online network to form a first communication channel;
[0032] The receiving a management device request sent by a client and sending a list of registered devices to the client includes:
[0033] remotely connect to the client based on the first communication channel, receive a device management request sent by the client through the first communication channel, and send a list of stored devices to the client through the first communication channel;
[0034] The receiving the device identification and the management instruction fed back by the client includes:
[0035] receiving the device identification and the management instruction fed back by the client through the first communication channel;
[0036] Before performing a management operation on the target device corresponding to the device identifier according to the management instruction, the method includes:
[0037] Establishing a communication network with the target device through an online network to form a second communication channel;
[0038] The performing a management operation on the target device corresponding to the device identifier according to the management instruction includes:
[0039] remotely connecting to the target device based on the second communication channel, and sending the management instruction to the target device corresponding to the device identifier through the second communication channel to perform a management operation on the target device;
[0040] After performing the management operation on the target device corresponding to the device identifier according to the management instruction, the method includes:
[0041] monitoring and acquiring the execution status of the target device through the second communication channel;
[0042] The execution status is sent to the client through the first communication channel.
[0043] On the other hand, the present application provides a remote management system for electronic devices, the system comprising a server, a client and a target device connected in communication, including:
[0044] The server is used to receive the device management request sent by the client and send the list of registered devices to the client;
[0045] A client, configured to receive a device list, display the device list to a user corresponding to the client, obtain a device identifier selected by the user based on the device list, obtain a management instruction set by the user based on the device identifier, and send the device identifier and the management instruction to a server;
[0046] A server, configured to receive the device identification and the management instruction fed back by the client;
[0047] The server is configured to perform a management operation on the target device corresponding to the device identifier according to the management instruction;
[0048] The target device is used to receive the management instruction sent by the server, and respond to and execute the management instruction.
[0049] On the other hand, the present application provides a server, the server comprising:
[0050] One or more processors; a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement remote management of an electronic device.
[0051] On the other hand, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the remote management method of the electronic device.
[0052] In the technical solution provided by the present application, the server receives a management request sent by the client, and sends a list of registered devices to the client according to the management request, and then performs remote management on the target device according to the device identification and management instructions fed back by the client. In the present invention, the server remotely manages the target device, which is not limited by distance and communication mode, does not require on-site management, and reduces costs. In addition, the electronic device remote management method determines the device identification and management instructions according to the list of registered devices sent by the server, and the target device is not fixed. In addition, the electronic device remote management method directly performs remote management by receiving and sending management instructions through the server, which does not rely on equipment, communication methods or software environments. The management method is more convenient and improves the applicability of electronic device management. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0054] Figure 1 is a schematic diagram of remote management of an electronic device provided by an embodiment of the present application;
[0055] Figure 2 It is a flowchart of an embodiment of a remote management method of an electronic device provided in an embodiment of the present application;
[0056] Figure 3This is a timing diagram of an embodiment of the remote management method of an electronic device provided in the embodiment of the present application applied to remote application installation management of an AppleTV box device;
[0057] Figure 4 It is a schematic diagram of an embodiment of generating a list of registered devices in a remote management method of an electronic device provided in an embodiment of the present application;
[0058] Figure 5 It is a flowchart of an embodiment of management instruction identification in a remote management method of an electronic device provided in an embodiment of the present application;
[0059] Figure 6 It is a flowchart of another embodiment of management instruction identification in the remote management method of an electronic device provided in an embodiment of the present application;
[0060] Figure 7 It is a flowchart of an embodiment of managing a target device in a remote management method of an electronic device provided in an embodiment of the present application;
[0061] Figure 8 It is a flowchart of an embodiment of monitoring the execution status of a target device in a remote management method of an electronic device provided in an embodiment of the present application;
[0062] Fig. 9 It is a flowchart of an embodiment of a communication method between a server, a client and a target device in a remote management method of an electronic device provided in an embodiment of the present application;
[0063] Fig.10 It is a schematic diagram of an embodiment of the network topology structure between the system server, the client and the AppleTV box device described in the embodiment of the present application;
[0064] Fig.11 A schematic diagram of the structure of an embodiment of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0066] The embodiments of the present application provide an electronic device management method, system, server, and computer-readable storage medium, which are described in detail below.
[0067] The electronic device management method in the embodiment of the present application is applied to an electronic device management system, which includes a server and a client. The server is provided with one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement a remote management method for the electronic device; the server can be a physical entity, for example, a high-performance computer or a service cluster composed of multiple high-performance computers, and the server can also be virtual, such as a cloud server that provides high-performance computing; the client can be a physical terminal, such as application software, an application, or a web front end.
[0068] like Figure 1 As shown, Figure 1 The schematic diagram of the electronic device remote management scenario in the embodiment of the present application includes a client 100, a server 200 and a target management device 300. The server 200 runs a computer-readable storage medium corresponding to the electronic device remote management to perform remote management steps for the electronic device.
[0069] Understandably, Figure 1 The server, client, target device, module included in the server, module included in the client or module included in the target device in the scenario of remote management of electronic devices shown in the figure do not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices included in the scenario of remote management of electronic devices, or the number of devices and types of devices included in each device do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.
[0070] In the embodiment of the present invention, the server 200 is mainly used to receive management instructions and remotely manage the target device 300 according to the management instructions; receive the management device request sent by the client 100 through the online network, generate a list of registered devices based on the management device request, and send the registered device list to the client 100 through the online network; receive the device identification and determined management instructions selected by the client 100 based on the registered device list, parse and analyze the executability of the management instructions, and send the executable management instructions to the target device 300 through the online network to realize remote management of the target device 300.
[0071] In the embodiment of the present invention, the server 200 may be an independent server, or a cloud server, a server cluster consisting of multiple servers, or a cloud server cluster consisting of multiple cloud servers. For example, the server 200 described in the embodiment of the present invention includes but is not limited to a single high-performance computer, a server, a cloud server, a cloud computing platform, or a cluster consisting of multiple high-performance computers.
[0072] In the embodiment of the present invention, the client 100 may be a physical terminal or a virtual terminal. For example, the client 100 described in the embodiment of the present invention includes but is not limited to a mobile phone, a tablet computer, a computer, a network front end, and application software.
[0073] In the embodiment of the present invention, the target device 300 may be a single electronic device or multiple electronic devices. For example, the target device 300 described in the embodiment of the present invention includes but is not limited to kitchen appliances, TV boxes, mobile phones, tablet computers or vehicle-mounted electronic devices.
[0074] In addition, the server 200 of the present application can establish a communication channel with the client 100 through an online network and perform remote information interaction through the communication channel; the server 200 has management authority to manage the target device, and can establish a communication channel with the target device 300 through an online network, and access and manage the target device 300 through the communication channel.
[0075] Based on the above scenario of remote management of electronic devices, an embodiment of a remote management method of electronic devices is proposed.
[0076] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a method for remote management of an electronic device in an embodiment of the present application. The method for remote management of an electronic device includes:
[0077] 201 , receiving a device management request sent by a client, and sending a list of registered devices to the client, so that a user corresponding to the client selects a device identifier based on the device list and determines a management instruction.
[0078] The electronic device remote management method in this embodiment is applied in the electronic device remote management system. The types of devices in the electronic device remote management system are not limited. This embodiment is explained by taking the server side as an example. The server and the client establish a communication channel through an online network, wherein the online network can be a wireless network. The specific type of the wireless network is not specifically limited. For example, the wireless network can be a wireless wide area network or a wireless local area network connected to the public network. The communication channel is used to remotely interact with the client. The server receives the management device request sent by the client (for example, installing an application, deleting an application, erasing a device, restarting the system or updating the system, etc.), and then generates a list of registered devices based on the management device request sent by the client. The server sends the list of registered devices to the client through the communication channel.
[0079] It should be noted that before the technical solution in this embodiment is executed, the manageable devices need to be registered, and a product registration table is generated and stored in the server. For example, the devices that have passed the quality inspection are determined according to the device manufacturer, and then the name, type, model, system version number of the device, management authority, user and account information of the device are filled in for registration, so as to facilitate the convenient management of the registered devices in the later stage.
[0080] It is understandable that the communication channel is combined with remote interaction technology to realize remote interaction with client information. In this embodiment, the remote interaction technology can be a remote procedure call (GRPC, Google remote procedure call). Specifically, GRPC interaction technology is used to realize remote information interaction with the client, bypassing the transmission mode of the low-level communication (TCP, Transmission Control Protocol, Transmission Control Protocol), based on the standard HTTP / 2 (HTTP, Hypertext Transfer Protocol, Hypertext Transfer Protocol) design, simplifying the remote service call steps, and no need to care about the underlying communication details and call process, reducing network data transmission energy consumption.
[0081] In this embodiment, the server sends the list of registered devices to the client, so that the user corresponding to the client does not need to actively input the device information of the target device to be managed. On the one hand, it can facilitate user operation, and on the other hand, it can also improve the convenience of device management.
[0082] 202: Receive the device identification and the management instruction fed back by the client.
[0083] The server in this embodiment can receive the device identification (wherein the device identification refers to the identification information that uniquely identifies the device, such as the device number, name, model, serial number or device production number, etc.) and management instructions (management instructions refer to the management commands for the device generated by the client according to the management operation selected by the user and the device identification, including operation commands and device information, such as installing application software on the device numbered MP7P2ZP) fed back by the client through the GRPC interaction technology, and then determine the target device and executable management instructions by analyzing the device identification and management instructions, specifically including:
[0084] Step b1, extracting the device information of the target device contained in the device identification, querying the list of registered devices stored in the database based on the device information of the target device, thereby determining the device list of the target device;
[0085] Step b2, reading the management authority and management status associated with the device identification of the target device recorded in the device list of the target device;
[0086] Step b3, parsing the management instruction, and performing semantic analysis on the parsed management instruction to extract the valid execution command contained in the management instruction;
[0087] Step b4, comparing the extracted valid execution command with the management authority and management status associated with the device identification to obtain executable analysis of the management instruction;
[0088] Step b5, executing a management operation on the target device corresponding to the device identifier according to the executable management instruction.
[0089] That is, the server will parse the received device identification and management instructions separately, extract the management status and management authority of the target device associated with the device identification, compare the management instructions with the management status and management authority, obtain executable analysis of the management instructions, and execute management operations on the target device corresponding to the device identification according to the executable management instructions; for example, the management instruction received by the server is to install an application, and the server obtains the management authority and management status of the target device by receiving the device identification; obtains the authority to install the application on the target device by querying the management authority of the target device; then queries the management status to determine whether the system version and storage status of the target device meet the requirements for application installation. If they meet the requirements, the target device is managed to install the application; if they do not meet the management status, a prompt message is sent to the client.
[0090] In this embodiment, the management instructions are compared with the management authority and the management status to determine the executability of the management instructions. In this way, when implementing remote management of the target device, the server only executes executable management instructions on the target device, reducing the execution of invalid, erroneous or management instructions without management authority, and reducing energy consumption for network transmission.
[0091] Preferably, in this embodiment, the management status includes but is not limited to the storage, battery, network connection, IP address (IP, Internet Protocol Address), MAC address (MAC, Media Access Control), network type, application and system status of the device; management permissions include but are not limited to installing applications, uninstalling applications, updating applications, updating the system and reading storage status on the device.
[0092] 203: Perform a management operation on the target device corresponding to the device identifier according to the management instruction.
[0093] The server of the embodiment of the present application obtains the network address of the target device according to the device identification query, establishes a communication channel with the target device based on the network address, and sends a management instruction to the target device through the communication channel to implement remote management of the target device, specifically including:
[0094] Step c1, querying the device registry of the target device according to the device identification, and extracting the network address of the target device;
[0095] Step c2, based on the network address, establish a communication channel with the target device through the online network, and establish a remote management technology based on the communication channel to wake up the target device;
[0096] Step c3, sending the executable management instruction to the target device via the communication channel using the remote management technology, so that the target device completes the management operation according to the executable management instruction.
[0097] That is, after completing the executable analysis of the management instruction, the server sends the executable management instruction to the target device through the online network, so that the target device completes the management operation according to the executable management instruction, thereby realizing remote management of the target device; for example, after the server analyzes and finds that the received management instruction for installing the application is executable, it downloads the application data packet corresponding to the application installation instruction from the database; then, according to the device identification, the device list of the target device stored in the server database is read, and the network address of the target device in the device list is extracted; then, based on the network address, the management instruction for installing the application and the application data packet are sent to the target device through the online network by remote management technology, so that the target device responds to the management instruction for installing the application and performs the management operation for installing the application.
[0098] In the embodiment of the present application, the server establishes communication channels with the client and the target device respectively through the online network, and then uses the remote interaction technology and remote management technology through the communication channel to realize remote management of the target device. There is no need to connect the server and the target device to the network of the same network segment, and there is no limit on distance and communication mode. There is no need to implement management on site, which reduces costs; and the device identification and management instructions are determined according to the list of registered devices sent by the server, and the target device is not fixed; in the embodiment of the present application, remote management is performed directly by receiving and sending management instructions through the server, which does not rely on equipment, communication mode or software environment, and the management method is more convenient, which improves the applicability of electronic equipment management.
[0099] For ease of understanding, a specific application scenario is used for illustration in the embodiment of the present application. In this specific application scenario, the controlled target device is an AppleTV box device. The user sends management instructions to the server through the client, so that the server remotely manages the AppleTV box device. The server manages the remote AppleTV box device through the online network (including silent installation and deletion of applications, erasing devices, restarting the system, and updating the system).
[0100] like Figure 3 As shown, Figure 3 This is a timing diagram of an embodiment of the present application applied in remote application installation management of an AppleTV box device, specifically, including the following steps:
[0101] 1. The server receives a management request from the client requesting the user to install the application on the AppleTV box device;
[0102] 2. The server receives the management request sent by the client and feeds back the list of registered AppleTV box devices to the client;
[0103] 3. The client displays the received device list to the corresponding user;
[0104] 4. The corresponding user selects the target AppleTV box device and selects the application to be installed;
[0105] 5. The client generates management instructions based on the target AppleTV box device and the application to be installed selected by the user, and sends the management instructions to the server through the online network;
[0106] 6. The server parses the management instruction according to the received management instruction;
[0107] 7. The server searches for and wakes up the AppleTV box device that needs to be managed according to the parsed management instructions;
[0108] 8. The server establishes a communication channel with the AppleTV box device through the online network;
[0109] 9. The server sends management instructions to the target AppleTV box device through the communication channel;
[0110] 10. The target AppleTV box receives the management command, parses the command, and executes the parsed command;
[0111] 11. The server monitors and receives the real-time execution status sent by the target AppleTV box device, and sends the real-time execution status to the client;
[0112] 12. The client will receive the real-time execution status and display it to the user.
[0113] In the process of remote management of AppleTV box devices, the server remotely manages the AppleTV box device through the online network according to the management instructions of the client, so that when installing or updating applications for the AppleTV box, only the client needs to be used to install or update applications on the AppleTV box remotely connected to the public network, without the need for on-site operation, saving time and reducing management costs.
[0114] It should be noted that in this embodiment, the server will feed back the execution status of the target device to the client in real time. For example, the server waits for the status of AppleTV after executing the instruction, and feeds back the status to the client. For example, AppleTV executes the "Install App" instruction, and the server will wait to receive its installation status (installing, installation failed, etc.). The matching of different instructions and instruction feedback is determined by the instruction's uuid (English full name: Universally Unique Identifier, Chinese full name: Universally Unique Identifier, a standard for software construction, and also a part of the Open Software Foundation in the field of distributed computing environments. Each set of instructions and instruction feedback information carries a same identification uuid), so that the user corresponding to the client can understand the installation status of the target device in real time.
[0115] like Figure 4 As shown, Figure 4 A schematic diagram of an embodiment of generating a list of registered devices in a remote management method of an electronic device provided in an embodiment of the present application.
[0116] In some embodiments of the present application, the steps for generating a list of registered devices are specifically described, including:
[0117] 301, query the product registration table, determine the registered device according to the product registration table, and obtain the device identification of the device.
[0118] After receiving the management device request from the client, the server queries the product registration table stored in the database, determines the registered devices based on the product registration table, and obtains the device identification of the registered devices by extracting the registration table information of the registered devices.
[0119] 302, determine the management authority and management status of the stored equipment.
[0120] The server determines the management authority and management status of the registered device from the device information carried by the registered device identifier.
[0121] 303: Associating the device identification, the management authority and the management status of the registered device to generate a list of registered devices.
[0122] The server associates the device identification, the management authority and the management status of the registered devices to generate a list of registered devices.
[0123] This embodiment specifically describes the steps for generating a list of registered devices. By querying and generating a list of registered devices, the registered device information can be intuitively displayed, which is convenient for later inquiries about the management status and management permissions of the devices. When a new device is registered to the server, the number of registered devices in the product registration table increases. The server can update the device list by querying the product registration table, thereby increasing the flexibility of the device list.
[0124] Reference Figure 5 , Figure 5 The present invention is a flowchart of an embodiment of the management instruction recognition in the remote management method of the electronic device provided in the embodiment of the present application.
[0125] In some embodiments of the present application, a management instruction identification step in a remote management method of an electronic device is specifically described, including:
[0126] 401, query the list of registered devices to obtain the management authority and management status associated with the device identification;
[0127] After receiving the device identification and management instructions fed back by the client, the server queries the registered device list according to the device name and device model of the target device contained in the device identification, and determines the device list of the target device; then, based on the device list of the target device, obtains the management authority and management status associated with the target device identification.
[0128] 402, comparing the management instruction with the management authority and management status associated with the device identifier to determine whether the management instruction is executable;
[0129] Parse the management instruction and perform semantic analysis on the management instruction using natural language processing technology to extract valid execution commands contained in the management instruction; then compare the valid execution commands in the management instruction with the management authority and management status, and determine whether the management instruction is executable by judging whether the valid execution commands in the management instruction meet the management authority and management status requirements at the same time.
[0130] 403: If the management instruction is not executable, output a prompt message and send it to the client.
[0131] If the management instruction cannot be executed, the server will output a prompt message indicating that the instruction is incorrect to the client, and then wait for feedback from the client; if feedback from the client is received based on the prompt message, the server will extract the corrected management instruction in the feedback information, and re-execute step 402 to determine whether the corrected management instruction can be executed; if no feedback from the client is received or the feedback from the client does not contain the corrected management instruction, the server determines that the management operation is invalid and stops the remote management operation.
[0132] 404: If the management instruction is executable, execute the step of performing a management operation on the target device corresponding to the device identifier according to the management instruction.
[0133] When the server of this embodiment identifies a management instruction, in order to determine whether the management instruction is executable, the management instruction is compared with the management authority and management status of the target device. Such identification of the management instruction allows the server to only execute executable management instructions on the target device, thereby reducing the execution of invalid, erroneous or management instructions without management authority, and reducing energy consumption for network transmission.
[0134] refer to Figure 6 , Figure 6 It is a flowchart of another embodiment of management instruction identification in the remote management method of an electronic device provided in an embodiment of the present application.
[0135] In some embodiments of the present application, the management instruction is compared with the management authority and management status associated with the device identification to determine whether the management instruction can be executed, including:
[0136] 501 : Compare the management instruction with the management authority and management status associated with the device identifier.
[0137] 502: If the management instruction does not conform to the management state of the target device or exceeds the management authority, determine that the management instruction is not executable.
[0138] The server determines that the management instruction is not executable, that is, the server compares the effective execution command in the management instruction with the management authority and management status of the target device respectively. If the server determines that the management operation contained in the effective execution command exceeds the management authority of the target device and the effective execution command conforms to the management status, the server sends a prompt message that the management instruction exceeds the management authority to the client through the online network, and sends a request to the client whether to change the management authority operation of the target device, and waits for the client's feedback; if the management instruction to change the management authority operation of the target device is received from the client, the management authority in the device list of the target device is changed, the device identification of the target device is updated, and the management authority change is sent to the target device; then the server will execute step 404. If the server determines that the management operation contained in the effective execution command exceeds and does not conform to the management status, the server sends a prompt message that the management instruction does not conform to the management status to the client, and waits for the client's feedback.
[0139] 503: If the management instruction complies with the management state of the target device and does not exceed the management authority, it is determined that the management instruction can be executed.
[0140] In this embodiment, the management instruction is compared with the management authority and management status associated with the device identification to determine whether the management instruction is executable, which can effectively identify the execution of invalid or erroneous instructions; and for management instructions that exceed the management authority, a modifiable operation is provided, thereby improving the intelligence of server instruction recognition.
[0141] refer to Figure 7 , Figure 7 It is a flowchart of an embodiment of managing a target device in a remote management method of an electronic device provided in an embodiment of the present application.
[0142] In some embodiments of the present application, the steps of performing a management operation on the target device corresponding to the device identifier according to the management instruction are specifically described, including:
[0143] 601, querying the network address of the target device according to the device identification;
[0144] According to the device identification, the device registry of the target device is queried, the management status of the target device is queried from the device registry, and then the network address of the target device is extracted from the management status.
[0145] 602 : Find and wake up the target device based on the network address, and send the management instruction to the target device, so that the target device performs a management operation according to the management instruction.
[0146] Based on the network address, a communication channel is established with the target device through the online network, and remote management technology is established based on the communication channel to wake up the target device; then executable management instructions are automatically sent to the target device through the communication channel using remote management technology, so that the target device completes the management operation according to the executable management instructions.
[0147] In an embodiment of the present application, the target device is determined by querying the device list through the device identification, so as to establish a remote communication channel with the target device. This allows the target device managed by the server to complete the network connection before obtaining the management instruction, that is, the target device is not fixed, which increases the versatility of the remote management method of electronic devices.
[0148] refer to Figure 8 , Figure 8 It is a flowchart of an embodiment of monitoring the execution status of a target device in a remote management method of an electronic device provided in an embodiment of the present application.
[0149] In some embodiments of the present application, the steps after performing the management operation on the target device corresponding to the device identifier according to the management instruction are specifically described, including:
[0150] 701, monitoring and obtaining the execution status of the management instruction executed by the target device;
[0151] The server monitors the execution status of the target device through remote management technology and receives the execution status through the communication channel.
[0152] 702 : Send the execution status to the client, so that the corresponding user of the client can understand the management result of the target device.
[0153] The server uses remote interaction technology based on the communication channel to send the execution status to the client, and waits for the client's feedback on the execution status to determine the next step;
[0154] If the server receives feedback from the client, it determines whether to interrupt the current execution management operation according to the feedback information;
[0155] If the feedback information includes pausing the management operation or forcibly stopping the management operation, the server sends an instruction to interrupt the current management operation to the target device;
[0156] If the feedback information does not include pausing the execution management operation or forcibly stopping the execution management operation, the server continues to monitor the execution status and sends the execution status to the client;
[0157] If the server does not receive feedback from the client, it continues to monitor the execution status and sends the execution status to the client.
[0158] 703. If the execution status is completed, the final execution status of the target device is used as the management status and updated to the device list.
[0159] If the server monitors that the target device has completed executing the management instruction, the final execution status of the target device is written into the device identification of the target device as the management status, thereby updating the device list, and rewriting the updated device list into the database in the server.
[0160] The server in this embodiment monitors the management status of the target device through remote management technology, and after the target device completes the execution of the management instruction, updates the device identification corresponding to the target device, updates the device list of the target device, and thus updates the server's database. In this way, a real-time updated list of registered devices can be obtained, thereby improving the flexibility of the device list stored in the server database and providing efficient device management.
[0161] like Fig. 9 As shown, Fig. 9 It is a flow chart of an embodiment of the communication mode between the server, the client and the target device in the remote management method of the electronic device provided in the embodiment of the present application.
[0162] In some embodiments of the present application, the communication method between the server and the client and the target device is specifically described, including:
[0163] 801. Establish a communication network with the client through an online network to form a first communication channel.
[0164] The receiving device management request sent by the client and before sending the list of registered devices to the client, a remote communication channel is established with the client through an online network based on a communication protocol to form a first communication channel.
[0165] 802 , remotely connect to the client based on the first communication channel, receive a device management request sent by the client through the first communication channel, and send a list of stored devices to the client through the first communication channel.
[0166] In the receiving device management request sent by the client, a list of registered devices is sent to the client, and a remote connection is established with the client through a remote interaction technology based on a first communication channel and a communication protocol to realize remote interaction of information;
[0167] Receiving a management device request sent by a client through a first communication channel using a remote interaction technology;
[0168] After the management device request is interpreted and the list of devices in storage is generated, the list of devices in storage is sent to the client through the first communication channel using remote interaction technology.
[0169] 803: Receive the device identification and the management instruction fed back by the client through the first communication channel.
[0170] When receiving the device identification and the management instruction fed back by the client, the device identification and the management instruction fed back by the client are received through the first communication channel by using remote interaction technology.
[0171] 804, establishing a communication network with the target device through an online network to form a second communication channel.
[0172] Before executing the management operation on the target device corresponding to the device identifier according to the management instruction, the server establishes a communication channel with the target device through an online network based on a communication protocol and using remote management technology to form a second communication channel.
[0173] 805 , remotely connect to the target device based on the second communication channel, and send the management instruction to the target device corresponding to the device identifier through the second communication channel to perform a management operation on the target device.
[0174] In performing a management operation on the target device corresponding to the device identifier according to the management instruction, based on the second communication channel, the target device is awakened by using the device identifier information of the target device through remote management technology, and the management instruction is sent to the target device through the second communication channel, so that the target device performs the management operation according to the management instruction.
[0175] 806 : Monitor and obtain the execution status of the target device through the second communication channel, and send the execution status to the client through the first communication channel.
[0176] After executing the management operation on the target device corresponding to the device identifier according to the management instruction, the execution status of the management instruction executed by the target device is monitored and obtained through the remote management technology based on the second communication channel, and then the execution status is sent to the client through the first communication channel using the remote interaction technology.
[0177] In the embodiment of the present application, the remote interaction technology may be GRPC interaction technology, and the establishment steps include:
[0178] Step d1, create a Netty HTTP / 2 (Netty HTTP, Netty Hypertext Transfer Protocol, a hypertext transfer protocol of a server-side programming framework based on a non-blocking synchronous communication mode) server, apply to create a Netty Server (a server-side based on a non-blocking synchronous communication mode) instance by listening to the port, and implement access to request messages based on the HTTP / 2 protocol;
[0179] Step d2, registering the server interface implementation class to be called into the internal registration table, and querying the service interface implementation class according to the service definition information in the RPC (remote procedure call) request message;
[0180] Step d3, create a GRPC Server (GRPC Server, Google remote procedure call, Google remote procedure call server), and then start the HTTP / 2 server by calling the startup method of Netty Server to receive the service call request of the GRPC client.
[0181] That is, the server establishes GRPC interaction with the client through the first communication channel based on the HTTP / 2 communication protocol, and uses GRPC interaction technology to realize remote information interaction with the client.
[0182] In this embodiment, GRPC interaction technology is used to realize remote information interaction with the client, bypassing the low-level communication transmission method (TCP), based on the standard HTTP / 2 design, simplifying the remote service calling steps, and no longer needing to care about the underlying communication details and calling process, thereby reducing network data transmission energy consumption.
[0183] In this embodiment, the remote management technology can be a network callback (Webhooks, World Wide Web hooks, user-defined network callback based on hypertext transfer protocol interaction) technology. After the server completes the management instruction analysis and obtains the network address of the target device, the Webhooks technology is triggered to actively send the management instruction and the corresponding data packet required to execute the management instruction to the target device through the second communication channel. There is no need for the target device to actively request management operations, which reduces the polling communication requests between the target device and the consumption of network resources.
[0184] In order to better implement the remote management method of the electronic device in the embodiment of the present application, a remote management system of the electronic device is also provided in the embodiment of the present application, the system includes a server, a client and a target device connected in communication, and the system includes:
[0185] The server is used to receive the device management request sent by the client and send the list of registered devices to the client;
[0186] The client is used to receive a device list, obtain a device identifier selected by a user based on the device list, obtain a management instruction set by the user based on the device identifier, and send the device identifier and the management instruction to a server;
[0187] A server, configured to receive the device identification and the management instruction fed back by the client;
[0188] The server is configured to perform a management operation on the target device corresponding to the device identifier according to the management instruction;
[0189] The target device is used to receive the management instruction sent by the server, and respond to and execute the management instruction.
[0190] In some embodiments of the present application, the server includes:
[0191] A device module, configured to receive a registration request from the target device and store the registered device;
[0192] An execution instruction module, used for determining whether the management instruction is executable and converting the executable management instruction;
[0193] A distribution module, used for searching and waking up the target device, and sending the executable management instruction to the target device;
[0194] A bridging module, used to establish a communication network with the client and the target device;
[0195] The monitoring module is used to monitor the execution status of the executable management instruction of the target device, and send the execution status to the client through the bridge module, so that the corresponding user of the client can understand the management result of the target device.
[0196] In some embodiments of the present application, the client includes:
[0197] A management instruction module, used to generate the management instruction and send the management instruction to the server;
[0198] A display module is used to display the device list to the user corresponding to the client and to display the execution status of the target device to the user.
[0199] In some embodiments of the present application, the target device includes:
[0200] A configuration server module is used to register the device;
[0201] The operation instruction module is used to receive and parse the executable management instruction, and respond to and execute the management instruction.
[0202] In some embodiments of the present application, the target device in the remote management system of the electronic device may be an AppleTV box device, and the server performs management operations on the AppleTV box device according to the management instructions received from the client. Fig.10 As shown, Fig.10 This is a schematic diagram of an embodiment of the network topology structure between the system server, client and AppleTV box device in the embodiment of the present application. The network topology structure formed between the server, client and AppleTV box device includes:
[0203] A wireless router 901 is used to provide a wireless local area network, and remotely connect the client 100 to the online network through a wireless network. The wireless router is used for information transmission between the client 100 and the online network;
[0204] A router 906, which remotely connects the AppleTV box device 907 to the online network through the network, and the router 906 is used for information transmission between the AppleTV box device 907 and the online network;
[0205] An optical modem 904 at the AppleTV box device end is connected to the router 906 and is used for information exchange between the router 906 and the online network;
[0206] The client optical modem 903 is connected to the wireless router 901 to provide network support for the wireless router 901 and is used for information transmission between the wireless router and the online network.
[0207] That is, in this embodiment, the client 100 accesses the wireless network router 901, thereby connecting to the client optical modem 903 to achieve network communication with the online network, and then achieves communication connection with the server 200 to form a first communication channel 902; the AppleTV box device 907 accesses the router 906, connects to the AppleTV box device-side optical modem 904, thereby accessing the online network, and then achieves communication connection with the server 200 to form a second communication channel 905; the server 200 communicates with the target device-side optical modem 904 and the client optical modem 905 respectively through the online network.
[0208] The present application also provides a server, such as Fig.11 As shown, Fig.11It is a schematic diagram of the structure of an embodiment of the server provided in the embodiments of the present application.
[0209] A remote management method for any electronic device provided by an embodiment of the present invention is integrated on a server, and the server includes:
[0210] one or more processors;
[0211] Memory, and
[0212] One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor in the steps of the remote management method of an electronic device described in any of the embodiments of the remote management method of an electronic device to achieve remote management of the electronic device.
[0213] Specifically, the server may include a power supply 1001, a processor 1002 of one or more processor cores, a memory 1003 of one or more computer-readable storage media, and an input unit 1004. Those skilled in the art will appreciate that Fig.11 The server structure shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components. Among them:
[0214] The processor 1002 is the control center of the server, and uses various structures and lines to connect various parts of the entire server. By running or executing software programs and / or modules stored in the memory 1003, and calling data stored in the memory 1003, the processor 1002 performs various functions and data processing operations of the server, thereby remotely managing the electronic device. Optionally, the processor 1002 may include one or more processing cores; preferably, the processor 1002 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1002.
[0215] The memory 1003 can be used to store software programs, product registration tables, device lists and modules. The processor 1002 executes various functional applications and data processing by running the software programs and modules stored in the memory 1003. The memory 1003 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a remote interaction function, a remote management function, a semantic analysis and judgment function, etc.); the data storage area may store data such as a product registration table, a device list, and an application data packet. In addition, the memory 1003 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1003 may also include a memory controller to provide the processor 1002 with access to the memory 1003.
[0216] The server also includes a power supply 1001 for supplying power to various components. Preferably, the power supply 1001 can be logically connected to the processor 1002 through a power management system, so that the power management system can manage power supply and power consumption. The power supply 1001 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0217] The server may further include an input unit 1004, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0218] Although for illustration, the server may further include a display unit, etc. Specifically in this embodiment, the processor 1002 in the server will load the executable files corresponding to the processes of one or more applications into the memory 1003 according to the following instructions, and the processor 1002 will run the applications stored in the memory 1003, thereby realizing various functions, as follows:
[0219] Calling remote interaction technology, establishing a communication channel with the client, receiving the management device request sent by the client, accessing the memory 1003 according to the management device request, and generating the registered device management list;
[0220] Sending the registered device management list to the client through a communication channel using remote interaction technology;
[0221] receiving the device identification and the management instruction fed back by the client;
[0222] Extract the device list of the target device associated with the device identifier, and read the management status and management authority in the device list;
[0223] Comparing the management instruction with the management status and management authority of the target device to determine whether the management instruction is executable;
[0224] The executable management instruction is sent to the target device, and a management operation is performed on the target device corresponding to the device identifier according to the executable management instruction.
[0225] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0226] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the remote management method of the electronic device. For example, the computer program loaded by the processor can execute the following steps:
[0227] Calling remote interaction technology, establishing a communication channel with the client, receiving the management device request sent by the client, accessing the memory 1003 according to the management device request, and generating the registered device management list;
[0228] Sending the registered device management list to the client through a communication channel using remote interaction technology;
[0229] receiving the device identification and the management instruction fed back by the client;
[0230] Extract the device list of the target device associated with the device identifier, and read the management status and management authority in the device list;
[0231] Comparing the management instruction with the management status and management authority of the target device to determine whether the management instruction is executable;
[0232] The executable management instruction is sent to the target device, and a management operation is performed on the target device corresponding to the device identifier according to the executable management instruction.
[0233] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0234] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0235] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0236] The above is a detailed introduction to a remote management method for an electronic device provided in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A remote management method for an electronic device, characterized in that: The method is applied to a server, and the method comprises: Establishing a communication network with the client through an online network to form a first communication channel; Receive a management device request sent by a client, and send a list of registered devices to the client, so that a user corresponding to the client selects a device identifier based on the device list and determines a management instruction, wherein the management instruction corresponds to a management permission including at least one of installing an application, uninstalling an application, updating an application, updating the system, and reading a storage status; receiving the device identification and the management instruction fed back by the client; Establishing a communication network with the target device corresponding to the device identifier through an online network to form a second communication channel; Performing a management operation on the target device corresponding to the device identifier according to the management instruction; monitoring and acquiring the execution status of the target device through the second communication channel; sending the execution status to the client through the first communication channel; The receiving the management device request sent by the client and sending the list of registered devices to the client includes: remotely connecting with the client based on the first communication channel, receiving the management device request sent by the client through the first communication channel, and sending the list of registered devices to the client through the first communication channel; The receiving the device identification and the management instruction fed back by the client includes: receiving the device identification and the management instruction fed back by the client through the first communication channel; The performing a management operation on the target device corresponding to the device identifier according to the management instruction comprises: remotely connecting with the target device based on the second communication channel, and sending the management instruction to the target device corresponding to the device identifier through the second communication channel to perform the management operation on the target device; Among them, based on the HTTP communication protocol, remote interaction is carried out with the client and the target device through the communication channel combined with the remote interaction technology, and the remote interaction technology is Google's remote procedure call interaction technology.
2. The remote management method of an electronic device according to claim 1, characterized in that: Before receiving the management device request sent by the client and sending the list of registered devices to the client, the method includes: Query the product registry, determine the registered device according to the product registry, and obtain the device identification of the device; Determine the management authority and status of the equipment in storage; The device identification, the management authority and the management status of the registered device are associated to generate a list of registered devices.
3. The remote management method of an electronic device according to claim 1, characterized in that: After receiving the device identification and the management instruction fed back by the client, the method includes: Query the list of registered devices to obtain the management authority and management status associated with the device identification; Comparing the management instruction with the management authority and management status associated with the device identifier to determine whether the management instruction is executable; If the management instruction is not executable, output a prompt message and send it to the client; If the management instruction is executable, the step of performing a management operation on the target device corresponding to the device identifier according to the management instruction is performed.
4. The remote management method of an electronic device according to claim 3, characterized in that: The comparing the management instruction with the management authority and management status associated with the device identifier to determine whether the management instruction is executable includes: Comparing the management instruction with the management authority and management status associated with the device identifier; If the management instruction does not conform to the management state of the target device or exceeds the management authority, determining that the management instruction is not executable; If the management instruction complies with the management state of the target device and does not exceed the management authority, it is determined that the management instruction can be executed.
5. The remote management method of an electronic device according to claim 1, characterized in that: The performing a management operation on the target device corresponding to the device identifier according to the management instruction includes: According to the device identification, query the network address of the target device; The target device is searched and awakened based on the network address, and the management instruction is sent to the target device, so that the target device performs a management operation according to the management instruction.
6. The remote management method of an electronic device according to any one of claims 1 to 5, characterized in that: After performing a management operation on the target device corresponding to the device identifier according to the management instruction, the method includes: Monitoring and obtaining the execution status of the management instruction executed by the target device; Sending the execution status to the client so that a user corresponding to the client can understand the management result of the target device; If the execution status is completed, the final execution status of the target device is used as the management status and updated to the device list.
7. A remote management system for electronic equipment, characterized in that: The system comprises a server, a client and a target device connected in communication, and the system comprises: The server is used to establish a communication network with the client through an online network to form a first communication channel; The server is used to receive the device management request sent by the client and send the list of registered devices to the client; The client is used to receive a device list, obtain a device identifier selected by a user based on the device list, obtain a management instruction set by the user based on the device identifier, and send the device identifier and the management instruction to a server, wherein the management instruction corresponds to at least one of the following management permissions: installing an application, uninstalling an application, updating an application, updating the system, and reading a storage status; A server, configured to receive the device identification and the management instruction fed back by the client; The server is used to establish a communication network with the target device corresponding to the device identifier through an online network to form a second communication channel; The server is configured to perform a management operation on the target device corresponding to the device identifier according to the management instruction; A target device, configured to receive the management instruction sent by the server, and respond to and execute the management instruction; A server, configured to monitor and obtain an execution status of the target device through the second communication channel; A server, configured to send the execution status to the client via the first communication channel; The server is configured to receive a management device request sent by a client and send a list of registered devices to the client, further comprising: remotely connecting to the client based on the first communication channel, receiving the management device request sent by the client through the first communication channel, and sending the list of registered devices to the client through the first communication channel; The server is configured to receive the device identification and the management instruction fed back by the client, including: receiving the device identification and the management instruction fed back by the client through the first communication channel; The server, for performing the management operation on the target device corresponding to the device identifier according to the management instruction, comprises: remotely connecting with the target device based on the second communication channel, and sending the management instruction to the target device corresponding to the device identifier through the second communication channel to perform the management operation on the target device; Among them, the server is based on the HTTP communication protocol, and remotely interacts with the client and the target device through a communication channel combined with remote interaction technology. The remote interaction technology is Google's remote procedure call interaction technology.
8. A server, characterized in that: The server includes: one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to implement the remote management method of the electronic device according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the remote management method of an electronic device as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Remote management and control method for sweeper and scrubber
CN105959417A