CN111641465B - Channel switching method, device, server and storage medium - Google Patents

Channel switching method, device, server and storage medium Download PDF

Info

Publication number
CN111641465B
CN111641465B CN202010431986.3A CN202010431986A CN111641465B CN 111641465 B CN111641465 B CN 111641465B CN 202010431986 A CN202010431986 A CN 202010431986A CN 111641465 B CN111641465 B CN 111641465B
Authority
CN
China
Prior art keywords
channel
switching
interfered
group
parameter
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
CN202010431986.3A
Other languages
Chinese (zh)
Other versions
CN111641465A (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.)
Wuhan Easylinkin Technology Co ltd
Original Assignee
Wuhan Easylinkin Technology 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 Wuhan Easylinkin Technology Co ltd filed Critical Wuhan Easylinkin Technology Co ltd
Priority to CN202010431986.3A priority Critical patent/CN111641465B/en
Publication of CN111641465A publication Critical patent/CN111641465A/en
Application granted granted Critical
Publication of CN111641465B publication Critical patent/CN111641465B/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/309Measuring or estimating channel quality parameters
    • H04B17/345Interference values
    • 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

Abstract

The embodiment of the application discloses a channel switching method, a device, a server and a storage medium, wherein the method comprises the following steps: determining interference information of a first channel within a first channel group based on data transmitted by the first channel or a parameter of the first channel; determining interference information for the first channel group based on the interference information for the first channel; switching the first channel to a second channel based on interference information of the first channel group. Therefore, the interference channel can be quickly found, the interference-free channel can be analyzed, and the switching of the channel can be completed, so that the influence of an interference source in the data transmission process of the terminal equipment is reduced as much as possible, the stable transmission of the network is further ensured, and the data packet loss rate is reduced.

Description

Channel switching method, device, server and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a channel switching method, an apparatus, a server, and a storage medium.
Background
In the LoRaWAN project, professional measurement personnel measure the channel environment condition in the project environment, and select an initial channel according to the LoRaWAN standard protocol and local regulations. Thus, according to the accessed device channel, the terminal device and the network device are selected.
However, when the channel environment becomes poor, for example, when a broadcasting station is newly built locally, the broadcast signal interferes with the channel, and thus the performance of the channel is affected, affecting the transmission of data between the terminal device and the network device. Finally, the network device cannot demodulate the data transmitted by the terminal device, so that the data packet loss rate is improved, and the application requirements of the user cannot be met.
Disclosure of Invention
In view of this, embodiments of the present application provide a channel switching method, an apparatus, a server, and a storage medium, which can determine an interfered channel in time and quickly switch channels, thereby ensuring stable transmission of a network and reducing a data packet loss rate.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a channel switching method, where the method includes:
determining interference information of a first channel within a first channel group based on data transmitted by the first channel or a parameter of the first channel;
determining interference information for the first channel group based on the interference information for the first channel;
switching the first channel to a second channel based on interference information of the first channel group.
In some embodiments, the determining interference information for a first channel within a first channel group based on data transmitted by the first channel or a parameter of the first channel comprises:
and confirming that the first channel is interfered when the data size transmitted by the first channel is zero and the network equipment corresponding to the first channel is in a normal state.
In some embodiments, the determining interference information for a first channel within a first channel group based on data transmitted by the first channel or a parameter of the first channel comprises:
confirming that the first channel is interfered if the parameter of the first channel satisfies a first condition.
In some embodiments, said confirming that the first channel is interfered if the parameter of the first channel satisfies a first condition comprises:
determining a first parameter average value of the first channel in a first time period under the condition that parameters of the first channel in the first time period all meet a second condition;
acquiring a second parameter mean value of the first channel in a second time period;
confirming that the first channel is interfered in the second time period on the condition that the relation between the first parameter mean value and the second parameter mean value meets the first condition; the first time period is earlier than the second time period.
In some embodiments, said confirming that the first channel is interfered if the parameter of the first channel satisfies a first condition comprises:
acquiring a third parameter mean value of the first channel in a third time period;
confirming that the first channel is interfered within the third time period if the relationship between the third parameter mean and the first threshold satisfies the first condition.
In some embodiments, the determining interference information for the first channel group based on the interference information for the first channel comprises:
determining the proportion of interfered channels in the first channel group based on the number of interfered channels and the number of non-interfered channels in the first channel group;
determining interference information for the first channel group based on the ratio.
In some embodiments, said switching said first channel to a second channel based on interference information of said first channel group comprises:
when the ratio is greater than a third threshold, switching the first channel to a second channel in a second channel group;
or, when the ratio is not greater than a third threshold, switching the interfered first channel in the first channel group to a second channel in the first channel group; the channel quality of the second channel is better than the channel quality of the first channel.
In some embodiments, said switching said first channel to a second channel based on interference information of said first channel group comprises:
determining auxiliary test network equipment and an auxiliary test terminal;
testing parameters of candidate channels by using the auxiliary test network equipment and the auxiliary test terminal;
when the parameter of the candidate channel meets a third condition, determining the candidate channel as a second channel;
switching the first channel to the second channel.
In some embodiments, said switching said first channel to a second channel comprises:
in the case that the candidate channels can include a candidate channel with grouping information and a candidate channel without grouping information, switching the first channel with grouping information in the first channel group to the candidate channel with grouping information, and switching the first channel without grouping information in the first channel group to the candidate channel without grouping information.
In some embodiments, before the switching the first channel to the second channel based on the interference information of the first channel group, the method comprises:
and sending the switching time of the channel, wherein the switching time is used for switching the first channel to the second channel.
In a second aspect, an embodiment of the present application provides a channel switching apparatus, where the apparatus includes: the device comprises a channel interference determining module, an interference information determining module and a channel switching module;
the channel interference determining module is configured to determine interference information of a first channel in a first channel group based on data transmitted by the first channel or a parameter of the first channel;
the interference information determining module is configured to determine interference information of the first channel group based on the interference information of the first channel;
the channel switching module is configured to switch the first channel to a second channel based on the interference information of the first channel group.
In a third aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of the channel switching method according to any one of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides a computer storage medium, where a channel switching program is stored on the computer storage medium, and the channel switching program, when executed by a processor, implements the steps of the channel switching method according to any one of the embodiments of the present application.
The channel switching method provided by the above embodiment includes: determining interference information of a first channel within a first channel group based on data transmitted by the first channel or a parameter of the first channel; determining interference information for the first channel group based on the interference information for the first channel; switching the first channel to a second channel based on interference information of the first channel group. Therefore, the interference channel can be quickly found, the interference-free channel can be analyzed, and the switching of the channel can be completed, so that the influence of an interference source in the data transmission process of the terminal equipment is reduced as much as possible, the stable transmission of the network is further ensured, and the data packet loss rate is reduced.
Drawings
Fig. 1 is a schematic diagram of a system structure of a LoRaWAN in the related art.
Fig. 2 is a schematic processing flow diagram of a channel switching method according to an embodiment of the present application.
Fig. 3 is a schematic processing flow diagram of a channel switching method according to another embodiment of the present application.
Fig. 4 is a schematic structural diagram of a channel switching apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a server in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will describe the specific technical solutions of the present application in further detail with reference to the accompanying drawings in the embodiments of the present application. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In the Low-Power Wide Area Network (LPWAN) industry of the internet of things, as shown in fig. 1, a Network architecture of a Long-distance Radio Wide Area Network (LoRaWAN) includes four parts, namely, a terminal device 101, a Network device 102, a server 103, and an application server 104. A plurality of terminal devices and a plurality of network devices may be included in the LoRaWAN. The terminal device may only transmit data in the channel that the network device listens to, and the data may be received by the network device. The network equipment transmits the data to the server, and finally the server transmits the data to the application server.
It should be noted that, in the embodiment of the present application, the server may include a network server 103, and the network server 103 integrates the LoRaWAN network protocol service and the LoRaWAN network management service, and has the LoRaWAN data processing function, the terminal device 101, and the network device 102 management function specified in the LoRaWAN protocol standard. Network device 102 may include a gateway or a base station, terminal device 101 may include a communication terminal, and terminal device 101 and the network device communicate with each other using the LoRaWAN protocol. In the LoRaWAN protocol, there are default 2-3 channels for the channel plan in a region. In other channels, the server generally transmits the response to the terminal device through the network access during the network access process of the terminal device, so that the number of channels through which the terminal device can transmit data reaches about 8. If the LoRa frequency band supports higher-speed channels, the server will make the number of channels available in the LoRa frequency band reach 8-10 by sending a new channel creating instruction, so that the channels between the network device and the terminal device are determined to be 8-10 channels after the network device is started. In addition, there are some regional channel plans as packet channels, such as CN470-510 channel plan in china, which is divided into multiple groups of channels, and each group of channels can be used in the project.
In the network access aspect, the terminal device of the LoRaWAN generally has two mechanisms, namely a network access mechanism and a network drop protection mechanism. The network access mechanism is a network access strategy of the terminal equipment. For example, the network access policy may include a policy of a channel used by the terminal device for network access, a retransmission policy for network access once, a network re-access policy, and the like. The network drop protection mechanism can comprise a strategy of the terminal device under which condition to re-enter the network after successful network entry. For example, after data transmission fails 10 times continuously, the terminal device initiates a re-network access request, and reestablishes a session at the server. Here, the reason why the terminal device fails to transmit data may be that the server loses the session of the terminal device, so that the data transmitted by the terminal device is discarded at the server side.
There are two schemes for the LoRaWAN to switch channels. The first solution is to remotely upgrade the network device and the terminal device at the initial stage to meet the actual requirements of the project. The process of remote upgrade is cumbersome. And the number of terminal devices is large, and the technology for upgrading the terminal devices through the network server is not mature enough, the stability is not enough and potential safety hazards exist. Therefore, the terminal device needs to be manually upgraded. Therefore, the adoption of the scheme to complete one-time channel switching needs to consume more human resources, and the completion speed is slow, so that the service interruption time is extremely long. Meanwhile, the problem of overlarge power consumption exists in the remote upgrading of the terminal equipment.
The second solution is to upgrade the network device remotely, but not upgrade the terminal device. And force the terminal device to disconnect from the server, i.e. the server deletes the session of the terminal device. And waiting for the terminal equipment to trigger a network drop protection mechanism, so that the terminal equipment is switched to access the network according to a channel preset by the terminal equipment after being disconnected for a period of time until the network access is successful. In this scheme, the channel monitored by the network device is already the upgraded channel, and the terminal device accesses the network according to the preset access policy, thereby completing the channel switching. In this scheme, the terminal device generally pre-allocates a plurality of channel groups, and the terminal device performs channel switching access in each channel group. When the terminal device is switched to the channel group consistent with the network device, the terminal device can access the network, so that the terminal device completes channel switching. However, this solution may result in a service interruption time that is too long and a poor user experience.
Meanwhile, the prior art does not solve the problem of how to quickly find the channel interference and how to determine how to avoid the interference source after the channel switching, so that the interference is avoided.
In one aspect of the embodiments of the present application, a channel switching method is provided, where a processing flow of the channel switching method is shown in fig. 2, and the channel switching method includes the following steps:
step 21, determining interference information of the first channel based on the data transmitted by the first channel in the first channel group or the parameter of the first channel.
Here, the data transmitted by the first channel may include data transmitted by the terminal device to the server. The parameters of the first channel may comprise quality parameters of the channel, such as signal-to-noise ratio of the channel, transmission rate of the channel, and signal quality of the channel. Since the server monitors the network device and the terminal device in the LoRaWAN, the condition that each terminal transmits data through each channel can be counted. Therefore, the server acquires the data transmitted by the first channel and the parameters of the plurality of first channels according to the condition that each terminal device transmits the data through the first channel in the first channel group.
In the embodiment of the present application, in LoRaWAN, a plurality of network devices and a plurality of terminal devices communicate with each other by using the same channel group. A plurality of channels of different frequencies may be included in the first channel group.
In some embodiments, step 21, determining interference information of the first channel based on the data transmitted by the first channel or the parameter of the first channel in the first channel group, includes:
step 21a, the server confirms that the first channel is interfered when the size of the data transmitted by the first channel is zero and the network device corresponding to the first channel is in a normal state.
Here, the data transmitted by the first channel may include uplink data. The network device being in the normal state includes the network device being in a state in which data can be normally transmitted to the server and the terminal device. And the server counts uplink data sent by the plurality of terminal devices through the first channel in the first channel group. And if the server detects that the uplink data transmitted to the server by the terminal equipment through the first channel is zero and determines that the network equipment corresponding to the first channel is in a normal state, the server confirms that the first channel is interfered.
It should be noted that the server may determine the state of the network device corresponding to the first channel by periodically detecting the state of the network device. The server may also determine the state of the network device corresponding to the first channel according to the state of the network device periodically reported by the network device. In the embodiment of the present application, a manner of determining the state of the network device by the server is not particularly limited.
In some embodiments, the server determines the interference information of the first channel according to the number of terminal devices whose uplink data transmitted to the server through the first channel is zero.
Here, when the number of the terminal devices is smaller than the second threshold, the server confirms that the uplink data transmitted from the terminal device to the server through the first channel is zero, which may be caused by an abnormality of the terminal device. And when the number of the terminal devices is not less than the second threshold value, the server confirms that the first channel is interfered after confirming that the channel used by the terminal device in the LoRaWAN belongs to the channel monitored by the network device. Wherein the channels listened to by the network device can be confirmed through the channel list. The channel used by the terminal device may be confirmed by product testing or software installed in the terminal device. In the embodiment of the present application, there is no specific limitation on the method for determining the channel monitored by the network device and the channel used by the terminal device.
In some embodiments, step 21, determining interference information of the first channel based on the data transmitted by the first channel or the parameter of the first channel in the first channel group, includes:
in step 21b, the server confirms that the first channel is interfered when the parameter of the first channel satisfies the first condition.
Here, the first condition may include a condition that determines that the first channel is interfered. The server judges whether the parameter of the first channel confirmed after the network equipment demodulates the uplink data meets a first condition or not, and confirms whether the first channel is interfered or not according to a judgment result.
In some embodiments, step 21b, in case the parameter of the first channel satisfies the first condition, the server confirms that the first channel is interfered, including:
step 2111b, obtaining a third parameter mean value of the first channel in a third time period;
step 2112b, confirming that the first channel is interfered in the third time period, in case that the relation between the third parameter mean value and the first threshold satisfies the first condition.
Here, the third parameter average may include an average of the parameters of the first channel over the third time period. The server determines whether the first channel is interfered by comparing an average of parameters of the first channel over a period of time with a magnitude of a first threshold.
For example, the parameter of the first channel may comprise a signal-to-noise ratio. The snr is a ratio of received power of a desired signal to received power of an interfering signal. The third parameter average may include an average of signal-to-noise ratios of the first channel in a third time period, and the first condition may include determining that the channel is interfered when the average of the signal-to-noise ratios of the channel in a time period is less than a first threshold. The server compares the average value of the signal-to-noise ratios of the first channel in the third time period with the size of the first threshold. When the mean value of the signal-to-noise ratio of the first channel in the third time period is smaller than the first threshold value, the server confirms that the first channel parameter meets the first condition, and therefore the server determines that the first channel is interfered. Therefore, the server judges the interference information of the first channel according to the channel mean value in a period of time, so that the misjudgment of the interference information of the first channel caused by the parameter of the first channel confirmed by the server after the uplink data is once can be avoided, and the accuracy of judging the interference information is improved.
In some embodiments, step 21b, in case the parameter of the first channel satisfies the first condition, the server confirms that the first channel is interfered, including:
and step 2121b, determining a first parameter mean value of the first channel in the first time period under the condition that the parameters of the first channel in the first time period all meet the second condition.
Here, the second condition may include a condition that determines that the channel is not interfered. Because the parameters of the first channel in the first time period all meet the second condition, the server confirms that the first channel is in a normal condition in the first time period, and can normally transmit data. The first parameter average may include an average of parameters of the first channel over a first time period. The first time period may be determined based on a time window of a certain length.
For example, the parameter of the first channel may include a signal-to-noise ratio, and the second condition may include determining that the first channel is not interfered when the signal-to-noise ratio of the channel is not less than a first threshold. When the signal-to-noise ratio of the first channel after data transmission in the first time period each time is greater than the first threshold, the server determines that the parameters of the first channel in the first time period all meet the second condition, so that the first channel is confirmed to normally transmit data in the first time period, and further determines the average value of the signal-to-noise ratio of the first channel in the first time period.
And 2122b, obtaining a second parameter average value of the first channel in a second time period.
Here, the first time period is earlier than the second time period. The second parameter average may include an average of parameters of the first channel over a second time period. In addition, the difference value between the time length of the first time period and the time length of the second time period is in a time range. The time interval between the first time period and the second time period is also within another time range.
And 2123b, confirming that the first channel is interfered in the second time period under the condition that the relation between the first parameter average value and the second parameter average value meets the first condition.
Here, the first condition may include a condition that the first parameter mean value is better than the second parameter mean value. The first condition may include that the first parameter mean value is greater than the second parameter mean value, and a difference between the first parameter mean value and the second parameter mean value exceeds a set threshold. The first condition may further include that the first parameter mean value is smaller than the second parameter mean value, and a difference between the first parameter mean value and the second parameter mean value exceeds a set threshold.
For example, the parameter of the first channel may include a signal-to-noise ratio, the first parameter average may include an average of the signal-to-noise ratio of the first channel over a first time period, and the second parameter average may include an average of the signal-to-noise ratio of the first channel over a second time period. The first condition may include that the first parameter mean value is greater than the second parameter mean value, and a difference between the first parameter mean value and the second parameter mean value exceeds a set threshold. In the case where the relationship between the mean value of the signal-to-noise ratios in the first period and the mean value of the signal-to-noise ratios in the second period satisfies the first condition, the server confirms that the first channel is interfered in the second period.
For example, the parameter of the first channel may include a signal quality, the first parameter mean value may include a mean value of the signal quality of the first channel over a first time period, and the second parameter mean value may include a mean value of the signal quality of the first channel over a second time period. The first condition may include that the first parameter mean value is smaller than the second parameter mean value, and a difference between the first parameter mean value and the second parameter mean value exceeds a set threshold. In the case where the relationship between the mean value of the signal quality in the first period and the mean value of the signal quality in the second period satisfies the first condition, the server confirms that the first channel is interfered in the second period.
In the above embodiment, the server determines the interference information of the first channel according to the comparison result of the parameter average values of the first channel in two different time periods. The threshold value of the first channel interference is dynamically determined according to the historical parameters of the first channel, so that the interference information of the first channel is accurately judged.
Step 22, determining interference information of the first channel group based on the interference information of the first channel.
Here, the interference information of the first channel group may include information of an interfered channel, information of an undisturbed channel, a degree of channel interference, an interference range, and the like. The information of the interfered channel may include the number of interfered channels, and the information of the non-interfered channel may include the number of non-interfered channels. The server determines interference information for the first channel group based on interference information for a plurality of first channels within the first channel group.
It should be noted that, in this embodiment of the present application, the server may determine the interference information of the first channel group based on the interference information of the plurality of first channels in the first channel group between the group of terminal devices and the network device. The server may also determine interference information for a first channel group between multiple sets of terminal devices and network devices based on interference information within the first channel group in the LoRaWAN. In addition, because the transmission distance in LoRaWAN is long, the network structure is single, so that the server can quickly determine the signal interference range.
In some embodiments, step 22, determining interference information for the first channel group based on the interference information for the first channel comprises:
step 221, determining the proportion of the interfered channels in the first channel group based on the number of the interfered channels and the number of the non-interfered channels in the first channel group.
Step 222, determining interference information of the first channel group based on the proportion of the interfered channels in the first channel group.
Here, the interference information of the first channel group may include an interference range of the first channel group. The server determines a number of interfered channels and a number of non-interfered channels in the first channel group based on interference information of a plurality of first channels in the first channel group. And the server determines the proportion of the interfered channels in the first channel group according to the number of the interfered channels and the number of the non-interfered channels. And the server determines the interference range of the first channel group according to the proportion of the interfered channels. In this way, the server determines the interference range of the first channel group according to the number of interfered channels in the first channel group, so as to evaluate the condition that the interference source interferes with the first channel group.
In some embodiments, step 22, determining interference information for the first channel group based on the interference information for the first channel comprises:
the server determines an interference range of the first channel group based on the number of interfered channels in the first channel group and the interference degree of the channels.
Here, the interfered degree of the channel may be determined according to the signal quality and/or the signal-to-noise ratio of the channel. For example, different levels of interference levels are set according to the parameter ranges of the signal quality and/or the signal to noise ratio, and when the signal quality and/or the signal to noise ratio of the channel is within the range of which level, the server confirms that the interfered level of the channel belongs to the level.
In the above embodiment, since the distances between the interference source and each terminal device are different, the interference conditions of the channels in the first channel group between each terminal device and the network device are different. Therefore, the interference range of the first channel group can be more accurately determined by adopting the interfered degree of the channels and the number of interfered channels.
In step 23, the server switches the first channel to the second channel based on the interference information of the first channel group.
Here, the second channel is different from the first channel. For example, the second channel may include other channels within the first channel group other than the first channel, and may also include channels not within the first channel group.
In the embodiment of the application, a server determines interference information of a first channel according to data transmitted based on the first channel in a first channel group or parameters of the first channel; determining interference information for the first channel group based on the interference information for the first channel; switching the first channel to a second channel based on interference information of the first channel group. Therefore, the interference channel can be quickly found, the interference-free channel can be analyzed, and the switching of the channel can be completed, so that the influence of an interference source in the data transmission process of the terminal equipment is reduced as much as possible, the stable transmission of a network is further ensured, the data packet loss rate is reduced, and the requirements of users are met.
In some embodiments, the step 23 of switching the first channel to the second channel based on the interference information of the first channel group includes:
and when the proportion of the interfered channels in the first channel group is greater than a third threshold value, switching the first channel to a second channel in the second channel group.
Here, the channel quality of the second channel is better than the channel quality of the first channel. And when the proportion of the interfered channels in the first channel group is greater than a third threshold value, the server switches the channels of the first channel group to the channels of the second channel group. In this way, when the interference range of the first channel group exceeds a certain range, the number of interfered channels is large, so that the server switches the first channel group integrally, and the time for completing switching of all interfered channels is saved.
In some embodiments, the step 23 of switching the first channel to the second channel based on the interference information of the first channel group includes:
and when the proportion of the interfered channels in the first channel group is not more than the third threshold value, switching the interfered first channels in the first channel group to the second channels in the first channel group.
Here, the channel quality of the second channel is better than the channel quality of the first channel. For example, the signal-to-noise ratio of the second channel is greater than the signal-to-noise ratio of the first channel. The second channel may include channels within the first channel group and channels not within the first channel group. When the proportion of the interfered channels in the first channel group is not greater than the third threshold, the server switches the interfered first channels in the first channel group to the channels in the first channel group, or switches the interfered first channels in the first channel group to the channels not in the first channel group.
In addition, in the case that the number of channels for switching in the first channel group is less than the number of interfered channels in the first channel group, the server may switch a part of the interfered channels to the channels for switching in the first channel group and another part of the interfered channels to the channels not in the first channel group.
In the above embodiment, when the interference range of the first channel group is within a certain range, the number of interfered channels is small, and therefore, the server switches the interfered channels, so that channel resources are fully utilized, and the influence on data transmission of the terminal device when the channels are switched is reduced. And because the LoRaWAN has the characteristics of more uplink channels and smaller downlink channels, the server switches the first channel to the second channel in the first channel group, and the packet loss rate of the LoRaWAN can still be ensured within a certain range.
In some embodiments, the step 23 of switching the first channel to the second channel based on the interference information of the first channel group includes:
step 231, determining the auxiliary test network device and the auxiliary test terminal.
Here, the server selects a set of network devices and terminal devices in the LoRaWAN as the auxiliary test network devices and the auxiliary test terminals. The network device for auxiliary test may select a network device with less coverage of the terminal device, or select a network device with less coverage of the terminal device with significant interference. And the server selects terminal equipment with obvious interference from the auxiliary test network equipment as an auxiliary test terminal.
Step 232, the auxiliary test network device and the auxiliary test terminal are used to test the parameters of the candidate channels.
Here, after the auxiliary test network device and the auxiliary test terminal are selected, the server selects a candidate channel corresponding to the interfered first channel. The server upgrades the auxiliary test network device and the auxiliary test terminal based on the candidate channel, so that the auxiliary test network device and the auxiliary test terminal can transmit data based on the candidate channel.
In some embodiments, the server upgrades the auxiliary test network device and the auxiliary test terminal based on the candidate channel, including:
the server sends a first channel switching instruction to the auxiliary test terminal, and remotely upgrades the channel list monitored by the auxiliary test network equipment.
Here, the auxiliary test terminal switches the first channel to the candidate channel after receiving the first channel switching instruction sent by the server. And after the auxiliary test network equipment receives the channel list monitored by the server in the remote upgrading mode, replacing the first channel in the channel list with a candidate channel.
In some embodiments, the server issues the first channel switching instruction by using different strategies according to the type of the terminal device.
Here, the terminal devices may include class a terminal devices, class B terminal devices, and class C terminal devices. The Class a terminal device may be referred to as Class a device, the Class B terminal device may be referred to as Class B device, and the Class C terminal device may be referred to as Class C device.
After the Class a device actively uploads the uplink data, two short receiving windows can be opened to receive the downlink data. Therefore, the server issues the first channel switching instruction after receiving the uplink data actively uploaded by the Class A device. Therefore, in the whole LoRaWAN channel switching process, after all terminal equipment in the LoRaWAN receives the first channel switching instruction, the channel switching can be carried out on the network equipment.
Since Class B devices have an extra periodic receive window in addition to the two short downstream receive windows following the upstream data compared to Class a devices. Therefore, the Class B device can receive the first channel switching instruction periodically sent by the server through the periodic window. In this way, even if the Class B device is disconnected from the server during the channel switching process, the periodic reception window may be used to transmit the first channel switching instruction, so that the Class B device and the server can establish contact again. In LoRaWAN, channel switching can be carried out at any time, and the fault tolerance of the network is high.
The receiving window of the Class C terminal is in an open state except for two short receiving windows after the Class A device transmits uplink. Under the condition that the server does not switch the channels of the existing receiving window, the server can send a first channel switching instruction at any time, and the Class C device receives the first channel switching instruction by using the opened receiving window. In LoRaWAN, channel switching can be carried out at any time, and the fault tolerance of the network is high.
And 233, when the parameter of the candidate channel meets the third condition, determining the candidate channel as the second channel.
Here, the third condition may include a condition of judging that the candidate channel belongs to a good channel. The parameter of the candidate channel may include a quality parameter of the channel, for example, the parameter of the candidate channel may include a signal-to-noise ratio, and the third condition may include determining that the candidate channel belongs to a good channel when the signal-to-noise ratio of the candidate channel is greater than a fourth threshold. And when the signal-to-noise ratio of the candidate channel meets a third condition, the server confirms that the candidate channel is a good-quality channel. The parameters of the candidate channel may also include parameters such as transmission rate, signal quality of the channel, etc. The third condition may include determining that the candidate channel belongs to a good channel if the parameter of the candidate channel is within a parameter range. Wherein the parameter ranges may be determined from historical test data. And the server detects the parameters of the candidate channel, and confirms that the candidate channel is a high-quality channel when the parameters of the candidate channel meet a third condition. And when the candidate channel is the high-quality channel, the server determines that the candidate channel is the second channel.
Here, when the server confirms that the candidate channel is not a good channel, the steps of selecting the candidate channel and testing the parameters of the candidate channel are repeatedly performed until the candidate channel is confirmed to be a good channel.
The server switches the first channel to the second channel, step 234.
Here, after the server tests the second channel using the auxiliary test network device and the auxiliary test terminal, the server remotely upgrades the network device other than the auxiliary test network device and the terminal device other than the auxiliary test terminal in the LoRaWAN, and switches the first channel to the second channel. In this manner, the server completes the channel replacement in LoRaWAN.
In addition, to save channel resources and time for channel switching, the server may switch the interfered first channel within the first channel group to the second channel.
In the above embodiment, the server selects the high-quality second channel by using the auxiliary test network device and the auxiliary test terminal, and then switches the first channels of all the terminal devices in the LoRaWAN to the high-quality second channel, thereby ensuring that the switched channels are not interfered and improving the accuracy of channel switching of all the terminal devices in the LoRaWAN.
In some embodiments, step 234, the server switches the first channel to the second channel, including:
and in the case that the candidate channels comprise a candidate channel with grouping information and a candidate channel without grouping information, switching the first channel with the grouping information in the first channel group to the candidate channel with the grouping information, and switching the first channel without the grouping information in the first channel group to the candidate channel without the grouping information.
Here, the candidate channels may include a candidate channel having packet information and a candidate channel having no packet information. The server selects candidate channels with grouping information from preset channel groups and selects candidate channels without grouping information from a candidate list and/or a preset standby plan. Wherein the preset backup plan may include backup channels for which channels within the first channel group are designated for switching.
When the server stores both the backup plan and the candidate list of channels, the server first selects a candidate channel from the backup plan. The candidate channel having grouping information corresponds to a first channel having grouping information within the first channel group. The candidate channels having no grouping information correspond to the first channels having no grouping information within the first channel group.
After the candidate channel is selected, the auxiliary test network device and the auxiliary test terminal are upgraded based on the candidate channel, so that the auxiliary test network device and the auxiliary test terminal can transmit data based on the candidate channel. And the server detects the parameters of the candidate channel, and confirms that the candidate channel is a high-quality channel when the parameters of the candidate channel meet a third condition. And when the candidate channel is the high-quality channel, the server determines that the candidate channel is the second channel.
After the second channel is tested by the auxiliary test network equipment and the auxiliary test terminal, the server remotely upgrades other network equipment except the auxiliary test network equipment and other terminal equipment except the auxiliary test terminal in the LoRaWAN, switches the first channel with the grouping information in the first channel group to the second channel with the grouping information, and switches the first channel without the grouping information in the first channel group to the second channel without the grouping information, so that the server completes the switching of the first channel in the first channel group in the LoRaWAN.
In some embodiments, in a case where the candidate channels include a candidate channel having grouping information and a candidate channel having no grouping information, the server upgrades the auxiliary test network device and the auxiliary test terminal based on the candidate channels, including:
and the server sends a channel group switching instruction to the auxiliary test terminal and remotely upgrades the channel list monitored by the auxiliary test network equipment.
Here, the channel group switching instruction may include a channel switching instruction having packet information and/or a channel switching instruction having no packet information. The channel switch instruction without packet information may comprise a backup channel plan and/or at least one first channel switch instruction. The channel switch instruction with packet information is used to indicate a plurality of channel switches. After receiving a channel group switching instruction sent by a server, the auxiliary test terminal switches a first channel with grouping information in the first channel group to a corresponding candidate channel with grouping information and/or switches a first channel without grouping information to a candidate channel without grouping information. After the auxiliary test network equipment receives the channel list monitored by the server for remote upgrading, the first channel with the grouping information in the channel list is replaced by the corresponding candidate channel with the grouping information, and/or the first channel without the grouping information is replaced by the candidate channel without the grouping information.
In the above embodiment, the server selects the second channel with high quality by using the auxiliary test network device and the auxiliary test terminal, switches the first channel in the first channel group of all the terminal devices in the LoRaWAN to the second channel with high quality, and divides the switching of the channel in the first channel group into the channel switching with the grouping information and the switching without the grouping information, thereby improving the accuracy of the channel group switching of all the terminal devices in the LoRaWAN and saving the time for completing the channel group switching.
In some embodiments, before switching the first channel to the second channel based on the interference information of the first channel group in step 23, the method further comprises:
and step 24, sending the switching time of the channel, wherein the switching time is used for switching the first channel to the second channel.
Here, since in LoRaWAN, the channel used by the terminal device to transmit data is within the monitoring range of the network device, the network device may demodulate the data transmitted by the terminal device. Therefore, after the first channel used by the terminal device is switched to the second channel, the terminal device after completing the channel switching cannot transmit data by using the second channel under the condition that the first channel monitored by the network device is not switched to the second channel. The terminal device can successfully transmit data using the second channel only after the first channel monitored by the network device is switched to the second channel. Therefore, in the case where the terminal device, the network device, and the server are time-synchronized in LoRaWAN, the server transmits the switching time of the channel in LoRaWAN, and the terminal device and the network device receive the switching time of the channel transmitted by the server. At this time, the terminal device and the network device switch channels within the switching time. Therefore, the server appoints the switching time of the channel, the problem that data cannot be normally transmitted due to the fact that the terminal equipment completes channel switching before the network equipment can be avoided to the greatest extent, and the time for completing all channel switching in the network is saved.
In some embodiments, after determining the interference information for the first channel group based on the interference information for the first channel, the method further comprises, at step 22:
when the interfered degree of the first channel is small or the interference range of the first channel group is within a certain range, the server performs speed reduction processing on the first channel.
Here, the interference range of the first channel group may include that the proportion of the interfered channels in the first channel group is smaller than the third threshold value within a certain range. Since the forward error correction technique is used in the LoRa technique, a part of the transmitted data is error correction data, and another part is data actually transmitted by the terminal device. Therefore, the anti-interference performance of the channel has a certain relation with the data transmission rate of the terminal equipment, and the lower the transmission rate is, the stronger the error correction capability is, so that the anti-interference performance of the channel is stronger.
In order to further understand the channel switching method provided in the embodiments of the present application, in another aspect of the embodiments of the present application, a channel switching method is also provided, which is applied to a server. Taking as an example that the interference information of the first channel group may include a ratio of interfered channels, a processing flow of the channel switching method is shown in fig. 3, and the channel switching method includes the following steps:
in step 31, the server determines interference information of the first channel based on data transmitted by the first channel in the first channel group or parameters of the first channel.
Here, since the terminal device transmits data using each channel in an equalization manner, and the server monitors the network device and the terminal device in the LoRaWAN, the server can monitor and count the situation that each terminal device transmits data through each channel. Therefore, the server acquires the data transmitted by the first channel and the parameters of the plurality of first channels according to the condition that each terminal device transmits the data through the first channel in the first channel group.
In some embodiments, step 31, the server determines the interference information of the first channel based on the data transmitted by the first channel in the first channel group or the parameter of the first channel, including:
in step 311a, the server obtains the first channel with zero transmitted data in the first channel group.
In step 312a, when the network device corresponding to the first channel is in a normal state, the server detects the number of terminal devices transmitting data to the server through the first channel as zero and the size of the second threshold.
And step 313a, when the detection result is that the number of the terminal devices transmitting data to the server through the first channel is zero is less than a second threshold value, the server confirms that the terminal devices are abnormal.
In step 314a, when the detection result is that the number of the terminal devices transmitting data zero to the server through the first channel is not less than the second threshold, the server confirms that the first channel is interfered.
Here, the terminal device needs to forward the data through the network device to transmit the data to the server. Therefore, when the network device is in an abnormal state, the data transmitted from the terminal device to the server is also zero. The abnormal state of the network device may include a power-off state of the network device, or a state in which the network device is disconnected from the network. Therefore, in order to reduce the misjudgment of the channel interference due to the state of the network device, the server needs to detect the state of the network device before the server detects the number of terminal devices transmitting data to the server through the first channel as zero and the size of the second threshold.
Here, in order to prevent the server from misjudging that the first channel is interfered due to a problem in the networking configuration, the server detects whether the channel used by the terminal device belongs to the channel monitored by the network device before confirming that the first channel is interfered. Wherein the channels listened to by the network device can be confirmed through the channel list. The channel used by the terminal device may be confirmed by product testing or software installed by the terminal device. And when the detection result is that the number of the terminal devices with zero data transmitted to the server through the first channel is not less than a second threshold value, the server confirms that the first channel is interfered.
In some embodiments, step 31, the server determines the interference information of the first channel based on the data transmitted by the first channel in the first channel group or the parameter of the first channel, including:
in step 311b, the server obtains the parameters of the first channel in the first channel group.
Here, the parameter of the first channel may include a quality parameter of the channel, such as a signal-to-noise ratio of the channel, a transmission rate of the channel, a signal quality of the channel, and the like.
In step 312b, in the case that the parameters of the first channel in the first time period all satisfy the second condition, the server determines the first parameter average value of the first channel in the first time period.
Here, the second condition may include a condition that determines that the channel is not interfered. Since the parameter of the first channel in the first time period satisfies the second condition, the server confirms that the first channel is in a normal condition in the first time period, and can normally transmit data.
In step 313b, the server obtains a second parameter average of the first channel in a second time period.
In step 314b, the server confirms that the first channel is interfered in the second time period when the relation between the first parameter average value and the second parameter average value satisfies the first condition.
Here, the first condition may further include a condition that the first parameter mean value is better than the second parameter mean value. For example, the first condition may include that the first parameter mean value is greater than the second parameter mean value, and a difference between the first parameter mean value and the second parameter mean value exceeds a set threshold. The first condition may further include that the first parameter mean value is smaller than the second parameter mean value, and a difference between the first parameter mean value and the second parameter mean value exceeds a set threshold. Thus, the server determines whether the channel is interfered during a period by comparing the parameters of the channel during the period with the parameters of the channel during the normal period.
Step 32, based on the interference information of the first channel, the server determines the proportion of the interfered channel in the first channel group.
Here, the server determines the number of interfered channels and the number of non-interfered channels in the first channel group based on interference information of a plurality of channels in the first channel group. And the server determines the proportion of the interfered channels in the first channel group according to the number of the interfered channels and the number of the non-interfered channels. And the server determines the interference range of the first channel group according to the proportion of the interfered channels. In this way, the server determines the interference range of the first channel group according to the number of interfered channels in the first channel group, so as to evaluate the condition that the interference source interferes with the first channel group.
In step 33, the server compares the proportion of the interfered channels in the first channel group with a third threshold. When the comparison result shows that the ratio of the interfered channels is smaller than the third threshold, step 34 is executed. And when the comparison result shows that the ratio of the interfered channels is not less than the third threshold, executing step 35.
And step 34, when the comparison result shows that the proportion of the interfered channels is not less than the third threshold, the server switches the first channel to a second channel in the second channel group.
Here, the comparison result is that the proportion of the interfered channel is not less than the third threshold, the comparison result indicates that the range of the channel interference is large, and the server switches the first channel in the first channel group by adopting a strategy of replacing the whole channel plan or switching the whole channel group.
In some embodiments, step 34, the server switching the first channel to a second channel in a second channel group, comprising:
step 341, determine the auxiliary test network device and the auxiliary test terminal.
Here, the server selects a set of network devices and terminal devices in the LoRaWAN as the auxiliary test network devices and the auxiliary test terminals. The network device for auxiliary test may select a network device with less coverage of the terminal device, or select a network device with less coverage of the terminal device with significant interference. And the server selects terminal equipment with obvious interference from the auxiliary test network equipment as an auxiliary test terminal.
Step 342, testing parameters of candidate channels by using the auxiliary test network device and the auxiliary test terminal; wherein the candidate channels include a candidate channel having grouping information and a candidate channel not having grouping information.
Here, the candidate channels may include a candidate channel having packet information and a candidate channel having no packet information. The server selects candidate channels with grouping information from a preset channel grouping and selects candidate channels without grouping information from a candidate list or a preset standby plan. Wherein the candidate channel having grouping information corresponds to a first channel having grouping information within the first channel group. The candidate channels having no grouping information correspond to the first channels having no grouping information within the first channel group. After the candidate channel is selected, the server upgrades the auxiliary test network equipment and the auxiliary test terminal based on the candidate channel, so that the auxiliary test network equipment and the auxiliary test terminal can transmit data based on the candidate channel.
In some embodiments, the server upgrades the auxiliary test network device and the auxiliary test terminal based on the candidate channel, including:
and the server sends a channel group switching instruction to the auxiliary test terminal and remotely upgrades the channel list monitored by the auxiliary test network equipment.
Here, the channel group switching instruction may include a channel switching instruction having packet information and/or a channel switching instruction having no packet information. The channel switch instruction without packet information may include a backup channel plan. The channel switch instruction with packet information is used to indicate a plurality of channel switches. After receiving a channel group switching instruction sent by a server, the auxiliary test terminal switches a first channel with grouping information in the first channel group to a corresponding candidate channel with grouping information and/or switches a first channel without grouping information to a candidate channel without grouping information. After the auxiliary test network equipment receives the channel list monitored by the server for remote upgrading, the first channel with the grouping information in the channel list is replaced by the corresponding candidate channel with the grouping information, and the first channel without the grouping information is replaced by the candidate channel without the grouping information.
Step 343, determining the candidate channel as the second channel if the parameter of the candidate channel satisfies the third condition.
Here, the third condition may include a condition of judging that the candidate channel belongs to a good channel. The third condition may include a condition for determining that the candidate channel belongs to a good quality channel. The parameter of the candidate channel may include a quality parameter of the channel, for example, the parameter of the candidate channel may include a signal-to-noise ratio, and the third condition may include determining that the candidate channel belongs to a good channel when the signal-to-noise ratio of the candidate channel is greater than a fourth threshold. And when the signal-to-noise ratio of the candidate channel meets a third condition, the server confirms that the candidate channel is a good-quality channel. The parameters of the candidate channel may also include parameters such as transmission rate, signal quality of the channel, etc. The third condition may include determining that the candidate channel belongs to a good channel if the parameter of the candidate channel is within a parameter range. Wherein the parameter ranges may be determined from historical test data. And the server detects the parameters of the candidate channel, and confirms that the candidate channel is a high-quality channel when the parameters of the candidate channel meet a third condition. And when the candidate channel is the high-quality channel, the server determines that the candidate channel is the second channel.
Step 344, switching the first channel with grouping information in the first channel group to the candidate channel with grouping information. And switching the first channel without the grouping information in the first channel group to the candidate channel without the grouping information.
Here, when the server confirms that the candidate channel is not a good channel, the steps of selecting the candidate channel and testing the parameters of the candidate channel are repeatedly performed until the candidate channel is confirmed to be a good channel.
And step 35, when the comparison result shows that the proportion of the interfered channel is smaller than the third threshold, the server switches the interfered first channel to the second channel.
Here, the comparison result indicates that the proportion of the interfered channels is smaller than a third threshold, the comparison result indicates that the range of channel interference is smaller, and the server adopts a strategy of replacing a single channel to switch the first channel in the first channel group.
In some embodiments, step 35, when the comparison result is that the proportion of the interfered channel is smaller than the third threshold, the server switches the interfered first channel to the second channel, including:
step 351, determining the auxiliary test network device and the auxiliary test terminal.
Here, the server selects a set of network devices and terminal devices in the LoRaWAN as the auxiliary test network devices and the auxiliary test terminals. The network device for auxiliary test may select a network device with less coverage of the terminal device, or select a network device with less coverage of the terminal device with significant interference. And the server selects terminal equipment with obvious interference from the auxiliary test network equipment as an auxiliary test terminal.
Step 352, the parameters of the candidate channels are tested using the auxiliary test network device and the auxiliary test terminal.
Here, after the auxiliary test network device and the auxiliary test terminal are selected, the server selects a candidate channel corresponding to the interfered first channel from a preset candidate channel list. The server upgrades the auxiliary test network equipment and the auxiliary test terminal based on the candidate channel, so that the auxiliary test network equipment and the auxiliary test terminal can transmit data based on the candidate channel.
In some embodiments, the server upgrades the auxiliary test network device and the auxiliary test terminal based on the candidate channel, including:
and the server sends a channel switching instruction to the auxiliary test terminal and remotely upgrades the channel list monitored by the auxiliary test network equipment.
Here, the auxiliary test terminal switches the first channel to the candidate channel after receiving the channel switching instruction sent by the server. And after the auxiliary test network equipment receives the channel list monitored by the server in the remote upgrading mode, replacing the first channel in the channel list with a candidate channel.
And 353, when the parameter of the candidate channel meets a third condition, determining the candidate channel as a second channel.
Here, the third condition may include a condition of judging that the candidate channel belongs to a good channel. The parameter of the candidate channel may include a quality parameter of the channel, for example, the parameter of the candidate channel may include a signal-to-noise ratio, and the third condition may include determining that the candidate channel belongs to a good channel when the signal-to-noise ratio of the candidate channel is greater than a fourth threshold. And when the signal-to-noise ratio of the candidate channel meets a third condition, the server confirms that the candidate channel is a good-quality channel. The parameters of the candidate channel may also include parameters such as transmission rate, signal quality of the channel, etc. The third condition may include determining that the candidate channel belongs to a good channel if the parameter of the candidate channel is within a parameter range. Wherein the parameter ranges may be determined from historical test data. And the server detects the parameters of the candidate channel, and confirms that the candidate channel is a high-quality channel when the parameters of the candidate channel meet a third condition. And when the candidate channel is the high-quality channel, the server determines that the candidate channel is the second channel.
Here, when the server confirms that the candidate channel is not the good channel, the steps of selecting the candidate channel and testing the parameters of the candidate channel are repeatedly performed until the candidate channel is confirmed to be the good channel.
In step 354, the server switches the interfered first channel to the second channel.
Here, after the server tests the second channel using the auxiliary test network device and the auxiliary test terminal, the server remotely upgrades the other network devices except the auxiliary test network device and the other terminal devices except the auxiliary test terminal in the LoRaWAN, and switches the interfered first channel in the first channel group to the second channel. In this manner, the server completes the channel replacement in LoRaWAN.
In some embodiments, after the server determines the proportion of the interfered channels in the first channel group based on the interference information of the first channel, the method further includes:
and the server sends the switching time of the channel, wherein the switching time is used for switching the first channel to the second channel.
Here, in LoRaWAN, the channel used by the terminal device to transmit the message data is in the monitoring range of the network device, and the network device may demodulate the data transmitted by the terminal device. Therefore, after the first channel used by the terminal device is switched to the second channel, the terminal device after completing the channel switching cannot transmit data by using the second new channel under the condition that the first channel monitored by the network device is not switched to the second channel for replacement. The terminal device can successfully transmit data by using the second channel only after the switching of the first channel monitored by the network device to the second channel is completed. Therefore, in the case where the terminal device, the network device, and the server are time-synchronized in LoRaWAN, the server transmits the switching time of the channel in LoRaWAN, and the terminal device and the network device receive the switching time of the channel transmitted by the server. At this time, the terminal device and the network device switch channels within the switching time. Therefore, the server appoints the switching time of the channel, the problem that data cannot be normally transmitted due to the fact that the terminal equipment completes channel switching before the network equipment can be avoided to the greatest extent, and the time for completing all channel switching in the network is saved.
In another aspect of the embodiment of the present application, a channel switching apparatus is further provided, as shown in fig. 4, which shows a schematic structural diagram of the channel switching apparatus. The channel switching device 40 includes: a channel interference determination module 41, an interference information determination module 42 and a channel switching module 44.
A channel interference determining module 41, configured to determine interference information of the first channel based on data transmitted by the first channel in the first channel group or a parameter of the first channel.
An interference information determining module 42, configured to determine interference information of the first channel group based on the interference information of the channel.
And a channel switching module 44, configured to switch the first channel to the second channel based on the interference information of the first channel group.
In some embodiments, the channel interference determining module 41 is configured to confirm that the first channel is interfered when the size of the data transmitted by the first channel is zero and the network device corresponding to the first channel is in a normal state.
In some embodiments, the channel interference determining module 41 is configured to confirm that the first channel is interfered if the parameter of the first channel is less than the first condition.
In some embodiments, the channel interference determining module 41 is configured to determine a first parameter average value of the first channel in the first time period if the parameters of the first channel in the first time period all satisfy the second condition;
acquiring a second parameter mean value of the first channel in a second time period;
confirming that the first channel is interfered in the second time period under the condition that the relation between the first parameter mean value and the second parameter mean value meets a first condition; the first time period is earlier than the second time period.
In some embodiments, the channel interference determining module 41 is configured to obtain a third parameter average of the first channel in a third time period;
confirming that the first channel is interfered within the third time period if the relationship between the third parameter mean and the first threshold satisfies the first condition.
In some embodiments, the interference information determining module 42 is configured to determine a proportion of interfered channels in the first channel group based on the number of interfered channels and the number of non-interfered channels in the first channel group; interference information for a first channel group is determined based on a proportion of interfered channels within the first channel group.
In some embodiments, the channel switching module 44 is configured to switch the first channel to a second channel in the second channel group when the proportion of the interfered channels in the first channel group is greater than a third threshold;
or when the proportion of the interfered channels in the first channel group is not greater than a third threshold, switching the interfered first channels in the first channel group to second channels in the first channel group; the channel quality of the second channel is better than the channel quality of the first channel.
In some embodiments, the channel switching module 44 is configured to determine an auxiliary test network device and an auxiliary test terminal;
testing parameters of candidate channels by using the auxiliary test network equipment and the auxiliary test terminal;
when the parameter of the candidate channel meets a third condition, determining the candidate channel as a second channel; switching the first channel to the second channel.
In some embodiments, the channel switching module 44 is configured to switch the first channel having packet information in the first channel group to the candidate channel having packet information and switch the first channel having no packet information in the first channel group to the candidate channel having no packet information if the candidate channels may include a candidate channel having packet information and a candidate channel having no packet information.
In some embodiments, as shown in fig. 4, the channel switching apparatus further includes: a time transmission module 43.
And a time sending module 43, configured to send a switching time of the channel, where the switching time is used to switch the first channel to the second channel.
In another aspect of the embodiment of the present application, a server is further provided, where the server has a structure as shown in fig. 5, and the server at least includes at least one processor 51 and at least one memory 52. Wherein the memory 52 comprises a computer program for storing data executable on the processor 51, wherein the processor 51 is configured to execute, when executing the computer program: a method of channel switching, the method comprising:
determining interference information of a first channel based on data transmitted by the first channel or a parameter of the first channel in the first channel group;
determining interference information of a first channel group based on the interference information of the first channel;
the first channel is switched to the second channel based on the interference information of the first channel group.
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
determining interference information for a first channel based on data transmitted by the first channel or a parameter of the first channel within a first channel group, comprising:
and confirming that the first channel is interfered under the condition that the data size transmitted by the first channel is zero and the network equipment corresponding to the first channel is in a normal state.
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
determining interference information for a first channel based on data transmitted by the first channel or a parameter of the first channel within a first channel group, comprising:
in case the parameter of the first channel satisfies a first condition, the first channel is confirmed to be interfered.
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
confirming that the first channel is interfered if the parameter of the first channel satisfies a first condition, comprising:
and determining a first parameter average value of the first channel in the first time period under the condition that the parameters of the first channel in the first time period all meet a second condition.
And acquiring a second parameter average value of the first channel in a second time period.
Confirming that the first channel is interfered within the second time period if a relationship between the first parameter average and the second parameter average satisfies a first condition. The first time period is earlier than the second time period.
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
confirming that the first channel is interfered if the parameter of the first channel satisfies a first condition, comprising:
acquiring a third parameter mean value of the first channel in a third time period;
confirming that the first channel is interfered within the third time period if the relationship between the third parameter mean and the first threshold satisfies the first condition.
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
determining interference information for a first channel group based on the interference information for the first channel, comprising:
the proportion of interfered channels in the first channel group is determined based on the number of interfered channels and the number of non-interfered channels in the first channel group.
Interference information for the first channel group is determined based on a proportion of interfered channels within the first channel group.
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
switching the first channel to the second channel based on the interference information of the first channel group, comprising: and when the proportion of the interfered channels in the first channel group is greater than a third threshold value, switching the first channel to a second channel in the second channel group.
Or when the proportion of the interfered channels in the first channel group is not greater than the third threshold, switching the interfered first channels in the first channel group to the second channels in the first channel group. The channel quality of the second channel is better than the channel quality of the first channel
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
switching the first channel to the second channel based on the interference information of the first channel group, comprising:
determining auxiliary test network equipment and an auxiliary test terminal;
testing parameters of the candidate channels by using the auxiliary test network equipment and the auxiliary test terminal;
when the parameter of the candidate channel meets a third condition, determining the candidate channel as a second channel;
the first channel is switched to the second channel.
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
switching a first channel to a second channel, comprising:
in the case that the candidate channels may include a candidate channel having grouping information and a candidate channel not having grouping information, the first channel having grouping information in the first channel group is switched to the candidate channel having grouping information, and the first channel not having grouping information in the first channel group is switched to the candidate channel not having grouping information.
In some embodiments, the processor 51 is further configured to execute, when running the computer program:
before switching the first channel to the second channel based on the interference information of the first channel group, the channel switching method further includes:
and sending the switching time of the channel, wherein the switching time is used for switching the first channel to the second channel.
In some embodiments, the computer device further comprises a system bus 53 and a communication interface 54. Wherein the system bus 53 is configured to enable connective communication between these components, the communication interface 54 may include standard wired and wireless interfaces.
In another aspect of the embodiments of the present application, a computer storage medium is further provided, where a channel switching program is stored on the computer storage medium, and when the channel switching program is executed by a processor, the steps of the channel switching method provided in any embodiment of the present application are implemented.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
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, that is, 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, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (11)

1. A method for channel switching, the method comprising:
determining interference information of a first channel within a first channel group based on data transmitted by the first channel or a parameter of the first channel;
determining the proportion of interfered channels in the first channel group based on the number of interfered channels and the number of non-interfered channels in the first channel group; determining interference information for the first channel group based on the ratio;
switching the first channel to a second channel based on the interference information of the first channel group, comprising:
when the ratio is greater than a third threshold, switching the first channel to a second channel in a second channel group;
or, when the ratio is not greater than a third threshold, switching the interfered first channel in the first channel group to a second channel in the first channel group; the channel quality of the second channel is better than the channel quality of the first channel.
2. The method of claim 1, wherein the determining the interference information of the first channel based on the data transmitted by the first channel in the first channel group or the parameter of the first channel comprises:
and confirming that the first channel is interfered when the data size transmitted by the first channel is zero and the network equipment corresponding to the first channel is in a normal state.
3. The method of claim 1, wherein the determining the interference information of the first channel based on the data transmitted by the first channel in the first channel group or the parameter of the first channel comprises:
confirming that the first channel is interfered if the parameter of the first channel satisfies a first condition; the first condition comprises a condition that the first channel is determined to be interfered.
4. The method of claim 3, wherein confirming that the first channel is interfered if the parameter of the first channel satisfies a first condition comprises:
determining a first parameter average value of the first channel in a first time period under the condition that parameters of the first channel in the first time period all meet a second condition; the second condition comprises a condition that the first channel is determined not to be interfered;
acquiring a second parameter mean value of the first channel in a second time period;
confirming that the first channel is interfered in the second time period on the condition that the relation between the first parameter mean value and the second parameter mean value meets the first condition; the first time period is earlier than the second time period; the first condition includes that the first parameter mean is better than the second parameter mean.
5. The method of claim 3, wherein confirming that the first channel is interfered if the parameter of the first channel satisfies a first condition comprises:
acquiring a third parameter mean value of the first channel in a third time period;
confirming that the first channel is interfered within the third time period if the relationship between the third parameter mean and the first threshold satisfies the first condition.
6. The method of claim 1, wherein the switching the first channel to the second channel based on the interference information of the first channel group comprises:
determining auxiliary test network equipment and an auxiliary test terminal;
testing parameters of candidate channels by using the auxiliary test network equipment and the auxiliary test terminal;
when the parameter of the candidate channel meets a third condition, determining the candidate channel as a second channel; the third condition comprises a condition for judging that the candidate channel belongs to a good channel;
switching the first channel to the second channel.
7. The method of claim 6, wherein switching the first channel to the second channel comprises:
and in the case that the candidate channels comprise a candidate channel with grouping information and a candidate channel without grouping information, switching the first channel with grouping information in the first channel group to the candidate channel with grouping information and switching the first channel without grouping information in the first channel group to the candidate channel without grouping information.
8. The method of claim 1, wherein before the switching the first channel to the second channel based on the interference information of the first channel group, the method comprises:
and sending the switching time of the channel, wherein the switching time is used for switching the first channel to the second channel.
9. An apparatus for switching channels, the apparatus comprising: the device comprises a channel interference determining module, an interference information determining module and a channel switching module;
the channel interference determining module is configured to determine interference information of a first channel in a first channel group based on data transmitted by the first channel or a parameter of the first channel;
the interference information determining module is configured to determine a ratio of the interfered channels in the first channel group based on the number of interfered channels and the number of non-interfered channels in the first channel group; determining interference information for the first channel group based on the ratio;
the channel switching module is configured to switch the first channel to a second channel based on the interference information of the first channel group, and includes: when the ratio is greater than a third threshold, switching the first channel to a second channel in a second channel group; or, when the ratio is not greater than a third threshold, switching the interfered first channel in the first channel group to a second channel in the first channel group; the channel quality of the second channel is better than the channel quality of the first channel.
10. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor when executing the program is adapted to carry out the steps of the channel switching method according to any of claims 1 to 8.
11. A computer storage medium, characterized in that the computer readable storage medium has stored thereon a channel switching program, which when executed by a processor implements the steps of the channel switching method according to any one of claims 1 to 8.
CN202010431986.3A 2020-05-20 2020-05-20 Channel switching method, device, server and storage medium Active CN111641465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010431986.3A CN111641465B (en) 2020-05-20 2020-05-20 Channel switching method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010431986.3A CN111641465B (en) 2020-05-20 2020-05-20 Channel switching method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111641465A CN111641465A (en) 2020-09-08
CN111641465B true CN111641465B (en) 2022-04-08

Family

ID=72332759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010431986.3A Active CN111641465B (en) 2020-05-20 2020-05-20 Channel switching method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111641465B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584413A (en) * 2020-12-01 2022-06-03 深圳绿米联创科技有限公司 Network adjusting method, device, gateway and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5239676A (en) * 1990-12-14 1993-08-24 Northern Telecom Limited Intra-cell call hand-over in radio communication systems with dynamic channel allocation
CN101035358A (en) * 2006-03-10 2007-09-12 华为技术有限公司 Method and system for channel switching in the radio communication system
CN102291794A (en) * 2011-09-27 2011-12-21 杭州华三通信技术有限公司 Channel switching method and equipment in MESH network
WO2015060452A1 (en) * 2013-10-23 2015-04-30 Mitsubishi Electric Corporation Method and processing device for determining transmission channel resources to be allocated for a communication
CN106131909A (en) * 2016-06-29 2016-11-16 杭州华三通信技术有限公司 A kind of channel switching method and device
CN107580345A (en) * 2017-09-07 2018-01-12 新华三技术有限公司 Wireless channel switching method and device and wireless channel determining method and device
CN107864515A (en) * 2017-10-17 2018-03-30 北京算云联科科技有限公司 A kind of control method and device of AP channels switching
CN110831205A (en) * 2019-09-24 2020-02-21 普联技术有限公司 Wireless network channel allocation method, device and system
WO2020055764A1 (en) * 2018-09-10 2020-03-19 Qualcomm Incorporated Interference detection, signaling, and mitigation techniques for low latency transmissions

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7027418B2 (en) * 2001-01-25 2006-04-11 Bandspeed, Inc. Approach for selecting communications channels based on performance
EP2302975B1 (en) * 2008-07-15 2017-05-10 Panasonic Intellectual Property Management Co., Ltd. Control device, terminal device, and communication system
CN106162684B (en) * 2015-03-31 2019-11-12 华为技术有限公司 The method, apparatus and system of data transmission based on ZigBee-network
CN108307415A (en) * 2018-01-31 2018-07-20 成都物梦工场信息技术有限公司 Manage the method, apparatus and computer readable storage medium of wireless channel interference

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5239676A (en) * 1990-12-14 1993-08-24 Northern Telecom Limited Intra-cell call hand-over in radio communication systems with dynamic channel allocation
CN101035358A (en) * 2006-03-10 2007-09-12 华为技术有限公司 Method and system for channel switching in the radio communication system
CN102291794A (en) * 2011-09-27 2011-12-21 杭州华三通信技术有限公司 Channel switching method and equipment in MESH network
WO2015060452A1 (en) * 2013-10-23 2015-04-30 Mitsubishi Electric Corporation Method and processing device for determining transmission channel resources to be allocated for a communication
CN106131909A (en) * 2016-06-29 2016-11-16 杭州华三通信技术有限公司 A kind of channel switching method and device
CN107580345A (en) * 2017-09-07 2018-01-12 新华三技术有限公司 Wireless channel switching method and device and wireless channel determining method and device
CN107864515A (en) * 2017-10-17 2018-03-30 北京算云联科科技有限公司 A kind of control method and device of AP channels switching
WO2020055764A1 (en) * 2018-09-10 2020-03-19 Qualcomm Incorporated Interference detection, signaling, and mitigation techniques for low latency transmissions
CN110831205A (en) * 2019-09-24 2020-02-21 普联技术有限公司 Wireless network channel allocation method, device and system

Also Published As

Publication number Publication date
CN111641465A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
KR101606032B1 (en) Method and system for connectivity diagnostics in communication systems
US10270517B2 (en) Method of selectively enabling a wireless access point or repeater
US8280370B2 (en) Method and device for detecting neighboring BS interference interferential neighboring BS
US8160589B2 (en) Base station equipment
US20110117907A1 (en) Selection of Connection Type in Cellular System
CN101409931B (en) Combined communications system, prohibiting-signal transmitting apparatus, wireless base station, and method
US8346272B2 (en) Adaptive sensitivity in wireless communication
GB2498824A (en) Wireless network avoiding interference with radar system
KR20070048530A (en) Method for selecting dynamic frequency of a wireless communication system using cognitive radio scheme
US9055485B2 (en) Operating method of wireless access point device and wireless access point device
US8620312B2 (en) Combined background and 20/40 coexistence scan
US11832202B2 (en) Clock state detection method and apparatus
WO2021200114A1 (en) Interference detecting device, wireless base station, interference detecting method, and program
KR20150066561A (en) Method and System for Latency Measurement in Communication Systems
CN111641465B (en) Channel switching method, device, server and storage medium
EP2139278B1 (en) Method of detecting an outage of a radio cell
CN110740491A (en) Communication processing method and device of wireless network and household appliance
US8339970B2 (en) System and method for network optimization
WO2021200100A1 (en) Wireless base station, method, and program
JP7409482B2 (en) Interference detection device, wireless base station, interference detection method, and program
WO2021200102A1 (en) Interference detection device, wireless base station, interference detection method, and program
WO2021200101A1 (en) Interference detection device, wireless base station, interference detection method, and program
US20230189152A1 (en) Information determining method and apparatus, and terminal
CN116017480B (en) Method and system for improving host base station call completing rate and switching success rate of repeater
US8472943B1 (en) Method and system for using multiple channel elements

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A channel switching method, device, server and storage medium

Effective date of registration: 20230210

Granted publication date: 20220408

Pledgee: Wuhan area branch of Hubei pilot free trade zone of Bank of China Ltd.

Pledgor: WUHAN EASYLINKIN TECHNOLOGY CO.,LTD

Registration number: Y2023420000041