CN116418427A - Wireless communication method, apparatus, device, storage medium, and computer program product - Google Patents

Wireless communication method, apparatus, device, storage medium, and computer program product Download PDF

Info

Publication number
CN116418427A
CN116418427A CN202111638658.1A CN202111638658A CN116418427A CN 116418427 A CN116418427 A CN 116418427A CN 202111638658 A CN202111638658 A CN 202111638658A CN 116418427 A CN116418427 A CN 116418427A
Authority
CN
China
Prior art keywords
channel
channels
communication
determining
communication channels
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.)
Pending
Application number
CN202111638658.1A
Other languages
Chinese (zh)
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202111638658.1A priority Critical patent/CN116418427A/en
Publication of CN116418427A publication Critical patent/CN116418427A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a wireless communication method, apparatus, device, storage medium and computer program product, comprising: determining a plurality of communication channels of a target frequency band; scanning the communication channels to obtain signal intensities of the communication channels; selecting at least one first channel among the plurality of communication channels according to signal strengths of the plurality of communication channels; and sending information of the at least one first channel to the second device so that the first device and the second device start to communicate through the at least one first channel at a preset time. So as to ensure normal data transmission in the wireless communication process, thereby improving the communication reliability.

Description

Wireless communication method, apparatus, device, storage medium, and computer program product
Technical Field
Embodiments of the present application relate to the field of communications technologies, and in particular, to a wireless communication method, apparatus, device, storage medium, and computer program product.
Background
At present, the frequency hopping technology is widely applied in the technical field of communication, for example, when wireless communication is performed, the wireless device can count the current packet loss condition, and then adjust channels needed to be used in the subsequent wireless communication process according to the packet loss condition, namely, determine the number of channels and the communication frequency band needed to be used in the subsequent wireless communication process.
Although the communication quality can be improved by the above-described method, the method must be performed based on the packet loss situation, thereby reducing the communication reliability.
Disclosure of Invention
The application provides a wireless communication method, a wireless communication device, a wireless communication equipment, a wireless communication storage medium and a wireless communication computer program product, so that normal data transmission in a wireless communication process is ensured, and the communication reliability is improved.
In a first aspect, a wireless communication method is provided, including: determining a plurality of communication channels of a target frequency band; scanning the communication channels to obtain signal intensities of the communication channels; selecting at least one first channel among the plurality of communication channels according to signal strengths of the plurality of communication channels; and sending information of the at least one first channel to the second device so that the first device and the second device start to communicate through the at least one first channel at a preset time.
In a second aspect, there is provided a wireless communication apparatus comprising: the device comprises a determining module, a scanning module, a selecting module and a sending module, wherein the determining module is used for determining a plurality of communication channels of a target frequency band; the scanning module is used for scanning the communication channels to obtain the signal intensity of the communication channels; the selection module is used for selecting at least one first channel from the plurality of communication channels according to the signal strength of the plurality of communication channels; the sending module is used for sending information of at least one first channel to the second device so that the first device and the second device start to communicate through the at least one first channel at preset time.
In a third aspect, there is provided an electronic device comprising: a processor and a memory for storing a computer program, the processor being for invoking and running the computer program stored in the memory for performing the method as in the first aspect or in various implementations thereof.
In a fourth aspect, a computer-readable storage medium is provided for storing a computer program for causing a computer to perform the method as in the first aspect or in various implementations thereof.
In a fifth aspect, a computer program product is provided comprising computer program instructions for causing a computer to perform the method as in the first aspect or in various implementations thereof.
In a sixth aspect, a computer program is provided, the computer program causing a computer to perform the method as in the first aspect or in various implementations thereof.
According to the technical scheme, the first equipment can firstly determine a plurality of communication channels of the target frequency band, then scan the plurality of communication channels to obtain the signal intensity of the plurality of communication channels, then select at least one first channel from the plurality of communication channels according to the signal intensity of the plurality of communication channels, and send information of at least one first channel including the identification of the at least one first channel and preset time to the second equipment. After receiving the information of at least one first channel sent by the first device, the second device can start to communicate with the first device through the at least one first channel at preset time. The technical scheme provided by the application does not depend on the condition of data packet loss, but selects the communication channel based on the signal strength of the communication channel, so that normal data transmission in the wireless communication process can be ensured, and the communication reliability is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario diagram provided in an embodiment of the present application;
fig. 2 is an interaction flow chart of a wireless communication method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a wireless communication device according to an embodiment of the present application;
fig. 4 is a schematic block diagram of an electronic device 400 provided by an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application embodiment, the terms "exemplary" or "such as" and the like are used to denote examples, illustrations, or descriptions, and any embodiment or solution described as "exemplary" or "such as" in this application embodiment should not be construed as being preferred or advantageous over other embodiments or solutions. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
As described above, at present, the frequency hopping technology is widely used in the field of communication technology, for example, when performing wireless communication, the wireless device may count the current packet loss situation, and then adjust the channels needed to be used in the subsequent wireless communication process according to the packet loss situation, that is, determine the number of channels and the communication frequency band needed to be used in the subsequent wireless communication process. Although the communication quality can be improved by the above-described method, the method must be performed based on the packet loss situation, thereby reducing the communication reliability.
In order to solve the technical problems, the invention concept of the application is as follows: the first device may select an appropriate communication channel based on the signal strengths of the plurality of communication channels such that the first device and the second device may begin communicating over the appropriate communication channels at a preset time.
It should be understood that the technical solution of the present application may be applied to the following scenarios, but is not limited to:
exemplary, fig. 1 is an application scenario diagram provided in an embodiment of the present application, where, as shown in fig. 1, the application scenario may include a first device 110 and a second device 120. Communication may be between the first device 110 and the second device 120.
In some implementations, the first device or the second device may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, a vehicle-mounted device, an Ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook, a cellular phone, a personal digital assistant (Personal Digital Assistant, PDA), an augmented Reality (Augmented Reality, AR) \virtual Reality (VR) device, an ammeter, a water meter, an automobile, a monitoring device, a sensor, a laser scanning system, an environmental information collection device such as temperature, humidity, air quality, etc., a traffic information collection device such as a camera, etc., and various intelligent home appliances such as an intelligent air conditioner, an intelligent lighting fixture, an intelligent home camera, an intelligent socket, a wireless switch, an intelligent curtain motor, an intelligent sound box, an intelligent refrigerator, etc., but not limited thereto.
It should be understood that the number of first devices and second devices in fig. 1 is merely illustrative, and in fact, any number of first devices and second devices may be provided according to actual needs, which is not limited in this application.
It should be noted that, the first Device 110 and the second Device 120 may communicate through a base station, or may communicate in a Device-to-Device (D2D) manner, which is not limited in this application.
After the application scenario of the embodiment of the present application is introduced, the following details of the technical solution of the present application will be described:
fig. 2 is an interaction flow chart of a wireless communication method according to an embodiment of the present application, where the method may be performed by the first device 110 and the second device 120 shown in fig. 1, but is not limited thereto, and as shown in fig. 2, the method may include the following steps:
s201: the first device determines a plurality of communication channels of a target frequency band;
s202: the first equipment scans a plurality of communication channels to obtain signal intensities of the communication channels;
s203: the first device selects at least one first channel from the plurality of communication channels according to the signal strengths of the plurality of communication channels;
s204: the first device sends information of at least one first channel to the second device;
S205: the first device and the second device begin to communicate over at least one first channel at a preset time.
In some implementations, the target frequency band may be a 2.4GHz frequency band or a 5GHz frequency band, which is not limited in this application.
In some implementations, the communication channel may be all channels of the target frequency band, or may be part of channels of the target frequency band, which is not limited in this application.
For example, assuming that the target frequency band is a 2.4GHz frequency band, the 2.4GHz frequency band may be divided into 80 channels, each channel occupies 1MHz, the first device may determine that the plurality of communication channels of the target frequency band may be all channels, that is, 80 channels, of the 2.4GHz frequency band, or may be part of the channels, such as 5 channels, that is, channel 1, channel 4, channel 6, channel 9, and channel 11, of the 2.4GHz frequency band. Similarly, assuming that the target frequency band is a 5GHz frequency band, the plurality of communication channels of the target frequency band determined by the first device may be 6 channels, such as channel 36, channel 40, channel 44, channel 48, channel 52, and channel 56, which are part of the 5GHz frequency band, or 7 channels, such as channel 60, channel 64, channel 149, channel 153, channel 157, channel 161, and channel 165, which are other part of the 5GHz frequency band.
In some implementations, the signal strength of the communication channel may be represented by a received signal strength indication (Received Signal Strength Indication, RSSI) of the communication channel, and may also be represented by a signal-to-noise ratio (Signal Noise Ratio, SNR), but is not limited thereto.
In some implementations, after the first device determines the plurality of communication channels of the target frequency band, the first device may determine a plurality of communication periods between itself and the second device before scanning the plurality of communication channels, and then determine an idle period of each of the plurality of communication periods. For example, the first device may first determine a duration of each communication period and a data transmission period of each communication period among a plurality of communication periods between itself and the second device, and then for each communication period, the first device may calculate a difference between the duration of the communication period and the data transmission period within the communication period, to obtain an idle period of the communication period.
In some implementations, for each communication period, its idle period may be located in the first half of the communication period, or in the second half of the communication period, or the idle period includes: a plurality of sub-idle periods between which the data transmission period of the communication cycle is located, as the present application is not limited.
By way of example, assuming a communication period of 1ms, i.e. 1000us, if the data transmission period of the communication period is the first 500us of the communication period, the first device may determine that the idle period of the communication period is the last 500us of the communication period. Similarly, if the data transmission period of the communication period is 500us after the communication period, the first device may determine that the idle period of the communication period is 500us before the communication period. Also similarly, if the data transmission period of the above-described communication period is 500us after the start of 100us of the communication period, the first device may determine that the idle period of the communication period is the first 100us and the last 400us of the communication period.
It should be understood that the present application does not limit the number of communication cycles, the duration of each communication cycle, the data transmission period of each communication cycle, the idle period of each communication cycle.
In some implementations, after determining the idle period of each of the plurality of communication periods, the first device may determine a number of communication channels in the idle period of each communication period, and then the first device may determine the communication channels in the idle period of each communication period based on the number of communication channels in the idle period of each communication period.
In example 1, for each communication period, the first device may calculate a quotient of an idle period of the communication period and a scanning duration of each communication channel to obtain a quotient result, and round down the quotient result to obtain a number of communication channels in the communication period, and further, the first device may determine the communication channels in the idle period of the communication period according to the number of communication channels in the idle period of the communication period and the scanning order of the plurality of communication channels.
In example 2, for each communication period, the first device may determine an error corresponding to a scanning duration of each communication channel, sum the scanning duration and the error to obtain a sum result, further, the first device may calculate a quotient of an idle period of the communication period and the sum result to obtain a quotient result, and round down the quotient result to obtain the number of communication channels in the communication period, and further, the first device may determine the communication channels in the idle period of the communication period according to the number of communication channels in the idle period of the communication period and the scanning order of the plurality of communication channels.
In some implementations, the scanning durations of the plurality of communication channels may or may not be identical, which is not limited in this application.
It should be understood that, if the scanning durations of the plurality of communication channels are not identical, the scanning duration of each communication channel may be understood as an average value of the scanning durations of the plurality of communication channels, where the average value may be an arithmetic average value or a geometric average value, and the application is not limited thereto.
In some implementations, assuming that each communication channel has a unique index, the scanning order of the communication channels may be the index order of the communication channels, for example, the scanning order of the communication channels may be the order in which the indexes of the communication channels are arranged from small to large, or the order in which the indexes of the communication channels are arranged from large to small, which is not limited in this application.
In other possible implementations, the scanning order of the communication channels may be the order of the frequencies of use of the communication channels, for example, the scanning order of the communication channels may be the order of the communication channels after being arranged from small to large, or the order of the communication channels after being arranged from large to small, which is not limited in the present application.
By way of example, assuming three communication cycles between a first device and a second device, the idle period of the first communication cycle being the last 500us of the communication cycle, the idle period of the second communication cycle being the first 500us of the communication cycle, the idle period of the third communication cycle being the first 100us and the last 400us of the communication cycle, the communication channels comprising the first 14 channels of the frequency band of 2.4GHz, the scanning duration of each communication channel being 100us, the scanning order of the communication channels being the order in which the indexes of the communication channels are arranged from small to large: 1. 2, … …, 14, i.e. the first device may scan the 2.4GHz band of channels 1, 2, 3, … …, 14 in sequence, then the first device may determine that the number of communication channels in the idle period of the first communication period is 5, i.e. 500/(100+100+100+100), the number of communication channels in the idle period of the first communication period is 2.4GHz band of channels 1, 2, 3, 4 and 5, similarly, the first device may determine that the number of communication channels in the idle period of the second communication period is 5, i.e. 500/(100+100+100+100+100), the number of communication channels in the idle period of the second communication period is 2.4GHz band of channels 6, 7, 8, 9 and 10, and the number of communication channels in the idle period of the third communication period is 4, i.e. 100/100+300/(100+100+100), and the number of communication channels in the idle period of the third communication period is 2.4GHz band of channels 12, 11, 13 and 14.
In some implementations, after determining the communication channel in the idle period of each communication period, the first device may scan the communication channel in the idle period of each communication period to obtain a signal strength of the communication channel in the idle period of each communication period, e.g., an RSSI or an SNR of the communication channel.
It should be understood that, the maximum RSSI is 0dBm, and the measured RSSI is a negative value, such as-50 dBm, -60dBm, and so on, and generally, the smaller the RSSI of a channel, the smaller the interference level of the channel is, such as the interference level represented by rssi= -60dBm is smaller than the interference level represented by rssi= -50 dBm. While SNR indicates the difference between the strength of the received signal and the background noise, a smaller difference indicates that the background noise is closer to the strength of the received signal, the communication quality is more likely to be corrupted, i.e., a smaller SNR indicates a better signal quality, a larger SNR indicates a better signal quality, e.g., snr=25 dBm indicates a better signal quality than snr=10 dBm.
In some implementations, the first device may record the signal strengths of all communication channels after obtaining the signal strengths of the communication channels during the idle period of each communication cycle.
Illustratively, assuming that the signal strengths of the communication channels are expressed in terms of RSSI of the communication channels, the first device may record the RSSI of all communication channels as a table as shown in table 1, which is not limited in this application.
TABLE 1
Figure BDA0003442852410000071
Figure BDA0003442852410000081
As shown in row 3 of table 1, RSSI of channel 1 of the 2.4GHz band = -89dBm, RSSI of channel 8 of the 2.4GHz band = -66dBm, similarly, as shown in row 9 of table 1, RSSI of channel 7 of the 2.4GHz band = -65dBm, RSSI of channel 14 of the 2.4GHz band = -67dBm.
It should be understood that when the signal strength is SNR, the signal strength may be recorded in a similar manner as when the signal quality is RSSI, which is not described herein.
In some implementations, after obtaining the signal strengths of the plurality of communication channels, the first device may select at least one first channel among the plurality of communication channels according to the signal strengths of the plurality of communication channels.
In some implementations, when the signal strength is RSSI, the first device may first select at least one second channel from the plurality of communication channels having an RSSI less than a preset threshold, and then determine the at least one first channel from the at least one second channel.
Illustratively, assuming that the signal strength of the communication channel is represented by the RSSI of the communication channel, the preset threshold is-80 dBm, and the RSSI of all communication channels is shown in table 1, then the communication channels satisfying the RSSI of the communication channel less than-80 dBm have: channel 1, channel 4, channel 6, channel 9, channel 11, that is, channel 1, channel 4, channel 6, channel 9, channel 11 where the second channel is a 2.4GHz band may be selected by the first device. Similarly, assuming that the preset threshold is-70 dBm and the RSSIs of all communication channels are shown in Table 1, then the communication channels satisfying the RSSIs of the communication channels less than-70 dBm have: channel 1, channel 2, channel 3, channel 4, channel 5, channel 6, channel 9, channel 11, that is, the first device may select channel 1, channel 2, channel 3, channel 4, channel 5, channel 6, channel 9, channel 11 where the second channel is a frequency band of 2.4 GHz.
In other implementations, when the signal strength is SNR, the first device may first select at least one second channel from the plurality of communication channels having an SNR greater than a preset threshold, and then determine the at least one first channel based on the at least one second channel.
It should be understood that the present application does not limit the representation of the signal strength and the selection of the preset threshold.
When the signal strength is RSSI, the first device may determine at least one first channel from at least one second channel by any one of the following realizations, but is not limited thereto:
in one implementation, the first device may determine the at least one second channel as the at least one first channel after selecting the at least one second channel.
For example, assuming that the second channel selected by the first device is 5 channels of channel 1, channel 4, channel 6, channel 9, and channel 11 in the frequency band of 2.4GHz, the first device may determine 5 channels of channel 1, channel 4, channel 6, channel 9, and channel 11 in the frequency band of 2.4GHz as the first channel. Similarly, assuming that the second channel selected by the first device is 8 channels of channel 1, channel 2, channel 3, channel 4, channel 5, channel 6, channel 9, and channel 11 in the frequency band of 2.4GHz, the first device may determine 8 channels of channel 1, channel 2, channel 3, channel 4, channel 5, channel 6, channel 9, and channel 11 in the frequency band of 2.4GHz as the first channel.
In a second implementation manner, after the first device selects at least one second channel, the first device may determine whether the number of the at least one second channel is greater than the number of the first channels, and if the number of the at least one second channel is greater than the number of the first channels, the first device may select, according to the order of RSSI from small to large, the channels of the number of the first channels in the at least one second channel, and determine the selected channels of the number of the first channels as the at least one first channel. The first device may determine the at least one second channel as the at least one first channel if the number of the at least one second channel is less than or equal to the number of the first channels.
It should be understood that the first number of channels refers to the maximum number of channels that can be used for wireless communication between the first device and the second device. Since the interference of the surrounding environment to which the channels are subjected in total becomes large if too many channels are used in the wireless communication process, for example, it is assumed that M channels are used in total in one wireless communication process, and the interference of the ith channel to the same frequency is P i And then (b) thenIn the wireless communication process, the common-frequency interference suffered by the M channels is P 1 +P 2 +……+P i +P M . The number of first channels may be generally set to 4-20, which is not limited in this application.
For example, assuming that the number of the first channels is 6, the first device selects the second channels as channels 1, 4, 6, 9, 11 of the frequency band of 2.4GHz, and RSSI of the 14 communication channels is shown in table 1, since the number of the second channels is 5 less than the number of the first channels of 6, the first device may determine the selected second channels as the first channels, that is, the first device may determine the 5 channels as the first channels of the frequency band of 2.4GHz, namely, the channels 1, 4, 6, 9, 11. Similarly, assuming that the number of the first channels is 6, the second channels selected by the first device are 8 channels of channel 1, channel 2, channel 3, channel 4, channel 5, channel 6, channel 9, and channel 11 in the frequency band of 2.4GHz, since the number 8 of the second channels is greater than the number 6 of the first channels, the first device may: -89dBm < -88dBm < -87dBm < -86dBm < -85dBm < -77dBm < -76dBm < -75dBm, selecting the channels with the first channel number of 6, namely, channel 1, channel 6, channel 11, channel 4, channel 9 and channel 3, from all 8 second channels, and determining the selected 6 channels as the first channels, that is, the first device can determine the channels 1, 6, 11, 4, 9 and 3 of the frequency band of 2.4GHz as the first channels.
In a third implementation manner, after the first device selects at least one second channel, the first device may determine whether the number of the at least one second channel is smaller than the number of the second channels, if the number of the at least one second channel is smaller than the number of the second channels, the first device may select, in order of RSSI from small to large, a channel of a third channel number among channels after the at least one second channel in the plurality of communication channels, where a sum of the third channel number and the number of the at least one second channel is the number of the second channels, and then the first device may determine the selected channel of the third channel number and the at least one second channel as the at least one first channel. The first device may determine the at least one second channel as the at least one first channel if the number of the at least one second channel is greater than or equal to the number of second channels.
It should be understood that the second number of channels refers to the minimum number of channels that can be used for wireless communication between the first device and the second device. Assuming that the communication interference is constant, the interference averaged to each channel is larger when the number of channels is smaller, so that the minimum number of channels, i.e., the second number of channels, can be set for the entire wireless communication. The number of second channels may be generally set to 4 to 6, which is not limited in this application.
For example, assuming that the number of the second channels is 6, the first device selects the second channels to be 5 channels of channels 1, 4, 6, 9, 11 of the frequency band of 2.4GHz, and the RSSI of the 14 communication channels is shown in table 1, since the number of the second channels is 5 less than the number of the second channels is 6, the first device may follow the order of RSSI from small to large: -89dBm < -88dBm < -87dBm < -86dBm < -85dBm < -77dBm < -76dBm < -75dBm < -67dBm < -66dBm < -65dBm 62dBm < -61dBm < -60dBm, selecting a third number of channels from among the 14 communication channels after 5 second channels, i.e. selecting 1 channel: channel 3, then the first device may determine the first selected 5 second channels and the 1 channels as at least one first channel, that is, the first device may determine channel 1, channel 4, channel 6, channel 9, channel 11, and channel 3 of the 2.4GHz band as first channels. Similarly, assuming that the number of the second channels is 6, the first device selects the second channels as 8 channels of channels 1, 2, 3, 4, 5, 6, 9, 11 of the frequency band of 2.4GHz, and since the number of the second channels is 8 greater than the number of the second channels of 6, the first device may determine the selected second channels as the first channels, that is, the first device may determine 8 channels of channels 1, 2, 3, 4, 5, 6, 9, 11 of the frequency band of 2.4GHz as the first channels.
In a fourth implementation manner, after the first device selects at least one second channel, it may determine whether the number of the at least one second channel is greater than the number of the first channels, or whether the number of the at least one second channel is less than the number of the second channels. If the number of the at least one second channel is larger than that of the first channels, selecting the channels with the first channel number from the at least one second channel according to the sequence of the RSSI from the small to the large, and determining the channels with the selected first channel number as the at least one first channel; if the number of the at least one second channel is smaller than the number of the second channels, selecting a third channel number of channels from channels after at least one second channel in the plurality of communication channels according to the sequence of RSSI from small to large, wherein the sum of the third channel number and the number of the at least one second channel is the number of the second channels, and determining the selected third channel number of channels and the at least one second channel as the at least one first channel; the first device may determine the at least one second channel as the at least one first channel if the number of the at least one second channel is greater than or equal to the number of second channels and greater than or equal to the number of first channels.
For example, assuming that the number of the first channels is 6, the number of the second channels is 4, and the RSSI of the 14 communication channels is shown in table 1, if the second channel selected by the first device is 8 channels of channel 1, channel 2, channel 3, channel 4, channel 5, channel 6, channel 9, and channel 11 in the frequency band of 2.4GHz, since the number of the second channels is 8 greater than the number of the first channels is 6, the first device may: -89dBm < -88dBm < -87dBm < -86dBm < -85dBm < -77dBm < -76dBm < -75dBm, selecting the channels of which the number of first channels is 6, namely, channel 1, channel 6, channel 11, channel 4, channel 9 and channel 3, from all 8 second channels, and determining the 6 selected channels as the first channels, that is, the first device can determine the channels 1, 6, 11, 4, 9 and 3 of the frequency band of 2.4GHz as the first channels. Similarly, if the second channel selected by the first device is 3 channels, namely, channel 1, channel 6 and channel 11 in the frequency band of 2.4GHz, since the number of the second channels is 3 less than the number of the second channels is 4, the first device may follow the order of RSSI from small to large: -89dBm < -88dBm < -87dBm < -86dBm < -85dBm < -77dBm < -76dBm < -75dBm < -67dBm < -66dBm < -65dBm 62dBm < -61dBm < -60dBm, selecting a third number of channels from among the 14 communication channels, that is, selecting 1 channel from among the channels after 3 second channels: channel 4, then the first device may determine the first selected 3 second channels and the 1 channels as at least one first channel, that is, the first device may determine channel 1, channel 6, channel 11, and channel 4 of the 2.4GHz band as first channels. Similarly, if the second channel selected by the first device is 5 channels of channel 1, channel 4, channel 6, channel 9 and channel 11 in the frequency band of 2.4GHz, since the number of the second channels is greater than or equal to 5, the number of the second channels is 4 and the number of the first channels is greater than or equal to 6, the first device can determine that the 5 channels of channel 1, channel 4, channel 6, channel 9 and channel 11 in the frequency band of 2.4GHz are the first channels.
It should be appreciated that when the signal strength is SNR or other parameters, the first device may also determine the at least one first channel from the at least one second channel in a similar manner as the above-described signal strength is RSSI.
In some implementations, after determining the at least one first channel, the first device may send information of the first channel to the second device, so that the first device may start to communicate with the second device through the at least one first channel at a preset time, where the information of the first channel may include: the identity of the at least one first channel and the preset time are not limited thereto.
In some implementations, the identifier of the first channel may be a name of the first channel, or an index of the first channel, or a frequency band where the first channel is located, or a frequency of the first channel, which is not limited in this application.
In some implementations, the identifiers of the at least one first channel are arranged in a predetermined order, based on which the first device and the second device may start at the predetermined time and communicate sequentially through the first channels in the predetermined order.
Illustratively, assume that the first channel determined by the first device is: channel 1, channel 4, channel 6, channel 9, channel 11 of the 2.4GHz frequency band, the identifiers of the 5 first channels are respectively the indexes of the channels: 1. 4, 6, 9, 11, the preset time is T, the first device may send information of the first channel including the identification of the 5 first channels and the preset time T to the second device after determining the first channel. After receiving the information of the first channel sent by the first device, the second device may start to communicate with the first device through 5 first channels, namely, channel 1, channel 4, channel 6, channel 9 and channel 11 in the frequency band of 2.4GHz at the time of T.
In summary, the technical solution provided in the embodiments of the present application at least brings the following beneficial effects: in one aspect, the first device may determine a plurality of communication channels of the target frequency band, and then scan the plurality of communication channels to obtain signal strengths of the plurality of communication channels, and then the first device may select at least one first channel from the plurality of communication channels according to the signal strengths of the plurality of communication channels, and send information including an identifier of the at least one first channel and at least one first channel of a preset time to the second device. After receiving the information of at least one first channel sent by the first device, the second device can start to communicate with the first device through the at least one first channel at preset time. The technical scheme provided by the application does not depend on the condition of data packet loss, but selects the communication channel based on the signal strength of the communication channel, so that normal data transmission in the wireless communication process can be ensured, and the communication reliability is improved.
In still another aspect, the first device may scan the communication channel during an idle period of a plurality of communication periods with the second device, to obtain a signal strength of the communication channel, without affecting a normal data transmission process of the first device, thereby further improving communication reliability.
On the other hand, if too many channels are used in the wireless communication process, the interference of the surrounding environment suffered by the channels in total becomes larger, if too few channels are used, the interference averaged to each channel becomes larger at a certain time of interference, and when the first channel is selected, the signal intensity of the communication channel is considered, and the minimum channel number and/or the maximum channel number in the wireless communication process are considered, so that the communication quality of the wireless communication can be further ensured, and the normal transmission of data in the wireless communication process is ensured.
Fig. 3 is a schematic diagram of a wireless communication apparatus according to an embodiment of the present application, where the wireless communication apparatus may be the first device 110 shown in fig. 1, and the wireless communication apparatus includes:
a determining module 301, configured to determine a plurality of communication channels of a target frequency band;
the scanning module 302 is configured to scan the plurality of communication channels to obtain signal intensities of the plurality of communication channels;
A selection module 303, configured to select at least one first channel from the plurality of communication channels according to signal strengths of the plurality of communication channels;
and the sending module 304 is configured to send information of at least one first channel to the second device, so that the first device and the second device start to communicate through the at least one first channel at a preset time.
In some implementations, the scanning module 302 is specifically configured to: determining a plurality of communication cycles; determining an idle period for each of a plurality of communication periods; determining a number of communication channels in an idle period of each communication cycle; determining the communication channels in the idle period of each communication period according to the number of the communication channels in the idle period of each communication period; and scanning the communication channels in the idle period of each communication period to obtain the signal strength of the communication channels in the idle period of each communication period.
In some implementations, the scanning module 302 is specifically configured to: the number of communication channels in the idle period of each communication cycle is determined according to the idle period of each communication cycle and the scanning duration of each communication channel.
In some implementations, the selection module 303 is specifically configured to: selecting at least one second channel of which the RSSI is smaller than a preset threshold value from a plurality of communication channels when the signal strength is RSSI; at least one first channel is determined from at least one second channel.
In some implementations, the selection module 303 is specifically configured to: at least one second channel is determined as at least one first channel.
In some implementations, the selection module 303 is specifically configured to: judging whether the number of the at least one second channel is larger than that of the first channels; if the number of the at least one second channel is larger than that of the first channels, selecting the channels with the first channel number from the at least one second channels according to the sequence of the RSSI from the small to the large; the selected number of first channels is determined as at least one first channel.
In some implementations, the selection module 303 is specifically configured to: judging whether the number of the at least one second channel is smaller than the number of the second channels or not; if the number of the at least one second channel is smaller than that of the second channels, selecting a channel with a third channel number from channels after the at least one second channel in the plurality of communication channels according to the sequence of the RSSI from small to large, wherein the sum of the third channel number and the number of the at least one second channel is the second channel number; the selected number of third channels and the at least one second channel are determined as the at least one first channel.
In some implementations, the selection module 303 is specifically configured to: judging whether the number of the at least one second channel is larger than that of the first channels or whether the number of the at least one second channel is smaller than that of the second channels; if the number of the at least one second channel is larger than that of the first channels, selecting the channels with the first channel number from the at least one second channel according to the sequence of the RSSI from the small to the large, and determining the channels with the selected first channel number as the at least one first channel; if the number of the at least one second channel is smaller than the number of the second channels, selecting a third channel number of channels from channels after the at least one second channel in the plurality of communication channels according to the sequence of the RSSI from small to large, wherein the sum of the third channel number and the number of the at least one second channel is the number of the second channels, and determining the selected third channel number of channels and the at least one second channel as the at least one first channel.
In some implementations, the information for the at least one first channel includes: the identification of at least one first channel and a preset time.
It should be understood that the apparatus embodiment and the method embodiment of the first device side may correspond to each other, and similar descriptions may refer to the method embodiment of the first device side. To avoid repetition, no further description is provided here.
Specifically, the wireless communication apparatus shown in fig. 3 may execute the method embodiment on the first device side, and the foregoing and other operations and/or functions of each module in the wireless communication apparatus are respectively for implementing corresponding flows in each method on the first device side, which are not described herein for brevity.
The wireless communication device of the embodiments of the present application is described above from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module may be implemented in hardware, or may be implemented by instructions in software, or may be implemented by a combination of hardware and software modules. Specifically, each step of the method embodiments in the embodiments of the present application may be implemented by an integrated logic circuit of hardware in a processor and/or an instruction in software form, and the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented as a hardware decoding processor or implemented by a combination of hardware and software modules in the decoding processor. Alternatively, the software modules may be located in a well-established storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, and the like. The storage medium is located in a memory, and the processor reads information in the memory, and in combination with hardware, performs the steps in the above method embodiments.
Fig. 4 is a schematic block diagram of an electronic device 400 provided by an embodiment of the present application.
As shown in fig. 4, the electronic device 400 may include:
a memory 410 and a processor 420, the memory 410 being adapted to store a computer program and to transfer the program code to the processor 420. In other words, the processor 420 may call and run a computer program from the memory 410 to implement the methods in embodiments of the present application.
For example, the processor 420 may be used to perform the method embodiments described above in accordance with instructions in the computer program.
In some embodiments of the present application, the processor 420 may include, but is not limited to:
a general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
In some embodiments of the present application, the memory 410 includes, but is not limited to:
volatile memory and/or nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DR RAM).
In some embodiments of the present application, the computer program may be partitioned into one or more modules that are stored in the memory 410 and executed by the processor 420 to perform the methods provided herein. The one or more modules may be a series of computer program instruction segments capable of performing the specified functions, which are used to describe the execution of the computer program in the electronic device.
As shown in fig. 4, the electronic device may further include:
a transceiver 430, the transceiver 430 being connectable to the processor 420 or the memory 410.
The processor 420 may control the transceiver 430 to communicate with other devices, and in particular, may send information or data to other devices or receive information or data sent by other devices. Transceiver 430 may include a transmitter and a receiver. Transceiver 430 may further include antennas, the number of which may be one or more.
It will be appreciated that the various components in the electronic device are connected by a bus system that includes, in addition to a data bus, a power bus, a control bus, and a status signal bus.
The present application also provides a computer storage medium having stored thereon a computer program which, when executed by a computer, enables the computer to perform the method of the above-described method embodiments.
Embodiments of the present application also provide a computer program product comprising instructions which, when executed by a computer, cause the computer to perform the method of the method embodiments described above.
When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces, in whole or in part, a flow or function consistent with embodiments of the present application. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. For example, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A method of wireless communication, the method being applied to a first device, the method comprising:
determining a plurality of communication channels of a target frequency band;
Scanning the communication channels to obtain the signal intensity of the communication channels;
selecting at least one first channel among the plurality of communication channels according to signal strengths of the plurality of communication channels;
and sending the information of the at least one first channel to a second device so that the first device and the second device start to communicate through the at least one first channel at preset time.
2. The method of claim 1, wherein scanning the plurality of communication channels for signal strengths of the plurality of communication channels comprises:
determining a plurality of communication cycles;
determining an idle period for each of the plurality of communication periods;
determining the number of communication channels in the idle period of each communication period;
determining the communication channels in the idle period of each communication period according to the number of the communication channels in the idle period of each communication period;
and scanning the communication channels in the idle period of each communication period to obtain the signal strength of the communication channels in the idle period of each communication period.
3. The method of claim 2, wherein said determining the number of communication channels in the idle period of each communication cycle comprises:
And determining the number of the communication channels in the idle period of each communication period according to the idle period of each communication period and the scanning duration of each communication channel.
4. A method according to any of claims 1-3, wherein selecting at least one first channel among the plurality of communication channels based on signal strengths of the plurality of communication channels comprises:
selecting at least one second channel of the plurality of communication channels having an RSSI less than a preset threshold when the signal strength is a received signal strength indication RSSI;
the at least one first channel is determined from the at least one second channel.
5. The method of claim 4, wherein said determining said at least one first channel from said at least one second channel comprises:
the at least one second channel is determined as the at least one first channel.
6. The method of claim 4, wherein said determining said at least one first channel from said at least one second channel comprises:
judging whether the number of the at least one second channel is larger than that of the first channels;
If the number of the at least one second channels is larger than that of the first channels, selecting the channels with the first channel number from the at least one second channels according to the sequence of the RSSI from small to large;
and determining the channels of the selected first channel number as the at least one first channel.
7. The method of claim 4, wherein said determining said at least one first channel from said at least one second channel comprises:
judging whether the number of the at least one second channel is smaller than the number of the second channels;
if the number of the at least one second channel is smaller than the number of the second channels, selecting a third channel number of channels from channels after the at least one second channel in the plurality of communication channels according to the sequence of the RSSI from small to large, wherein the sum of the third channel number and the number of the at least one second channel is the number of the second channels;
determining the selected number of channels of the third channel and the at least one second channel as the at least one first channel.
8. The method of claim 4, wherein said determining said at least one first channel from said at least one second channel comprises:
Judging whether the number of the at least one second channel is larger than the number of the first channels or whether the number of the at least one second channel is smaller than the number of the second channels;
if the number of the at least one second channels is larger than the number of the first channels, selecting the channels with the number of the first channels from the at least one second channels according to the sequence of RSSI from small to large, and determining the channels with the number of the first channels as the at least one first channel;
and if the number of the at least one second channel is smaller than the number of the second channels, selecting a third channel number of channels from channels after the at least one second channel in the plurality of communication channels according to the sequence of RSSI from small to large, wherein the sum of the third channel number and the number of the at least one second channel is the number of the second channels, and determining the selected third channel number of channels and the at least one second channel as the at least one first channel.
9. A method according to any of claims 1-3, characterized in that the information of the at least one first channel comprises: the identity of the at least one first channel and the preset time.
10. A wireless communications apparatus, comprising:
the determining module is used for determining a plurality of communication channels of the target frequency band;
the scanning module is used for scanning the plurality of communication channels to obtain the signal intensity of the plurality of communication channels;
a selection module, configured to select at least one first channel from the plurality of communication channels according to signal strengths of the plurality of communication channels;
and the sending module is used for sending the information of the at least one first channel to the second equipment so that the first equipment and the second equipment start to communicate through the at least one first channel at preset time.
11. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the wireless communication method of any of claims 1-9 via execution of the executable instructions.
12. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the wireless communication method of any of claims 1-9.
13. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of any of claims 1-9.
CN202111638658.1A 2021-12-29 2021-12-29 Wireless communication method, apparatus, device, storage medium, and computer program product Pending CN116418427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111638658.1A CN116418427A (en) 2021-12-29 2021-12-29 Wireless communication method, apparatus, device, storage medium, and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111638658.1A CN116418427A (en) 2021-12-29 2021-12-29 Wireless communication method, apparatus, device, storage medium, and computer program product

Publications (1)

Publication Number Publication Date
CN116418427A true CN116418427A (en) 2023-07-11

Family

ID=87053112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111638658.1A Pending CN116418427A (en) 2021-12-29 2021-12-29 Wireless communication method, apparatus, device, storage medium, and computer program product

Country Status (1)

Country Link
CN (1) CN116418427A (en)

Similar Documents

Publication Publication Date Title
US20120113971A1 (en) Efficient wlan discovery and association
US20170280399A1 (en) Managing Radio Frequency Spectrum Usage By A Wireless Network Node
US8538469B2 (en) Method for initial scanning of frequencies, frequency scanning controller, and apparatus
US10454639B2 (en) D2D communication method and D2D communication apparatus
US9986533B2 (en) Apparatus and method for providing communication
US10291373B2 (en) D2D communication control method and control apparatus
KR20160146971A (en) Base station, user equipment, resource obtaining method and system
CN113938990B (en) Equipment management method and communication device
US9781721B1 (en) Transmission method and transmission system for sharing an unlicensed channel in a wireless communications system
WO2022012386A1 (en) Terminal access method, terminal and storage medium
JP3647837B2 (en) Frequency selection method in mobile station, mobile station, and frequency selection program
CN109716671B (en) Beam finding procedure
CN116015531B (en) Signal interference method, signal interference device and computer readable storage medium
CN116418427A (en) Wireless communication method, apparatus, device, storage medium, and computer program product
CN111447655B (en) Method, device, equipment and medium for accessing terminal to network
CN109673052B (en) Method and device for data transmission in multiple carriers
RU2745417C1 (en) Method of monitoring and terminal device in the internet system of vehicles
US20190215837A1 (en) Secure and distributed dfs between host and firmware
US8504012B2 (en) System and method for providing broadcast services in broadband wireless access system
CN113596981B (en) Method and device for determining frequency domain offset, communication equipment and readable storage medium
CN113366779B (en) Information transmission method, related equipment and system
WO2016176848A1 (en) Signal transmission method and network device
US11445436B2 (en) Cell selection and resource allocation thresholds
CN112188573A (en) Cell residence processing method and device, terminal equipment and readable storage medium
TWI603640B (en) Radio power mode switching

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