Communication control method and system based on Internet of Things, and storage medium
By extracting data keywords and evaluating communication links in the Internet of Things system, and selecting stable and secure communication links for data transmission, the stability and security of IoT data transmission problems are solved, and the stable and secure transmission of data is achieved.
Patent Information
- Application Number
- CN202510140311.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2025-05-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The stability and security of data transmission in existing Internet of Things technology have not been effectively guaranteed, resulting in unstable data transmission and high security risks.
By extracting the data to be transmitted in the Internet of Things system, determining the target keyword, the stability and security of the communication link between the electronic device and the target Internet of Things device are evaluated according to the Internet of Things system, and the best communication link is selected for data transmission.
The stable and secure data transmission is achieved, ensuring that the stability and security of the channel during transmission meet the data characteristics requirements.
Smart Images

Figure CN119996470A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things technology or computer technology, and specifically to a communication control method, system and storage medium based on the Internet of Things. Background Art
[0002] With the rapid development of network technology, the application of Internet of Things is becoming more and more popular. The Internet of Things realizes the interconnection of things, that is, different electronic devices (such as mobile phones, tablets, etc.) follow various communication protocols to communicate and connect, and then we can get the Internet of Things.
[0003] At present, the data transmission method of the Internet of Things is relatively simple, and the stability and security of data transmission are not considered. Therefore, the problem of how to achieve stable and secure data transmission needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a communication control method, system and storage medium based on the Internet of Things, which can achieve stable and secure data transmission.
[0005] In a first aspect, an embodiment of the present application provides a communication control method based on the Internet of Things, which is applied to an electronic device, wherein the electronic device is applied to an Internet of Things system, wherein the Internet of Things system includes the electronic device and n Internet of Things devices; n is an integer greater than 1; the method includes:
[0006] When sending the first data to the target IoT device, performing keyword extraction on the first data to obtain a target keyword; the target IoT device is any IoT device among the n IoT devices;
[0007] When the target keyword meets a preset condition, determining a communication link between the electronic device and the target Internet of Things device according to the Internet of Things system to obtain m communication links, where m is a positive integer;
[0008] Determining a stability evaluation value and a security evaluation value of each of the m communication links to obtain m stability evaluation values and m security evaluation values;
[0009] Determining a target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword;
[0010] The first data is transmitted through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link.
[0011] In a second aspect, an embodiment of the present application provides a communication control system based on the Internet of Things, which is applied to an electronic device, wherein the electronic device is applied to an Internet of Things system, wherein the Internet of Things system includes the electronic device and n Internet of Things devices; n is an integer greater than 1; the communication control system based on the Internet of Things includes:
[0012] an extraction unit, configured to extract keywords from the first data to obtain target keywords when sending the first data to a target IoT device; the target IoT device is any IoT device among the n IoT devices;
[0013] a determination unit, configured to determine, when the target keyword satisfies a preset condition, a communication link between the electronic device and the target IoT device according to the IoT system, to obtain m communication links, where m is a positive integer; determine a stability evaluation value and a security evaluation value of each of the m communication links, to obtain m stability evaluation values and m security evaluation values; and determine a target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword;
[0014] A transmission unit is used to transmit the first data through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0018] The implementation of the embodiments of the present application has the following beneficial effects:
[0019] It can be seen that the communication control method, system and storage medium based on the Internet of Things described in the embodiments of the present application are applied to electronic devices, and the electronic devices are applied to the Internet of Things system. The Internet of Things system includes the electronic device and n Internet of Things devices; n is an integer greater than 1, and when the first data is sent to the target Internet of Things device, the first data is keyword extracted to obtain the target keyword; the target Internet of Things device is any one of the n Internet of Things devices. When the target keyword meets the preset conditions, the communication link between the electronic device and the target Internet of Things device is determined according to the Internet of Things system to obtain m communication links, where m is a positive integer, and the stability evaluation value and security evaluation value of each of the m communication links are determined to obtain m stability evaluation values and m security evaluation values, and according to the m stability evaluation values , m security evaluation values and target keywords determine the target communication link corresponding to the first data, and the first data is transmitted through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link. When the target keyword meets the preset conditions, it means that the transmission of the first data requires certain security and stability requirements, and then the corresponding m communication links can be determined, and then the corresponding stability evaluation value and security evaluation value of each communication link can be determined. The stability evaluation value reflects the channel stability, the security evaluation value reflects the channel security, and the target keyword reflects the data characteristics. The best channel stability and channel security and the communication channel corresponding to the data characteristics can be selected, so that the transmission effect depth meets the channel characteristics and data requirements, thereby achieving stable and secure data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a flow chart of a communication control method based on the Internet of Things provided in an embodiment of the present application;
[0022] Figure 2 It is a structural diagram of an Internet of Things system provided by an embodiment of the present application;
[0023] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0024] Figure 4 It is a block diagram of the functional units of a communication control system based on the Internet of Things provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but in a possible example also includes steps or units that are not listed, or in a possible example also includes other steps or units inherent to these processes, methods, products or devices.
[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] In order to enable those skilled in the art to better understand the solution of the present application, 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 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 ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The Internet of Things devices and electronic devices involved in the embodiments of the present application may include various devices with communication functions. The Internet of Things devices may include but are not limited to: smart switches, smart switches, smart robots, vehicle-mounted devices, smart gateways, smart routers, smart vehicles, smart driving recorders, smart phones, wearable devices, computing devices, smart sensors, tablets, smart home devices or other processing devices connected to wireless modems, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices (terminal devices), etc., without limitation here. The Internet of Things devices can also be servers.
[0029] Among them, smart home devices may include at least one of the following: smart refrigerator, smart massage chair, smart washing machine, smart TV, smart toilet, smart projector, smart rice cooker, smart socket, smart desk lamp, etc., which are limited here.
[0030] See also Figure 1 , Figure 11 is a flow chart of a communication control method based on the Internet of Things provided by an embodiment of the present application. As shown in the figure, it is applied to an electronic device, and the electronic device is applied to an Internet of Things system. The Internet of Things system includes the electronic device and n Internet of Things devices; n is an integer greater than 1; the communication control method based on the Internet of Things includes:
[0031] 101. When sending first data to a target IoT device, perform keyword extraction on the first data to obtain a target keyword; the target IoT device is any IoT device among the n IoT devices.
[0032] The first data may include at least one of the following: a message, an instruction, a file, a compressed package, a video, an image, sensor data, text data, etc., which is not limited here.
[0033] The memory size of the first data may be within a preset memory size range, and the preset memory size range may be pre-set or system default.
[0034] In the present application embodiment, Figure 2 As shown, the Internet of Things system may include an electronic device and n Internet of Things devices, and a communication connection may be established between the electronic device and the n Internet of Things devices, where n is an integer greater than 1.
[0035] In a specific implementation, taking the target IoT device as an example, the target IoT device is any IoT device among the n IoT devices. When sending the first data to the target IoT device, the first data may be subjected to keyword extraction to obtain a target keyword. For example, the data content or data attribute information of the first data may be subjected to keyword extraction to obtain a target keyword. The target keyword may include one or more keywords. The keyword may include at least one of the following: a phrase, an English word, a character string, a pattern, etc., which are not limited here. The keyword may be used to reflect the characteristics of the first data.
[0036] 102. When the target keyword meets a preset condition, determine the communication link between the electronic device and the target IoT device according to the IoT system to obtain m communication links, where m is a positive integer.
[0037] The preset condition may be preset or set by system default. For example, if the target keyword exists in a preset keyword library, it means that the target keyword meets the preset condition. The preset keyword library may pre-store at least one keyword.
[0038] In a specific implementation, when the target keyword meets the preset conditions, it means that the transmission of the first data requires certain security and stability requirements. Furthermore, different keywords may correspond to different numbers of nodes. For example, a mapping relationship between preset keywords and node numbers may be pre-stored. Then, the target number of nodes corresponding to the target keyword may be determined based on the mapping relationship. That is, the communication link between the electronic device and the target Internet of Things device may be determined according to the Internet of Things system based on the target number of nodes to obtain m communication links, where m is a positive integer, i.e., the number of nodes in each of the m communication links is the same as the target number of nodes.
[0039] In a specific implementation, the communication link between the electronic device and the target IoT device can be determined based on a path planning algorithm, multiple communication links can be obtained, and these communication links can be preliminarily screened, thereby preliminarily ensuring the channel quality.
[0040] Among them, each node in the number of nodes can be understood as a device in an Internet of Things system, and each device can be regarded as a node.
[0041] 103. Determine a stability evaluation value and a security evaluation value of each of the m communication links to obtain m stability evaluation values and m security evaluation values.
[0042] In a specific implementation, a stability test may be performed on each of the m communication links to obtain corresponding m stability evaluation values. Correspondingly, a security test may be performed on each of the m communication links to obtain corresponding m security evaluation values.
[0043] Of course, taking any communication link among the m communication links as an example, the channel parameters of the communication link can be obtained to obtain k channel parameters, and channel parameters related to stability are selected from the k channel parameters to obtain b channel parameters. Correspondingly, channel parameters related to security are selected from the k channel parameters to obtain c channel parameters, where b and c are both integers less than or equal to k. Further, the b channel parameters can be used to evaluate channel stability to obtain corresponding stability evaluation values, and correspondingly, the c channel parameters can be used to evaluate channel security to obtain corresponding security evaluation values.
[0044] Among them, the channel parameters can be used to reflect the characteristics of the communication link, and the channel parameters may include at least one of the following: transmission rate, bandwidth, packet loss rate, delay, etc., which are not limited here.
[0045] 104. Determine a target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword.
[0046] In the specific implementation, the stability evaluation value reflects the channel stability, the security evaluation value reflects the channel security, and the target keyword reflects the data characteristics. Furthermore, the target communication link corresponding to the first data can be determined based on the m stability evaluation values, m security evaluation values and the target keyword. In this way, the optimal channel stability and channel security as well as the communication channel corresponding to the data characteristics can be selected.
[0047] 105. Transmit the first data through the target communication link according to a target stability evaluation value and a target security evaluation value corresponding to the target communication link.
[0048] In a specific implementation, the first data can be transmitted through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link, so that the transmission effect depth conforms to the channel characteristics and data requirements, thereby achieving stable and secure data transmission.
[0049] Optionally, the above step 104, determining the target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword, may include the following steps:
[0050] Obtaining a reference stability evaluation value and a reference security evaluation value corresponding to the target keyword;
[0051] Determine the stability evaluation values of the m stability evaluation values that are greater than or equal to the reference stability evaluation value, to obtain p stability evaluation values, where p is a natural number less than or equal to m;
[0052] Determine the m security evaluation values that are greater than or equal to the reference security evaluation value, and obtain q stability evaluation values, where q is a natural number less than or equal to m;
[0053] Determine the communication links corresponding to the p stability evaluation values to obtain p communication links;
[0054] Determine the communication links corresponding to the q stability evaluation values to obtain q communication links;
[0055] Determining an intersection between the p communication links and the q communication links;
[0056] There are a communication links in the intersection, and the target communication link is determined according to the a communication links, where a is a natural number;
[0057] When the intersection is an empty set, determining the deviation between each stability evaluation value of the m stability evaluation values and the reference stability evaluation value to obtain m first deviations;
[0058] Determine the degree of deviation between each of the m safety evaluation values and the reference safety evaluation value to obtain m second degrees of deviation;
[0059] Determining a first weight pair corresponding to the target keyword;
[0060] Performing a weighted operation on the m first deviations, the m second deviations and the first weight pair to obtain m first target deviations;
[0061] Determine the absolute value of each deviation in the first target deviation to obtain m absolute values;
[0062] A minimum value among the m absolute values is selected to obtain a first absolute value, and a communication link corresponding to the first absolute value is used as the target communication link.
[0063] In a specific implementation, different keywords require different stability and security. The mapping relationship between preset keywords and stability evaluation values can be pre-stored, and then the reference stability evaluation value corresponding to the target keyword can be determined based on the mapping relationship. In addition, the mapping relationship between preset keywords and security evaluation values can be pre-stored, and then the reference security evaluation value corresponding to the target keyword can be determined based on the mapping relationship. That is, the keywords reflect the characteristics of the data, and also reflect the sending requirements of the data itself. For example, private data requires security and stability, thereby avoiding data loss and preventing data leakage.
[0064] Among them, if the stability evaluation value is greater than or equal to the reference stability evaluation value, it means that the channel stability meets the requirements of the first data. Correspondingly, if the security evaluation value is greater than or equal to the reference security evaluation value, it means that the channel security meets the requirements of the first data.
[0065] Next, m stability evaluation values greater than or equal to the reference stability evaluation value can be determined to obtain p stability evaluation values, where p is a natural number less than or equal to m. Correspondingly, m security evaluation values greater than or equal to the reference security evaluation value can be determined to obtain q stability evaluation values, where q is a natural number less than or equal to m. Communication links corresponding to the p stability evaluation values can be determined to obtain p communication links. Communication links corresponding to the q stability evaluation values can be determined to obtain q communication links. In addition, the intersection between the p communication links and the q communication links can be determined, and the intersection reflects that both the security and stability of the channel meet the requirements of the first data.
[0066] Specifically, there are a communication links in the intersection, and the target communication link is determined based on the a communication links, where a is a natural number, that is, the security and stability of each of the a communication links meet the requirements of the first data. For example, one of the a communication links can be selected as the target communication link.
[0067] Specifically, when the intersection is an empty set, it means that there is no communication link whose security and stability meet the requirements of the first data. Then, the deviation between each stability evaluation value in the m stability evaluation values and the reference stability evaluation value can be determined to obtain m first deviations. The first deviation = (stability evaluation value - reference stability evaluation value) / reference stability evaluation value. The first deviation reflects the degree of deviation between the actual channel stability and the channel stability required by the first data. The first deviation reflects not only the direction of the deviation of the stability, but also the magnitude of the deviation of the stability. Correspondingly, the deviation between each security evaluation value in the m security evaluation values and the reference security evaluation value can also be determined to obtain m second deviations. The second deviation = (security evaluation value - reference security evaluation value) / reference security evaluation value. The second deviation reflects the degree of deviation between the actual channel security and the channel security required by the first data. The second deviation reflects not only the direction of the deviation of the security, but also the magnitude of the deviation of the security.
[0068] Next, the mapping relationship between preset keywords and weight pairs can be stored in advance, and then the first weight pair corresponding to the target keyword can be determined based on the mapping relationship. The weight pair can include two weights, the sum of the two weights is 1, and the two weights correspond to the weights of the stability dimension and the security dimension respectively. Different keywords have different requirements for stability and security. In this way, the corresponding weights corresponding to stability and security can be adapted based on the actual situation of the keyword.
[0069] Furthermore, a weighted operation can be performed based on the m first deviations, the m second deviations and the first weight pair to obtain m first target deviations. For example, the first weight pair includes the first weight and the second weight, and the first target deviation = first weight * first deviation * second weight * second deviation. Then, the absolute value of each of the m first target deviations can be determined to obtain m absolute values, and then the minimum value of the m absolute values is selected to obtain the first absolute value. The communication link corresponding to the first absolute value is used as the target communication link. That is, when there is no communication link whose security and stability meet the requirements of the first data, the best communication link can be selected based on the degree of deviation between the security and stability and the security and stability required by the first data. In this way, the deep matching of the communication link and the data characteristics can be guaranteed to the greatest extent, thereby achieving stable and secure data transmission.
[0070] Optionally, the above step of determining the first weight pair corresponding to the target keyword may include the following steps:
[0071] Determine a reference weight pair corresponding to the target keyword, the reference weight pair comprising a first weight and a second weight, the sum of the first weight and the second weight being 1;
[0072] Determining a first standard deviation of the m stability evaluation values;
[0073] Determining a second standard deviation of the m safety evaluation values;
[0074] determining a target normalized deviation between the first standard deviation and the second standard deviation;
[0075] Determining a first fine-tuning parameter of a normalized deviation from the target;
[0076] Fine-tune the first weight according to the first fine-tuning parameter to obtain a target first weight;
[0077] Determine a target second weight according to the target first weight;
[0078] The first weight pair is determined according to the target first weight and the target second weight.
[0079] In a specific implementation, a mapping relationship between preset keywords and weight pairs can be stored in advance, and then a reference weight pair corresponding to the target keyword can be determined based on the mapping relationship. The weight pair can include two weights, the sum of which is 1, and the two weights correspond to the weights of the stability dimension and the security dimension, respectively. Different keywords have different requirements for stability and security, so the corresponding weights for stability and security can be adapted based on the actual situation of the keyword.
[0080] The reference weight pair may include a first weight and a second weight, and the sum of the first weight and the second weight is 1.
[0081] In a specific implementation, a standard deviation operation can be performed on the m stability evaluation values to obtain a first standard deviation. The first standard deviation reflects, to a certain extent, the degree of performance fluctuation between the electronic device in the Internet of Things system and the target Internet of Things device from the aspect of stability. Correspondingly, a standard deviation operation can be performed on the m security evaluation values to obtain a second standard deviation. The second standard deviation reflects, to a certain extent, the degree of performance fluctuation between the electronic device in the Internet of Things system and the target Internet of Things device from the aspect of security.
[0082] Then, the target normalized deviation between the first standard deviation and the second standard deviation can be determined, that is, the target normalized deviation = (first standard deviation - second standard deviation) / (first standard deviation + second standard deviation), and the target normalized deviation reflects the mutual influence between the stability dimension and the security dimension corresponding to the communication link between the electronic device and the target IoT device in the IoT system. Furthermore, the mapping relationship between the preset normalized deviation and the fine-tuning parameter can be pre-stored, and the first fine-tuning parameter with the target normalized deviation can be determined based on the mapping relationship, and then the first weight can be fine-tuned according to the first fine-tuning parameter to obtain the target first weight, that is, the target first weight = (1 + first fine-tuning parameter) * first weight, and then the target second weight is determined according to the target first weight, that is, the target second weight = 1-target first weight, and the first weight pair is determined according to the target first weight and the target second weight. In this way, the weight pair can be dynamically optimized based on the integrity of the IoT system, considering the mutual influence between the stability dimension and the security dimension corresponding to the communication link between the electronic device and the target IoT device in the IoT system, so that the weight pair not only conforms to the data characteristics, but also has a deep correlation with the network characteristics of the actual IoT system.
[0083] Optionally, the above step of determining the target communication link according to the a communication link may include the following steps:
[0084] When a=1, the a communication links are used as the target communication links;
[0085] When a is greater than 1, the stability evaluation values and security evaluation values corresponding to the a communication links are obtained to obtain a stability evaluation values and a security evaluation values;
[0086] Determine the deviation between each stability evaluation value of the a stability evaluation values and the reference stability evaluation value to obtain a first deviations;
[0087] Determine the degree of deviation between each of the a safety evaluation values and the reference safety evaluation value to obtain a second degree of deviation;
[0088] Determining a second weight pair corresponding to the target keyword;
[0089] Performing a weighted operation on the a first deviations, the a second deviations and the second weight pair to obtain a second target deviations;
[0090] Determine the absolute value of each of the a second target deviations to obtain a absolute values;
[0091] The minimum value among the a absolute values is selected to obtain a second absolute value, and the communication link corresponding to the second absolute value is used as the target communication link.
[0092] In a specific implementation, when a=1, it means that only one communication link meets the stability and security requirements of the first data, and it can be used as the target communication link.
[0093] Correspondingly, when a is greater than 1, it means that more than one communication link meets the stability and security requirements of the first data, and it is necessary to select the best communication link from the a communication links.
[0094] Specifically, the stability evaluation value and security evaluation value corresponding to a communication links can be obtained to obtain a stability evaluation values and a security evaluation values, and then the deviation between each of the a stability evaluation values and the reference stability evaluation value can be determined to obtain a first deviations. The first deviation = (stability evaluation value - reference stability evaluation value) / reference stability evaluation value. The first deviation reflects the degree of deviation between the actual channel stability and the channel stability required by the first data. The first deviation reflects not only the direction of the stability deviation, but also the size of the stability deviation.
[0095] Next, determine the deviation between each of the a security evaluation values and the reference security evaluation value to obtain a second deviation, where the second deviation = (security evaluation value - reference security evaluation value) / reference security evaluation value. The second deviation reflects the degree of deviation between the actual channel security and the channel security required by the first data. The second deviation reflects not only the direction of the security deviation, but also the size of the security deviation.
[0096] Next, the mapping relationship between the preset keywords and the weight pair can be stored in advance, and then the second weight pair corresponding to the target keyword can be determined based on the mapping relationship. The weight pair can include two weights, the sum of the two weights is 1, and the two weights correspond to the weights of the stability dimension and the security dimension respectively. Different keywords have different requirements for stability and security. In this way, the corresponding weights corresponding to stability and security can be adapted based on the actual situation of the keyword.
[0097] Furthermore, a weighted operation can be performed based on a first deviations, a second deviations and a second weight pair to obtain a second target deviations. For example, the second weight pair includes the first weight and the second weight, and the second target deviation = first weight * first deviation * second weight * second deviation. Then, the absolute value of each of the a second target deviations can be determined to obtain a absolute values, and then the minimum value of the a absolute values is selected to obtain the second absolute value. The communication link corresponding to the second absolute value is used as the target communication link. That is, when there are multiple communication links whose security and stability meet the requirements of the first data, the best communication link can be selected based on the degree of deviation between the security and stability and the security and stability required by the first data. In this way, the deep matching of the communication link and the data characteristics can be guaranteed to the greatest extent, thereby achieving stable and secure data transmission.
[0098] Optionally, the above step 105, transmitting the first data through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link, may include the following steps:
[0099] When the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is greater than or equal to the reference security evaluation value, transmitting the first data through the target communication link according to a first data transmission control parameter and a second data transmission control parameter; the first data transmission control parameter is a data transmission control parameter related to data transmission stability, and the second data transmission control parameter is a data transmission control parameter related to data transmission security;
[0100] When the target stability evaluation value is less than the reference stability evaluation value and the target safety evaluation value is greater than or equal to the reference safety evaluation value, obtaining a target first deviation corresponding to the target stability evaluation value, determining a third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and transmitting the first data through the target communication link according to the third data transmission control parameter and the second data transmission control parameter;
[0101] When the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, obtaining a target second deviation corresponding to the target security evaluation value, determining a first encryption algorithm corresponding to the second data transmission control parameter, and determining a first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation, encrypting the first data according to the first encryption algorithm and the first algorithm control parameter, and transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter;
[0102] When the target stability evaluation value is less than the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, the steps of obtaining the target first deviation corresponding to the target stability evaluation value, determining the third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and obtaining the target second deviation corresponding to the target security evaluation value, determining the first encryption algorithm corresponding to the second data transmission control parameter, and determining the first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation are performed, the first data is encrypting according to the first encryption algorithm and the first algorithm control parameter, the encrypted first data is transmitted according to the first data transmission control parameter and the second data transmission control parameter, and the encrypted first data is transmitted according to the third data transmission control parameter and the second data transmission control parameter.
[0103] Among them, the first data transmission control parameter and the second data transmission control parameter can be pre-set or system default, the first data transmission control parameter and the second data transmission control parameter can both correspond to the target keyword, the first data transmission control parameter is a data transmission control parameter related to data transmission stability, and the second data transmission control parameter is a data transmission control parameter related to data transmission security.
[0104] Among them, the first data transmission control parameter may include at least one of the following: transmission rate, transmission protocol, transmission frequency, message parameters, data packaging parameters, bit error rate, bandwidth, throughput, delay, quality of service, reliability, security, etc., which are not limited here.
[0105] Among them, the second data transmission control parameter may include at least one of the following: transmission rate, transmission protocol, transmission frequency, message parameters, data packaging parameters, bit error rate, bandwidth, throughput, delay, quality of service, reliability, security, etc., which are not limited here.
[0106] In a specific implementation, when the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is greater than or equal to the reference security evaluation value, it means that the stability and security of the communication link meet the stability and security requirements of the first data. Then, the first data can be transmitted through the target communication link according to the first data transmission control parameters and the second data transmission control parameters, thereby achieving stable and secure data transmission.
[0107] In a specific implementation, when the target stability evaluation value is less than the reference stability evaluation value and the target security evaluation value is greater than or equal to the reference security evaluation value, it means that the stability of the communication link does not meet the stability requirement of the first data, but the security meets the security requirement of the first data. Then, the target first deviation corresponding to the target stability evaluation value can be obtained, and then the third data transmission control parameter is determined according to the target first deviation and the first data transmission control parameter. The third data transmission control parameter = (1 + target first deviation) * first data transmission control parameter. Then, according to the third data transmission control parameter and the second data transmission control parameter, the first data is transmitted through the target communication link. In this way, when the target stability evaluation value is less than the reference stability evaluation value and the target security evaluation value is greater than or equal to the reference security evaluation value, the data transmission control parameters related to the data transmission stability can be dynamically optimized based on the degree of deviation between the actual channel stability and the channel stability required by the first data, thereby improving the stabilization effect of the data transmission control parameters related to the data transmission stability, which helps to further improve the channel stability, thereby achieving stable and secure data transmission.
[0108] In a specific implementation, when the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, it means that the stability of the communication link meets the stability requirement of the first data, but the security does not meet the security requirement of the first data, and the target second deviation corresponding to the target security evaluation value can be obtained. The mapping relationship between the preset data transmission security-related data transmission control parameters and the encryption algorithm can be pre-stored, and then the first encryption algorithm corresponding to the second data transmission control parameter can be determined based on the mapping relationship. In this way, an encryption algorithm adapted to the channel security can be selected. In addition, the mapping relationship between the preset deviation and the algorithm control parameters of the first encryption algorithm can also be pre-stored. The algorithm control parameters are used to control the encryption effect of the first encryption algorithm. The encryption effect can include at least one of the following: encryption speed, encryption complexity, number of encryptions, encryption method, etc., which are not limited here. Furthermore, the first algorithm control parameters of the first encryption algorithm corresponding to the target second deviation degree can be determined based on the mapping relationship. In this way, the corresponding algorithm control parameters can be dynamically adapted based on the degree of deviation between the actual channel security and the channel security required by the first data, so as to use encryption to make up for the security defects of the channel itself, and then encrypt the first data according to the first encryption algorithm and the first algorithm control parameters, and transmit the encrypted first data according to the first data transmission control parameters and the second data transmission control parameters, so that stable and secure data transmission can be achieved.
[0109] In a specific implementation, when the target stability evaluation value is less than the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, it means that the stability of the communication link does not meet the stability requirement of the first data, and the security does not meet the security requirement of the first data. Then, the steps of obtaining the target first deviation corresponding to the target stability evaluation value, determining the third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and obtaining the target second deviation corresponding to the target security evaluation value, determining the first encryption algorithm corresponding to the second data transmission control parameter, and determining the first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation can be performed. The first data is encrypted according to the first encryption algorithm and the first algorithm control parameter, and the third data transmission control parameter is determined according to the first data transmission control parameter and the second data transmission control parameter. The step of transmitting the encrypted first data according to the control parameters, transmitting the encrypted first data according to the third data transmission control parameters and the second data transmission control parameters, that is, when the target stability evaluation value is less than the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, on the one hand, based on the degree of deviation between the actual channel stability and the channel stability required by the first data, the data transmission control parameters related to the data transmission stability are dynamically optimized, thereby improving the stabilizing effect of the data transmission control parameters related to the data transmission stability, which helps to further improve the channel stability, and on the other hand, based on the degree of deviation between the actual channel security and the channel security required by the first data, the corresponding algorithm control parameters are dynamically adapted, thereby using encryption to make up for the security defects of the channel itself, so as to achieve stable and secure data transmission.
[0110] Optionally, after transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter, the following steps may also be included:
[0111] Determine a first decryption algorithm corresponding to the first encryption algorithm and the first algorithm control parameter and a second algorithm control parameter corresponding to the first decryption algorithm;
[0112] Determine a first decryption algorithm identifier of the first decryption algorithm;
[0113] Packing the second algorithm control parameter and the first decryption algorithm identifier to obtain a first data packet;
[0114] Eliminating the target stability evaluation value from the m stability evaluation values, to obtain m-1 stability evaluation values;
[0115] Selecting a maximum value among the m-1 stability evaluation values, and determining a first communication link corresponding to the maximum value;
[0116] The first data packet is transmitted via the first communication link.
[0117] In a specific implementation, different encryption algorithms and algorithm control parameters can correspond to corresponding decryption algorithms and algorithm control algorithms. Based on this, the first decryption algorithm corresponding to the first encryption algorithm and the first algorithm control parameter and the second algorithm control parameter corresponding to the first decryption algorithm can be determined. Different decryption algorithms can correspond to corresponding decryption algorithm identifiers, and the decryption algorithm identifier is used to uniquely identify the decryption algorithm. Furthermore, the first decryption algorithm identifier of the first decryption algorithm can be determined, and then the second algorithm control parameter and the first decryption algorithm identifier are packaged to obtain a first data packet. Then, the m stability evaluation values can be excluded from the target stability evaluation value to obtain m-1 stability evaluation values, and then the maximum value among the m-1 stability evaluation values is selected to determine the first communication link corresponding to the maximum value, and the first data packet is transmitted through the first communication link, that is, the encrypted first data is transmitted using the target communication link, and the first data packet is transmitted using a first communication link different from the target communication channel to further ensure security.
[0118] Furthermore, the target IoT device can unpack the first data packet, and then use the first decryption algorithm identifier to obtain the corresponding first decryption algorithm, and use the first decryption algorithm and the second algorithm control parameters to decrypt the encrypted first data, thereby restoring the first data.
[0119] It can be seen that the communication control method based on the Internet of Things described in the embodiment of the present application is applied to an electronic device, and the electronic device is applied to an Internet of Things system. The Internet of Things system includes an electronic device and n Internet of Things devices; n is an integer greater than 1, and when sending first data to a target Internet of Things device, a keyword is extracted from the first data to obtain a target keyword; the target Internet of Things device is any one of the n Internet of Things devices, and when the target keyword meets a preset condition, the communication link between the electronic device and the target Internet of Things device is determined according to the Internet of Things system to obtain m communication links, where m is a positive integer, and a stability evaluation value and a security evaluation value of each of the m communication links are determined to obtain m stability evaluation values and m security evaluation values, and according to the m stability evaluation values and the m security evaluation values, the communication link between the electronic device and the target Internet of Things device is obtained. The stability evaluation value and the target keyword determine the target communication link corresponding to the first data. The first data is transmitted through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link. When the target keyword meets the preset conditions, it means that the transmission of the first data requires certain security and stability requirements. Then, the corresponding m communication links can be determined, and then the corresponding stability evaluation value and security evaluation value of each communication link can be determined. The stability evaluation value reflects the channel stability, and the security evaluation value reflects the channel security. The target keyword reflects the data characteristics. The best channel stability and channel security as well as the communication channel corresponding to the data characteristics can be selected, so that the transmission effect depth meets the channel characteristics and data requirements, thereby achieving stable and secure data transmission.
[0120] In accordance with the above embodiment, please refer to Figure 3 , Figure 3 : is a structural schematic diagram of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor. In an embodiment of the present application, the electronic device is applied to an Internet of Things system, and the Internet of Things system includes the electronic device and n Internet of Things devices; n is an integer greater than 1; the program includes instructions for executing the following steps:
[0121] When sending the first data to the target IoT device, performing keyword extraction on the first data to obtain a target keyword; the target IoT device is any IoT device among the n IoT devices;
[0122] When the target keyword meets a preset condition, determining a communication link between the electronic device and the target Internet of Things device according to the Internet of Things system to obtain m communication links, where m is a positive integer;
[0123] Determining a stability evaluation value and a security evaluation value of each of the m communication links to obtain m stability evaluation values and m security evaluation values;
[0124] Determining a target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword;
[0125] The first data is transmitted through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link.
[0126] Optionally, in the aspect of determining the target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword, the program includes instructions for executing the following steps:
[0127] Obtaining a reference stability evaluation value and a reference security evaluation value corresponding to the target keyword;
[0128] Determine the stability evaluation values of the m stability evaluation values that are greater than or equal to the reference stability evaluation value, to obtain p stability evaluation values, where p is a natural number less than or equal to m;
[0129] Determine the m security evaluation values that are greater than or equal to the reference security evaluation value, and obtain q stability evaluation values, where q is a natural number less than or equal to m;
[0130] Determine the communication links corresponding to the p stability evaluation values to obtain p communication links;
[0131] Determine the communication links corresponding to the q stability evaluation values to obtain q communication links;
[0132] Determining an intersection between the p communication links and the q communication links;
[0133] There are a communication links in the intersection, and the target communication link is determined according to the a communication links, where a is a natural number;
[0134] When the intersection is an empty set, determining the deviation between each stability evaluation value of the m stability evaluation values and the reference stability evaluation value to obtain m first deviations;
[0135] Determine the degree of deviation between each of the m safety evaluation values and the reference safety evaluation value to obtain m second degrees of deviation;
[0136] Determining a first weight pair corresponding to the target keyword;
[0137] Performing a weighted operation on the m first deviations, the m second deviations and the first weight pair to obtain m first target deviations;
[0138] Determine the absolute value of each deviation in the first target deviation to obtain m absolute values;
[0139] A minimum value among the m absolute values is selected to obtain a first absolute value, and a communication link corresponding to the first absolute value is used as the target communication link.
[0140] Optionally, in the aspect of determining the target communication link according to the a communication links, the program includes instructions for executing the following steps:
[0141] When a=1, the a communication links are used as the target communication links;
[0142] When a is greater than 1, the stability evaluation values and security evaluation values corresponding to the a communication links are obtained to obtain a stability evaluation values and a security evaluation values;
[0143] Determine the deviation between each stability evaluation value of the a stability evaluation values and the reference stability evaluation value to obtain a first deviations;
[0144] Determine the degree of deviation between each of the a safety evaluation values and the reference safety evaluation value to obtain a second degree of deviation;
[0145] Determining a second weight pair corresponding to the target keyword;
[0146] Performing a weighted operation on the a first deviations, the a second deviations and the second weight pair to obtain a second target deviations;
[0147] Determine the absolute value of each of the a second target deviations to obtain a absolute values;
[0148] The minimum value among the a absolute values is selected to obtain a second absolute value, and the communication link corresponding to the second absolute value is used as the target communication link.
[0149] Optionally, in the aspect of transmitting the first data through the target communication link according to the target stability evaluation value and the target safety evaluation value corresponding to the target communication link, the program includes instructions for executing the following steps:
[0150] When the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is greater than or equal to the reference security evaluation value, transmitting the first data through the target communication link according to a first data transmission control parameter and a second data transmission control parameter; the first data transmission control parameter is a data transmission control parameter related to data transmission stability, and the second data transmission control parameter is a data transmission control parameter related to data transmission security;
[0151] When the target stability evaluation value is less than the reference stability evaluation value and the target safety evaluation value is greater than or equal to the reference safety evaluation value, obtaining a target first deviation corresponding to the target stability evaluation value, determining a third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and transmitting the first data through the target communication link according to the third data transmission control parameter and the second data transmission control parameter;
[0152] When the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, obtaining a target second deviation corresponding to the target security evaluation value, determining a first encryption algorithm corresponding to the second data transmission control parameter, and determining a first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation, encrypting the first data according to the first encryption algorithm and the first algorithm control parameter, and transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter;
[0153] When the target stability evaluation value is less than the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, the steps of obtaining the target first deviation corresponding to the target stability evaluation value, determining the third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and obtaining the target second deviation corresponding to the target security evaluation value, determining the first encryption algorithm corresponding to the second data transmission control parameter, and determining the first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation, encrypting the first data according to the first encryption algorithm and the first algorithm control parameter, transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter, and transmitting the encrypted first data according to the third data transmission control parameter and the second data transmission control parameter.
[0154] Optionally, after transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter, the program further includes instructions for performing the following steps:
[0155] Determine a first decryption algorithm corresponding to the first encryption algorithm and the first algorithm control parameter and a second algorithm control parameter corresponding to the first decryption algorithm;
[0156] Determine a first decryption algorithm identifier of the first decryption algorithm;
[0157] Packing the second algorithm control parameter and the first decryption algorithm identifier to obtain a first data packet;
[0158] Eliminating the target stability evaluation value from the m stability evaluation values, to obtain m-1 stability evaluation values;
[0159] Selecting a maximum value among the m-1 stability evaluation values, and determining a first communication link corresponding to the maximum value;
[0160] The first data packet is transmitted via the first communication link.
[0161] It can be seen that the electronic device described in the embodiment of the present application is applied to an Internet of Things system, and the Internet of Things system includes an electronic device and n Internet of Things devices; n is an integer greater than 1, and when first data is sent to a target Internet of Things device, a keyword is extracted from the first data to obtain a target keyword; the target Internet of Things device is any one of the n Internet of Things devices, and when the target keyword meets a preset condition, a communication link between the electronic device and the target Internet of Things device is determined according to the Internet of Things system to obtain m communication links, where m is a positive integer, and a stability evaluation value and a security evaluation value of each of the m communication links are determined to obtain m stability evaluation values and m security evaluation values, and according to the m stability evaluation values, the m security evaluation values and the target The keyword determines the target communication link corresponding to the first data, and the first data is transmitted through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link. When the target keyword meets the preset conditions, it means that the transmission of the first data requires certain security and stability requirements, and then the corresponding m communication links can be determined, and then the corresponding stability evaluation value and security evaluation value of each communication link can be determined. The stability evaluation value reflects the channel stability, and the security evaluation value reflects the channel security. The target keyword reflects the data characteristics, and the best channel stability and channel security as well as the communication channel corresponding to the data characteristics can be selected, so that the transmission effect depth meets the channel characteristics and data requirements, thereby achieving stable and secure data transmission.
[0162] Figure 4 It is a functional unit composition block diagram of a communication control system 400 based on the Internet of Things involved in an embodiment of the present application, which is applied to an electronic device, and the electronic device is applied to an Internet of Things system, and the Internet of Things system includes the electronic device and n Internet of Things devices; n is an integer greater than 1; the communication control system 400 based on the Internet of Things includes:
[0163] The extraction unit 401 is used to extract keywords from the first data to obtain target keywords when sending the first data to the target IoT device; the target IoT device is any IoT device among the n IoT devices;
[0164] The determining unit 402 is used to determine, when the target keyword meets a preset condition, a communication link between the electronic device and the target IoT device according to the IoT system to obtain m communication links, where m is a positive integer; determine a stability evaluation value and a security evaluation value of each of the m communication links to obtain m stability evaluation values and m security evaluation values; and determine a target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword;
[0165] The transmission unit 403 is used to transmit the first data through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link.
[0166] Optionally, in determining the target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword, the determining unit 402 is specifically configured to:
[0167] Obtaining a reference stability evaluation value and a reference security evaluation value corresponding to the target keyword;
[0168] Determine the stability evaluation values of the m stability evaluation values that are greater than or equal to the reference stability evaluation value, to obtain p stability evaluation values, where p is a natural number less than or equal to m;
[0169] Determine the m security evaluation values that are greater than or equal to the reference security evaluation value, and obtain q stability evaluation values, where q is a natural number less than or equal to m;
[0170] Determine the communication links corresponding to the p stability evaluation values to obtain p communication links;
[0171] Determine the communication links corresponding to the q stability evaluation values to obtain q communication links;
[0172] Determining an intersection between the p communication links and the q communication links;
[0173] There are a communication links in the intersection, and the target communication link is determined according to the a communication links, where a is a natural number;
[0174] When the intersection is an empty set, determining the deviation between each stability evaluation value of the m stability evaluation values and the reference stability evaluation value to obtain m first deviations;
[0175] Determine the degree of deviation between each of the m safety evaluation values and the reference safety evaluation value to obtain m second degrees of deviation;
[0176] Determining a first weight pair corresponding to the target keyword;
[0177] Performing a weighted operation on the m first deviations, the m second deviations and the first weight pair to obtain m first target deviations;
[0178] Determine the absolute value of each deviation in the first target deviation to obtain m absolute values;
[0179] A minimum value among the m absolute values is selected to obtain a first absolute value, and a communication link corresponding to the first absolute value is used as the target communication link.
[0180] Optionally, in determining the target communication link according to the a communication links, the determining unit 402 is specifically configured to:
[0181] When a=1, the a communication links are used as the target communication links;
[0182] When a is greater than 1, the stability evaluation values and security evaluation values corresponding to the a communication links are obtained to obtain a stability evaluation values and a security evaluation values;
[0183] Determine the deviation between each stability evaluation value of the a stability evaluation values and the reference stability evaluation value to obtain a first deviations;
[0184] Determine the degree of deviation between each of the a safety evaluation values and the reference safety evaluation value to obtain a second degree of deviation;
[0185] Determining a second weight pair corresponding to the target keyword;
[0186] Performing a weighted operation on the a first deviations, the a second deviations and the second weight pair to obtain a second target deviations;
[0187] Determine the absolute value of each of the a second target deviations to obtain a absolute values;
[0188] The minimum value among the a absolute values is selected to obtain a second absolute value, and the communication link corresponding to the second absolute value is used as the target communication link.
[0189] Optionally, in the aspect of transmitting the first data through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link, the transmission unit 403 is specifically configured to:
[0190] When the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is greater than or equal to the reference security evaluation value, transmitting the first data through the target communication link according to a first data transmission control parameter and a second data transmission control parameter; the first data transmission control parameter is a data transmission control parameter related to data transmission stability, and the second data transmission control parameter is a data transmission control parameter related to data transmission security;
[0191] When the target stability evaluation value is less than the reference stability evaluation value and the target safety evaluation value is greater than or equal to the reference safety evaluation value, obtaining a target first deviation corresponding to the target stability evaluation value, determining a third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and transmitting the first data through the target communication link according to the third data transmission control parameter and the second data transmission control parameter;
[0192] When the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, obtaining a target second deviation corresponding to the target security evaluation value, determining a first encryption algorithm corresponding to the second data transmission control parameter, and determining a first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation, encrypting the first data according to the first encryption algorithm and the first algorithm control parameter, and transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter;
[0193] When the target stability evaluation value is less than the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, the steps of obtaining the target first deviation corresponding to the target stability evaluation value, determining the third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and obtaining the target second deviation corresponding to the target security evaluation value, determining the first encryption algorithm corresponding to the second data transmission control parameter, and determining the first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation, encrypting the first data according to the first encryption algorithm and the first algorithm control parameter, transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter, and transmitting the encrypted first data according to the third data transmission control parameter and the second data transmission control parameter.
[0194] Optionally, after transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter, the Internet of Things-based communication control system 400 is further specifically used for:
[0195] Determine a first decryption algorithm corresponding to the first encryption algorithm and the first algorithm control parameter and a second algorithm control parameter corresponding to the first decryption algorithm;
[0196] Determine a first decryption algorithm identifier of the first decryption algorithm;
[0197] Packing the second algorithm control parameter and the first decryption algorithm identifier to obtain a first data packet;
[0198] Eliminating the target stability evaluation value from the m stability evaluation values, to obtain m-1 stability evaluation values;
[0199] Selecting a maximum value among the m-1 stability evaluation values, and determining a first communication link corresponding to the maximum value;
[0200] The first data packet is transmitted via the first communication link.
[0201] It can be seen that the Internet of Things-based communication control system described in the embodiment of the present application is applied to electronic equipment, and the electronic equipment is applied to the Internet of Things system. The Internet of Things system includes the electronic equipment and n Internet of Things devices; n is an integer greater than 1, and when the first data is sent to the target Internet of Things device, the first data is keyword extracted to obtain the target keyword; the target Internet of Things device is any one of the n Internet of Things devices. When the target keyword meets the preset conditions, the communication link between the electronic device and the target Internet of Things device is determined according to the Internet of Things system to obtain m communication links, where m is a positive integer, and the stability evaluation value and security evaluation value of each of the m communication links are determined to obtain m stability evaluation values and m security evaluation values. The stability evaluation value and the target keyword determine the target communication link corresponding to the first data. The first data is transmitted through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link. When the target keyword meets the preset conditions, it means that the transmission of the first data requires certain security and stability requirements. Then, the corresponding m communication links can be determined, and then the corresponding stability evaluation value and security evaluation value of each communication link can be determined. The stability evaluation value reflects the channel stability, and the security evaluation value reflects the channel security. The target keyword reflects the data characteristics. The best channel stability and channel security as well as the communication channel corresponding to the data characteristics can be selected, so that the transmission effect depth meets the channel characteristics and data requirements, thereby achieving stable and secure data transmission.
[0202] It can be understood that the functions of each program module of the Internet of Things-based communication control system of this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0203] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0204] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0205] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0206] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0207] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0208] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0209] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0210] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0211] 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 instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0212] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A communication control method based on the Internet of Things, characterized in that: Applied to an electronic device, the electronic device is applied to an Internet of Things system, the Internet of Things system includes the electronic device and n Internet of Things devices; n is an integer greater than 1; the method includes: When sending the first data to the target IoT device, performing keyword extraction on the first data to obtain a target keyword; the target IoT device is any IoT device among the n IoT devices; When the target keyword meets a preset condition, determining a communication link between the electronic device and the target Internet of Things device according to the Internet of Things system to obtain m communication links, where m is a positive integer; Determining a stability evaluation value and a security evaluation value of each of the m communication links to obtain m stability evaluation values and m security evaluation values; Determining a target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword; The first data is transmitted through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link.
2. The method according to claim 1, characterized in that The determining, according to the m stability evaluation values, the m security evaluation values and the target keyword, a target communication link corresponding to the first data includes: Obtaining a reference stability evaluation value and a reference security evaluation value corresponding to the target keyword; Determine the stability evaluation values of the m stability evaluation values that are greater than or equal to the reference stability evaluation value, to obtain p stability evaluation values, where p is a natural number less than or equal to m; Determine the m security evaluation values that are greater than or equal to the reference security evaluation value, and obtain q stability evaluation values, where q is a natural number less than or equal to m; Determine the communication links corresponding to the p stability evaluation values to obtain p communication links; Determine the communication links corresponding to the q stability evaluation values to obtain q communication links; Determining an intersection between the p communication links and the q communication links; There are a communication links in the intersection, and the target communication link is determined according to the a communication links, where a is a natural number; When the intersection is an empty set, determining the deviation between each stability evaluation value of the m stability evaluation values and the reference stability evaluation value to obtain m first deviations; Determine the degree of deviation between each of the m safety evaluation values and the reference safety evaluation value to obtain m second degrees of deviation; Determining a first weight pair corresponding to the target keyword; Performing a weighted operation on the m first deviations, the m second deviations and the first weight pair to obtain m first target deviations; Determine the absolute value of each deviation in the first target deviation to obtain m absolute values; A minimum value among the m absolute values is selected to obtain a first absolute value, and a communication link corresponding to the first absolute value is used as the target communication link.
3. The method according to claim 2, characterized in that The step of determining the target communication link according to the a communication links comprises: When a=1, the a communication links are used as the target communication links; When a is greater than 1, the stability evaluation values and security evaluation values corresponding to the a communication links are obtained to obtain a stability evaluation values and a security evaluation values; Determine the deviation between each stability evaluation value of the a stability evaluation values and the reference stability evaluation value to obtain a first deviations; Determine the degree of deviation between each of the a safety evaluation values and the reference safety evaluation value to obtain a second degree of deviation; Determining a second weight pair corresponding to the target keyword; Performing a weighted operation on the a first deviations, the a second deviations and the second weight pair to obtain a second target deviations; Determine the absolute value of each of the a second target deviations to obtain a absolute values; The minimum value among the a absolute values is selected to obtain a second absolute value, and the communication link corresponding to the second absolute value is used as the target communication link.
4. The method according to claim 2 or 3, characterized in that: The transmitting the first data through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link includes: When the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is greater than or equal to the reference security evaluation value, transmitting the first data through the target communication link according to a first data transmission control parameter and a second data transmission control parameter; the first data transmission control parameter is a data transmission control parameter related to data transmission stability, and the second data transmission control parameter is a data transmission control parameter related to data transmission security; When the target stability evaluation value is less than the reference stability evaluation value and the target safety evaluation value is greater than or equal to the reference safety evaluation value, obtaining a target first deviation corresponding to the target stability evaluation value, determining a third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and transmitting the first data through the target communication link according to the third data transmission control parameter and the second data transmission control parameter; When the target stability evaluation value is greater than or equal to the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, obtaining a target second deviation corresponding to the target security evaluation value, determining a first encryption algorithm corresponding to the second data transmission control parameter, and determining a first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation, encrypting the first data according to the first encryption algorithm and the first algorithm control parameter, and transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter; When the target stability evaluation value is less than the reference stability evaluation value and the target security evaluation value is less than the reference security evaluation value, the steps of obtaining the target first deviation corresponding to the target stability evaluation value, determining the third data transmission control parameter according to the target first deviation and the first data transmission control parameter, and obtaining the target second deviation corresponding to the target security evaluation value, determining the first encryption algorithm corresponding to the second data transmission control parameter, and determining the first algorithm control parameter of the first encryption algorithm corresponding to the target second deviation, encrypting the first data according to the first encryption algorithm and the first algorithm control parameter, transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter, and transmitting the encrypted first data according to the third data transmission control parameter and the second data transmission control parameter.
5. The method according to claim 4, characterized in that After transmitting the encrypted first data according to the first data transmission control parameter and the second data transmission control parameter, the method further includes: Determine a first decryption algorithm corresponding to the first encryption algorithm and the first algorithm control parameter and a second algorithm control parameter corresponding to the first decryption algorithm; Determine a first decryption algorithm identifier of the first decryption algorithm; Packing the second algorithm control parameter and the first decryption algorithm identifier to obtain a first data packet; Eliminating the target stability evaluation value from the m stability evaluation values, to obtain m-1 stability evaluation values; Selecting a maximum value among the m-1 stability evaluation values, and determining a first communication link corresponding to the maximum value; The first data packet is transmitted via the first communication link.
6. A communication control system based on the Internet of Things, characterized in that: Applied to an electronic device, the electronic device is applied to an Internet of Things system, the Internet of Things system includes the electronic device and n Internet of Things devices; n is an integer greater than 1; the communication control system based on the Internet of Things includes: an extraction unit, configured to extract keywords from the first data to obtain target keywords when sending the first data to a target IoT device; the target IoT device is any IoT device among the n IoT devices; a determination unit, configured to determine, when the target keyword satisfies a preset condition, a communication link between the electronic device and the target IoT device according to the IoT system, to obtain m communication links, where m is a positive integer; determine a stability evaluation value and a security evaluation value of each of the m communication links, to obtain m stability evaluation values and m security evaluation values; and determine a target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword; A transmission unit is used to transmit the first data through the target communication link according to the target stability evaluation value and the target security evaluation value corresponding to the target communication link.
7. The communication control system based on the Internet of Things according to claim 6, characterized in that: In the aspect of determining the target communication link corresponding to the first data according to the m stability evaluation values, the m security evaluation values and the target keyword, the determining unit is specifically used to: Obtaining a reference stability evaluation value and a reference security evaluation value corresponding to the target keyword; Determine the stability evaluation values of the m stability evaluation values that are greater than or equal to the reference stability evaluation value, to obtain p stability evaluation values, where p is a natural number less than or equal to m; Determine the m security evaluation values that are greater than or equal to the reference security evaluation value, and obtain q stability evaluation values, where q is a natural number less than or equal to m; Determine the communication links corresponding to the p stability evaluation values to obtain p communication links; Determine the communication links corresponding to the q stability evaluation values to obtain q communication links; Determining an intersection between the p communication links and the q communication links; There are a communication links in the intersection, and the target communication link is determined according to the a communication links, where a is a natural number; When the intersection is an empty set, determining the deviation between each stability evaluation value of the m stability evaluation values and the reference stability evaluation value to obtain m first deviations; Determine the degree of deviation between each of the m safety evaluation values and the reference safety evaluation value to obtain m second degrees of deviation; Determining a first weight pair corresponding to the target keyword; Performing a weighted operation on the m first deviations, the m second deviations and the first weight pair to obtain m first target deviations; Determine the absolute value of each deviation in the first target deviation to obtain m absolute values; A minimum value among the m absolute values is selected to obtain a first absolute value, and a communication link corresponding to the first absolute value is used as the target communication link.
8. The communication control system based on the Internet of Things according to claim 7, characterized in that: In the aspect of determining the target communication link according to the a communication links, the determining unit is specifically used for: When a=1, the a communication links are used as the target communication links; When a is greater than 1, the stability evaluation values and security evaluation values corresponding to the a communication links are obtained to obtain a stability evaluation values and a security evaluation values; Determine the deviation between each stability evaluation value of the a stability evaluation values and the reference stability evaluation value to obtain a first deviations; Determine the degree of deviation between each of the a safety evaluation values and the reference safety evaluation value to obtain a second degree of deviation; Determining a second weight pair corresponding to the target keyword; Performing a weighted operation on the a first deviations, the a second deviations and the second weight pair to obtain a second target deviations; Determine the absolute value of each of the a second target deviations to obtain a absolute values; The minimum value among the a absolute values is selected to obtain a second absolute value, and the communication link corresponding to the second absolute value is used as the target communication link.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program comprises instructions for executing the steps in the method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 5.