CN114915359B - Method, apparatus, electronic device and readable storage medium for selecting channel - Google Patents

Method, apparatus, electronic device and readable storage medium for selecting channel Download PDF

Info

Publication number
CN114915359B
CN114915359B CN202110179079.9A CN202110179079A CN114915359B CN 114915359 B CN114915359 B CN 114915359B CN 202110179079 A CN202110179079 A CN 202110179079A CN 114915359 B CN114915359 B CN 114915359B
Authority
CN
China
Prior art keywords
channel
gateway
channels
sub
groups
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
CN202110179079.9A
Other languages
Chinese (zh)
Other versions
CN114915359A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110179079.9A priority Critical patent/CN114915359B/en
Publication of CN114915359A publication Critical patent/CN114915359A/en
Application granted granted Critical
Publication of CN114915359B publication Critical patent/CN114915359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/345Interference values
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/245TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength
    • 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)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Noise Elimination (AREA)

Abstract

The application relates to the technical field of electronics, and provides a method, a device, electronic equipment and a readable storage medium for selecting a channel, wherein the electronic equipment can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device and the like, and the method comprises the following steps: receiving the received signal strength and the number of packets of M groups of channels from a first sub-gateway; determining initial interference values of M groups of channels according to the received signal strengths of the M groups of channels, wherein the M groups of channels comprise first channels, and the initial interference values of the first channels are in positive correlation or negative correlation with the received signal strengths of the first channels; determining a corrected interference value of the M groups of channels according to the packet receiving number of the M groups of channels and the initial interference value of the M groups of channels; and determining a first target channel from the M candidate channels according to the corrected interference values of the M groups of channels. The method can avoid interference between the sub-gateways, thereby improving the communication quality.

Description

Method, apparatus, electronic device and readable storage medium for selecting channel
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method, an apparatus, an electronic device, and a readable storage medium for selecting a channel.
Background
With the development of internet technology, gateways are widely used as access devices for wireless networks in thousands of households. There is also an increasing demand for gateway use, for example, to be able to access wireless networks without any obstruction in every area of the home, and to require good communication quality.
Taking a home gateway as an example, the current home gateway adopts a master-slave distribution mode to realize full-house coverage, namely, one master gateway is used for connecting with the Internet, and other slave sub-gateways are distributed at all parts of the house and are connected with the Internet through the connection with the master gateway. Each sub-gateway covers a local area, and wireless devices such as mobile phones in the local area can access the internet by connecting the sub-gateways. When a plurality of sub-gateways work simultaneously, if the working frequencies of the sub-gateways are relatively close, the sub-gateways are easy to interfere with each other, and the use of users is affected. To avoid interference between sub-gateways, a user typically manually detects the working channel of each sub-gateway, and when the working channels of two sub-gateways are adjacent channels, the user manually alters the working channel of one of the sub-gateways to reduce the interference.
However, the manner in which interference is avoided by the user manually changing the working channel of the sub-gateway is cumbersome to operate.
Disclosure of Invention
The application provides a method, a device, electronic equipment and a readable storage medium for selecting a channel, which can conveniently and rapidly perform channel adjustment to avoid interference.
In a first aspect, a method of selecting a channel is provided, comprising:
receiving the received signal strength and the packet number of M groups of channels from a first sub-gateway, wherein the M groups of channels are spread spectrum channel sets of M candidate channels of the first sub-gateway, and M is a positive integer greater than 1;
determining initial interference values of the M groups of channels according to the received signal strengths of the M groups of channels, wherein the M groups of channels comprise a first channel, and the initial interference values of the first channel are positively or negatively related to the received signal strengths of the first channel;
determining a corrected interference value of the M groups of channels according to the received packet number of the M groups of channels and the initial interference value of the M groups of channels, wherein when the initial interference value of the first channel is positively correlated with the received signal strength of the first channel, the corrected interference value of the first channel is positively correlated with the received packet number of the first channel; when the initial interference value of the first channel is inversely related to the received signal strength of the first channel, the corrected interference value of the first channel is inversely related to the number of packets received by the first channel;
And determining a first target channel from the M candidate channels according to the corrected interference values of the M groups of channels, wherein the corrected interference values of the M groups of channels are used for indicating the interference degrees of the M candidate channels, the first target channel is the one with the lowest interference degree in the M groups of channels, and the first target channel is used for the terminal equipment to communicate with the first sub-gateway.
In this embodiment, the primary gateway determines an initial interference value representing the interference degree of signals of one channel to other channels according to the received signal strength of the M groups of channels, and corrects the initial interference value by the number of received packets to obtain a corrected interference value representing the interference degree more accurately. The method carries out quantitative consideration on the interference degree of each channel by combining the parameters of the received signal strength and the packet receiving number, so that the channel with the minimum interference is determined as the working channel of the sub-gateway according to the quantitative result, the sub-gateway can provide a wireless network for the accessed terminal equipment in the state of the minimum interference, and the communication quality of the accessed terminal equipment in the home gateway is improved. Meanwhile, the main gateway can automatically select a channel with the smallest interference as a working channel of the sub gateway according to parameters of the received signal strength and the number of received packets, so that the inefficiency and inconvenience of manually switching the working channel of the gateway are avoided, the sub gateway can be timely and conveniently switched to the channel with the small interference for communication, the communication quality of terminal equipment accessed in the home gateway is improved, and further the user experience is improved.
Optionally, the determining a first target channel from the M candidate channels according to the modified interference values of the M groups of channels includes: determining M weighted interference values according to the corrected interference values of the M groups of channels, wherein the M weighted interference values are obtained by carrying out weighted summation on each group of corrected interference values in the corrected interference values of the M groups of channels, and the M weighted interference values are used for indicating the interfered degrees of the M candidate channels; and determining the first target channel from the M candidate channels according to the M weighted interference values.
According to the method, the main gateway performs weighted summation on the corrected interference values of each group of channels according to the weight coefficients corresponding to the corrected interference values of each group of channels, and the difference of the interference degrees of different channels on the candidate channels can be comprehensively considered through the proportion of the weight coefficients, so that the obtained weighted interference values can represent the interference degrees of the candidate channels more reasonably and accurately, and the channel selection based on the weighted interference values is also more reasonable and accurate.
Optionally, the method further comprises: and when the second target channel is the same as the first target channel, determining a third target channel from the M candidate channels according to the corrected interference values of the M groups of channels, wherein the second target channel is the one with the lowest interference degree in N candidate channels of a second sub-gateway, N is a positive integer, the third target channel is the channel with the next lowest interference degree in the M candidate channels, and the third target channel is used for the terminal equipment to communicate with the first sub-gateway.
In the method, when the working channels of the two sub-gateways collide, the main gateway actively adjusts the working channel of one of the sub-gateways to be the channel with the low interference degree, so that the mutual interference of the working channels of the two sub-gateways due to the same frequency band can be avoided, the channel optimization is realized at the system level, and the communication quality of the home gateway is further improved.
Optionally, the method further comprises: and when the received signal strength of any one channel in the M groups of channels is greater than or equal to a received signal strength threshold, sending a first power control parameter to the first sub-gateway, wherein the first power control parameter is used for reducing the current transmitting power of the first sub-gateway.
When the first sub-gateway monitors that strong signals transmitted by other sub-gateways exist around the first sub-gateway, namely, when the received signal strength is greater than or equal to a received signal strength threshold value in M groups of channels reported to the main gateway by the first sub-gateway, the first sub-gateway and the other sub-gateways are closer, and a strong coverage area (namely, an area with stronger signals, such as an area with the signal strength exceeding-60 dbm) exists between the first sub-gateway and the other sub-gateways. At this time, even if the first sub-gateway reduces the transmission power, the coverage area of the whole home gateway is not affected, and at the same time, the reduction of the transmission power can reduce the interference of the first sub-gateway to other sub-gateways, so that the main gateway can send the first power control parameter to the first sub-gateway to reduce the current transmission power of the first sub-gateway. The method can reduce the interference of the first sub-gateway to other sub-gateways and improve the communication quality of the home gateway under the condition that the coverage range of the home gateway is not affected.
Optionally, the method further comprises: when the bit error rate of the first sub-gateway is greater than or equal to a first bit error rate threshold, sending a second power control parameter to the first sub-gateway, wherein the first power control parameter is used for improving the current transmitting power of the first sub-gateway; and when the bit error rate of the first sub-gateway is smaller than a second bit error rate threshold, sending a third power control parameter to the first sub-gateway, wherein the third power control parameter is used for reducing the current transmitting power of the first sub-gateway, and the first bit error rate threshold is larger than the second bit error rate threshold.
When the bit error rate of the first sub-gateway is greater than or equal to the first bit error rate threshold, the communication quality of the first sub-gateway is poor, the power needs to be increased to enhance the signal, and the main gateway can send a second power control parameter for increasing the transmitting power to the first sub-gateway; when the bit error rate of the first sub-gateway is smaller than the second bit error rate threshold (the second bit error rate threshold is smaller than the first bit error rate threshold), the communication quality of the first sub-gateway is good, and the small increase of the bit error rate of the first sub-gateway does not affect the user experience, so that the transmitting power of the first sub-gateway can be properly reduced within an allowable range to save power consumption, and meanwhile, the interference of the first sub-gateway to other sub-gateways is reduced. The main gateway reasonably adjusts the transmitting power of the sub-gateway according to the error rate of the sub-gateway, thereby realizing the balance between the communication quality and the external interference degree and improving the communication quality of the home gateway.
Optionally, the method further comprises: when the number of the sub-gateways in the local area network where the first sub-gateway is located is increased, a fourth power control parameter is sent to the first sub-gateway, and the fourth power control parameter is used for reducing the current transmitting power of the first sub-gateway; or when the number of the sub-gateways in the local area network where the first sub-gateway is located is reduced, sending a fifth power control parameter to the first sub-gateway, where the fifth power control parameter is used for increasing the current transmitting power of the first sub-gateway.
When the number of sub-gateways in the local area network where the first sub-gateway is located is increased, namely, when newly added sub-gateways exist, the coverage capacity of the whole home gateway is increased, the pre-existing sub-gateways can properly reduce the transmitting power, and the mutual interference among the sub-gateways can be reduced under the condition that the coverage area is not influenced. Therefore, the main gateway sends the fourth power control parameter for reducing the transmitting power of the first sub-gateway to the first sub-gateway, so that the interference of the first sub-gateway to other sub-gateways is reduced under the condition of ensuring the coverage area, and the communication quality of the home gateway is improved.
When the number of sub-gateways in the local area network where the first sub-gateway is located is reduced, that is, when the sub-gateway exits the local area network, the coverage capability of the whole home gateway is reduced, and the existing sub-gateway can properly increase the transmitting power to ensure that the coverage is not affected. Therefore, the main gateway sends a fifth power control parameter for improving the transmitting power of the first sub-gateway to the first sub-gateway so as to ensure that the coverage area of the home gateway is not affected even if the sub-gateway fails or is closed.
Optionally, the method further comprises: and when the error rate of the first sub-gateway is higher than a preset first error rate threshold, sending a Clear Channel Assessment (CCA) control parameter to the first sub-gateway, wherein the CCA control parameter is used for reducing the CCA threshold of the first sub-gateway.
When the bit error rate of the first sub-gateway is higher than the first bit error rate threshold, it indicates that the communication quality of the first sub-gateway is poor at this time, the main gateway can also send a CCA control parameter for reducing the CCA threshold of the first sub-gateway to the first sub-gateway, so as to reduce the time slice allocated to the air interface by the first sub-gateway, thereby reducing the acquisition duration of the interference signal, so that the first sub-gateway can receive less interference signals and improve the communication quality.
In a second aspect, an apparatus for selecting a channel is provided, which comprises a unit comprising software and/or hardware for performing any one of the methods according to the first aspect.
In a third aspect, there is provided an electronic device comprising a processor and a memory, the memory being configured to store a computer program, the processor being configured to invoke and run the computer program from the memory, such that the electronic device performs any of the methods according to the first aspect.
In a fourth aspect, there is provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, causes the processor to perform any one of the methods according to the first aspect.
In a fifth aspect, there is provided a computer program product comprising: computer program code which, when run on a terminal device, causes the terminal device to carry out any one of the methods according to the first aspect.
Drawings
Fig. 1 is a schematic structural diagram of an example of a terminal device 100 according to an embodiment of the present application;
fig. 2 is a schematic diagram of subsystems of a terminal device 100 according to an embodiment of the present application;
fig. 3 is a schematic networking diagram of an example home gateway according to an embodiment of the present disclosure;
fig. 4 is a signaling interaction diagram of channel tuning by the primary gateway timing according to an embodiment of the present application;
fig. 5 is a signaling interaction diagram of an example of actively applying channel tuning to a primary gateway by a secondary gateway according to an embodiment of the present application;
fig. 6 is a flowchart of an example of a method for selecting a channel according to an embodiment of the present application;
Fig. 7 is a schematic diagram of a coverage area of an exemplary gateway according to an embodiment of the present application;
fig. 8 is a schematic diagram of an apparatus for selecting a channel according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
Hereinafter, the terms "first", "second", "third", "fourth", "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "first", "second", "third", "fourth", "fifth" may explicitly or implicitly include one or more such feature.
The method for selecting the channel provided by the embodiment of the application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and the like, and the specific types of the terminal devices are not limited.
Fig. 1 is a schematic structural diagram of an exemplary terminal device 100 according to an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, terminal device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural center and a command center of the terminal device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement a touch function of the terminal device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of terminal device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display function of the terminal device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, or may be used to transfer data between the terminal device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other terminal devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the terminal device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. The structures of the antennas 1 and 2 in fig. 1 are only one example. Each antenna in the terminal device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the terminal device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of terminal device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that terminal device 100 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The terminal device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the terminal device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the terminal device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in various encoding formats, for example: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the terminal device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (such as audio data, phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or to handsfree talk through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal device 100 receives a call or voice message, it is possible to receive voice by approaching the receiver 170B to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may be further provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D may be a USB interface 130 or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The terminal device 100 determines the intensity of the pressure according to the change of the capacitance. When a touch operation is applied to the display 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal device 100 may also calculate the position of the touch from the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects the angle of the shake of the terminal device 100, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shake of the terminal device 100 by the reverse motion, thereby realizing anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates altitude from barometric pressure values measured by the barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The terminal device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the terminal device 100 is a folder, the terminal device 100 may detect opening and closing of the folder according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E can detect the magnitude of acceleration of the terminal device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the terminal device 100 is stationary. The method can also be used for identifying the gesture of the terminal equipment, and is applied to the applications such as horizontal and vertical screen switching, pedometers and the like.
A distance sensor 180F for measuring a distance. The terminal device 100 may measure the distance by infrared or laser. In some embodiments, the terminal device 100 may range using the distance sensor 180F to achieve fast focusing.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light outward through the light emitting diode. The terminal device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the terminal device 100. When insufficient reflected light is detected, the terminal device 100 may determine that there is no object in the vicinity of the terminal device 100. The terminal device 100 can detect that the user holds the terminal device 100 close to the ear to talk by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The terminal device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The terminal device 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is for detecting temperature. In some embodiments, the terminal device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 performs a reduction in the performance of a processor located near the temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the terminal device 100 heats the battery 142 to avoid the low temperature causing the terminal device 100 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the terminal device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The terminal device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the terminal device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be contacted and separated from the terminal apparatus 100 by being inserted into the SIM card interface 195 or by being withdrawn from the SIM card interface 195. The terminal device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the terminal device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
The software system of the terminal device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the terminal device 100 is illustrated.
Fig. 2 is a schematic diagram of subsystems of the terminal 100 according to an embodiment of the present application, where the terminal 100 includes an audio subsystem, a Wi-Fi subsystem, a storage subsystem, a display (display) subsystem, a power subsystem, and a wireless communication subsystem, and these subsystems communicate with a central processor (central processing unit, CPU) and interact with memory using a standard interface and a local bus (local-bus). The CPU may support the Linux operating system. Wherein the audio subsystem comprises a high-fidelity digital signal processor (high-fidelity digital signal processing, hi-Fi DSP), a microphone (Mic), a subscriber line interface circuit (subscriber line interface circuit, SLIC) which may be used to process audio data, such as decoding and encoding audio data; the Wi-Fi subsystem comprises a universal serial bus (universal serial bus, USB), a Wi-Fi module, a gigabit Ethernet controller (gigabit media access control, GMAC), bluetooth (BT) and the like, and can be used for encoding and decoding Wi-Fi signals; the storage subsystem comprises a random access memory (random access memory, RAM) and a FLASH memory (FLASH), and can be used for managing stored data; the display subsystem comprises a touch screen and a liquid crystal display and can be used for receiving the operation of a user on the touch screen and displaying an interface; the power subsystem comprises a Power Management Integrated Circuit (PMIC), a power consumption control module micro control unit (micro controller unit, MCU), a battery and a universal serial bus (universal serial bus, USB) for supplying power to each part of the terminal device; the wireless communication subsystem includes a baseband (BB) processor, a Radio Frequency (RF) module, and a subscriber identity module (subscriber identity module, SIM) for communicating with other devices.
For easy understanding, the following embodiments of the present application will take a terminal device having a structure shown in fig. 1 and fig. 2 as an example, and specifically describe a method for selecting a channel provided in the embodiments of the present application with reference to the accompanying drawings and application scenarios.
The embodiment of the present application may be applied to a home gateway as shown in fig. 3, which includes a main gateway 301 and at least one sub-gateway, as shown by sub-gateway 302 and gateway 303. Note that, the main gateway 301, the sub-gateway 302, and the sub-gateway 303 may be routers, that is, the main gateway 301 is a main router, and the sub-gateway 302 and the sub-gateway 303 are sub-routers connected to the main router. The sub-gateway 302 and the sub-gateway 303 may be terminal devices such as smart phones that can be used as Access Points (APs), which are not limited to the embodiment of the present application. The main gateway 301 may be connected to the internet, and the sub-gateway 302 and the sub-gateway 303 access the internet through the main gateway 301.
In general, the sub-gateway 302 and the sub-gateway 303 may be distributed in different rooms or areas so as to implement full-house coverage of Wi-Fi signals, so that the smart phone can be connected to a closer sub-gateway or a sub-gateway with stronger signal no matter in which room the user uses the smart phone. For example, sub-gateway 302 is disposed in room a, sub-gateway 303 is disposed in room B, and a user holding a smartphone can connect the smartphone to sub-gateway 302 when the user holding the smartphone is in room a, and can connect the smartphone to sub-gateway 303 when the user holding the smartphone is in room B. However, the sub-gateway 302 may affect the communication quality if an external interference signal exists when communicating with the smart phone. For example, the sub-gateway 302 may receive the transmission signal of the sub-gateway 303, and if the working channels of the two sub-gateways (the sub-gateway 302 and the communication channel of the smart phone) are the same or similar, the sub-gateway 302 may be interfered by the sub-gateway 303, and the sub-gateway 303 may also be interfered by the sub-gateway 302, so that the communication quality is reduced. Alternatively, the user may access the primary gateway 301 through the internet using the management terminal 304 to obtain configuration conditions in the current home gateway, such as information on channels, power, etc. of each gateway. The management terminal may be a smart phone or a personal computer. Optionally, a wireless Mesh network networking, that is, a Mesh networking mode, may be adopted between the main gateway 301 and the sub-gateways 302 and 303.
In the embodiment of the invention, the main gateway quantifies and compares the interference degree of the sub-gateways to the signals on different channels according to the strength of the detected signals reported by the sub-gateways and the number of messages received on different channels in unit time, and automatically selects the channels with small interference to communicate, so that the Wi-Fi channels of the sub-gateways are automatically optimized (namely, the channels with better communication quality are automatically selected to communicate), the communication quality of the home gateway is improved, and meanwhile, the adjustment of the Wi-Fi channels of all the sub-gateways in the home gateway is more convenient.
The method for selecting the channels provided by the embodiment of the application can be used for triggering the channel selection of the working channels of the sub-gateways by the main gateway according to the preset time period at regular time; the sub-gateway can actively initiate the application of selecting the channel to the main gateway to trigger the main gateway to select the working channel of the sub-gateway according to the fact that the sub-gateway detects the strong signal, namely, the sub-gateway is interfered.
Fig. 4 is a signaling diagram illustrating channel tuning by the primary gateway 301 according to an embodiment. As shown in fig. 4, when the time set by the periodically tuning timer arrives, the main gateway 301 issues channel monitoring parameters to the sub-gateway 302, where the channel monitoring parameters may include at least one of a radio frequency system (e.g., wi-Fi 5G, wi-Fi 2.4G), a transmit power, a probing channel (i.e., a channel to be detected, such as channel 1, channel 2, channel 3, channel 13, channel 14, and channel 36, channel 48, channel 196), and may further include other parameters that characterize the operation state of the sub-gateway 303 around the sub-gateway 302. Optionally, the primary gateway 301 may issue a tuning instruction to the secondary gateway 302 and the secondary gateway 303, where the tuning instruction is used to trigger the secondary gateway 302 and the secondary gateway 303 to report the detected information to the primary gateway 301, and the secondary gateway 302 and the secondary gateway 303 may report the detected information according to the types of the channel monitoring parameters that are pre-agreed, without the primary gateway 301 specifying the channel monitoring parameters. When the sub-gateway 302 receives the channel monitoring parameters issued by the main gateway 301, it converts the channel monitoring parameters into a terminal mode (as a station mode), scans the surrounding environment according to the channel monitoring parameters, and obtains at least one of the information of the radio frequency system of the signal in the surrounding environment, the channel, the received signal strength of the signal on each channel, the packet number of each channel, the number of neighbor sub-gateways (e.g. sub-gateway 303), the basic service group identity (basic service set identity document, BSSID) of the neighbor sub-gateways, the number of connected terminal devices, and the like, and may further include the information of the working channel, the bit error rate, the packet loss rate, and the like of the sub-gateway 302 itself. The sub-gateway 302 and the sub-gateway 303 report the scanned information to the main gateway 301, and the main gateway 301 selects appropriate channels of the sub-gateway 302 and the sub-gateway 303 according to the information reported by the sub-gateway 302 and the sub-gateway 303, and then correspondingly sends the selection result to the sub-gateway 302 and the sub-gateway 303, so that the sub-gateway 302 and the sub-gateway 303 can work under the condition of less interference according to the selection result. Optionally, the main gateway 301 may perform global channel tuning for the information reported by more sub-gateways, that is, comprehensively consider the communication quality of the sub-gateways, for example, set the working channels of the sub-gateways in adjacent positions to be non-adjacent, or perform traversal combination on each working channel of different sub-gateways, then select a combination with low overall interference according to the communication quality of each sub-gateway in different combinations, and send the finally determined combination to the sub-gateway. Optionally, the main gateway 301 may further determine, according to the information reported by the sub-gateway 302 and the sub-gateway 303, transmit power suitable for the sub-gateway 302 and the sub-gateway 303 and send the transmit power to the sub-gateway 302 and the sub-gateway 303 correspondingly, so as to avoid insufficient coverage of the home gateway caused by too high transmit power and too low transmit power or sub-gateway 302 and sub-gateway 303.
Fig. 5 is a signaling interaction diagram provided by an embodiment in which a sub-gateway 302 actively applies channel tuning to a main gateway 301. As shown in fig. 5, when the sub-gateway 302 detects that an illegal AP exists around, the sub-gateway 302 considers itself to be interfered by the illegal AP, and may not perform communication with good quality. The sub-gateway 302 that is interfered at this time may be converted into a terminal mode, scan the surrounding environment, and report the scanned information to the main gateway 301. The illegal APs are, for example: the service set identifier (service set identifier, SSID) carried by the interference signal detected by the sub-gateway 302 is not in the preset white list, and the received signal strength of the interference signal exceeds the preset received signal strength threshold, or the bit error rate of the sub-gateway 302 at this time exceeds the preset bit error rate threshold, so that the AP corresponding to the interference signal is the illegal AP.
The primary gateway 301 performs local tuning for the sub-gateway 302 according to the information reported by the actively reported sub-gateway 302, that is, performs channel selection for the actively reported sub-gateway 302, while the channels of other sub-gateways 302 are unchanged. Optionally, the primary gateway 301 may also determine an appropriate transmit power according to the information reported by the actively reported sub-gateway 302. Optionally, the primary gateway 301 may also modify the clear channel assessment (clear channel assessment, CCA) threshold of the actively reported sub-gateway 302 according to the information reported by the sub-gateway 302, so as to reduce the duration of the time slot allocated to the air interface by the sub-gateway 302 to reduce the interference.
A detailed description will be given here of how the primary gateway 301 selects a channel with little interference as an operation channel of the secondary gateway 302 according to the parameters reported by the secondary gateway 302 with reference to fig. 6.
Fig. 6 is a flowchart of an example of a method for selecting a channel according to an embodiment of the present application. In the embodiment of the present application, description is made with the execution body as a primary gateway, where the primary gateway may be the primary gateway 301 in fig. 3. As shown in fig. 6, the method includes:
s601, receiving the received signal strength and the packet number of M groups of channels from a first sub-gateway, wherein the M groups of channels are spread spectrum channel sets of M candidate channels of the first sub-gateway, and M is a positive integer greater than 1.
The first sub-gateway may be sub-gateway 302. When the main gateway detects that the time of periodical timing optimization comes, the main gateway triggers the selection flow of the channels of the sub-gateways in the whole home gateway. For example, the preset tuning period is 10 minutes, and every ten minutes, the main gateway sends down channel monitoring parameters to the sub-gateways to trigger channel selection, where the channel monitoring parameters may include the received signal strength (received signal strength indication, RSSI) and the number of packets (i.e. the number of messages received in a unit time for one channel) of different channels. The first sub-gateway sends the received signal strength and the number of received packets of the scanned plurality of channels to the main gateway based on the received channel monitoring parameters. When the first sub-gateway is interfered, the first sub-gateway can also actively report the received signal strength and the packet receiving number of the scanned multiple channels to the main gateway.
Alternatively, the received signal strength and the number of packets received by the M channels may be the received signal strength and the number of packets received by the M channels counted by the group and directly reported by the first sub-gateway, or may be obtained by the main gateway after reporting the received signal strengths and the number of packets received by the M channels to the main gateway, and performing up-down spreading by the main gateway according to the candidate channels to obtain a set of spread spectrum channels corresponding to each candidate channel, and counting according to the set of spread spectrum channels to obtain the received signal strength and the number of packets received by the M channels.
It should be noted that M is a positive integer greater than 1, that is, the primary gateway obtains the received signal strength and the number of packets of the multiple groups of channels. Wherein each of the M sets of channels includes at least one channel, each set of channels corresponds to one candidate channel, and at least one channel of each set of channels is an adjacent channel to the corresponding candidate channel. For example, when the candidate channel is channel 1, the corresponding set of spread spectrum channels includes channel 2 and channel 3; when the candidate channel is 6, the corresponding set of spread channels may then include channel 4, channel 5, channel 7, and channel 8. Optionally, two of the M sets of channels may further include overlapping channels, for example, when the candidate channel is channel 1, the corresponding set of channels includes channel 2, channel 3, and channel 4; when the candidate channel is 6, the corresponding set of channels includes channel 3, channel 4, channel 5, channel 7, channel 8 and channel 9; wherein channel 3 and channel 4 are overlapping channels of the two sets of channels. The number of channels in the spreading channel set corresponding to one candidate channel is not limited, and may be set according to requirements, for example, may be 2-4 channels up-spread based on the candidate channel, and 2-4 channels down-spread.
The number of candidate channels is a plurality, and the plurality of candidate channels may be non-adjacent channels, or a combination of channels with a far difference in frequency, such as channel 1, channel 6, and channel 11; or channel 2, channel 4 and channel 12; or a combination of channel 2 and channel 10, etc. In the embodiments of the present application, the channels are numbered from small to large or from large to small according to the frequency band size, but the number of the channels is not limited thereto.
After acquiring the received signal strengths and the number of packets of the M groups of channels, the primary gateway may perform S602 and S603 to determine initial interference values and corrected interference values of the M groups of channels.
S602, determining initial interference values of the M groups of channels according to the received signal strength of the M groups of channels, wherein the M groups of channels comprise a first channel, and the initial interference values of the first channel are positively or negatively related to the received signal strength of the first channel.
The first channel is any one channel in M groups of channels, and the primary gateway determines an initial interference value corresponding to the first channel according to the intensity of the received signal of the first channel and the corresponding relation between the preset received signal intensity and the initial interference value. The initial interference value of the first channel is in positive correlation or negative correlation with the received signal strength of the first channel, which may be that the greater the received signal strength of the first channel is, the greater the initial interference value is; the initial interference value may be smaller as the received signal strength of the first channel is larger.
Taking the positive correlation of the received signal strength of the initial interference value of the first channel as an example, when the received signal strength of the first channel is smaller than-90 dbm, the initial interference value of the first channel is 1, namely, the first channel is recorded as 1 score; when the received signal strength of the first channel is more than or equal to-90 dbm and less than-80 dbm, the initial interference value of the first channel is 2, namely, the first channel is recorded as 2 minutes; when the received signal strength of the first channel is more than or equal to-80 dbm and less than-70 dbm, the initial interference value of the first channel is 3, namely, the first channel is recorded as 3 minutes; when the received signal strength of the first channel is more than or equal to-70 dbm and less than-60 dbm, the initial interference value of the first channel is 4, namely 4 minutes; when the received signal strength of the first channel is greater than or equal to-60 dbm, the initial interference value of the first channel is 5, namely, 5 minutes. Whereby an initial interference value for each first channel of the M groups of channels can be obtained.
Taking the negative correlation of the received signal strength of the initial interference value of the first channel as an example, when the received signal strength of the first channel is smaller than-90 dbm, the initial interference value of the first channel is 5, namely, the initial interference value is recorded as 5 minutes; when the received signal strength of the first channel is more than or equal to-90 dbm and less than-80 dbm, the initial interference value of the first channel is 4, namely 4 minutes; when the received signal strength of the first channel is more than or equal to-80 dbm and less than-70 dbm, the initial interference value of the first channel is 3, namely, the first channel is recorded as 3 minutes; when the received signal strength of the first channel is more than or equal to-70 dbm and less than-60 dbm, the initial interference value of the first channel is 2, namely, the first channel is recorded as 2 minutes; when the received signal strength of the first channel is greater than or equal to-60 dbm, the initial interference value of the first channel is 1, namely, 1 score. Whereby an initial interference value for each first channel of the M groups of channels can be obtained.
According to the above embodiment of determining the initial interference value of the first channel, the primary gateway may determine the initial interference values of the M groups of channels, i.e., the initial interference values of the respective channels of the M groups of channels. The primary gateway may then determine the modified interference values for the M groups of channels, i.e., the modified interference values for each of the M groups of channels.
S603, determining a corrected interference value of the M groups of channels according to the received packet number of the M groups of channels and the initial interference value of the M groups of channels, wherein when the initial interference value of the first channel is positively correlated with the received signal strength of the first channel, the corrected interference value of the first channel is positively correlated with the received packet number of the first channel; when the initial interference value of the first channel is inversely related to the received signal strength of the first channel, the corrected interference value of the first channel is inversely related to the number of packets received by the first channel.
When the first sub-gateway receives the data packets on the adjacent channels of the working channel, and when the adjacent channels interfere with the working channel, the signals of the adjacent channels counteract the effective components of the signals of part of the working channel, so that the communication of the working channel is interfered, and therefore the number of received packets in unit time on the adjacent channels can be used as a measuring factor of the interfered degree of the working channel.
The method for calculating the corrected interference values of the M channels will be described below by taking the method for calculating the corrected interference values of the first channel as an example.
And the main gateway determines the packet receiving interference value corresponding to the first channel according to the number of the packet receiving numbers in unit time on the first channel and the corresponding relation between the preset packet receiving numbers and the packet receiving interference values, and then superimposes the packet receiving interference value of the first channel and the initial interference value to obtain the corrected interference value of the first channel. When the initial interference value of the first channel is positively correlated with the received signal strength of the first channel, the corrected interference value of the first channel is positively correlated with the packet receiving number of the first channel, namely, the stronger the characterization interference is when the initial interference value is larger, the larger the corrected interference value is when the packet receiving number is larger; when the initial interference value of the first channel is inversely related to the received signal strength of the first channel, the corrected interference value of the first channel is inversely related to the packet receiving number of the first channel, that is, the smaller the initial interference value is, the stronger the characterization interference is, and the smaller the corrected interference value is when the packet receiving number is larger.
The above-mentioned packet-receiving interference value represents the influence degree of the number of packets received on the signal quality score, taking the positive correlation of the corrected interference value of channel 2 and the number of packets received as an example, for example, the number of packets received is below 20, the packet-receiving interference value can be 1, namely, it is recorded as 1 score; when the packet receiving number is more than or equal to 20 and less than 30, the packet receiving interference value is 2, namely, the packet receiving interference value is recorded as 2 minutes; when the packet receiving number is more than or equal to 30 and less than 40, the packet receiving interference value is 3, namely, the packet receiving interference value is recorded as 3 minutes; when the packet receiving number is more than or equal to 40 and less than 50, the packet receiving interference value is 4, namely, the packet receiving interference value is recorded as 4 minutes; when the packet receiving number is greater than or equal to 50, the packet receiving interference value is 5, namely 5 minutes. The primary gateway may add the received packet interference value for channel 2 to the initial interference value to obtain a modified interference value for channel 2. For example, when the detected received signal strength of the channel 2 is-75 dbm and the number of packets received in 20 ms is 35, the initial interference value of the channel 2 is 3, and the packet received interference value is 3, the calculation process of the corrected interference value of the channel 2 is as follows: 3+3=6, which can be noted as 6 minutes.
Taking the negative correlation between the corrected interference value of the channel 2 and the packet receiving number as an example, for example, the packet receiving number is below 20, the packet receiving interference value can be 5, namely, the value is recorded as 5 minutes; when the packet receiving number is more than or equal to 20 and less than 30, the packet receiving interference value is 4, namely, the packet receiving interference value is recorded as 4 minutes; when the packet receiving number is more than or equal to 30 and less than 40, the packet receiving interference value is 3, namely, the packet receiving interference value is recorded as 3 minutes; when the packet receiving number is more than or equal to 40 and less than 50, the packet receiving interference value is 2, namely, the packet receiving interference value is recorded as 2 minutes; when the number of the received packets is greater than or equal to 50, the received packet interference value is 1, namely, 1 minute is recorded. The primary gateway may add the received packet interference value for channel 2 to the initial interference value to obtain a modified interference value for channel 2. For example, when the detected received signal strength of the channel 2 is-65 dbm and the number of packets received in 20 ms is 45, the initial interference value of the channel 2 is 2, and the packet received interference value is 2, the calculation process of the corrected interference value of the channel 2 is as follows: 2+2=4, which can be written as 4 minutes.
It should be noted that, in the above embodiment, the initial interference value and the modified interference value are both measures of the interference degree of the spread spectrum channel (such as the first channel) to the working channel.
After determining the initial interference value and the corrected interference value of the M groups of channels, the primary gateway may determine the interference degree of each group of channels in the M groups of channels on the candidate channels, and determine a channel for the terminal device to communicate with the first sub-gateway from the M candidate channels through the following steps.
S604, determining a first target channel from the M candidate channels according to the corrected interference values of the M groups of channels, wherein the corrected interference values of the M groups of channels are used for indicating the interfered degrees of the M candidate channels, the first target channel is the one with the lowest interfered degree in the M groups of channels, and the first target channel is used for the terminal equipment to communicate with the first sub-gateway.
The corrected interference value can represent the interference degree of the spread spectrum channel to the outside, and when the corrected interference value and the number of received packets are positively correlated, the larger the corrected interference value is, the larger the interference of the channel to the outside is; when the corrected interference value and the number of received packets are inversely related, the larger the corrected interference value is, the smaller the interference generated by the channel to the outside is. Therefore, the main gateway can determine the channel with the smallest external interference from the M candidate channels according to the corrected interference values of the M groups of channels, and takes the candidate channel corresponding to the spread spectrum channel set where the channel is located as the first target channel.
For example, when the corrected interference value of channel 2 is the smallest and the corrected interference value of channel 3 is the smallest and the corrected interference values of channel 2 and channel 3 are both greater than 4, respectively, and channel 2 and channel 3 form a set of spread channels, and the candidate channel corresponding to the set of spread channels is channel 1, the primary gateway may determine channel 1 as the first target channel. The primary gateway issues the first target channel to the first sub-gateway, and the first sub-gateway can communicate with the terminal device by using the channel 1 as a working channel.
In the embodiment shown in fig. 6, the primary gateway determines initial interference values representing the interference degrees of signals of one channel to other channels according to the received signal strengths of the M groups of channels, and corrects the initial interference values by the number of received packets to obtain corrected interference values representing the interference degrees more accurately. The method carries out quantitative consideration on the interference degree of each channel by combining the parameters of the received signal strength and the packet receiving number, so that the channel with the minimum interference is determined as the working channel of the sub-gateway according to the quantitative result, the sub-gateway can provide a wireless network for the accessed terminal equipment in the state of the minimum interference, and the communication quality of the accessed terminal equipment in the home gateway is improved. Meanwhile, the main gateway can automatically select a channel with the smallest interference as a working channel of the sub gateway according to parameters of the received signal strength and the number of received packets, so that the inefficiency and inconvenience of manually switching the working channel of the gateway are avoided, the sub gateway can be timely and conveniently switched to the channel with the small interference for communication, the communication quality of terminal equipment accessed in the home gateway is improved, and further the user experience is improved.
Optionally, one possible implementation manner of the step S604 may determine M weighted interference values for the primary gateway according to the corrected interference values of the M groups of channels, that is, the primary gateway performs weighted summation on the corrected interference values of each group of channels according to a preset weight coefficient, to obtain weighted interference values corresponding to the group of channels, where the weighted interference values can represent the interfered degrees of candidate channels corresponding to the group of channels.
For example, when the set of spreading channels corresponding to the candidate channel 6 includes { channel 4, channel 5, channel 7, channel 8}, the modified interference values of each channel in the set of spreading channels are {3, 4, 2, 1}, and the set of spreading channels is the array of the corresponding weight coefficients {0.2, 0.3, 0.2} (the sum of the coefficients in each set of weight coefficients is 1), the calculation process of the weighted interference values of the candidate channel 6 is: 3×0.2+4×0.3+2×0.3+1×0.2=2.6, i.e., the weighted interference value corresponding to the candidate channel 6 is 2.6. In general, the closer to the candidate channel, the larger the weight coefficient corresponding to the channel, and the further from the candidate channel, the smaller the weight coefficient corresponding to the channel. From this, it can be seen that the M weighted interference values are the result obtained by weighted summation of each of the modified interference values of the M groups of channels, and the M weighted interference values can represent the interfered degrees of the corresponding M candidate channels. Then, the main gateway selects a channel with the least interference degree from M candidate channels as a working channel of the first sub-gateway according to the weighted interference value, namely, the candidate channel with the least interference is used as a first target channel.
According to the method, the main gateway performs weighted summation on the corrected interference values of each group of channels according to the weight coefficients corresponding to the corrected interference values of each group of channels, and the difference of the interference degrees of different channels on the candidate channels can be comprehensively considered through the proportion of the weight coefficients, so that the obtained weighted interference values can represent the interference degrees of the candidate channels more reasonably and accurately, and the channel selection based on the weighted interference values is also more reasonable and accurate.
When the plurality of sub-gateways report the scanned information, the main gateway can select the channel for each sub-gateway according to the channel selecting method. However, if there are two sub-gateways that select the same channel, it is possible to interfere with each other if both sub-gateways communicate using the same channel.
For example, the least interference among the candidate channels of the first sub-gateway is channel 1, and the least interference among the candidate channels of the second sub-gateway (e.g., sub-gateway 303 in fig. 3) is channel 1, where if both sub-gateways use channel 1 for communication, it is possible to interfere with each other. At this time, the primary gateway determines, from the M candidate channels, a third target channel having an interference level inferior to that of the first target channel, as a working channel of the first sub-gateway, according to the corrected interference values of the M groups of channels. For example, the modified interference values of the 3 candidate channels { channel 1, channel 6, and channel 11} are {2, 3, and 5}, and taking an example that the greater the modified interference value is, the stronger the interference degree is, and when the channel 1 with the smallest interference is the same as the second target channel (channel 1) of the first target channel and the second sub-gateway, the main gateway gives up selecting the channel 1 as the working channel of the first sub-gateway, and selecting the channel 6 with the next lower interference degree as the working channel of the first sub-gateway, that is, selecting the channel 6 with the interference degree next lower than the channel 1 as the third target channel, so that the first sub-gateway adopts the channel 6 to communicate with the terminal device.
It should be noted that, the candidate channels of the second sub-gateway may be 1 or more (i.e., N, where N is a positive integer). Optionally, when the candidate channels of the second sub-gateway are multiple, the main gateway may also select a fourth target channel with a second low interference level from the candidate channels of the second sub-gateway as a working channel for communication between the second sub-gateway and the terminal device; optionally, when the first target channel and the second target channel are the same, the main gateway may further compare weighted interference values of the third target channel and the fourth target channel, and use a channel with a low interference degree in the third target channel and the fourth target channel as a working channel of the corresponding sub-gateway. For example, in the candidate channels of the first sub-gateway, the weighted interference value of the channel 1 is 2, and the corresponding weighted interference value of the channel 6 is 3; and the modified interference value of channel 1 is 2 and the modified interference value of channel 6 is 2.6 in the candidate channels of the second sub-gateway. The primary gateway determines that the second sub-gateway has channel 6 as the working channel and the first sub-gateway can use channel 1 as the working channel.
In the method, when the working channels of the two sub-gateways collide, the main gateway actively adjusts the working channel of one of the sub-gateways to the channel with the low interference degree, so that the mutual interference of the working channels of the two sub-gateways due to the same frequency band can be avoided, the channel optimization is realized at the system level, and the communication quality of the home gateway is improved.
The above embodiment describes how the primary gateway selects the working channel of the sub-gateway, and how the primary gateway adjusts the transmit power of the sub-gateway will be described below.
When the sub-gateways communicate with the terminal device, the sub-gateways are switched to the mode of the AP, and each sub-gateway can work as an AP. When the transmitting power of the AP is larger, the coverage area of the AP is larger, but the interference to other APs is also larger; and when the transmitting power of the AP is small, the coverage area of the AP is small, but the interference to other APs becomes small. In general, in home gateways, the purpose of adjusting the transmit power of an AP is to expand or reduce the coverage area by adjusting the transmit power of the AP in order to achieve a balance of maximum coverage and minimum interference to the outside. We can define strong coverage areas, weak coverage areas, and failure areas for APs according to traffic needs.
As shown in fig. 7, for the AP1, a received signal strength of 2.4G greater than-70 dbm is defined as a strong coverage area, a received signal strength between-100 dbm and-70 dbm is defined as a weak coverage area, and a received signal strength less than-100 dbm is defined as a failure area. In general we want a strong coverage area to cover the service points of the terminal devices mainly served by the AP1 (access point 1) to ensure the communication quality; if other APs (other access points) are in the failure area of the AP1, the area between the two APs may not be covered due to the long distance of the APs, and there is a problem of insufficient coverage, so that it is necessary to let the other APs be in the weak coverage area of the AP1 to ensure a certain coverage overlap, and to avoid the neighboring APs from entering the strong coverage area as much as possible, which causes channel allocation collision.
When the first sub-gateway monitors that strong signals transmitted by other sub-gateways exist around, namely, when the received signal strength is greater than or equal to a received signal strength threshold value in M groups of channels reported to the main gateway by the first sub-gateway, the main gateway considers that the first sub-gateway and the other sub-gateways are relatively close at the moment, and the first sub-gateway and the other sub-gateways have strong coverage areas overlapped. At this time, even if the first sub-gateway reduces the transmission power, the coverage area of the whole home gateway is not affected, and simultaneously, the reduction of the transmission power can reduce the interference of the first sub-gateway to other sub-gateways, so that the main gateway can send the first power control parameter to the first sub-gateway to reduce the current transmission power of the first sub-gateway. The method can reduce the interference of the first sub-gateway to other sub-gateways and improve the communication quality of the home gateway under the condition that the coverage range of the home gateway is not affected.
In an alternative embodiment, when the bit error rate of the first sub-gateway is greater than or equal to the first bit error rate threshold, the communication quality of the first sub-gateway is poor, and the power needs to be increased to enhance the signal, the main gateway may send a second power control parameter for increasing the transmission power to the first sub-gateway, for example, the bit error rate of the first sub-gateway is 15%, exceeds the first bit error rate threshold by 10%, and the main gateway issues a second power control parameter for increasing the transmission power by 2db or by 20%. For example, the original transmission power of the first sub-gateway is 15dbm, and then the transmission power is 17dbm instead.
When the bit error rate of the first sub-gateway is smaller than the second bit error rate threshold (the second bit error rate threshold is smaller than the first bit error rate threshold), the communication quality of the first sub-gateway is good, and the small increase of the bit error rate of the first sub-gateway does not affect the user experience, so that the transmitting power of the first sub-gateway can be properly reduced within an allowable range to save power consumption, and meanwhile, the interference of the first sub-gateway to other sub-gateways is reduced. The primary gateway then transmits a third power control parameter to the first sub-gateway that reduces the transmit power to reduce the transmit power of the first sub-gateway. For example, the error rate of the first sub-gateway is 0.1%, which is lower than the second error rate by 1%, and the main gateway transmits a third power control parameter for reducing the transmission power by 2db or increasing the transmission power by 10%. For example, the original transmission power of the first sub-gateway is 25dbm, and then the transmission power is 23dbm instead.
Optionally, the primary gateway may further adjust the transmission power of the sub-gateway according to the current data traffic, for example, if the bit error rate of the first sub-gateway is greater than or equal to the first bit error rate threshold, and the data traffic of the first sub-gateway is also greater, the primary gateway sends a second power control parameter for increasing the transmission power to the first sub-gateway; and if the bit error rate of the first sub-gateway is smaller than or equal to the second bit error rate threshold value and the data flow of the first sub-gateway is small, the main gateway sends a third power control parameter for reducing the transmitting power to the first sub-gateway.
Optionally, when the first sub-gateway transmits at the first transmission power, the bit error rate is equal to the first bit error rate threshold, and when the first sub-gateway transmits at the second transmission power, the bit error rate is equal to the second bit error rate threshold. And establishing a rectangular coordinate system by taking the bit error rate as a horizontal axis and the transmitting power as a vertical axis, and taking the slope of a connecting line between two points (a first bit error rate threshold value and a first transmitting power) and (a second bit error rate threshold value and a second transmitting power) as a preset slope. When the transmitting power of the first sub-gateway is located between the first transmitting power and the second transmitting power, the error rate under the current transmitting power can be obtained according to the preset slope, so that the error rate can keep linearity with the transmitting power.
In this embodiment, the main gateway reasonably adjusts the transmitting power of the sub-gateway according to the bit error rate of the sub-gateway, so as to balance the communication quality and the external interference degree, and comprehensively improve the communication quality of the home gateway.
When the number of sub-gateways in the local area network where the first sub-gateway is located is increased, namely, when newly added sub-gateways exist, the coverage capacity of the whole home gateway is increased, the pre-existing sub-gateways can properly reduce the transmitting power, and the mutual interference among the sub-gateways can be reduced under the condition that the coverage area is not influenced. Therefore, the main gateway sends the fourth power control parameter for reducing the transmitting power of the first sub-gateway to the first sub-gateway, so that the interference of the first sub-gateway to other sub-gateways is reduced under the condition of ensuring the coverage area, and the communication quality of the home gateway is improved.
When the number of sub-gateways in the local area network where the first sub-gateway is located is reduced, that is, when the sub-gateway exits the local area network, the coverage capability of the whole home gateway is reduced, so that the existing sub-gateway can properly increase the transmission power to ensure that the coverage is not affected. Therefore, the main gateway sends a fifth power control parameter for improving the transmitting power of the first sub-gateway to the first sub-gateway so as to ensure that the coverage area of the home gateway is not affected even if the sub-gateway fails or is closed.
In an alternative embodiment, the first sub-gateway further detects the transmission power of the terminal device connected thereto and reports the transmission power of the terminal device to the main gateway. If the transmission power of the terminal equipment exceeds a preset first power threshold, for example, more than 23dbm, the main gateway considers that the first sub-gateway is close to the connected terminal equipment, and can ensure good communication quality without transmitting with high power, so that a power control parameter for reducing the transmission power is issued to the first sub-gateway to reduce the transmission power of the first sub-gateway. If the transmission power of the terminal device is lower than a preset second power threshold, for example, lower than 12dbm, the main gateway considers that the first sub-gateway and the connected terminal device are far away, and the terminal device cannot be located in a strong coverage area of the first sub-gateway, so that in order to ensure good communication quality, the main gateway issues a power control parameter for improving the transmission power to the first sub-gateway, and improves the transmission power of the first sub-gateway to ensure communication quality.
In an optional embodiment, when the bit error rate of the first sub-gateway is higher than the first bit error rate threshold, which indicates that the communication quality of the first sub-gateway is poor at this time, the main gateway may further send a CCA control parameter for reducing the CCA threshold of the first sub-gateway to the first sub-gateway, so as to reduce the time slice allocated to the air interface by the first sub-gateway, thereby reducing the acquisition duration of the interference signal, so that the first sub-gateway can receive less interference signals, and improve the communication quality.
Examples of the method of selecting a channel provided herein are described above in detail. It is to be understood that the corresponding means, in order to carry out the functions described above, comprise corresponding hardware structures and/or software modules for carrying out the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware 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.
The present application may divide the function modules of the channel selecting apparatus according to the above method example, for example, each function may be divided into each function module, or two or more functions may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that the division of the modules in this application is illustrative, and is merely a logic function division, and other division manners may be implemented in practice.
Fig. 8 shows a schematic structural diagram of a device for selecting channels provided in the present application. The apparatus 800 includes:
a receiving module 801, configured to receive, from a first sub-gateway, a received signal strength and a packet number of M groups of channels, where the M groups of channels are a set of spread spectrum channels of M candidate channels of the first sub-gateway, and M is a positive integer greater than 1;
a determining module 802, configured to determine an initial interference value of the M group of channels according to the received signal strength of the M group of channels, determine a modified interference value of the M group of channels according to the number of packets received by the M group of channels and the initial interference value of the M group of channels, and determine a first target channel from the M candidate channels according to the modified interference value of the M group of channels;
The M groups of channels comprise a first channel, the initial interference value of the first channel is positively or negatively correlated with the received signal strength of the first channel, and when the initial interference value of the first channel is positively correlated with the received signal strength of the first channel, the corrected interference value of the first channel is positively correlated with the number of packets received by the first channel; when the initial interference value of the first channel is inversely related to the received signal strength of the first channel, the corrected interference value of the first channel is inversely related to the number of packets received by the first channel, the corrected interference values of the M groups of channels are used for indicating the interference degrees of the M candidate channels, the first target channel is the one with the lowest interference degree in the M groups of channels, and the first target channel is used for the terminal equipment to communicate with the first sub-gateway.
Optionally, the determining module 802 is specifically configured to determine M weighted interference values according to the modified interference values of the M groups of channels, where the M weighted interference values are a result obtained by performing weighted summation on each group of modified interference values in the modified interference values of the M groups of channels, and the M weighted interference values are used to indicate interference degrees of the M candidate channels; and determining the first target channel from the M candidate channels according to the M weighted interference values.
Optionally, the determining module 802 is further configured to determine, when a second target channel is the same as the first target channel, a third target channel from the M candidate channels according to the modified interference values of the M groups of channels, where the second target channel is one of N candidate channels of a second sub-gateway with the lowest interference degree, where N is a positive integer, and the third target channel is a channel with the second lowest interference degree of the M candidate channels, and where the third target channel is used by a terminal device to communicate with the first sub-gateway.
Optionally, the determining module 802 is further configured to send a first power control parameter to the first sub-gateway when the received signal strength of any one of the M groups of channels is greater than or equal to a received signal strength threshold, where the first power control parameter is used to reduce the current transmit power of the first sub-gateway.
Optionally, the determining module 802 is further configured to send a second power control parameter to the first sub-gateway when the bit error rate of the first sub-gateway is greater than or equal to a first bit error rate threshold, where the first power control parameter is used to increase the current transmission power of the first sub-gateway; and when the bit error rate of the first sub-gateway is smaller than a second bit error rate threshold, sending a third power control parameter to the first sub-gateway, wherein the third power control parameter is used for reducing the current transmitting power of the first sub-gateway, and the first bit error rate threshold is larger than the second bit error rate threshold.
Optionally, the determining module 802 is further configured to send a fourth power control parameter to the first sub-gateway when the number of sub-gateways in the local area network where the first sub-gateway is located increases, where the fourth power control parameter is used to reduce the current transmission power of the first sub-gateway; or when the number of the sub-gateways in the local area network where the first sub-gateway is located is reduced, sending a fifth power control parameter to the first sub-gateway, where the fifth power control parameter is used for increasing the current transmitting power of the first sub-gateway.
Optionally, the determining module 802 is further configured to send a clear channel assessment CCA control parameter to the first sub-gateway when the bit error rate of the first sub-gateway is higher than a preset first bit error rate threshold, where the CCA control parameter is used to reduce the CCA threshold of the first sub-gateway.
The embodiment of the application also provides electronic equipment, which comprises the processor. The electronic device provided in this embodiment may be the terminal device 100 shown in fig. 1, for performing the above-described method for selecting a channel. In case of an integrated unit, the terminal device may comprise a processing module storage module and a communication module. The processing module may be configured to control and manage actions of the terminal device, for example, may be configured to support the terminal device to execute steps executed by the display unit, the detection unit, and the processing unit. The memory module may be used to support the terminal device to execute stored program codes, data, etc. And the communication module can be used for supporting the communication between the terminal equipment and other equipment.
Wherein the processing module may be a processor or a controller. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital signal processing (digital signal processing, DSP) and microprocessor combinations, and the like. The memory module may be a memory. The communication module can be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip and other equipment which interact with other terminal equipment.
In an embodiment, when the processing module is a processor and the storage module is a memory, the terminal device according to this embodiment may be a device having the structure shown in fig. 1.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, causes the processor to perform the method for selecting a channel according to any of the embodiments described above.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the above-described related steps to implement the method of selecting a channel in the above-described embodiments.
The electronic device, the computer readable storage medium, the computer program product or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, 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 units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the 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 by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of selecting a channel, comprising:
receiving the received signal strength and the packet number of M groups of channels from a first sub-gateway, wherein the M groups of channels are spread spectrum channel sets of M candidate channels of the first sub-gateway, and M is a positive integer greater than 1; wherein each of the M groups of channels comprises at least one channel, each group of channels corresponds to one candidate channel, and at least one channel in each group of channels is an adjacent channel of the corresponding candidate channel;
determining initial interference values of the M groups of channels according to the received signal strengths of the M groups of channels, wherein the M groups of channels comprise a first channel, and the initial interference values of the first channel are positively or negatively related to the received signal strengths of the first channel;
determining a corrected interference value of the M groups of channels according to the received packet number of the M groups of channels and the initial interference value of the M groups of channels, wherein when the initial interference value of the first channel is positively correlated with the received signal strength of the first channel, the corrected interference value of the first channel is positively correlated with the received packet number of the first channel; when the initial interference value of the first channel is inversely related to the received signal strength of the first channel, the corrected interference value of the first channel is inversely related to the number of packets received by the first channel;
And determining a first target channel from the M candidate channels according to the corrected interference values of the M groups of channels, wherein the corrected interference values of the M groups of channels are used for indicating the interference degrees of the M candidate channels, the first target channel is the one with the lowest interference degree in the M groups of channels, and the first target channel is used for the terminal equipment to communicate with the first sub-gateway.
2. The method of claim 1, wherein said determining a first target channel from said M candidate channels based on the modified interference values for said M groups of channels comprises:
determining M weighted interference values according to the corrected interference values of the M groups of channels, wherein the M weighted interference values are obtained by carrying out weighted summation on each group of corrected interference values in the corrected interference values of the M groups of channels, and the M weighted interference values are used for indicating the interfered degrees of the M candidate channels;
and determining the first target channel from the M candidate channels according to the M weighted interference values.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and when the second target channel is the same as the first target channel, determining a third target channel from the M candidate channels according to the corrected interference values of the M groups of channels, wherein the second target channel is the one with the lowest interference degree in N candidate channels of a second sub-gateway, N is a positive integer, the third target channel is the channel with the next lowest interference degree in the M candidate channels, and the third target channel is used for the terminal equipment to communicate with the first sub-gateway.
4. A method according to any one of claims 1 to 3, further comprising:
and when the received signal strength of any one channel in the M groups of channels is greater than or equal to a received signal strength threshold, sending a first power control parameter to the first sub-gateway, wherein the first power control parameter is used for reducing the current transmitting power of the first sub-gateway.
5. The method according to any one of claims 1 to 4, further comprising:
when the bit error rate of the first sub-gateway is greater than or equal to a first bit error rate threshold, sending a second power control parameter to the first sub-gateway, wherein the second power control parameter is used for improving the current transmitting power of the first sub-gateway;
and when the bit error rate of the first sub-gateway is smaller than a second bit error rate threshold, sending a third power control parameter to the first sub-gateway, wherein the third power control parameter is used for reducing the current transmitting power of the first sub-gateway, and the first bit error rate threshold is larger than the second bit error rate threshold.
6. The method according to any one of claims 1 to 5, further comprising:
when the number of the sub-gateways in the local area network where the first sub-gateway is located is increased, a fourth power control parameter is sent to the first sub-gateway, and the fourth power control parameter is used for reducing the current transmitting power of the first sub-gateway; or alternatively, the process may be performed,
And when the number of the sub-gateways in the local area network where the first sub-gateway is located is reduced, a fifth power control parameter is sent to the first sub-gateway, and the fifth power control parameter is used for improving the current transmitting power of the first sub-gateway.
7. The method according to any one of claim 1 to 6, wherein,
and when the error rate of the first sub-gateway is higher than a preset first error rate threshold, sending a Clear Channel Assessment (CCA) control parameter to the first sub-gateway, wherein the CCA control parameter is used for reducing the CCA threshold of the first sub-gateway.
8. An apparatus for selecting a channel, comprising:
the receiving module is used for receiving the received signal strength and the packet receiving number of M groups of channels from the first sub-gateway, wherein the M groups of channels are spread spectrum channel sets of M candidate channels of the first sub-gateway, and M is a positive integer greater than 1; wherein each of the M groups of channels comprises at least one channel, each group of channels corresponds to one candidate channel, and at least one channel in each group of channels is an adjacent channel of the corresponding candidate channel;
the determining module is used for determining initial interference values of the M groups of channels according to the received signal strength of the M groups of channels, determining corrected interference values of the M groups of channels according to the received packet number of the M groups of channels and the initial interference values of the M groups of channels, and determining a first target channel from the M candidate channels according to the corrected interference values of the M groups of channels;
The M groups of channels comprise a first channel, the initial interference value of the first channel is positively or negatively correlated with the received signal strength of the first channel, and when the initial interference value of the first channel is positively correlated with the received signal strength of the first channel, the corrected interference value of the first channel is positively correlated with the number of packets received by the first channel; when the initial interference value of the first channel is inversely related to the received signal strength of the first channel, the corrected interference value of the first channel is inversely related to the number of packets received by the first channel, the corrected interference values of the M groups of channels are used for indicating the interference degrees of the M candidate channels, the first target channel is the one with the lowest interference degree in the M groups of channels, and the first target channel is used for the terminal equipment to communicate with the first sub-gateway.
9. An electronic device, comprising: a processor, a memory, and an interface;
the processor, memory and interface cooperate to cause the electronic device to perform the method of any of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, causes the processor to perform the method of any of claims 1 to 7.
CN202110179079.9A 2021-02-09 2021-02-09 Method, apparatus, electronic device and readable storage medium for selecting channel Active CN114915359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110179079.9A CN114915359B (en) 2021-02-09 2021-02-09 Method, apparatus, electronic device and readable storage medium for selecting channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110179079.9A CN114915359B (en) 2021-02-09 2021-02-09 Method, apparatus, electronic device and readable storage medium for selecting channel

Publications (2)

Publication Number Publication Date
CN114915359A CN114915359A (en) 2022-08-16
CN114915359B true CN114915359B (en) 2023-07-18

Family

ID=82761598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110179079.9A Active CN114915359B (en) 2021-02-09 2021-02-09 Method, apparatus, electronic device and readable storage medium for selecting channel

Country Status (1)

Country Link
CN (1) CN114915359B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024044896A1 (en) * 2022-08-29 2024-03-07 Nokia Shanghai Bell Co., Ltd. Interference weighting based subband selection procedure

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491669A (en) * 2016-02-02 2016-04-13 深圳市蜂联科技有限公司 Method and apparatus for automatic evaluation of interference degree of wireless channels
CN108200655A (en) * 2018-01-05 2018-06-22 重庆邮电大学 channel selecting method and device
CN108712778A (en) * 2018-04-28 2018-10-26 Oppo广东移动通信有限公司 Channel selecting method and Related product
CN109362129A (en) * 2018-12-12 2019-02-19 深圳创维数字技术有限公司 Channel determination methods, device, equipment and storage medium
WO2020199066A1 (en) * 2019-03-30 2020-10-08 华为技术有限公司 Power control method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491669A (en) * 2016-02-02 2016-04-13 深圳市蜂联科技有限公司 Method and apparatus for automatic evaluation of interference degree of wireless channels
CN108200655A (en) * 2018-01-05 2018-06-22 重庆邮电大学 channel selecting method and device
CN108712778A (en) * 2018-04-28 2018-10-26 Oppo广东移动通信有限公司 Channel selecting method and Related product
CN109362129A (en) * 2018-12-12 2019-02-19 深圳创维数字技术有限公司 Channel determination methods, device, equipment and storage medium
WO2020199066A1 (en) * 2019-03-30 2020-10-08 华为技术有限公司 Power control method and related device

Also Published As

Publication number Publication date
CN114915359A (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN111757477B (en) Method for reporting capability and user equipment
CN110364151B (en) Voice awakening method and electronic equipment
CN111132234B (en) Data transmission method and corresponding terminal
CN113163435B (en) Method for determining back-off power and method for adjusting transmission power
WO2021043219A1 (en) Bluetooth reconnection method and related apparatus
CN114422340B (en) Log reporting method, electronic equipment and storage medium
CN112806092B (en) Microphone MIC switching method and device
CN114125789B (en) Communication method, terminal device and storage medium
CN117337588A (en) Channel switching method, electronic device and storage medium
CN111757451B (en) Method for adjusting Bluetooth output power and terminal equipment
CN113490291B (en) Data downloading method and device and terminal equipment
CN114449099B (en) Method for adjusting equipment azimuth, terminal equipment and readable storage medium
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
CN114915359B (en) Method, apparatus, electronic device and readable storage medium for selecting channel
CN115065997B (en) Cell changing method and terminal equipment
CN114710812B (en) Communication method and communication device
EP4114094A1 (en) Transmission power control method, terminal, chip system and system
CN112099741B (en) Display screen position identification method, electronic device and computer readable storage medium
CN113572586B (en) Method, user equipment and system for sending sounding reference signal
CN114980238B (en) Wi-Fi access method and related equipment
CN115550892B (en) Method and device for synchronizing system information
CN116708317B (en) Data packet MTU adjustment method and device and terminal equipment
CN115580541B (en) Information synchronization method and electronic equipment
CN115734323B (en) Power consumption optimization method and device
CN115134402B (en) Equipment connection method and electronic equipment

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