CN110536322B - Channel avoidance method, device and computer readable storage medium - Google Patents

Channel avoidance method, device and computer readable storage medium Download PDF

Info

Publication number
CN110536322B
CN110536322B CN201910827330.0A CN201910827330A CN110536322B CN 110536322 B CN110536322 B CN 110536322B CN 201910827330 A CN201910827330 A CN 201910827330A CN 110536322 B CN110536322 B CN 110536322B
Authority
CN
China
Prior art keywords
channel
zigbee
wifi
frequency range
frequency
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
CN201910827330.0A
Other languages
Chinese (zh)
Other versions
CN110536322A (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.)
Shenzhen Fengrunda Technology Co ltd
Original Assignee
Shenzhen Fengrunda 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 Shenzhen Fengrunda Technology Co ltd filed Critical Shenzhen Fengrunda Technology Co ltd
Priority to CN201910827330.0A priority Critical patent/CN110536322B/en
Publication of CN110536322A publication Critical patent/CN110536322A/en
Application granted granted Critical
Publication of CN110536322B publication Critical patent/CN110536322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • H04W74/0808Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using carrier sensing, e.g. as in CSMA
    • H04W74/0816Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using carrier sensing, e.g. as in CSMA carrier sensing with collision avoidance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • H04W74/0808Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using carrier sensing, e.g. as in CSMA
    • H04W74/0825Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using carrier sensing, e.g. as in CSMA carrier sensing with collision detection
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a channel evasion method, which comprises the following steps: acquiring the frequency range of the current applicable channel according to the current channel configuration operation; dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether the divided WiFi channel and ZigBee channel conflict with each other; and when the WiFi channel and the ZigBee channel are confirmed not to have the channel conflict, the configured WiFi channel and ZigBee channel are stored. The invention also discloses a channel evasion device and a computer readable storage medium. According to the invention, the ZigBee channel and the WiFi channel are divided in advance through the frequency range of the current available channel, and the divided ZigBee channel and WiFi channel are used for carrying out channel frequency configuration on the ZigBee chip and the WiFi chip when the equipment is started, so that the equipment data transmission error caused by the conflict of the channel frequency applied by the equipment chip is avoided, and the beneficial effect of improving the equipment data transmission efficiency is further achieved.

Description

Channel avoidance method, device and computer readable storage medium
Technical Field
The present invention relates to the field of channel frequency detection technologies, and in particular, to a channel avoiding method and apparatus, and a computer-readable storage medium.
Background
In the prior art, wifi (wireless network) and zigbee (low-speed short-distance transmission wireless network protocol) both use 2.4G frequency bands, and when channel frequencies conflict, wifi equipment transmits data at a high rate, which causes the zigbee equipment to be unable to communicate. In the prior art, due to the reason of default application of the channel, whether the ZigBee channel frequency conflicts with the WiFi channel frequency or not cannot be intuitively confirmed, so that the data transmission failure occurs in the data transmission work, and the data transmission efficiency of the ZigBee chip is affected.
The above is only for the purpose of assisting understanding of the technical solution of the present invention, and does not represent an admission that the above is the prior art.
Disclosure of Invention
The invention mainly aims to provide a channel avoiding method, a channel avoiding device, a computer readable storage medium and a computer readable storage system, and aims to solve the technical problems that in the prior art, whether ZigBee channel frequency conflicts with WiFi channel frequency or not is intuitively confirmed, so that data transmission failure occurs in data transmission work, and the data transmission efficiency of equipment is influenced.
In order to achieve the above object, the present invention provides a channel avoiding method, which includes the following steps:
acquiring the frequency range of the current applicable channel according to the current channel configuration operation;
dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether the divided WiFi channel and ZigBee channel conflict with each other;
and when the WiFi channel and the ZigBee channel are confirmed to be free of the channel conflict, the configured WiFi channel and ZigBee channel are stored.
Optionally, the step of dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether there is a channel collision between the divided WiFi channel and ZigBee channel further includes:
traversing the divided frequency range of the WiFi channel and the ZigBee channel, and determining whether the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range;
and if the frequency range of the WiFi channel and the ZigBee channel does not have a superposed frequency range, determining that the WiFi channel and the ZigBee channel do not have channel conflict.
Optionally, after the step of traversing the divided frequency range of the WiFi channel and the ZigBee channel and determining whether there is a overlapping frequency range in the frequency range of the WiFi channel and the ZigBee channel, the method further includes:
if the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range, confirming that channel conflict exists between the WiFi channel and the ZigBee channel;
and outputting prompt information of channel conflict to remind a user of reconfiguring the channel.
Optionally, the step of confirming that a channel collision exists between the WiFi channel and the ZigBee channel if there is a coincidence frequency band in the frequency band ranges of the WiFi channel and the ZigBee channel further includes:
confirming a channel frequency band of the overlapped frequency band;
and outputting prompt information of channel collision according to the confirmed channel frequency band of the overlapped frequency band.
Optionally, after the step of saving the configured WiFi channel and ZigBee channel when it is determined that the channel collision does not exist between the WiFi channel and the ZigBee channel, the method further includes:
when detecting that the gateway is started, reading an application channel of a current ZigBee chip;
and when the application channel is confirmed to be inconsistent with a preset configuration channel, issuing the configuration channel to the ZigBee chip.
Optionally, the step of reading an application channel of a current ZigBee chip when detecting that the gateway is started further includes:
acquiring a preset WiFi channel;
and modifying the current channel of the WiFi chip by the preset WiFi channel.
In addition, to achieve the above object, the present invention also provides a channel avoidance apparatus, including: a memory having stored thereon a computer program capable of being invoked by a processor, the computer program, when executed by the processor, implementing the steps of the channel avoidance method as described above.
The present invention also provides a computer readable storage medium having stored thereon a channel avoidance program which, when executed by a processor, implements the steps of the channel avoidance method as described above.
The channel avoiding method provided by the embodiment of the invention obtains the frequency range of the current applicable channel according to the current channel configuration operation; dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether the divided WiFi channel and ZigBee channel have channel conflict; and when the WiFi channel and the ZigBee channel are confirmed not to have the channel conflict, the configured WiFi channel and ZigBee channel are stored. According to the invention, the ZigBee channel and the WiFi channel are divided in advance through the frequency range of the current available channel, and the divided ZigBee channel and WiFi channel are used for carrying out channel frequency configuration on the ZigBee chip and the WiFi chip when the equipment is started, so that the equipment data transmission error caused by the conflict of the channel frequency applied by the equipment chip is avoided, and the beneficial effect of improving the equipment data transmission efficiency is further achieved.
Drawings
Fig. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a channel avoidance method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: acquiring the frequency range of the current applicable channel according to the current channel configuration operation; dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether the divided WiFi channel and ZigBee channel have channel conflict; and when the WiFi channel and the ZigBee channel are confirmed to be free of the channel conflict, the configured WiFi channel and ZigBee channel are stored.
In the prior art, due to the reason of channel default application, whether the ZigBee channel frequency conflicts with the WiFi channel frequency or not cannot be intuitively confirmed, so that the data transmission failure occurs in the data transmission work, and the data transmission efficiency of the equipment is influenced.
The invention provides a solution, which is characterized in that a ZigBee channel and a WiFi channel are divided in advance through the frequency range of a current available channel, and the divided ZigBee channel and the divided WiFi channel are used for carrying out channel frequency configuration on a ZigBee chip and a WiFi chip when equipment is started, so that the equipment data transmission error caused by the conflict of the channel frequency applied by the equipment chip is avoided, and the beneficial effect of improving the data transmission efficiency of the equipment is further realized.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC terminal, and can also be a mobile or non-mobile terminal device such as a smart phone, a tablet computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a channel avoidance program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a channel avoidance procedure stored in the memory 1005 and perform the following operations:
acquiring the frequency range of the current applicable channel according to the current channel configuration operation;
dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether the divided WiFi channel and ZigBee channel have channel conflict;
and when the WiFi channel and the ZigBee channel are confirmed to be free of the channel conflict, the configured WiFi channel and ZigBee channel are stored.
Further, the processor 1001 may call a channel avoidance program stored in the memory 1005, and further perform the following operations:
traversing the divided frequency range of the WiFi channel and the ZigBee channel, and determining whether the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range;
and if the frequency range of the WiFi channel and the ZigBee channel does not have a superposed frequency range, determining that the WiFi channel and the ZigBee channel do not have channel conflict.
Further, the processor 1001 may call a channel avoidance program stored in the memory 1005, and further perform the following operations:
if the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range, confirming that channel conflict exists between the WiFi channel and the ZigBee channel;
and outputting prompt information of channel conflict to remind a user of reconfiguring the channel.
Further, the processor 1001 may call a channel avoidance program stored in the memory 1005, and further perform the following operations:
confirming a channel frequency band of the overlapped frequency band;
and outputting prompt information of channel collision according to the confirmed channel frequency band of the overlapped frequency band.
Further, the processor 1001 may call a channel avoidance program stored in the memory 1005, and further perform the following operations:
when detecting that the gateway is started, reading an application channel of a current ZigBee chip;
and when the application channel is confirmed to be inconsistent with a preset configuration channel, issuing the configuration channel to the ZigBee chip.
Further, the processor 1001 may call a channel avoidance program stored in the memory 1005, and further perform the following operations:
acquiring a preset WiFi channel;
and modifying the current channel of the WiFi chip by the preset WiFi channel.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a channel avoidance method according to the present invention, where the channel avoidance method includes:
step S10, acquiring the frequency range of the current applicable channel according to the current channel configuration operation;
an application channel of the device is configured based on the current device application. In this way, the frequency band range of the channel applicable to the current device is obtained according to the device application of the current device, and the frequency band range of the applicable channel is defined as the channel frequency band range of the channel available when the current device realizes data transmission,
step S20, dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and confirming whether the divided WiFi channel and ZigBee channel have channel conflict;
according to the frequency range of the currently available channel, the channel is divided into a WiFi channel and a ZigBee channel according to the frequency range, and in practical application, the WiFi channel and the ZigBee channel both have special channel frequency ranges, so that when the WiFi channel and the ZigBee channel are divided based on the frequency range, the channel types are divided according to the range value of the frequency range. Since the frequency band range is numerical information, if the frequency band ranges are overlapped, data transmission failure may be caused when the device applies the overlapped frequency bands, and therefore, in order to avoid the channel frequency bands of the WiFi channel and the ZigBee channel from being overlapped, it is necessary to determine whether channel collision exists between the WiFi channel and the ZigBee channel divided according to the frequency band ranges. Namely, determining whether the frequency range values of the frequency range are overlapped, so as to divide the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether the divided WiFi channel and ZigBee channel have channel collision, further comprising:
traversing the divided frequency range of the WiFi channel and the ZigBee channel, and determining whether the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range;
and if the frequency range of the WiFi channel and the ZigBee channel does not have a superposed frequency range, confirming that the WiFi channel and the ZigBee channel do not have channel conflict.
Traversing the frequency range of the divided WiFi channel and ZigBee channel according to the divided WiFi channel and ZigBee channel, and determining whether the frequency range of the WiFi channel and the frequency range of the ZigBee channel have overlapped frequency bands, namely whether overlapped frequency band values exist. And when the fact that the frequency range of the WiFi channel and the frequency range of the ZigBee channel do not have overlapped frequency range values is confirmed, the fact that channel conflict does not exist between the WiFi channel and the ZigBee channel is confirmed, and therefore a chip of current equipment is enabled to apply the WiFi channel and the ZigBee channel based on the divided frequency range information.
In addition, if there is a value of an overlapping frequency band at present, that is, after the step of traversing the frequency band ranges of the divided WiFi channel and ZigBee channel and determining whether there is an overlapping frequency band in the frequency band ranges of the WiFi channel and ZigBee channel, the method further includes:
if the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range, confirming that channel conflict exists between the WiFi channel and the ZigBee channel;
and outputting prompt information of channel conflict to remind a user of reconfiguring the channel.
Traversing the frequency range of the divided WiFi channel and ZigBee channel according to the divided WiFi channel and ZigBee channel, and determining whether the frequency range of the WiFi channel and the frequency range of the ZigBee channel have overlapped frequency ranges, namely whether overlapped frequency range values exist. When the overlapping frequency band value of the frequency band range of the WiFi channel and the frequency band range of the ZigBee channel is confirmed, the channel conflict of the WiFi channel and the ZigBee channel is confirmed, prompt information of the channel conflict is output in consideration of the data transmission requirement of current equipment, and a user is reminded of reconfiguring the channel by the prompt information, wherein the prompt information is a prompt function based on current channel division operation, the prompt function possibly comprises a prompt format, the prompt format possibly comprises the frequency band value needing to be extracted from the current overlapping frequency band value and the like, namely the content of the prompt information comprises the frequency band value of the current conflict. Namely, if there is a coincidence frequency band in the frequency band ranges of the WiFi channel and the ZigBee channel, the step of confirming that there is a channel collision between the WiFi channel and the ZigBee channel further includes:
confirming a channel frequency band of the overlapped frequency band;
and outputting prompt information of channel collision according to the confirmed channel frequency band of the overlapped frequency band.
Confirming the frequency band value of the overlapped frequency band based on the currently confirmed channel frequency band, and generating the prompt information of the channel conflict according to the confirmed frequency band value of the overlapped frequency band to prompt the current channel conflict of the currently set user, wherein the operation of channel frequency band allocation needs to be carried out again.
And step S30, when the WiFi channel and the ZigBee channel are confirmed to have no channel conflict, the configured WiFi channel and ZigBee channel are stored.
According to the currently allocated WiFi channel and ZigBee channel frequency bands, when the fact that channel conflict does not exist between the WiFi channel and the ZigBee channel is confirmed, the WiFi channel and the ZigBee channel are stored to a preset channel configuration storage area. In this way, based on the stored configured channel frequency band, the method for enabling the current terminal device to perform data transmission operation based on the configured frequency band further includes, after the step of saving the configured WiFi channel and the configured ZigBee channel when it is determined that the WiFi channel and the ZigBee channel do not have the channel collision, the method further including:
when detecting that the gateway is started, reading an application channel of a current ZigBee chip;
and when the application channel is confirmed to be inconsistent with a preset configuration channel, issuing the configuration channel to the ZigBee chip.
And starting the gateway to perform network data transmission operation according to the current data transmission requirement and the data transmission purpose. Therefore, according to the currently started gateway, the channel frequency applied by the ZigBee chip connected with the current gateway is read in consideration of the application of the data transmission terminal. And the channel frequency applied by the ZigBee chip is the default distributed channel frequency when the current gateway is connected with the ZigBee chip. According to the read channel frequency of the ZigBee chip currently connected with the gateway, in order to guarantee data transmission operation to avoid data transmission failure, whether the channel frequency is consistent with a preset channel frequency is determined based on the current channel frequency applied by the ZigBee chip, wherein the preset channel frequency is the channel frequency for data transmission of the ZigBee chip defined based on the current data transmission requirement.
When the obtained channel frequency applied by the current ZigBee chip is determined to be inconsistent with the preset channel frequency, the preset channel frequency is set based on the WiFi application channel frequency connected with the current gateway, and in order to avoid the data transmission operation influenced by the conflict between the current application channel frequency of the ZigBee and the WiFi application channel frequency, the preset channel frequency which is set in advance is issued to the ZigBee chip, so that the ZigBee chip applies the issued preset channel frequency to perform the data transmission operation.
In addition, based on the data transmission application of the current device, when the device is started, the channel of the WiFi chip of the device is checked first, that is, when the gateway is detected to be started, the step of reading the application channel of the current ZigBee chip further includes:
acquiring a preset WiFi channel;
and modifying the current WiFi chip channel by the preset WiFi channel.
According to the currently started terminal equipment, after the equipment is started, reading a WiFi channel of a WiFi chip of the terminal equipment, and confirming whether the channel frequency band is consistent with a channel frequency band configured in advance by the terminal equipment or not based on the WiFi channel. And if the current WiFi chip is inconsistent with the preset WiFi channel, modifying the current WiFi chip channel by the preset WiFi channel, and further, starting the executed confirmation operation for the first time after the WiFi channel is configured for the equipment by the channel confirmation operation of the WiFi chip.
In the embodiment, the ZigBee channel and the WiFi channel are divided in advance through the frequency range of the current available channel, and the divided ZigBee channel and the divided WiFi channel are used for carrying out channel frequency configuration on the ZigBee chip and the WiFi chip when the equipment is started, so that the beneficial effects of avoiding equipment data transmission errors caused by the conflict of the channel frequency applied by the equipment chip and further improving the data transmission efficiency of the equipment are achieved.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, on which a channel avoiding program is stored, where the channel avoiding program, when executed by a processor, implements the following operations:
acquiring the frequency range of the current applicable channel according to the current channel configuration operation;
dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether the divided WiFi channel and ZigBee channel conflict with each other;
and when the WiFi channel and the ZigBee channel are confirmed not to have the channel conflict, the configured WiFi channel and ZigBee channel are stored.
Further, the channel avoidance program when executed by the processor further performs the following operations:
traversing the divided frequency range of the WiFi channel and the ZigBee channel, and determining whether the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range;
and if the frequency range of the WiFi channel and the ZigBee channel does not have a superposed frequency range, determining that the WiFi channel and the ZigBee channel do not have channel conflict.
Further, the channel avoidance program when executed by the processor further performs the following:
if the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range, confirming that channel conflict exists between the WiFi channel and the ZigBee channel;
and outputting prompt information of channel conflict to remind a user of reconfiguring the channel.
Further, the channel avoidance program when executed by the processor further performs the following:
confirming a channel frequency band of a superposed frequency band;
and outputting prompt information of channel collision according to the confirmed channel frequency band of the overlapped frequency band.
Further, the channel avoidance program when executed by the processor further performs the following operations:
when detecting that the gateway is started, reading an application channel of a current ZigBee chip;
and when the application channel is confirmed to be inconsistent with a preset configuration channel, issuing the configuration channel to the ZigBee chip.
Further, the channel avoidance program when executed by the processor further performs the following:
acquiring a preset WiFi channel;
and modifying the current WiFi chip channel by the preset WiFi channel.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a component of '8230', \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (5)

1. A channel avoidance method is characterized by comprising the following steps:
acquiring the frequency range of the current applicable channel according to the current channel configuration operation;
dividing the channel into a WiFi channel and a ZigBee channel through the frequency range, and determining whether the divided WiFi channel and ZigBee channel have channel conflict;
when the fact that the channel conflict does not exist in the WiFi channel and the ZigBee channel is confirmed, the configured WiFi channel and the ZigBee channel are stored;
when the gateway is detected to be started, acquiring a preset WIFI channel, reading a default application channel of a current ZigBee chip, and modifying the channel of the ZigBee chip by using the preset WIFI channel, wherein the ZigBee chip defaults the applied channel frequency and is the default distributed channel frequency when the current gateway is connected with the ZigBee chip, and the preset WiFi channel is the channel frequency for data transmission of the ZigBee chip defined based on the current data transmission requirement;
and when the application channel is confirmed to be inconsistent with the default configuration channel, issuing the configuration channel to the ZigBee chip.
2. The channel evasion method of claim 1, wherein said step of dividing the channel into a WiFi channel and a ZigBee channel through the frequency range and determining whether the divided WiFi channel and ZigBee channel have channel collision further comprises:
traversing the divided frequency range of the WiFi channel and the ZigBee channel, and determining whether the frequency range of the WiFi channel and the ZigBee channel has a superposed frequency range;
and if the frequency range of the WiFi channel and the ZigBee channel does not have a superposed frequency range, confirming that the WiFi channel and the ZigBee channel do not have channel conflict.
3. The channel avoiding method of claim 2, wherein after the step of confirming whether there is a coincidence frequency band in the frequency band ranges of the WiFi channel and the ZigBee channel, the method further comprises:
confirming a channel frequency band of a superposed frequency band;
and outputting prompt information of channel collision according to the confirmed channel frequency band of the overlapped frequency band.
4. A channel avoidance apparatus, characterized by comprising: memory, a processor, the memory having stored thereon a computer program which is invokable by the processor, the computer program, when executed by the processor, implementing the steps of the channel avoidance method of any of claims 1 to 3.
5. A computer-readable storage medium, having stored thereon a channel avoidance program which, when executed by a processor, implements the steps of the channel avoidance method of any of claims 1 to 3.
CN201910827330.0A 2019-09-02 2019-09-02 Channel avoidance method, device and computer readable storage medium Active CN110536322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910827330.0A CN110536322B (en) 2019-09-02 2019-09-02 Channel avoidance method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910827330.0A CN110536322B (en) 2019-09-02 2019-09-02 Channel avoidance method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110536322A CN110536322A (en) 2019-12-03
CN110536322B true CN110536322B (en) 2023-04-14

Family

ID=68666398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910827330.0A Active CN110536322B (en) 2019-09-02 2019-09-02 Channel avoidance method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110536322B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517293B (en) * 2012-06-29 2016-08-10 华为技术有限公司 The anti-interference method of a kind of ZigBee-network and equipment
CN104968000B (en) * 2015-06-19 2019-02-15 浙江吉利控股集团有限公司 A method of it reducing ZigBee and WiFi in same equipment and interferes with each other
CN106358201A (en) * 2016-09-26 2017-01-25 珠海格力电器股份有限公司 Wireless communication method and device
CN110113819B (en) * 2019-04-02 2022-10-25 南京林业大学 ZigBee node parallel transmission method based on Wifi communication

Also Published As

Publication number Publication date
CN110536322A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN109358851B (en) Chart component creating method and device and computer-readable storage medium
CN107241146B (en) Radio frequency interference processing method, device, storage medium and terminal
US20150288629A1 (en) Electronic device and method of providing information by electronic device
US9635549B2 (en) Providing subscriber identity module function
US9021055B2 (en) Nonconforming web service policy functions
CN107451086B (en) Integrated machine
CN107844821B (en) Smart card, control method thereof, and computer-readable storage medium
CN112039896B (en) Data processing method, equipment, server and storage medium
CN106897162B (en) Communication mode selection method of component in application, communication system and mobile terminal
CN108023905B (en) Internet of things application system and method
CN110536322B (en) Channel avoidance method, device and computer readable storage medium
CN105653514A (en) Text editing method and terminal
CN112115394A (en) Data display method, server, terminal and medium
CN105229607B (en) Display control unit and display control method
CN108112052B (en) Terminal network sharing method and device, air conditioner and storage medium
US10331334B2 (en) Multiple transparent annotation layers for use within a graphical user interface
WO2023124264A1 (en) Method for establishing communication connection, terminal and storage medium
CN108009084B (en) Testing method, device and system for hybrid mobile application
CN110601886B (en) Method and device for configuring master and slave ends of network bridge based on terminal and readable storage medium
CN114422236A (en) Intelligent device access method and device and electronic device
CN104281364B (en) A kind of terminal
CN113852962A (en) Network connection control method, device, storage medium and software program product
CN109936586B (en) Communication processing method and device
CN107491205B (en) Integrated machine
CN111147309A (en) Switch platform management method, device and storage medium based on MCU

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