Link management method, device and system

By obtaining the connection status information between the device and the cloud server and selecting an appropriate communication method, the problem of low device management efficiency is solved and the client can realize real-time and normal management of the target device.

CN116016639BActive Publication Date: 2024-09-17SHENZHEN GRANDSTREAM NETWORKS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211717618.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2024-09-17
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

The current device management efficiency is low, and the client cannot accurately select the appropriate device management method according to the actual situation, resulting in the inability to properly manage the device when the cloud server or device is abnormal.

Method used

By obtaining device connection status information and cloud server connection status information, determine the appropriate communication method, select cloud link or local link to communicate with the target device, and ensure that the client can manage the device in real time and normally.

Benefits of technology

It improves the efficiency of device management, enables the client to accurately select the appropriate device management method according to the actual situation, ensures the normal management of the target device, and avoids device management failures caused by connection abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016639B
    Figure CN116016639B
Patent Text Reader

Abstract

The present application provides a link management method, device and system, which are applied to the client, first obtaining the device connection status information and the cloud server connection status information, and when the device connection status information and the cloud server connection status information both meet the normal connection conditions, initiating a device list acquisition request to the cloud server to obtain the device list, and extracting the current management device information from the device list, so as to select the cloud link communication mode or the local link communication mode to communicate with the target device based on the current management device information. The current management device information can be obtained based on the device connection status information and the cloud server connection status information, and the best communication mode can be determined based on the current management device information, and communication with the target device is carried out based on the communication mode, so that the client can accurately select the appropriate device management mode according to the actual application situation, ensuring that the client can manage the target device normally in real time, thereby improving the efficiency of device management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a link management method, device and system. Background Art

[0002] With the continuous advancement of science and technology, the Internet of Things technology has also developed rapidly. The significance of the Internet of Things technology is to connect devices to the network so that devices can communicate through information dissemination media, allowing people to manage their lives and production activities more intelligently and conveniently. Therefore, the Internet of Things technology is widely used in various fields.

[0003] Current methods of managing devices generally include direct methods (the client communicates directly with the device) and indirect methods (the client transmits communication data to the cloud server, which then forwards the communication data to the device through the cloud server). However, when an abnormal situation occurs on the cloud server or the device (for example, when the cloud server network is abnormal / the load is heavy, or the device configuration is abnormal), the client cannot accurately select the appropriate device management method based on the actual situation, and therefore it is easy for the client to be unable to manage the device normally, resulting in low device management efficiency. Summary of the invention

[0004] The present application provides a link management method, device and system for solving the technical problem of low efficiency of current equipment management.

[0005] In order to solve the above technical problems, this application provides the following technical solutions:

[0006] The present application provides a link management method, which is applied to a client. The link management method includes:

[0007] Acquire device connection status information and cloud server connection status information; wherein the device connection status information represents the connection status between the client and the target device, and the cloud server connection status information represents the connection status between the client and the cloud server;

[0008] When both the device connection status information and the cloud server connection status information meet normal connection conditions, initiating a device list acquisition request to the cloud server;

[0009] Receiving a device list returned by the cloud server based on the device list acquisition request, and extracting currently managed device information from the device list;

[0010] Based on the current management device information, a cloud link communication mode or a local link communication mode is selected to communicate with the target device.

[0011] Before the step of obtaining the device connection status information and the cloud server connection status information, the method further includes:

[0012] Create a local link and a cloud link; wherein the local link includes a link for connecting the client and the target device, and the cloud link includes a link for connecting the client and the cloud service end.

[0013] The step of obtaining the device connection status information and the cloud server connection status information includes:

[0014] Initiate a device connection request to the target device based on the local link, and obtain device connection status information returned by the target device based on the device connection request;

[0015] Log in to the cloud server to initiate a cloud server connection request to the cloud server based on the cloud link, and obtain cloud server connection status information returned by the cloud server based on the cloud server connection request.

[0016] Wherein, when the device connection status information and the cloud server connection status information both meet normal connection conditions, the step of initiating a device list acquisition request to the cloud server includes:

[0017] When the device connection status information indicates that the client is connected to the target device normally, and the cloud server connection status information indicates that the client is connected to the cloud server normally, it is determined that both the device connection status information and the cloud server connection status information meet normal connection conditions, and a device list acquisition request is initiated to the cloud server.

[0018] The step of receiving the device list returned by the cloud server based on the device list acquisition request and extracting the currently managed device information from the device list includes:

[0019] Receiving a device list returned by the cloud server based on the device list acquisition request; wherein the device list stores a mapping relationship between each device and each device information;

[0020] Determine the currently managed device from the device list; wherein the currently managed device includes a device currently in a cloud server management state;

[0021] Based on the mapping relationship, a current management device identification code is determined, and the current management device identification code is used as the current management device information; wherein the current management device identification code includes a unique identification code of the current management device.

[0022] Wherein, after the step of receiving the device list returned by the cloud server based on the device list acquisition request and extracting the currently managed device information from the device list, the step further includes:

[0023] The current management device identification code is compared with the target device identification code to obtain a comparison result; wherein the target device identification code includes a unique identification code of the target device.

[0024] The step of selecting a cloud link communication mode or a local link communication mode to communicate with the target device based on the current management device information includes:

[0025] When the current management device information meets the cloud link communication condition, communicating with the target device based on the cloud link;

[0026] When the current management device information meets the local link communication condition, communication is performed with the target device based on the local link.

[0027] Wherein, when the current management device information meets the cloud link communication condition, the step of communicating with the target device based on the cloud link includes:

[0028] When the comparison result indicates that the current management device identification code is different from the target device identification code, determining that the current management device information meets the cloud link communication condition;

[0029] Communicate with the target device based on the cloud link.

[0030] Wherein, when the current management device information meets the local link communication condition, the step of communicating with the target device based on the local link includes:

[0031] When the comparison result indicates that the current management device identification code is the same as the target device identification code, determining that the current management device information meets the local link communication condition;

[0032] Communicate with the target device based on the local link.

[0033] The embodiment of the present application further provides a link management device, which is applied to a client, and the link management device includes:

[0034] An acquisition module, used to acquire device connection status information and cloud server connection status information; wherein the device connection status information represents the connection status between the client and the target device, and the cloud server connection status information represents the connection status between the client and the cloud server;

[0035] A request initiating module, used for initiating a device list acquisition request to the cloud server when both the device connection status information and the cloud server connection status information meet normal connection conditions;

[0036] A receiving module, configured to receive a device list returned by the cloud server based on the device list acquisition request, and extract currently managed device information from the device list;

[0037] A communication module is used to select a cloud link communication mode or a local link communication mode to communicate with the target device based on the current management device information.

[0038] The embodiment of the present application also provides a link management system, including a client, a cloud service end and a target device;

[0039] The client is used to obtain device connection status information and cloud server connection status information, and when both the device connection status information and the cloud server connection status information meet normal connection conditions, initiate a device list acquisition request to the cloud server, and receive a device list returned by the cloud server based on the device list acquisition request, so as to extract currently managed device information from the device list, and select a cloud link communication mode or a local link communication mode to communicate with the target device based on the currently managed device information;

[0040] The cloud service end is used to receive the device list acquisition request initiated by the client, and send the device list to the client based on the device list acquisition request;

[0041] The target device is used to communicate with the client based on the local link communication mode or the cloud link communication mode.

[0042] Beneficial effects: The present application provides a link management method, apparatus and system, which can obtain the current management device information based on the device connection status information and the cloud server connection status information, determine the appropriate communication method based on the current management device information, and communicate with the target device based on the determined communication method, so that the client can accurately select the appropriate device management method according to the actual application situation, thereby ensuring that the client can normally manage the target device in real time, thereby improving the device management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0044] Figure 1 It is a flow chart of the link management method provided in the embodiment of the present application.

[0045] Figure 2 It is a structural diagram of the link management device provided in an embodiment of the present application.

[0046] Figure 3 It is a schematic diagram of a link management system provided in an embodiment of the present application.

[0047] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0048] Figure 5 It is another structural schematic diagram of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0050] Embodiments of the present application provide a link management method, device, and system.

[0051] like Figure 1 As shown, Figure 1 : is a flow chart of a link management method provided in an embodiment of the present application, and the link management method is applied to a client. The specific flow can be as follows:

[0052] S101. Obtain device connection status information and cloud server connection status information, where the device connection status information represents the connection status between the client and the target device, and the cloud server connection status information represents the connection status between the client and the cloud server.

[0053] Among them, the target devices include IoT devices with network access and data transmission capabilities, the client includes programs that provide local services to users, and the cloud service end includes a service platform that provides comprehensive business capabilities to various Internet users.

[0054] Specifically, IoT devices (e.g., smart home devices, smart wearable devices, etc.) have entered people's production and life. IoT devices can communicate with each other to automatically perform corresponding tasks, and users can achieve efficient management of life and production activities by controlling IoT devices. In order to ensure the normal operation of IoT devices, the IoT devices need to be managed by the client. Currently, there are usually two ways to manage devices: 1. The client communicates directly with the IoT device to manage the IoT device locally; 2. The client communicates with the cloud server to remotely manage the IoT device indirectly through the cloud server. However, when the cloud server or the IoT device is abnormal (for example, when the cloud server network is abnormal / the load is large, or the device configuration is abnormal), the client cannot accurately select the appropriate device management method according to the actual situation, resulting in the client being unable to manage the IoT device normally.

[0055] To avoid the above situation, in this embodiment, the connection status between the client and the target device, and the connection status between the client and the cloud server are obtained to know the connection status, so as to determine the device management method most suitable for the client based on the two connection statuses, thereby ensuring that the client can manage the target device normally in real time.

[0056] For example, when the connection status between the client and the target device represented by the device connection status information is normal, and the connection status between the client and the cloud server represented by the cloud server connection status information is abnormal, the client selects the local management method to manage the device (i.e., directly communicates with the target device); when the connection status between the client and the cloud server represented by the cloud server connection status information is normal, and the connection status between the client and the device represented by the device connection status information is abnormal, the client selects the remote management method to manage the device (i.e., indirectly communicates with the target device through the cloud server); when the connection status between the client and the device represented by the device connection status information and the connection status between the client and the cloud server represented by the cloud server connection status information are both normal, further judgment is required to determine the most appropriate device management method.

[0057] Specifically, in this embodiment, a local link (a link for connecting the client and the target device) and a cloud link (a link for connecting the client and the cloud server) are created in advance, and then a device connection request is initiated to the target device based on the local link, and the device connection status information returned by the target device based on the device connection request is obtained. Next, the client logs in to the cloud server to initiate a cloud server connection request to the cloud server based on the cloud link, and obtains the cloud server connection status information returned by the cloud server based on the cloud server connection request.

[0058] Optionally, since the WebSocket protocol has the characteristic of keeping both connected parties in a long connection state, the WebSocket protocol can effectively improve the connection efficiency. In order to ensure the connection efficiency between the client and the target device, and the client and the cloud server, in this embodiment, local links and cloud links are created based on the WebSocket protocol.

[0059] Furthermore, in order to ensure the continuity of device management, it is necessary to avoid as much as possible the situation where device management cannot be performed normally due to connection abnormalities (including abnormal connections between the client and the target device, abnormal connections between the client and the cloud server, and abnormal connections between the client and the target device and the cloud server). Therefore, in actual application, multiple connection attempts can be made to ensure as much as possible that the connections between the client and the target device, and between the client and the cloud server are normal. In addition, after obtaining the device connection status information and the cloud server connection status information, the links that successfully connect the two parties (for example, the client and the target device are successfully connected, and the client and the cloud server are successfully connected) are stored in the connection pool.

[0060] S102. When the device connection status information and the cloud server connection status information both meet normal connection conditions, a device list acquisition request is initiated to the cloud server.

[0061] The normal connection condition is a basis for determining whether the connection between the client and the target device / the client and the cloud server is successful, and the device list acquisition request includes a message for requesting to obtain the device list.

[0062] Specifically, as described above, when the connection status between the client and the device and the connection status between the client and the cloud server are both normal, further judgment is required to determine the most appropriate device management method. To this end, in this embodiment, when the device connection status information indicates that the connection between the client and the target device is normal, and the cloud server connection status information indicates that the connection between the client and the cloud server is normal, it is determined that the device connection status information and the cloud server connection status information both meet the normal connection conditions, and the client initiates a device list acquisition request to the cloud server. At the same time, the client initiates an initialization request to the target device to request to obtain the device information of the target device, so as to subsequently determine the most appropriate device management method based on the device list and the device information of the target device.

[0063] S103: Receive the device list returned by the cloud server based on the device list acquisition request, and extract the currently managed device information from the device list.

[0064] Among them, the device list stores the mapping relationship between all devices bound to the cloud server and the device information of each device. The currently managed device includes the device currently under the management of the cloud server. The currently managed device information is used to identify the currently managed device. The cloud server stores a device list with all devices bound to the cloud server (the target device is included therein) and the corresponding device information. After the cloud server receives the device list acquisition request initiated by the client, the device list is sent to the client based on the device list acquisition request, so that the client can extract the currently managed device information corresponding to the currently managed device currently being managed by the cloud server after receiving the device list. Optionally, in actual application, one device can be selected by default from all devices bound to the cloud server as the currently managed device.

[0065] Specifically, in this embodiment, the device list returned by the cloud server based on the device list acquisition request is first received, and then the current managed device currently under the cloud server management state is determined from the device list, and the current managed device identification code is determined based on the mapping relationship between the device and the device information, so as to use the current managed device identification code as the current managed device information. Optionally, the current managed device identification code includes the UUID (Universally Unique Identifier) ​​of the current managed device.

[0066] For example, the device list stores: device A's device information is a11, device B's device information is b11, and device C's device information is c11. When the client receives the device list, it determines that the currently managed device is device A, so it determines that the currently managed device information is a11.

[0067] Further, after obtaining the current management device identification code, the current management device identification code is compared with the target device identification code (ie, the device information of the target device) to obtain a comparison result, and the comparison result is used as a basis for selecting the device management method. Optionally, the target device identification code includes the UUID of the target device.

[0068] S104. Select a cloud link communication mode or a local link communication mode to communicate with the target device based on the current management device information.

[0069] Among them, when the current management device information meets the cloud link communication conditions, communication with the target device is based on the cloud link; when the current management device information meets the local link communication conditions, communication with the target device is based on the local link.

[0070] Specifically, the cloud link communication condition is a basis for determining whether the client and the target device can use the cloud link for communication, and the local link communication condition is a basis for determining whether the client and the target device can use the local link for communication.

[0071] Further, in this embodiment, if all links that have been normally connected to both parties are queried from the connection pool, if there is only a local link / cloud link in the connection pool (that is, only the client and the target device / the client and the cloud server are successfully connected), the client communicates with the target device directly based on the link. If there are both local links and cloud links in the connection pool, further analysis is made based on the comparison results:

[0072] When the comparison result indicates that the current management device identification code is different from the target device identification code, it means that the target device is not currently managed by the cloud server, that is, the target device may have configuration abnormalities and other problems, so the client cannot communicate directly with the target device. Therefore, it is determined that the current management device information meets the cloud link communication conditions, and communicates with the target device based on the cloud link, that is, all subsequent instructions initiated by the client are indirectly forwarded to the target device via the cloud server (i.e. remote management).

[0073] When the comparison result indicates that the current management device identification code is the same as the target device identification code, it means that the cloud server is currently managing the target device, and there is a large load and traffic consumption. To ensure the efficiency of device management, it is necessary to avoid occupying the management resources of the cloud server. Therefore, it is determined that the current management device information meets the local link communication conditions, and communicates with the target device based on the local link, that is, all subsequent commands initiated by the client are sent directly to the target device (i.e., local management).

[0074] Furthermore, since there is a long connection between the client and the target device, and between the client and the cloud server, after determining the best link, they can quickly communicate with the target device based on the link to manage the target device, thereby effectively improving device management efficiency.

[0075] As can be seen from the above, the link management method provided by the present application is applied to the client, firstly obtaining the device connection status information used to characterize the connection status between the client and the target device, and the cloud server connection status information used to characterize the connection status between the client and the cloud server, and when both the device connection status information and the cloud server connection status information meet the normal connection conditions, a device list acquisition request is initiated to the cloud server, and then the device list returned by the cloud server based on the device list acquisition request is received, and the current management device information is extracted from the device list, so as to select the cloud link communication mode or the local link communication mode to communicate with the target device based on the current management device information. The current management device information can be obtained based on the device connection status information and the cloud server connection status information, and the appropriate communication mode can be determined based on the current management device information, and the communication with the target device is carried out based on the determined communication mode, so that the client can accurately select the appropriate device management mode according to the actual application situation, thereby ensuring that the client can normally manage the target device in real time, thereby improving the efficiency of device management.

[0076] According to the method described in the above embodiment, this embodiment will be further described from the perspective of the link management device.

[0077] See also Figure 2 , Figure 2 The link management device provided in the embodiment of the present application is specifically described. The link management device is applied to a client. The link management device may include: an acquisition module 10, a request initiation module 20, a receiving module 30 and a communication module 40, wherein:

[0078] (1) Obtain module 10

[0079] The acquisition module 10 acquires the device connection status information and the cloud server connection status information; wherein the device connection status information represents the connection status between the client and the target device, and the cloud server connection status information represents the connection status between the client and the cloud server.

[0080] The acquisition module 10 is specifically used for:

[0081] Initiate a device connection request to the target device based on the local link, and obtain device connection status information returned by the target device based on the device connection request;

[0082] Log in to the cloud server to initiate a cloud server connection request to the cloud server based on the cloud link, and obtain the cloud server connection status information returned by the cloud server based on the cloud server connection request.

[0083] (2) Request initiation module 20

[0084] The request initiating module 20 is used to initiate a device list acquisition request to the cloud server when both the device connection status information and the cloud server connection status information meet normal connection conditions.

[0085] The request initiating module 20 is specifically used for:

[0086] When the device connection status information indicates that the client is connected to the target device normally, and the cloud server connection status information indicates that the client is connected to the cloud server normally, it is determined that both the device connection status information and the cloud server connection status information meet normal connection conditions, and a device list acquisition request is initiated to the cloud server.

[0087] (3) Receiving module 30

[0088] The receiving module 30 is used to receive the device list returned by the cloud server based on the device list acquisition request, and extract the currently managed device information from the device list.

[0089] The receiving module 30 is specifically used for:

[0090] Receive a device list returned by the cloud server based on the device list acquisition request; wherein the device list stores a mapping relationship between each device and each device information;

[0091] Determine the currently managed device from the device list; wherein the currently managed device includes the device currently under cloud server management;

[0092] Based on the mapping relationship, the current management device identification code is determined, and the current management device identification code is used as the current management device information; wherein the current management device identification code includes a unique identification code of the current management device.

[0093] (4) Communication module 40

[0094] The communication module 40 is used to select a cloud link communication mode or a local link communication mode to communicate with the target device based on the current management device information.

[0095] The communication module 40 is specifically used for:

[0096] When the current management device information meets the cloud link communication conditions, communicate with the target device based on the cloud link;

[0097] When the current management device information meets the local link communication condition, communication is performed with the target device based on the local link.

[0098] Specifically, the communication module 40 is also used for:

[0099] When the comparison result indicates that the current management device identification code is different from the target device identification code, it is determined that the current management device information meets the cloud link communication condition;

[0100] Communicate with the target device based on the cloud link.

[0101] Furthermore, the communication module 40 is also used for:

[0102] When the comparison result indicates that the current management device identification code is the same as the target device identification code, determining that the current management device information meets the local link communication condition;

[0103] Communicates with the target device over a local link.

[0104] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0105] As can be seen from the above, the link management device provided by the present application is applied to the client, and first obtains the device connection status information used to characterize the connection status between the client and the target device, and the cloud server connection status information used to characterize the connection status between the client and the cloud server through the acquisition module 10. When the device connection status information and the cloud server connection status information both meet the normal connection conditions, a device list acquisition request is initiated to the cloud server through the request initiation module 20, and then the device list returned by the cloud server based on the device list acquisition request is received through the receiving module 30, and the currently managed device information is extracted from the device list, so as to select the cloud link communication mode or the local link communication mode to communicate with the target device through the communication module 40 based on the currently managed device information.

[0106] The currently managed device information can be obtained based on the device connection status information and the cloud server connection status information. The appropriate communication method can be determined based on the currently managed device information, and communication with the target device can be carried out based on the determined communication method. This allows the client to accurately select the appropriate device management method based on the actual application situation, thereby ensuring that the client can normally manage the target device in real time, thereby improving device management efficiency.

[0107] Accordingly, an embodiment of the present invention further provides a link management system, including a client, a cloud service end, and a target device. Specifically, Figure 3As shown, the link management system includes a client 31, a cloud server 32 and a target device 33. The client 31 first executes step S301: obtains device connection status information and cloud server connection status information. When the device connection status information and the cloud server connection status information both meet normal connection conditions, step S302 is executed: a device list acquisition request is initiated to the cloud server 32, and then the cloud server 32 executes step S303: receives the device list acquisition request, and sends the device list to the client 31 based on the device list acquisition request. Next, the client 31 executes step S304: extracts the current management device information from the device list. If the current management device information meets the cloud link communication condition, step S305 is executed: communicates with the target device 33 based on the cloud link communication method. If the current management device information meets the local link communication condition, step S306 is executed: communicates with the target device 33 based on the local link communication method.

[0108] Since the link management system can include any link management device provided in the embodiments of the present invention, the beneficial effects that can be achieved by any link management device provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0109] In addition, the present application also provides an electronic device with a client installed. The functions of the client are the same as those in the above embodiments, which will not be described in detail here. The electronic device can be a smart phone, a computer or other devices. Figure 4 As shown, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.

[0110] The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or loading applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.

[0111] In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402 to implement various functions:

[0112] Obtain device connection status information and cloud server connection status information; wherein the device connection status information represents the connection status between the client and the target device, and the cloud server connection status information represents the connection status between the client and the cloud server;

[0113] When the device connection status information and the cloud server connection status information both meet normal connection conditions, a device list acquisition request is initiated to the cloud server;

[0114] Receive the device list returned by the cloud server based on the device list acquisition request, and extract the currently managed device information from the device list;

[0115] Based on the current management device information, select the cloud link communication mode or the local link communication mode to communicate with the target device.

[0116] Figure 5 A specific structural block diagram of an electronic device provided in an embodiment of the present invention is shown. The electronic device can be used to implement the link management method provided in the above embodiment.

[0117] The RF circuit 510 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 510 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 510 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE 802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.

[0118] The memory 520 can be used to store software programs and modules. The processor 580 executes various functional applications and data processing by running the software programs and modules stored in the memory 520, that is, realizes the function of storing 5G capability information. The memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 520 may further include a memory remotely arranged relative to the processor 580, and these remote memories may be connected to the electronic device 500 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0119] The input unit 530 can 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. Specifically, the input unit 530 may include a touch-sensitive surface 531 and other input devices 532. The touch-sensitive surface 531, also known as a touch display screen or a touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 531), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 531 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch-sensitive surface 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 531, the input unit 530 may further include other input devices 532. Specifically, the other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0120] The display unit 540 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 500, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 531 may cover the display panel 541. When the touch-sensitive surface 531 detects a touch operation on or near it, it is transmitted to the processor 580 to determine the type of touch event. Subsequently, the processor 580 provides a corresponding visual output on the display panel 541 according to the type of touch event. Although in Figure 5 In the embodiment, the touch-sensitive surface 531 and the display panel 541 are implemented as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface 531 and the display panel 541 can be integrated to realize input and output functions.

[0121] The electronic device 500 may also include at least one sensor 550, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 541 and / or the backlight when the electronic device 500 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 500, they will not be repeated here.

[0122] The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the electronic device 500. The audio circuit 560 can transmit the electrical signal converted from the received audio data to the speaker 561, which is converted into a sound signal for output; on the other hand, the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 560 and converted into audio data, and then the audio data is output to the processor 580 for processing, and then sent to another terminal through the RF circuit 510, or the audio data is output to the memory 520 for further processing. The audio circuit 560 may also include an earplug jack to provide communication between an external headset and the electronic device 500.

[0123] The electronic device 500 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 570 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 5 A transmission module 570 is shown, but it is understandable that it is not an essential component of the electronic device 500 and can be omitted as required without changing the essence of the invention.

[0124] The processor 580 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the electronic device 500 and processes data by running or executing software programs and / or modules stored in the memory 520, and calling data stored in the memory 520. Optionally, the processor 580 may include one or more processing cores; in some embodiments, the processor 580 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 580.

[0125] The electronic device 500 also includes a power supply 590 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 580 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 590 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0126] Although not shown, the electronic device 500 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the electronic device also includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

[0127] Obtain device connection status information and cloud server connection status information; wherein the device connection status information represents the connection status between the client and the target device, and the cloud server connection status information represents the connection status between the client and the cloud server;

[0128] When the device connection status information and the cloud server connection status information both meet normal connection conditions, a device list acquisition request is initiated to the cloud server;

[0129] Receive the device list returned by the cloud server based on the device list acquisition request, and extract the currently managed device information from the device list;

[0130] Based on the current management device information, select the cloud link communication mode or the local link communication mode to communicate with the target device.

[0131] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0132] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores multiple instructions, and the instructions can be loaded by a processor to execute the steps in any link management method provided by the embodiment of the present invention.

[0133] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0134] Since the instructions stored in the storage medium can execute the steps in any link management method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any link management method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0135] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0136] In summary, although the present application has been disclosed as above with preferred embodiments, the above preferred embodiments are not intended to limit the present application. Ordinary technicians in this field can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined in the claims.

Claims

1. A link management method, characterized in that: Applied to the client, the link management method includes: Acquire device connection status information and cloud server connection status information; wherein the device connection status information represents the connection status between the client and the target device, and the cloud server connection status information represents the connection status between the client and the cloud server; When both the device connection status information and the cloud server connection status information meet normal connection conditions, initiating a device list acquisition request to the cloud server; Receiving a device list returned by the cloud server based on the device list acquisition request, and extracting currently managed device information from the device list; Selecting a cloud link communication mode or a local link communication mode to communicate with the target device based on the current management device information, including: if there is only a local link or a cloud link in the connection pool, communicating with the target device based on the local link or the cloud link; If there are both local links and cloud links in the connection pool, when the identification code of the current management device is different from the identification code of the target device, it is determined that the current management device information meets the cloud link communication conditions; and communication is performed with the target device based on the cloud link; when the identification code of the current management device is the same as the identification code of the target device, it is determined that the current management device information meets the local link communication conditions; and communication is performed with the target device based on the local link.

2. The link management method according to claim 1, characterized in that: Before the step of obtaining the device connection status information and the cloud server connection status information, the method further includes: Create a local link and a cloud link; wherein the local link includes a link for connecting the client and the target device, and the cloud link includes a link for connecting the client and the cloud service end.

3. The link management method according to claim 2, characterized in that: The step of obtaining device connection status information and cloud server connection status information includes: Initiate a device connection request to the target device based on the local link, and obtain device connection status information returned by the target device based on the device connection request; Log in to the cloud server to initiate a cloud server connection request to the cloud server based on the cloud link, and obtain cloud server connection status information returned by the cloud server based on the cloud server connection request.

4. The link management method according to claim 3, characterized in that: The step of initiating a device list acquisition request to the cloud server when both the device connection status information and the cloud server connection status information meet normal connection conditions includes: When the device connection status information indicates that the client is connected to the target device normally, and the cloud server connection status information indicates that the client is connected to the cloud server normally, it is determined that both the device connection status information and the cloud server connection status information meet normal connection conditions, and a device list acquisition request is initiated to the cloud server.

5. The link management method according to claim 4, characterized in that: The step of receiving the device list returned by the cloud server based on the device list acquisition request, and extracting the currently managed device information from the device list includes: Receiving a device list returned by the cloud server based on the device list acquisition request; wherein the device list stores a mapping relationship between each device and each device information; Determine the currently managed device from the device list; wherein the currently managed device includes a device currently in a cloud server management state; Based on the mapping relationship, a current management device identification code is determined, and the current management device identification code is used as the current management device information; wherein the current management device identification code includes a unique identification code of the current management device.

6. The link management method according to claim 5, characterized in that: After the step of receiving the device list returned by the cloud server based on the device list acquisition request and extracting the currently managed device information from the device list, the step further includes: The current management device identification code is compared with the target device identification code to obtain a comparison result; wherein the target device identification code includes a unique identification code of the target device.

7. The link management method according to claim 6, characterized in that: The step of selecting a cloud link communication mode or a local link communication mode to communicate with the target device based on the current management device information includes: When the current management device information meets the cloud link communication condition, communicating with the target device based on the cloud link; When the current management device information meets the local link communication condition, communication is performed with the target device based on the local link.

8. A link management device, characterized in that: Applied to a client, the link management device comprises: An acquisition module, used to acquire device connection status information and cloud server connection status information; wherein the device connection status information represents the connection status between the client and the target device, and the cloud server connection status information represents the connection status between the client and the cloud server; A request initiating module, used for initiating a device list acquisition request to the cloud server when both the device connection status information and the cloud server connection status information meet normal connection conditions; A receiving module, configured to receive a device list returned by the cloud server based on the device list acquisition request, and extract currently managed device information from the device list; A communication module, configured to select a cloud link communication mode or a local link communication mode to communicate with the target device based on the current management device information, including: if there is only a local link or a cloud link in the connection pool, communicating with the target device based on the local link or the cloud link; If there are both local links and cloud links in the connection pool, when the identification code of the current management device is different from the identification code of the target device, it is determined that the current management device information meets the cloud link communication conditions; and communication is performed with the target device based on the cloud link; when the identification code of the current management device is the same as the identification code of the target device, it is determined that the current management device information meets the local link communication conditions; and communication is performed with the target device based on the local link.

9. A link management system, characterized in that: Including client, cloud server and target device; The client is used to obtain device connection status information and cloud server connection status information, and when both the device connection status information and the cloud server connection status information meet normal connection conditions, initiate a device list acquisition request to the cloud server, and receive a device list returned by the cloud server based on the device list acquisition request, so as to extract currently managed device information from the device list, and select a cloud link communication mode or a local link communication mode to communicate with the target device based on the currently managed device information, including: if there is only a local link or a cloud link in the connection pool, communicate with the target device based on the local link or the cloud link; If both a local link and a cloud link exist in the connection pool, when the identification code of the current management device is different from the identification code of the target device, it is determined that the current management device information meets the cloud link communication condition; and the target device is communicated with based on the cloud link; when the identification code of the current management device is the same as the identification code of the target device, it is determined that the current management device information meets the local link communication condition; and the target device is communicated with based on the local link; The cloud service end is used to receive the device list acquisition request initiated by the client, and send the device list to the client based on the device list acquisition request; The target device is used to communicate with the client based on the local link communication mode or the cloud link communication mode.