Control method of multi-platform intelligent equipment, terminal equipment, medium and product

By checking and dynamically updating the SDK version of third-party smart devices in the terminal device, the problem of control failure caused by untimely SDK updates is solved, efficient and safe smart device control is realized, and the device is always used with the latest version of the SDK.

CN118733077AInactive Publication Date: 2024-10-01SHENZHEN WEIERJIAN TECH DEV CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410708948.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the SDK of third-party smart devices is not updated in time, resulting in frequent control failures, and it is impossible to ensure that the terminal device uses the latest version of the SDK.

Method used

When receiving a request to add a third-party smart device, the terminal device first checks the SDK version information in the local repository. If it is consistent with the latest version, it will be loaded directly. Otherwise, the latest version of the SDK will be retrieved from the storage network and authenticated. and network bandwidth detection to generate slicing rules to ensure secure and efficient transmission.

Benefits of technology

The dynamic update mechanism ensures that terminal devices always use the latest version of the SDK, which improves device access efficiency and security, reduces the risk of control failure and illegal theft of the SDK, and optimizes transmission efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733077A_ABST
    Figure CN118733077A_ABST
Patent Text Reader

Abstract

The invention relates to a control method of a multi-platform intelligent device, a terminal device, a medium and a product, which are applied to the field of intelligent device control, and the method comprises the following steps: when a request for adding a third-party intelligent device is received, the terminal device firstly checks SDK version information in a local storage library, and if the version is consistent with the latest version information, the terminal device sends the SDK version information to the local storage library; the SDK is directly loaded from the local, so that the time for acquiring data from an external network is avoided, and the equipment access efficiency and speed are remarkably improved; if the version of the locally stored SDK is inconsistent with the latest version, the latest version of SDK can be automatically called and loaded from the storage network, the dynamic updating mechanism ensures that the equipment always uses the latest and safest SDK, and then the intelligent control list can be automatically updated on the basis of interface information among the SDK, the third-party server, the application server and the intelligent control list. And the terminal equipment can integrate the third-party intelligent equipment into the intelligent control list.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent device control technology, and in particular to a control method, terminal device, medium and product of a multi-platform intelligent device. Background Art

[0002] With the continuous development of smart device technology, smart facilities and equipment such as smart air conditioners, smart TVs, and smart monitoring have gradually emerged. Users can remotely control smart devices through terminals, making it easier for users to use smart devices. When remotely controlling smart devices through terminals, you need to add the devices to the smart device list of the terminal.

[0003] At present, a supporting application software developed by a manufacturer is installed on the terminal, and the user can add the corresponding smart device of the manufacturer; when the user has smart devices from multiple manufacturers, the third-party smart device can be added to the application software, and then the SDK (Software Development Kit) developed with the third-party manufacturer for controlling the third-party smart device is retrieved from the repository. The terminal adds the third-party device to the smart device list through the third-party SDK, so that when the user triggers a control instruction for the third-party smart device, the third-party SDK sends a control message to the third-party server to instruct the third-party server to control the third-party smart device to perform the operation corresponding to the control instruction.

[0004] However, the third-party SDK may be updated, but the repository may not be updated. In this case, control failure may occur because the latest version is not used. Summary of the invention

[0005] The purpose of this application is to provide a control method, terminal device, medium and product for a multi-platform smart device, which can ensure that the latest version of the SDK of a third-party smart control device is obtained and reduce the occurrence of control failures.

[0006] In a first aspect, a control method for a multi-platform smart device is provided, which is applied to a terminal device, and the control method includes: When receiving an addition request for adding a third-party smart device to the smart control list, determining the SDK storage version information corresponding to the third-party smart device from the local storage repository, and obtaining the latest version information of the SDK corresponding to the third-party smart device; If the stored version information is consistent with the latest version information, the SDK of the latest version information corresponding to the third-party smart device is retrieved and loaded from the local storage repository; If the stored version information is inconsistent with the latest version information, the SDK of the latest version information corresponding to the third-party smart device is retrieved and loaded from the storage network; Determine first interface information between the SDK and the third-party server based on the latest version information of the SDK corresponding to the third-party smart device; Based on the first interface information, the second interface information and the third interface information, the third-party smart device is added to the smart control list to facilitate triggering control instructions through the smart control list to achieve control of the third-party smart device. The second interface information is the interface information between the third-party server and the application server, and the third interface information is the interface information between the application software corresponding to the smart control list and the application server.

[0007] Through the above technical solution, when a request to add a third-party smart device is received, the terminal device first checks the SDK version information in the local storage repository. If the version is consistent with the latest version information, the SDK is directly loaded from the local, avoiding the time of obtaining data from the external network, and significantly improving the efficiency and speed of device access; if the locally stored SDK version is inconsistent with the latest version, the latest version of the SDK can be automatically retrieved and loaded from the storage network. This dynamic update mechanism ensures that the device always uses the latest and most secure SDK. Furthermore, based on the interface information between the SDK, third-party server, application server and smart control list, the terminal device can integrate the third-party smart device into the smart control list.

[0008] In a possible implementation, the retrieving and loading the latest version of the SDK corresponding to the third-party smart device from the storage network includes: Generate a retrieval request based on the user's identity information and the latest version information corresponding to the third-party smart device, so that the storage network can verify the retrieval request, and read and send the SDK of the latest version information corresponding to the third-party smart device to the terminal device after successful verification; Obtain and load the latest version of the SDK corresponding to the third-party smart device.

[0009] Through the above technical solution, the storage network is provided with a verification mechanism, and the terminal device can obtain the SDK only after the retrieval request based on the identity information is verified, thereby ensuring the security of the SDK and reducing the risk of illegal persons stealing the SDK.

[0010] In a possible implementation, generating a retrieval request according to the user's identity information and the latest version information corresponding to the third-party smart device so that the storage network verifies the retrieval request, and reading and sending the SDK of the latest version information corresponding to the third-party smart device to the terminal device after successful verification includes: Generate a retrieval request based on the user's identity information and the latest version information corresponding to the third-party smart device, so that the storage network can perform permission verification based on the user's identity information, determine the location information corresponding to the latest version information corresponding to the third-party smart device after successful verification, and feed back the terminal device IP read instruction to the terminal device; When receiving the terminal device IP reading instruction, the IP of the terminal device is sent to the storage network so that the storage network can verify the IP of the terminal device. When the verification is passed, the SDK of the latest version information corresponding to the third-party smart device is read and sent to the terminal device based on the location information.

[0011] Through the above technical solution, when the identity information verification is passed, only the location information of the SDK corresponding to the latest version of the information can be obtained, and the reading operation cannot be performed. Only when the identity information verification is passed and the terminal device IP is passed, can the reading operation be performed based on the location information, and the SDK corresponding to the latest version of the information can be obtained and fed back to the terminal device, thereby ensuring the security of the SDK and reducing the risk of illegal persons stealing the SDK.

[0012] In a possible implementation, when receiving an add request for adding a third-party smart device to the smart control list, determining the SDK storage version information corresponding to the third-party smart device from the local storage repository includes: When receiving an add request to add a third-party smart device to the smart control list, determining an addable third-party information list from the local storage repository, and matching the third-party smart device with the addable third-party information list; When the match is successful, the SDK storage version information corresponding to the third-party smart device is determined from the local storage repository.

[0013] Through the above technical solution, not all third-party smart devices can be added. Some third-party smart devices that may be incompatible with the system or affect the control of other smart devices in the smart control list cannot be added. Therefore, after receiving the addition request, it is matched in advance through the whitelist list (a list of addable third-party information). Only within the whitelist list can the corresponding version information be stored in the local repository, thereby improving the efficiency of determining the SDK storage version information.

[0014] In a possible implementation, the retrieving and loading the latest version of the SDK information corresponding to the third-party smart device from the storage network includes: Determine the current network bandwidth; Generate a slicing rule according to the network bandwidth, and send the slicing rule to the storage network, so that the storage network performs slicing processing on the SDK of the latest version information corresponding to the third-party smart device based on the slicing rule; A plurality of slice data sent by the storage network is received, and the slice data is integrated to obtain and load the latest version information SDK corresponding to the third-party smart device.

[0015] Through the above technical solution, in the process of obtaining the latest version of the SDK, by detecting the current network bandwidth and generating slicing rules based on the bandwidth, it can ensure that the slice size of the SDK matches the current network conditions, avoiding waste of network resources. At the same time, it also prevents the problem of low transmission efficiency or transmission failure caused by slicing too large or too small, and enhances the reliability of transmission and user experience.

[0016] In a possible implementation, generating a slicing rule according to network bandwidth includes: If the network bandwidth is greater than a first preset bandwidth threshold, determining the slicing rule as no slicing; If the network bandwidth is less than a second preset bandwidth threshold, determining a slicing rule includes: a first slicing size and a non-redundant slicing; Otherwise, determining the slicing rules includes: the second slice size and the redundant slices; The second preset bandwidth threshold is smaller than the first preset bandwidth threshold, and the first slice size is smaller than the second slice size.

[0017] Through the above technical solution, the slice size can be dynamically adjusted according to the network bandwidth to ensure efficient and reliable transmission in different network environments. Moreover, in the case of intermediate-level bandwidth, by adding redundant data to the slice, the fault tolerance and reliability of the transmission can be improved, and the occurrence of transmission failures caused by network problems can be reduced.

[0018] In a possible implementation, the slice data is integrated to obtain the latest version of the SDK corresponding to the third-party smart device, including: Integrate the slice data to obtain an integrated SDK; Performing integrity verification on the integrated SDK; If the verification is successful, it is determined that the integrated SDK is the SDK of the latest version information corresponding to the third-party smart device; If the verification fails, the current network bandwidth is re-determined, and slicing rules are generated according to the network bandwidth, and the slicing rules are sent to the storage network until the verification passes and the SDK of the latest version information corresponding to the third-party smart device is obtained.

[0019] Through the above technical solution, by performing integrity verification on the integrated SDK, it can be ensured that the SDK has not been tampered with or damaged during transmission. If it fails the verification, the current network bandwidth is automatically re-determined, and new slicing rules are generated based on the bandwidth. The operation is repeated until a complete and correctly determined SDK can be obtained to ensure that a valid SDK can be obtained.

[0020] In a second aspect, a terminal device is provided, the terminal device comprising: one or more processors; Memory; One or more applications, wherein one or more applications are stored in a memory and configured to be executed by one or more processors, and one or more programs are configured to: perform operations corresponding to the method shown in any possible implementation of the first aspect.

[0021] In a third aspect, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by a processor to implement a method as shown in any possible implementation of the first aspect.

[0022] According to a fourth aspect, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method shown in any possible implementation manner in the first aspect is implemented.

[0023] In summary, the present application includes at least one of the following beneficial technical effects: 1. When receiving a request to add a third-party smart device, the terminal device first checks the SDK version information in the local storage repository. If the version is consistent with the latest version information, the SDK is directly loaded from the local storage, which avoids the time of obtaining data from the external network and significantly improves the efficiency and speed of device access. If the SDK version stored locally is inconsistent with the latest version, the latest version of the SDK can be automatically retrieved and loaded from the storage network. This dynamic update mechanism ensures that the device always uses the latest and most secure SDK. Then, based on the interface information between the SDK, third-party server, application server and smart control list, the terminal device can integrate the third-party smart device into the smart control list. 2. In the process of obtaining the latest version of the SDK, by detecting the current network bandwidth and generating slicing rules based on the bandwidth, you can ensure that the SDK's slice size matches the current network conditions, avoiding waste of network resources. It also prevents problems such as low transmission efficiency or transmission failure caused by slices that are too large or too small, and enhances transmission reliability and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a structural diagram of a control system of a multi-platform intelligent device provided in an embodiment of the present application; Figure 2 It is a flowchart of a control method of a multi-platform intelligent device provided in an embodiment of the present application; Figure 3 This is a schematic diagram of a process of obtaining an SDK provided in an embodiment of the present application; Figure 4 It is a structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following is combined with Figure 1 To Attachment Figure 4 This application is described in further detail.

[0026] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed, but such modifications are protected by the patent law as long as they are within the scope of the claims of the present application.

[0027] It should be noted that in the optional embodiments of the present application, the object information and other related data involved, when the embodiments in the present application are applied to specific products or technologies, need to obtain the permission or consent of the object, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if the embodiments of the present application involve data related to the object, it needs to be obtained with the authorization and consent of the object, the authorization and consent of the relevant departments, and in compliance with the relevant laws, regulations and standards of the country and region. If personal information is involved in the embodiments, the acquisition of all personal information needs to obtain the consent of the individual. If sensitive information is involved, the separate consent of the information subject needs to be obtained. The embodiments also need to be implemented with the authorization and consent of the object.

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0030] For ease of understanding, the present application provides a control system for a multi-platform intelligent device, including: a terminal device, a storage network, a third-party server, and an application server. Figure 1 ,in: An application software is deployed in the terminal device, and the application software is provided with an intelligent control list, which can control the intelligent device; The storage network stores the SDKs corresponding to each IoT platform, that is, each manufacturer. Whenever there is an SDK version update, the storage network will store the latest version of the SDK; The servers corresponding to each manufacturer are all connected in communication. In the embodiment of the present application, the application server is the application server corresponding to the application software on the terminal device, and the other servers except the server are third servers. For example, all servers include: Xiaomi server, Baidu server, Gree server, and Midea server. If the application software deployed on the terminal device is Xiaomi smart control application, the third-party server is the server except Xiaomi server, which is specifically the server corresponding to the product that the user needs to add.

[0031] The terminal device can achieve: when receiving an addition request to add a third-party smart device to the smart control list, determine the SDK storage version information corresponding to the third-party smart device from the local storage repository, and obtain the latest version information of the SDK corresponding to the third-party smart device; if the storage version information and the latest version information are consistent, retrieve and load the SDK corresponding to the third-party smart device from the local storage repository; if the storage version information and the latest version information are inconsistent, retrieve and load the SDK with the latest version information corresponding to the third-party smart device from the storage network; based on the retrieved SDK corresponding to the third-party smart device, determine the first interface information between the SDK and the third-party server; based on the first interface information, the second interface information and the third interface information, add the third-party smart device to the smart control list, so as to trigger the control instruction through the smart control list to realize the control of the third-party smart device, the second interface information is the interface information between the third-party server and the application server, and the third interface information is the interface information between the application software corresponding to the smart control list and the application server.

[0032] Furthermore, the control system may also include: a blockchain, in which the latest version information is stored.

[0033] Through the above solution, when adding a smart control list, the local repository and storage network can be combined to obtain the latest version of the SDK corresponding to the third-party smart device in a timely manner to effectively ensure effective control of the newly added third-party smart device.

[0034] Specifically, the present application embodiment provides a control method for a multi-platform smart device, such as Figure 2 As shown, the method provided in the embodiment of the present application can be executed by a terminal device, and the terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The embodiment of the present application is not limited thereto. The method includes: S101. When receiving an addition request for adding a third-party smart device to the smart control list, determining the SDK storage version information corresponding to the third-party smart device from the local storage repository, and obtaining the latest version information of the SDK corresponding to the third-party smart device; Specifically, the user actively scans the addable third-party smart devices through the terminal device, or, for a certain area, such as a home area, the user expects to add all third-party smart devices to the smart control list. At this time, the terminal device automatically scans the addable third-party smart devices; after scanning, the relevant information of the third-party smart device and an add operation button for indicating whether to add the device are displayed on the display interface corresponding to the application software of the terminal device. The relevant information includes but is not limited to the device identification, device name, and device image; when the user confirms the addition by clicking the add operation button, a request to add the third-party smart device to the smart control list is automatically generated.

[0035] The local storage repository pre-stores an SDK, which can be included in the application when the application is downloaded, or cached in the local storage repository each time a third-party smart device is added. In addition, the local storage also maintains a first list of information, which records the version information of the stored SDK. As the SDK is updated, there are multiple versions of the SDK from the same manufacturer. The description information of each version may include the SDK name, version number, time, and hash value (the hash value may be generated based on the SDK content, or based on the difference between two adjacent content versions). When the manufacturer's SDK is updated, the server stores the description information in the blockchain to ensure that the SDK stored in the blockchain is the latest version of the latest version of the SDK. The latest version information may specifically be the description information of the version.

[0036] Furthermore, when a request to add a third-party smart device to the smart control list is received, the latest version information of the SDK corresponding to the third-party smart device can also be obtained from the blockchain.

[0037] S102: If the stored version information is consistent with the latest version information, the SDK of the latest version information corresponding to the third-party smart device is retrieved and loaded from the local storage repository; If the stored version information is consistent with the latest version information, it is preferred to retrieve the SDK from the local repository so that the SDK can be quickly obtained to achieve the purpose of adding to the list.

[0038] In the embodiment of the present application, when determining whether the version information is consistent, the judgment can be based only on the version number, or it can be determined based on the hash value generated by the version content, and the user can customize the selection.

[0039] It should be noted that if the judgment of version information consistency is based only on the version number, at this time, although the version information may be consistent, there is a risk that the data may be tampered with during the storage process. Therefore, after retrieving the SDK corresponding to the third-party smart device from the local repository, the SDK can also be verified. When the SDK is first downloaded or updated to the local repository, the checksum (such as MD5 or SHA-256) of the SDK file is calculated. This checksum will be saved and used as a benchmark for subsequent verification. The checksum should be stored with the SDK file or stored in a separate metadata. Furthermore, when it is necessary to verify the integrity of the SDK, the system can quickly find the corresponding checksum and compare it with the checksum of the recalculated SDK file. If the two are the same, the SDK file is considered to be complete. If they are different, it is determined that the SDK file may have been tampered with or damaged during the storage process, and thus the SDK is refused to be loaded, and the SDK corresponding to the latest version of the information of the third-party smart device is retrieved and loaded from the storage network in S103; and the SDK is stored in the local repository.

[0040] S103: If the stored version information is inconsistent with the latest version information, retrieve and load the latest version information SDK corresponding to the third-party smart device from the storage network; The storage network establishes a network connection with the server of the SDK manufacturer and requests to download the latest version of the SDK, so that the latest version of the SDK is stored in the storage network.

[0041] If the stored version information is inconsistent with the latest version information, obtaining the SDK from the storage network can ensure that the latest and most reliable SDK is provided to users.

[0042] S104, determining first interface information between the SDK and the third-party server based on the latest version information of the SDK corresponding to the third-party smart device; S105. Add the third-party smart device to the smart control list based on the first interface information, the second interface information, and the third interface information, so as to trigger the control instruction through the smart control list to control the third-party smart device; The second interface information is the interface information between the third-party server and the application server, and the third interface information is the interface information between the application software corresponding to the intelligent control list and the application server.

[0043] The SDK is developed by the manufacturer corresponding to the third-party smart device. The third-party smart device can be controlled through the SDK. Furthermore, the third-party device can be added to the smart control list through the first interface corresponding to the first interface information, the second interface corresponding to the second interface information, and the third interface corresponding to the third interface information.

[0044] Furthermore, when the terminal device detects a control instruction for a third-party smart device in the smart device list, a control message is sent to the corresponding third-party server through the SDK corresponding to the third-party smart device, so that the third-party server controls the third-party smart device based on the control message.

[0045] It can be seen that in the embodiment of the present application, when a request to add a third-party smart device is received, the terminal device first checks the SDK version information in the local repository. If the version is consistent with the latest version information, the SDK is directly loaded from the local, avoiding the time of obtaining data from the external network, and significantly improving the efficiency and speed of device access; if the locally stored SDK version is inconsistent with the latest version, the latest version of the SDK can be automatically retrieved and loaded from the storage network. This dynamic update mechanism ensures that the device always uses the latest and most secure SDK. Furthermore, based on the interface information between the SDK, third-party server, application server and smart control list, the terminal device can integrate the third-party smart device into the smart control list.

[0046] A possible implementation of the embodiment of the present application, S103, retrieves the latest version of the SDK corresponding to the third-party smart device from the storage network, including: Sa1-Sa2 (not shown in the drawings), wherein: Sa1. Generate a retrieval request based on the user's identity information and the latest version of the information corresponding to the third-party smart device, so that the storage network can verify the retrieval request, and read and send the latest version of the SDK information corresponding to the third-party smart device to the terminal device after the verification is successful; Among them, in one feasible solution, the terminal device generates a retrieval request based on the user identity information and the latest version information corresponding to the third-party smart device. After receiving the retrieval request, the storage network verifies the user identity information, specifically the user ID and password. After successful verification, the user is considered to have the authority to obtain the SDK. Furthermore, in order to ensure security, after the identity information is successfully verified, a second verification can be performed based on the set blacklist ID. The verification is considered successful only if the ID is not on the blacklist ID.

[0047] In another possible solution: see Figure 3 , based on the user's identity information and the latest version information corresponding to the third-party smart device, generate a call request so that the storage network can verify the call request, and after successful verification, read and send the latest version information SDK corresponding to the third-party smart device to the terminal device, including: Generate a retrieval request based on the user's identity information and the latest version information corresponding to the third-party smart device, so that the storage network can verify the authority based on the user's identity information, determine the location information corresponding to the latest version information of the third-party smart device after successful verification, and feedback the terminal device IP read instruction to the terminal device; When receiving the terminal device IP reading instruction, the IP of the terminal device is sent to the storage network so that the storage network can verify the IP of the terminal device. When the verification is passed, the SDK of the latest version information corresponding to the third-party smart device is read and sent to the terminal device based on the location information.

[0048] Specifically, after the storage network fails to verify the user's identity information, it will feedback the call rejection information; after the storage network successfully verifies the user's identity information, generally, a certain user corresponds to a certain number of terminal devices, which all have corresponding IPs, and these IPs are safe IPs; however, there may be illegal users who have stolen the identity information to perform SDK reading operations. Therefore, the storage network obtains the IP of the terminal device and matches the IP of the terminal device with the safe IP. When the match is successful, it means that the verification is passed. When the match fails, the call rejection information can be fed back, and secondary verification can also be performed, such as user mobile phone number verification. It can be seen that in the embodiment of the present application, when the identity information is verified, only the location information of the SDK corresponding to the latest version of the information can be obtained, and the reading operation cannot be performed. Only when the identity information verification is passed and the terminal device IP is passed, can the reading operation be performed based on the location information, the SDK corresponding to the latest version of the information can be obtained and the value of the terminal device can be fed back, which ensures the security of the SDK and reduces the risk of illegal personnel stealing the SDK.

[0049] Sa2. Obtain and load the latest version of the SDK corresponding to the third-party smart device.

[0050] In the embodiment of the present application, the storage network is provided with a verification mechanism, and the terminal device can obtain the SDK only after the retrieval request based on the identity information is verified, thereby ensuring the security of the SDK and reducing the risk of illegal persons stealing the SDK.

[0051] A possible implementation of the embodiment of the present application, S101, when receiving an addition request for adding a third-party smart device to the smart control list, determining SDK storage version information corresponding to the third-party smart device from a local storage repository, includes: When receiving an add request to add a third-party smart device to the smart control list, determining an addable third-party information list from the local storage repository, and matching the third-party smart device with the addable third-party information list; When the match is successful, the SDK storage version information corresponding to the third-party smart device is determined from the local repository.

[0052] In an embodiment of the present application, not all third-party smart devices can be added to the smart control list. A third-party information list can be added by storing an addable whitelist in the local repository. When a third-party smart device is in the addable third-party information list, it means that the local repository may record the SDK storage version information corresponding to the third-party smart device. Otherwise, the device is not allowed to be added to the smart control class table, and the corresponding information will not be recorded in the local repository.

[0053] It can be seen that in the embodiment of the present application, not all third-party smart devices can be added. Some third-party smart devices that may be incompatible with the system or affect the control of other smart devices in the smart control list cannot be added. Therefore, after receiving the addition request, it is matched in advance through the whitelist list (a list of addable third-party information). Only within the whitelist list can the corresponding version information be stored in the local repository, thereby improving the efficiency of determining the SDK storage version information.

[0054] A possible implementation of the embodiment of the present application, S103, retrieves and loads the latest version of the SDK information corresponding to the third-party smart device from the storage network, including: Sc1-Sc3 (not shown in the drawings), wherein: Sc1. Determine the current network bandwidth; Use speed test software or websites such as Speedtest to measure bandwidth to get the current network bandwidth.

[0055] If the network bandwidth is low and the network conditions are poor, the entire transmission may fail or the content may be damaged. Sc2. Generate slicing rules according to the network bandwidth, and send the slicing rules to the storage network, so that the storage network slices the SDK of the latest version of the information corresponding to the third-party smart device based on the slicing rules; Specifically, the slicing rules are generated according to the network bandwidth, including: if the network bandwidth is greater than the first preset bandwidth threshold, the slicing rule is determined to be no slicing; if the network bandwidth is less than the second preset bandwidth threshold, the slicing rules are determined to include: the first slicing size and non-redundant slicing; otherwise, the slicing rules are determined to include: the second slicing size and redundant slicing.

[0056] The second preset bandwidth threshold is smaller than the first preset bandwidth threshold, and the two thresholds can be set by the user according to experience; the first slice size is smaller than the second slice size, and the two slice sizes can be set by the user according to experience.

[0057] When the detected network bandwidth is greater than a preset higher bandwidth threshold (the first preset bandwidth threshold), it indicates that the current network environment is good and the transmission speed is fast, and there is no need to slice the SDK, that is, the complete SDK file is directly transmitted.

[0058] When the detected network bandwidth is less than a preset lower bandwidth threshold (the second preset bandwidth threshold), it means that the current network environment is poor and the transmission speed is slow. The SDK needs to be sliced ​​to improve the transmission efficiency and success rate. At this time, a smaller slice size (the first slice size) is set to adapt to the poor network environment to ensure that each slice can be transmitted within a reasonable time. Since the network bandwidth is prioritized, redundant data is not added to the slice to save bandwidth resources. When the network bandwidth is between the two thresholds, it means that the network environment is medium. Although very small slices are not required like in a low-bandwidth environment, a slightly higher slice size (the second slice size) can be set to ensure transmission efficiency without causing transmission failure due to excessively large slices. In addition, in order to improve the fault tolerance and reliability of transmission to a certain extent, redundant data such as checksums and repeated data blocks can be added.

[0059] It can be seen that the embodiment of the present application can dynamically adjust the slice size according to the network bandwidth to ensure efficient and reliable transmission in different network environments. Moreover, in the case of intermediate-level bandwidth, by adding redundant data to the slice, the fault tolerance and reliability of the transmission can be improved, and the occurrence of transmission failures caused by network problems can be reduced.

[0060] Sc3. Receive multiple slice data sent by the storage network, integrate the slice data, obtain and load the latest version information SDK corresponding to the third-party smart device.

[0061] After receiving multiple slice data sent by the storage network, the terminal device sorts and integrates the slice data in sequence to obtain the latest version information SDK corresponding to the third-party smart device.

[0062] Furthermore, before sorting, each slice data can be verified using checksum, signature and size to ensure the integrity and correctness of the data. Integration will only be performed after the verification is passed.

[0063] Furthermore, the slice data is integrated to obtain the latest version of the SDK corresponding to the third-party smart device, including: integrating the slice data to obtain the integrated SDK; verifying the integrity of the integrated SDK; if the verification is passed, determining that the integrated SDK is the SDK for the latest version of the information corresponding to the third-party smart device; if the verification is not passed, re-determining the current network bandwidth, and generating slicing rules based on the network bandwidth, and sending the slicing rules to the storage network until the verification is passed and the SDK for the latest version of the information corresponding to the third-party smart device is obtained. Specifically, after the slice data is integrated, integrity verification is performed, such as determining a hash value based on the integrated SDK, and matching it with the hash value in the latest version of the information. When they are consistent, it is determined that the verification has passed. If they are inconsistent, it indicates that there is a problem in the transmission process, and the current network bandwidth is re-determined and re-transmitted, integrated, and verified until the verification is passed and the SDK for the latest version of the information corresponding to the third-party smart device is obtained, so that an accurate SDK can be obtained.

[0064] By performing integrity verification on the integrated SDK, we can ensure that the SDK has not been tampered with or damaged during transmission. If it fails the verification, the current network bandwidth will be automatically re-determined, and new slicing rules will be generated based on the bandwidth. The operation will be repeated until a complete and correct SDK can be obtained to ensure that a valid SDK can be obtained.

[0065] It can be seen that in the embodiment of the present application, by detecting the current network bandwidth and generating slicing rules based on the bandwidth, it can ensure that the slice size of the SDK matches the current network conditions, avoiding waste of network resources, while also preventing problems such as low transmission efficiency or transmission failure caused by slicing that is too large or too small, and enhancing transmission reliability and user experience.

[0066] In an embodiment of the present application, a terminal device is provided, such as Figure 4 As shown, Figure 4The terminal device 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the terminal device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the terminal device 300 does not constitute a limitation on the embodiments of the present application.

[0067] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0068] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (PerIPheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0069] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0070] The memory 303 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the contents shown in the above method embodiment.

[0071] The terminal devices include but are not limited to: mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0072] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.

[0073] An embodiment of the present application provides a computer program product, including a computer program, which implements the corresponding contents of the aforementioned method embodiment when executed by a processor.

[0074] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0075] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A control method for a multi-platform intelligent device, characterized in that: Applied to a terminal device, the control method includes: When receiving an addition request for adding a third-party smart device to the smart control list, determining the SDK storage version information corresponding to the third-party smart device from the local storage repository, and obtaining the latest version information of the SDK corresponding to the third-party smart device; If the stored version information is consistent with the latest version information, the SDK of the latest version information corresponding to the third-party smart device is retrieved and loaded from the local storage repository; If the stored version information is inconsistent with the latest version information, the SDK of the latest version information corresponding to the third-party smart device is retrieved and loaded from the storage network; Determine first interface information between the SDK and the third-party server based on the latest version information of the SDK corresponding to the third-party smart device; Based on the first interface information, the second interface information and the third interface information, the third-party smart device is added to the smart control list, so as to trigger a control instruction through the smart control list to control the third-party smart device; The second interface information is interface information between a third-party server and an application server, and the third interface information is interface information between the application software corresponding to the smart control list and the application server.

2. The method according to claim 1, characterized in that The SDK for retrieving and loading the latest version information corresponding to the third-party smart device from the storage network includes: Generate a retrieval request based on the user's identity information and the latest version information corresponding to the third-party smart device, so that the storage network can verify the retrieval request, and read and send the SDK of the latest version information corresponding to the third-party smart device to the terminal device after successful verification; Obtain and load the latest version of the SDK corresponding to the third-party smart device.

3. The method according to claim 2, characterized in that The method of generating a call request according to the user's identity information and the latest version information corresponding to the third-party smart device so that the storage network can verify the call request, and reading and sending the SDK of the latest version information corresponding to the third-party smart device to the terminal device after successful verification includes: Generate a retrieval request based on the user's identity information and the latest version information corresponding to the third-party smart device, so that the storage network can perform permission verification based on the user's identity information, determine the location information corresponding to the latest version information corresponding to the third-party smart device after successful verification, and feed back the terminal device IP read instruction to the terminal device; When receiving the terminal device IP reading instruction, the IP of the terminal device is sent to the storage network so that the storage network can verify the IP of the terminal device. When the verification is passed, the SDK of the latest version information corresponding to the third-party smart device is read and sent to the terminal device based on the location information.

4. The method according to claim 1, characterized in that: When receiving an addition request for adding a third-party smart device to the smart control list, determining the SDK storage version information corresponding to the third-party smart device from the local storage repository includes: When receiving an add request to add a third-party smart device to the smart control list, determining an addable third-party information list from the local storage repository, and matching the third-party smart device with the addable third-party information list; When the match is successful, the SDK storage version information corresponding to the third-party smart device is determined from the local storage repository.

5. The method according to any one of claims 1 to 4, characterized in that: The SDK for retrieving and loading the latest version information corresponding to the third-party smart device from the storage network includes: Determine the current network bandwidth; Generate a slicing rule according to the network bandwidth, and send the slicing rule to the storage network, so that the storage network performs slicing processing on the SDK of the latest version information corresponding to the third-party smart device based on the slicing rule; A plurality of slice data sent by the storage network is received, and the slice data is integrated to obtain and load the latest version information SDK corresponding to the third-party smart device.

6. The method according to claim 5, characterized in that The generating of the slicing rules according to the network bandwidth includes: If the network bandwidth is greater than a first preset bandwidth threshold, determining the slicing rule as no slicing; If the network bandwidth is less than a second preset bandwidth threshold, determining a slicing rule includes: a first slicing size and a non-redundant slicing; Otherwise, determining the slicing rules includes: the second slice size and the redundant slices; The second preset bandwidth threshold is smaller than the first preset bandwidth threshold, and the first slice size is smaller than the second slice size.

7. The method according to claim 5, characterized in that The slice data is integrated to obtain the latest version of the SDK corresponding to the third-party smart device, including: Integrate the slice data to obtain an integrated SDK; Performing integrity verification on the integrated SDK; If the verification is successful, it is determined that the integrated SDK is the SDK of the latest version information corresponding to the third-party smart device; If the verification fails, the current network bandwidth is re-determined, and slicing rules are generated according to the network bandwidth, and the slicing rules are sent to the storage network until the verification passes and the SDK of the latest version information corresponding to the third-party smart device is obtained.

8. A terminal device, characterized in that: It includes: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to: perform the steps of the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the steps of the method described in any one of claims 1 to 7.

10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Caching and interaction method and system for dynamic data of terminal, terminal and computer readable medium

    CN107301051A

  • Method and device for adding intelligent equipment, and storage medium

    CN108768803A

  • Intelligent equipment control method and system

    CN110489149A