CN111385043B - Wireless internet of things channel management method and related device - Google Patents

Wireless internet of things channel management method and related device Download PDF

Info

Publication number
CN111385043B
CN111385043B CN201911420263.7A CN201911420263A CN111385043B CN 111385043 B CN111385043 B CN 111385043B CN 201911420263 A CN201911420263 A CN 201911420263A CN 111385043 B CN111385043 B CN 111385043B
Authority
CN
China
Prior art keywords
channel
communication
target
things
communication channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911420263.7A
Other languages
Chinese (zh)
Other versions
CN111385043A (en
Inventor
董柳华
叶徐
肖志杰
曾政军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xuxiang Intelligent Shenzhen Co ltd
Original Assignee
Xuxiang Intelligent Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xuxiang Intelligent Shenzhen Co ltd filed Critical Xuxiang Intelligent Shenzhen Co ltd
Priority to CN201911420263.7A priority Critical patent/CN111385043B/en
Publication of CN111385043A publication Critical patent/CN111385043A/en
Application granted granted Critical
Publication of CN111385043B publication Critical patent/CN111385043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]

Abstract

The embodiment of the application discloses a wireless Internet of things channel management method and a related device, which are applied to electronic equipment, wherein the method comprises the following steps: acquiring a first channel parameter of a first communication channel between the electronic equipment and target Internet of things equipment; when the first channel parameter meets a preset condition, acquiring a second communication channel between the electronic equipment and the target Internet of things equipment; and realizing the communication function between the electronic equipment and the target Internet of things equipment through the second communication channel. By adopting the embodiment of the application, the communication efficiency of the Internet of things can be improved.

Description

Wireless internet of things channel management method and related device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and a related apparatus for managing a wireless internet of things channel.
Background
Since the twenty-first century, the information and intelligence wave mat rolls around the world, and the technology application of the internet of things as an important development stage of the information and intelligence has penetrated into various fields closely related to our lives and works to connect enterprises, governments and consumers. The continuous expansion of internet connectivity and the high-speed popularization of mobile terminal equipment creates a good ecological environment for the application of multiple investment investments in the construction of the internet of things.
In the internet of things industrial environment, an enterprise is the largest application entity of the internet of things solution, and the enterprise includes two types of enterprises: the first is the manager and the user of the business space: along with the guidance of policies such as intelligent buildings, assembly type buildings and green cities in the commercial fields, the space of each business state such as hotels, scenic spots, business supermarkets, hospitals and the like needs the centralized management and control of large-area light, heating and ventilation and the like, and the energy-saving and efficient management demands are in urgent need of solution. Secondly, production and manufacturing enterprises: the technology of the internet of things can improve comprehensive competitiveness, improve productivity, develop a new market or develop a new product, and therefore, the problem of how to improve the communication efficiency of the internet of things under the condition that the channel is abnormal needs to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a wireless Internet of things channel management method and a related device, and the communication efficiency of the Internet of things can be improved under the condition that the channel is abnormal.
In a first aspect, an embodiment of the present application provides a wireless internet of things channel management method, which is applied to an electronic device, and the method includes:
acquiring a first channel parameter of a first communication channel between the electronic equipment and target Internet of things equipment;
when the first channel parameter meets a preset condition, acquiring a second communication channel between the electronic equipment and the target Internet of things equipment;
and realizing the communication function between the electronic equipment and the target Internet of things equipment through the second communication channel.
In a second aspect, an embodiment of the present application provides a wireless internet of things channel management apparatus, which is applied to an electronic device, and the apparatus includes: a first acquisition unit, a second acquisition unit, and a communication unit, wherein,
the first obtaining unit is configured to obtain a first channel parameter of a first communication channel between the electronic device and a target internet of things device;
the second obtaining unit is configured to obtain a second communication channel between the electronic device and the target internet of things device when the first channel parameter meets a preset condition;
the communication unit is configured to implement a communication function between the electronic device and the target internet of things device through the second communication channel.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where 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.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the wireless internet of things channel management method and the related device described in the embodiments of the present application are applied to an electronic device, obtain a first channel parameter of a first communication channel between the electronic device and a target internet of things device, obtain a second communication channel between the electronic device and the target internet of things device when the first channel parameter meets a preset condition, and implement a communication function between the electronic device and the target internet of things device through the second communication channel.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic flowchart of a wireless internet of things channel management method according to an embodiment of the present disclosure;
fig. 1B is a schematic interface demonstration diagram of a local area network according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another wireless internet of things channel management method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 4A is a block diagram illustrating functional units of a wireless internet of things channel management device according to an embodiment of the present disclosure;
fig. 4B is a block diagram illustrating functional units of another wireless internet of things channel management device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device described in the embodiment of the present invention may include a smart Phone (e.g., an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a vehicle data recorder, a traffic guidance platform, a server, a notebook computer, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable device (e.g., a smart watch, a bluetooth headset), which are merely examples, but are not exhaustive, and the electronic device may also be a server or a video matrix, which is not limited herein, and the electronic device may also be an Internet of things device.
In this embodiment of the application, the internet of things device may be at least one of the following: the intelligent lighting equipment, intelligent distribution box, intelligent switch controller, intelligent control panel, intelligent supply socket, intelligent gateway, intelligent coordinator, intelligent node, intelligent router, intelligent set-top box, intelligent ammeter, intelligent TV set, intelligent refrigerator, intelligent washing machine, intelligent massage chair, intelligent desk, intelligent air conditioner, intelligent humidifier, intelligent lampblack absorber, intelligent microwave oven, intelligent purifier, intelligent electric rice cooker, intelligent room heater, intelligent door, intelligent fan, intelligent water dispenser, intelligent curtain, intelligent closestool, smart mobile phone, intelligent security system, intelligent furniture, intelligent robot of sweeping the floor etc. do not restrict here, thing networking equipment still can be any electronic equipment above-mentioned.
The following describes embodiments of the present application in detail.
The embodiment of the application provides a wireless Internet of things channel management method, which is applied to electronic equipment and can comprise the following steps:
acquiring a first channel parameter of a first communication channel between the electronic equipment and target Internet of things equipment;
when the first channel parameter meets a preset condition, acquiring a second communication channel between the electronic equipment and the target Internet of things equipment;
and realizing the communication function between the electronic equipment and the target Internet of things equipment through the second communication channel.
It can be seen that the wireless internet of things channel management method described in the embodiment of the application is applied to an electronic device, a first channel parameter of a first communication channel between the electronic device and a target internet of things device is obtained, when the first channel parameter meets a preset condition, a second communication channel between the electronic device and the target internet of things device is obtained, and a communication function between the electronic device and the target internet of things device is realized through the second communication channel.
Referring to fig. 1A, fig. 1A is a schematic flowchart of a wireless internet of things channel management method provided in an embodiment of the present application, and is applied to an electronic device, where as shown in the figure, the wireless internet of things channel management method includes:
101. and acquiring a first channel parameter of a first communication channel between the electronic equipment and the target Internet of things equipment.
The electronic equipment and the target Internet of things equipment can be located in the same local area network, the electronic equipment can establish a first communication channel between the electronic equipment and the target Internet of things equipment, and then a first channel parameter corresponding to the first communication channel can be obtained. As shown in fig. 1B, the local area network shown in fig. 1B may include n devices, which are: the smart home devices 1, the smart home devices 2, …, and the smart home device n, different smart home devices may communicate with each other based on a local area network, different devices may communicate with each other based on different communication channels, each communication channel may include one or more nodes, and different nodes may form one communication channel, so that data transmission may be implemented based on the communication channels.
Wherein the first channel parameter may be at least one of: transmission rate, network bandwidth, packet loss rate, dropped link rate, distortion rate, signal-to-noise ratio, etc., which are not limited herein.
Optionally, in the step 11, obtaining a first channel parameter of a first communication channel between the electronic device and the target internet of things device may include the following steps:
11. acquiring a target position;
12. determining a target channel set corresponding to the target position according to a mapping relation between a preset position and the channel set;
13. acquiring a target channel parameter set corresponding to the target channel set;
14. and selecting the first channel parameter corresponding to the first communication channel.
In a specific implementation, the communication channels corresponding to different positions are different, for example, if the user moves in the environment of the internet of things, the communication channels corresponding to different positions are also different, the electronic device may obtain the target position, a mapping relationship between a preset position and a channel set may be pre-stored in the electronic device, a target channel set corresponding to the target position may be determined according to the mapping relationship between the preset position and the channel set, the target channel set may include a plurality of communication channels, a target channel parameter set corresponding to the target channel set, different communication channels, corresponding to different channel parameters, and a first channel parameter corresponding to the first communication channel may be selected, so that the communication channel corresponding to the electronic device and the channel parameter corresponding to the communication channel may be accurately determined according to the position of the electronic device, the method is beneficial to realizing accurate channel monitoring and providing a basis for subsequent channel switching.
102. And when the first channel parameter meets a preset condition, acquiring a second communication channel between the electronic equipment and the target Internet of things equipment.
The preset condition may be set by the user or default by the system, for example, when the first channel parameter is the packet loss rate, the packet loss rate is greater than the preset packet loss rate, it is determined that the first channel parameter meets the preset condition, and the preset packet loss rate may be set by the user or default by the system. In specific implementation, the electronic device may obtain a second communication channel between the electronic device and the target internet of things device when the first channel parameter satisfies a preset condition, where the second communication channel may be understood as a standby communication channel, for example, when the current channel quality is poor or the current channel communication is interrupted, the electronic device may be switched to the second communication channel to continue to complete communication, otherwise, when the first channel parameter does not satisfy the preset condition, the electronic device may continue to implement communication between the electronic device and the target internet of things device through the first communication channel.
In one possible example, the step 102 of acquiring the second communication channel between the electronic device and the target internet of things device may include the following steps:
a21, determining a local area network where the electronic equipment and the target Internet of things equipment are located together;
a22, generating a plurality of reference communication channels between the electronic device and the target Internet of things device based on the network architecture of the local area network, wherein the plurality of reference communication channels comprise the first communication channel;
a23, estimating the channel quality of each reference communication channel in the reference communication channels to obtain a plurality of channel quality values, wherein the first communication channel corresponds to a first channel quality value;
a24, selecting the channel quality value larger than the first channel quality value from the plurality of channel quality values to obtain at least one channel quality value;
and A25, using the one or more reference communication channels corresponding to the at least one channel quality value as the second communication channel.
The electronic device can determine a local area network in which the electronic device and the target internet of things device are located together, and further, based on a network architecture of the local area network, generate a plurality of reference communication channels between the electronic device and the target internet of things device according to a path planning algorithm, wherein the plurality of reference communication channels comprise a first communication channel, further, the channel quality of each reference communication channel in the plurality of reference communication channels can be estimated, and a plurality of channel quality values can be obtained, wherein the first communication channel corresponds to the first channel quality value, and a channel quality value larger than the first channel quality value is selected from the plurality of channel quality values, so that at least one channel with good channel quality can be selected as a second communication channel, so that a channel with good channel quality can be selected as a communication channel to be switched, it is helpful to improve the communication quality and the communication efficiency.
In one possible example, in step 23, estimating a channel quality of each of the plurality of reference communication channels to obtain a plurality of channel quality values, the method may include the following steps:
231. sending a test signal to a reference communication channel i, wherein the reference communication channel i is any one of the reference communication channels;
232. receiving feedback parameters returned by the reference communication channel i, wherein the feedback parameters comprise a target packet loss rate and a target transmission duration;
233. determining the number of target transfer devices corresponding to the reference communication channel i;
234. determining a target first channel quality value corresponding to the target packet loss rate according to a mapping relation between a preset packet loss rate and the first channel quality value;
235. determining a target second channel quality value corresponding to the target transmission time length according to a mapping relation between a preset transmission time length and the second channel quality value;
234. determining a target weight pair corresponding to the target transfer equipment number according to a mapping relation between a preset transfer equipment number and the weight pair, wherein the weight pair comprises a first weight corresponding to packet loss probability and a second weight corresponding to transmission time length, and the sum of the first weight and the second weight is 1;
235. and performing weighted operation according to the target weight value, the target first channel quality value and the target second channel quality value to obtain a channel quality value corresponding to the reference communication channel i.
In a specific implementation, the feedback parameters may include: packet loss rate and transmission duration. For different transmission paths, the number of target relay devices corresponding to the transmission paths is different, and taking the transmission path i as an example, the transmission path i is any one of multiple transmission paths, so that the electronic device may determine the number of target relay devices corresponding to the transmission path i, and a packet loss rate i and a transmission duration i corresponding to the transmission path i.
Further, the electronic device may pre-store a mapping relationship between a preset packet loss rate and the first channel quality value, and a mapping relationship between a preset transmission time and the second channel quality value, and further, the electronic device may determine the target first channel quality value corresponding to the packet loss rate i according to the mapping relationship between the preset packet loss rate and the first channel quality value, and determine the target second channel quality value corresponding to the transmission time i according to the mapping relationship between the preset transmission time and the second channel quality value.
Further, since the number of the relay devices determines the packet loss ratio and the transmission duration probability to a certain extent, a mapping relationship between the preset number of the relay devices and the weight pair may be stored in the electronic device in advance, and then the electronic device may determine, according to the mapping relationship between the preset number of the relay devices and the weight pair, a target weight pair corresponding to the target number of the relay devices, where the weight pair includes a first weight and a second weight corresponding to the packet loss ratio, and a sum of the first weight and the second weight is 1.
Of course, the target weight pair may also correspond to the target first weight and the target second weight, where the target first weight + the target second weight is equal to 1. Furthermore, the electronic device may perform a weighted operation according to the target weight value, the target first channel quality value, and the target second channel quality value to obtain a channel quality value corresponding to the transmission channel i.
The value of the channel quality corresponding to the transmission channel i is equal to the target first weight value + the target second channel quality value
Thus, accurate evaluation of the channel can be realized.
In one possible example, the step 102 of acquiring the second communication channel between the electronic device and the target internet of things device may include the following steps:
b21, acquiring the target position of the electronic equipment;
b22, determining a target standby communication channel corresponding to the target position according to a mapping relation between a preset position and a standby communication channel;
and B23, taking the target standby communication channel as the second communication channel.
In the internet of things environment, different positions are different, signal strength and communication quality are different, and therefore the electronic device can acquire a target position of the electronic device, and specifically, the target position can be achieved through GPS positioning or indoor positioning technology, a mapping relation between a preset position and a standby communication channel can be stored in the electronic device in advance, and further, a target standby communication channel corresponding to the target position can be determined according to the mapping relation between the preset position and the standby communication channel, and the target standby communication channel can be used as a second communication channel, so that the corresponding standby communication channel can be selected according to geographic positions, and the improvement of the communication quality and the communication efficiency is facilitated.
103. And realizing the communication function between the electronic equipment and the target Internet of things equipment through the second communication channel.
The second communication channel is a communication channel between the electronic device and the target internet of things device, and the electronic device can realize a communication function between the electronic device and the target internet of things device based on the second communication channel, for example, the electronic device can send data to the target internet of things device through the second communication channel, and the electronic device can also receive the data sent by the target internet of things device through the second communication channel, so that data intercommunication can be realized and communication efficiency is improved. Bluetooth communication, wireless fidelity (wifi) communication, infrared communication, mobile network communication, Near Field Communication (NFC), Ad hoc communication, and the like, which are not limited herein. One or more communication channels can be realized between electronic equipment and a plurality of thing networking devices by adopting one or more communication modes, for example, one communication channel includes A, B, C three equipment, can be connected through the bluetooth mode between A and B, can be connected through the wifi mode between B and C, help promoting communication channel's flexibility and promote the variety of network.
In specific implementation, in this embodiment of the application, the electronic device may be a gateway, and the internet of things device may be a coordinator, and then the gateway and the coordinator may record and count packet loss rates of data transmissions of subnodes under their own, and when the packet loss rates reach a set threshold, it indicates that the same frequency interference exists in a current channel, and at this time, the current communication channel needs to be changed. The gateway or the coordinator informs the nodes of uniformly changing to a certain channel after a certain time in a broadcast mode, the nodes can give a response to the gateway in a sequence staggered time and change the channel after a specified time, and the gateway or the coordinator needing to change the channel can record which nodes do not respond in the time period and then inform the nodes in a unicast mode to ensure that all the nodes can change to the specified channel.
The channel management method in the embodiment of the application is different from the common wireless communication protocol which is uniformly changed to the appointed channel, the protocol supports that the gateway and the coordinator can have a plurality of data transceiving modules, the gateway and the coordinator can determine the optimal channel for the operation of the child nodes according to the current network environment, and the gateway and the coordinator can operate on different channels, so that the effect is equal to that a plurality of child networks operating on different channels are arranged below one gateway, data between the child networks of different channels can be in parallel and do not interfere with each other, the nodes on different channels can communicate with each other through the interaction of the gateway and the coordinator, and the design greatly enhances the fluency and data throughput of data communication in a large-scale networking application scene.
Optionally, when the second communication channel includes a plurality of communication channels, in step 103, the implementing, through the second communication channel, a communication function between the electronic device and the target internet of things device may include the following steps:
31. acquiring target data;
32. determining the transmission rate of each communication channel in the plurality of communication channels to obtain a plurality of transmission rates;
33. dividing the target data into a plurality of data packets according to the plurality of transmission rates;
34. transmitting the plurality of data packets over the plurality of communication channels.
Wherein, the target data may be at least one of the following: the electronic device may obtain target data, determine a transmission rate of each of a plurality of communication channels, obtain a plurality of transmission rates, divide the target data into a plurality of data packets according to the plurality of transmission rates, specifically, the faster the transmission rate is, the larger the data packet memory is, and conversely, the slower the transmission rate is, the smaller the data packet memory is, and further, may transmit the plurality of data packets through the plurality of communication channels, which is helpful for improving data transmission efficiency.
Optionally, in step 103, the communication function between the electronic device and the target internet of things device is realized through the second communication channel, which may be implemented as follows:
after the preset time length, the communication function between the electronic equipment and the target Internet of things equipment is realized through the second communication channel.
The preset duration can be set by the user or defaulted by the system. The electronic equipment can realize the communication function between the electronic equipment and the target Internet of things equipment through a second communication channel after the preset time length.
In a possible example, between the above steps 101 to 102, the following steps may be further included:
c1, evaluating the channel quality according to the first channel parameter to obtain the first channel quality value;
and C2, when the first channel quality value is smaller than a preset threshold value, determining that the first channel parameter meets the preset condition.
The preset threshold value can be set by the user or defaulted by the system. In specific implementation, the electronic device may perform channel quality evaluation according to the first channel parameter to obtain a first channel quality value, determine that the first channel parameter satisfies a preset condition when the first channel quality value is smaller than a preset threshold, otherwise, confirm that the first channel parameter does not satisfy the preset condition, and then the electronic device may continue to use the first communication channel to communicate with the target internet of things device.
In one possible example, the first channel parameter comprises a first packet loss rate; the step C1 of performing channel quality evaluation according to the first channel parameter to obtain the first channel quality value may include the following steps:
c11, determining a transit device set corresponding to the first channel parameter, where the transit device set includes multiple transit devices;
c12, obtaining a packet loss rate of each transit device in the plurality of transit devices to obtain a plurality of packet loss rates;
c13, determining the average packet loss rate corresponding to the plurality of packet loss rates;
c14, determining a first mean square error according to the packet loss rates;
c15, determining a first adjusting coefficient corresponding to the first mean square error according to a mapping relation between a preset mean square error and the adjusting coefficient;
c16, when the average packet loss rate is greater than the first packet loss rate, calculating the first channel quality value according to the following formula: a first channel quality value is a first packet loss rate (1+ a first adjustment coefficient);
c17, when the average packet loss rate is less than or equal to the first packet loss rate, calculating the first channel quality value according to the following formula: the first channel quality value is the first packet loss rate (1 — first adjustment factor).
In a specific implementation, the electronic device may determine a relay device set corresponding to the first channel parameter, where the relay device set includes a plurality of relay devices, for example, a and C perform communication, a communication channel may be formed between a and C, A, a1, a2, a3, and C form a communication channel, and the relay devices are a1, a2, and a3, respectively, so that a1, a2, and a3, which serve as relay devices, may affect communication quality to a certain extent, and therefore, packet loss rates corresponding to a1, a2, and a3 may assist in evaluating the channel quality to a certain extent, and contribute to improving accuracy of channel quality evaluation.
Furthermore, the electronic device may further obtain a packet loss rate of each of the plurality of relay devices to obtain a plurality of packet loss rates, where the packet loss rate reflects communication stability between a single device or 2 adjacent devices to a certain extent, and further may determine a mean packet loss rate corresponding to the plurality of packet loss rates, and determine a first mean square error according to the plurality of packet loss rates, where the mean square error reflects compatibility between devices of a channel to a certain extent.
Further, the electronic device may pre-store a mapping relationship between a preset mean square error and an adjustment coefficient, where the adjustment coefficient is 0-1, and may be specifically set by a user or default to a system, for example, the adjustment coefficient is 0-0.1, and the mapping relationship between the mean square error and the adjustment coefficient is provided as follows:
mean square error Adjusting parameters
Mean square error 1 Regulating parameter 1
Mean square error 2 Regulating parameter 2
Mean square error 3 Regulating parameter 3
Mean square error n Regulating parameter n
Different mean square deviations can correspond to different adjusting parameters, the mapping relation between the mean square deviations and the adjusting coefficients can be set by a user or defaulted by a system, and based on the mapping relation, the influence of the mean square deviations on channel quality evaluation results can be quickly determined, so that quick and accurate channel quality evaluation is facilitated.
Further, a first adjustment coefficient corresponding to the first mean square error may be determined according to a mapping relationship between a preset mean square error and an adjustment coefficient, and when the mean packet loss rate is greater than the first packet loss rate, the first channel quality value may be calculated according to the following formula: when the average packet loss rate is less than or equal to the first packet loss rate, calculating the first channel quality value according to the following formula: therefore, not only the communication quality of the channel can be accurately evaluated, but also the subsequent accurate switching to the channel with good quality can be ensured, and the communication quality and the communication efficiency are ensured.
It can be seen that the wireless internet of things channel management method described in the embodiment of the application is applied to an electronic device, a first channel parameter of a first communication channel between the electronic device and a target internet of things device is obtained, when the first channel parameter meets a preset condition, a second communication channel between the electronic device and the target internet of things device is obtained, and a communication function between the electronic device and the target internet of things device is realized through the second communication channel.
Referring to fig. 2, fig. 2 is a schematic flow chart of a wireless internet of things channel management method provided in an embodiment of the present application, and the method is applied to an electronic device, where as shown in the figure, the wireless internet of things channel management method includes:
201. and acquiring a first channel parameter of a first communication channel between the electronic equipment and the target Internet of things equipment.
202. And when the first channel parameter meets a preset condition, determining a local area network where the electronic equipment and the target Internet of things equipment are located together.
203. Generating a plurality of reference communication channels between the electronic device and the target internet of things device based on a network architecture of the local area network, wherein the plurality of reference communication channels include the first communication channel.
204. And estimating the channel quality of each reference communication channel in the plurality of reference communication channels to obtain a plurality of channel quality values, wherein the first communication channel corresponds to a first channel quality value.
205. Selecting a channel quality value greater than the first channel quality value from the plurality of channel quality values to obtain at least one channel quality value.
206. And taking the reference communication channel corresponding to the at least one channel quality value as a second communication channel.
207. And realizing the communication function between the electronic equipment and the target Internet of things equipment through the second communication channel.
For the detailed description of the steps 201 to 207, reference may be made to corresponding steps of the wireless internet of things channel management method described in the foregoing fig. 1A, and details are not repeated here.
It can be seen that the wireless internet of things channel management method described in this embodiment of the application is applied to an electronic device, obtains a first channel parameter of a first communication channel between the electronic device and a target internet of things device, determines a local area network in which the electronic device and the target internet of things device are located together when the first channel parameter meets a preset condition and when the first channel parameter meets the preset condition, generates a plurality of reference communication channels between the electronic device and the target internet of things device based on a network architecture of the local area network, where the plurality of reference communication channels include the first communication channel, estimates a channel quality of each reference communication channel in the plurality of reference communication channels to obtain a plurality of channel quality values, where the first communication channel corresponds to the first channel quality value, selects a channel quality value greater than the first channel quality value from the plurality of channel quality values to obtain at least one channel quality value, one or more reference communication channels corresponding to at least one channel quality value are used as second communication channels, and the communication function between the electronic equipment and the target Internet of things equipment is realized through the second communication channels, so that corresponding alternative communication channels can be selected when the current channel is abnormal, communication is continued based on the alternative communication channels, and the communication efficiency is improved.
In accordance with the foregoing embodiments, please refer to fig. 3, where fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, and one or more programs, which are applied to the electronic device, the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the programs include instructions for performing the following steps:
acquiring a first channel parameter of a first communication channel between the electronic equipment and target Internet of things equipment;
when the first channel parameter meets a preset condition, acquiring a second communication channel between the electronic equipment and the target Internet of things equipment;
and realizing the communication function between the electronic equipment and the target Internet of things equipment through the second communication channel.
Optionally, in the aspect of acquiring the second communication channel between the electronic device and the target internet of things device, the program includes instructions for performing the following steps:
determining a local area network where the electronic equipment and the target Internet of things equipment are located together;
generating a plurality of reference communication channels between the electronic device and the target internet of things device based on a network architecture of the local area network, wherein the plurality of reference communication channels comprise the first communication channel;
estimating the channel quality of each reference communication channel in the plurality of reference communication channels to obtain a plurality of channel quality values, wherein the first communication channel corresponds to a first channel quality value;
selecting a channel quality value greater than a first channel quality value from the plurality of channel quality values to obtain at least one channel quality value;
and taking one or more reference communication channels corresponding to the at least one channel quality value as the second communication channel.
Optionally, the program further comprises instructions for performing the steps of:
performing channel quality evaluation according to the first channel parameter to obtain a first channel quality value;
and when the first channel quality value is smaller than a preset threshold value, determining that the first channel parameter meets the preset condition.
Optionally, when the second communication channel includes a plurality of communication channels, in terms of implementing a communication function between the electronic device and the target internet of things device through the second communication channel, the program includes instructions for performing the following steps:
acquiring target data;
determining the transmission rate of each communication channel in the plurality of communication channels to obtain a plurality of transmission rates;
dividing the target data into a plurality of data packets according to the plurality of transmission rates;
transmitting the plurality of data packets over the plurality of communication channels.
Optionally, in the aspect of acquiring the second communication channel between the electronic device and the target internet of things device, the program includes instructions for performing the following steps:
acquiring a target position of the electronic equipment;
determining a target standby communication channel corresponding to the target position according to a mapping relation between a preset position and a standby communication channel;
and taking the target standby communication channel as the second communication channel.
It can be seen that, in the electronic device described in this embodiment of the application, a first channel parameter of a first communication channel between the electronic device and a target internet of things device is obtained, when the first channel parameter meets a preset condition, a second communication channel between the electronic device and the target internet of things device is obtained, and a communication function between the electronic device and the target internet of things device is realized through the second communication channel.
Fig. 4A is a block diagram of functional units of a wireless internet of things channel management apparatus 400 according to an embodiment of the present application. This wireless thing networking channel management device 400 is applied to electronic equipment, device 400 includes: a first acquisition unit 401, a second acquisition unit 402, and a communication unit 403, wherein,
the first obtaining unit 401 is configured to obtain a first channel parameter of a first communication channel between the electronic device and a target internet of things device;
the second obtaining unit 402 is configured to obtain a second communication channel between the electronic device and the target internet of things device when the first channel parameter meets a preset condition;
the communication unit 403 is configured to implement a communication function between the electronic device and the target internet of things device through the second communication channel.
Optionally, in terms of acquiring the second communication channel between the electronic device and the target internet of things device, the second acquiring unit 402 is specifically configured to:
determining a local area network where the electronic equipment and the target Internet of things equipment are located together;
generating a plurality of reference communication channels between the electronic device and the target internet of things device based on a network architecture of the local area network, wherein the plurality of reference communication channels comprise the first communication channel;
estimating the channel quality of each reference communication channel in the plurality of reference communication channels to obtain a plurality of channel quality values, wherein the first communication channel corresponds to a first channel quality value;
selecting a channel quality value greater than a first channel quality value from the plurality of channel quality values to obtain at least one channel quality value;
and taking one or more reference communication channels corresponding to the at least one channel quality value as the second communication channel.
Alternatively, as shown in fig. 4B, fig. 4B is still another structure of the wireless internet of things channel management apparatus shown in fig. 4A, and compared with fig. 4A, the apparatus may further include: an evaluation unit 404 and a determination unit 405, wherein,
the evaluation unit 404 is configured to perform channel quality evaluation according to the first channel parameter to obtain the first channel quality value;
the determining unit 405 is configured to determine that the first channel parameter meets the preset condition when the first channel quality value is smaller than a preset threshold.
Optionally, when the second communication channel includes a plurality of communication channels, in terms of implementing a communication function between the electronic device and the target internet of things device through the second communication channel, the communication unit 403 is specifically configured to:
acquiring target data;
determining the transmission rate of each communication channel in the plurality of communication channels to obtain a plurality of transmission rates;
dividing the target data into a plurality of data packets according to the plurality of transmission rates;
transmitting the plurality of data packets over the plurality of communication channels.
Optionally, in terms of acquiring the second communication channel between the electronic device and the target internet of things device, the second acquiring unit 402 is specifically configured to:
acquiring a target position of the electronic equipment;
determining a target standby communication channel corresponding to the target position according to a mapping relation between a preset position and a standby communication channel;
and taking the target standby communication channel as the second communication channel.
It can be seen that the wireless internet of things channel management device described in the embodiment of the application is applied to an electronic device, obtains a first channel parameter of a first communication channel between the electronic device and a target internet of things device, obtains a second communication channel between the electronic device and the target internet of things device when the first channel parameter meets a preset condition, and realizes a communication function between the electronic device and the target internet of things device through the second communication channel.
It can be understood that the functions of each program module of the wireless internet of things channel management apparatus according to this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A wireless Internet of things channel management method is applied to electronic equipment and comprises the following steps:
acquiring a first channel parameter of a first communication channel between the electronic device and a target internet of things device, wherein the first channel parameter comprises a transmission rate, and specifically comprises: acquiring a target position; determining a target channel set corresponding to the target position according to a mapping relation between a preset position and the channel set; acquiring a target channel parameter set corresponding to the target channel set; selecting the first channel parameter corresponding to the first communication channel;
when the first channel parameter meets a preset condition, acquiring a second communication channel between the electronic equipment and the target Internet of things equipment;
and realizing the communication function between the electronic equipment and the target Internet of things equipment through the second communication channel.
2. The method of claim 1, wherein the obtaining a second communication channel between the electronic device and the target internet of things device comprises:
determining a local area network where the electronic equipment and the target Internet of things equipment are located together;
generating a plurality of reference communication channels between the electronic device and the target internet of things device based on a network architecture of the local area network, wherein the plurality of reference communication channels comprise the first communication channel;
estimating the channel quality of each reference communication channel in the plurality of reference communication channels to obtain a plurality of channel quality values, wherein the first communication channel corresponds to a first channel quality value;
selecting a channel quality value greater than a first channel quality value from the plurality of channel quality values to obtain at least one channel quality value;
and taking one or more reference communication channels corresponding to the at least one channel quality value as the second communication channel.
3. The method of claim 2, further comprising:
performing channel quality evaluation according to the first channel parameter to obtain a first channel quality value;
and when the first channel quality value is smaller than a preset threshold value, determining that the first channel parameter meets the preset condition.
4. The method according to claim 2 or 3, wherein when the second communication channel includes a plurality of communication channels, the implementing, through the second communication channel, the communication function between the electronic device and the target internet of things device includes:
acquiring target data;
determining the transmission rate of each communication channel in the plurality of communication channels to obtain a plurality of transmission rates;
dividing the target data into a plurality of data packets according to the plurality of transmission rates;
transmitting the plurality of data packets over the plurality of communication channels.
5. The method of claim 1, wherein the obtaining a second communication channel between the electronic device and the target internet of things device comprises:
acquiring a target position of the electronic equipment;
determining a target standby communication channel corresponding to the target position according to a mapping relation between a preset position and a standby communication channel;
and taking the target standby communication channel as the second communication channel.
6. A wireless Internet of things channel management device is applied to electronic equipment and comprises: a first acquisition unit, a second acquisition unit, and a communication unit, wherein,
the first obtaining unit is configured to obtain a first channel parameter of a first communication channel between the electronic device and a target internet of things device, where the first channel parameter includes a transmission rate, and specifically is: acquiring a target position; determining a target channel set corresponding to the target position according to a mapping relation between a preset position and the channel set; acquiring a target channel parameter set corresponding to the target channel set; selecting the first channel parameter corresponding to the first communication channel;
the second obtaining unit is configured to obtain a second communication channel between the electronic device and the target internet of things device when the first channel parameter meets a preset condition;
the communication unit is configured to implement a communication function between the electronic device and the target internet of things device through the second communication channel.
7. The apparatus according to claim 6, wherein, in the aspect of acquiring the second communication channel between the electronic device and the target internet of things device, the second acquiring unit is specifically configured to:
determining a local area network where the electronic equipment and the target Internet of things equipment are located together;
generating a plurality of reference communication channels between the electronic device and the target internet of things device based on a network architecture of the local area network, wherein the plurality of reference communication channels comprise the first communication channel;
estimating the channel quality of each reference communication channel in the plurality of reference communication channels to obtain a plurality of channel quality values, wherein the first communication channel corresponds to a first channel quality value;
selecting a channel quality value greater than a first channel quality value from the plurality of channel quality values to obtain at least one channel quality value;
and taking one or more reference communication channels corresponding to the at least one channel quality value as the second communication channel.
8. The apparatus of claim 7, further comprising: an evaluation unit and a determination unit, wherein,
the evaluation unit is used for evaluating the channel quality according to the first channel parameter to obtain the first channel quality value;
the determining unit is configured to determine that the first channel parameter meets the preset condition when the first channel quality value is smaller than a preset threshold.
9. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201911420263.7A 2019-12-31 2019-12-31 Wireless internet of things channel management method and related device Active CN111385043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911420263.7A CN111385043B (en) 2019-12-31 2019-12-31 Wireless internet of things channel management method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911420263.7A CN111385043B (en) 2019-12-31 2019-12-31 Wireless internet of things channel management method and related device

Publications (2)

Publication Number Publication Date
CN111385043A CN111385043A (en) 2020-07-07
CN111385043B true CN111385043B (en) 2021-11-23

Family

ID=71218574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911420263.7A Active CN111385043B (en) 2019-12-31 2019-12-31 Wireless internet of things channel management method and related device

Country Status (1)

Country Link
CN (1) CN111385043B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259935B (en) * 2021-03-31 2023-12-01 上海高仙自动化科技发展有限公司 Communication method, communication device, intelligent robot, and readable storage medium
CN114157925A (en) * 2021-08-31 2022-03-08 佛山市顺德区美的饮水机制造有限公司 Water intaking data transmission method, device and system
CN113660709A (en) * 2021-10-20 2021-11-16 翱捷科技(深圳)有限公司 Earphone communication control method and system, earphone and electronic equipment
CN114339737B (en) * 2021-12-23 2023-06-09 咻享智能(深圳)有限公司 Wireless communication instruction encryption method and related equipment
CN114286451B (en) * 2021-12-23 2023-09-22 咻享智能(深圳)有限公司 Wireless communication instruction compression method and related device
CN114614924A (en) * 2022-03-14 2022-06-10 珠海莲鸿科技有限公司 Channel switching method and device of communication module and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018027680A1 (en) * 2016-08-10 2018-02-15 华为技术有限公司 Method for automatically selecting and switching channel, wireless access point and system
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus
CN110049505A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN110225291A (en) * 2019-05-22 2019-09-10 深圳壹账通智能科技有限公司 A kind of data transmission method, device and computer equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102126994B1 (en) * 2014-06-17 2020-06-25 삼성전자주식회사 Method for selecting channel and an electronic device thereof
US10285200B2 (en) * 2016-01-11 2019-05-07 Apple Inc. Channel access policy control during wireless communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018027680A1 (en) * 2016-08-10 2018-02-15 华为技术有限公司 Method for automatically selecting and switching channel, wireless access point and system
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus
CN110049505A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN110225291A (en) * 2019-05-22 2019-09-10 深圳壹账通智能科技有限公司 A kind of data transmission method, device and computer equipment

Also Published As

Publication number Publication date
CN111385043A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN111385043B (en) Wireless internet of things channel management method and related device
CN111050417B (en) Wireless Internet of things equipment control method and related device
EP3430833B1 (en) Cloud-based control of a wi-fi network
EP2756709B1 (en) Providing communication path information in hybrid networks
US9877245B2 (en) Determining a threshold value for determining whether to steer a particular node from associating with one node to another node in a wireless environment
CN111163442B (en) Route planning method and related device for wireless Internet of things
CN111770478A (en) Data transmission control method based on wireless Internet of things and related device
CN111866897B (en) Networking method of intelligent household system and intelligent household system
CN113965474A (en) Network quality evaluation method, electronic device and storage medium
CN110958570B (en) Wireless Internet of things data communication method and related device
Sun et al. Cross-layer QoS optimization of wireless sensor network for smart grid
Lai et al. Achieving Max–Min lifetime and fairness with rate allocation for data aggregation in sensor networks
CN111786835A (en) Fault repairing method based on wireless Internet of things and related device
CN112995043B (en) Information processing method and device in wireless mesh network and electronic equipment
CN108135035A (en) A kind of ZigBee equipment ad hoc network methods based on autonomous learning
Lohier et al. A cost function for QoS-aware routing in multi-tier wireless multimedia sensor networks
CN209279348U (en) Air-conditioner control system based on Thread agreement
Gunantara et al. Multi-objective cross-layer optimization with Pareto method for relay selection in multihop wireless ad hoc networks
Tomer et al. An enhanced software framework for improving qos in iot
CN111417096B (en) Wireless Internet of things node management method and related device
Guo et al. A realized on-demand cross-layer connection strategy for wireless self-organization link based on WLAN
Lyu et al. Efficient and scalable distributed autonomous spatial Aloha networks via local leader election
Wang et al. End-to-end fair rate optimization in wired-cum-wireless networks
Liang et al. A Realities Model Simulation Platform of Wireless Home Area Network in Smart Grid
Zhang Interference graph construction for D2D underlaying cellular networks and missing rate analysis

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant