CN110944359B - Control method and device of channel bandwidth, storage medium and station - Google Patents

Control method and device of channel bandwidth, storage medium and station Download PDF

Info

Publication number
CN110944359B
CN110944359B CN201910989818.3A CN201910989818A CN110944359B CN 110944359 B CN110944359 B CN 110944359B CN 201910989818 A CN201910989818 A CN 201910989818A CN 110944359 B CN110944359 B CN 110944359B
Authority
CN
China
Prior art keywords
channel
channel bandwidth
access point
station
access points
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
CN201910989818.3A
Other languages
Chinese (zh)
Other versions
CN110944359A (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201910989818.3A priority Critical patent/CN110944359B/en
Publication of CN110944359A publication Critical patent/CN110944359A/en
Application granted granted Critical
Publication of CN110944359B publication Critical patent/CN110944359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/20Negotiating bandwidth

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a control method and device of channel bandwidth, a storage medium and a station, belonging to the field of wireless communication. The method comprises the following steps: scanning the number of access points; the station supports a plurality of channel bandwidths for data transmission; if the number of the detected access points is smaller than the preset number; judging whether the bandwidth currently used by the station is the maximum bandwidth, if not, using the maximum bandwidth to transmit data. The application adaptively selects different channel bandwidths to transmit data according to the current channel interference condition, avoids using fixed bandwidths to transmit data in the related technology, and can improve the throughput rate of data transmission.

Description

Control method and device of channel bandwidth, storage medium and station
Technical Field
The present application relates to the field of wireless communications, and in particular, to a method and apparatus for controlling a channel bandwidth, a storage medium, and a station.
Background
In the 802.11n protocol single antenna mode, if the channel bandwidth of the wireless fidelity (wireless fidelity, wiFi) is 20M, the theoretical maximum throughput is 72.2 Mbit/s, and if the channel bandwidth of the WiFi is 40M, the theoretical maximum throughput is 150 Mbit/s.
However, the inventor found that when the current handset uses WiFi for data communication, the channel bandwidth of the handset defaults to 20M because the channel bandwidth of 40M may be more susceptible to interference, and the actual throughput may be less than the throughput at the channel bandwidth of 20M.
Disclosure of Invention
The control method, the device, the storage medium and the station for the channel bandwidth provided by the embodiment of the application can solve the problem of low data transmission throughput rate caused by the fact that the fixed channel bandwidth is used in the related technology. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for controlling a channel bandwidth, where the method includes:
scanning the access point; wherein a station supports multiple channel bandwidths;
determining a number of scanned at least one access point;
and when the vector is smaller than or equal to the preset number, using the maximum channel bandwidth in the plurality of channel bandwidths to perform data transmission.
In a second aspect, an embodiment of the present application provides a control apparatus for a channel bandwidth, where the control apparatus includes:
a scanning unit for scanning the access point; wherein, the station supports a plurality of channel bandwidths;
a determining unit configured to determine the number of scanned at least one access point;
and the transmission unit is used for transmitting data by using the maximum channel bandwidth in the plurality of channel bandwidths if the number is smaller than or equal to the preset number.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a fourth aspect, an embodiment of the present application provides a station, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The technical scheme provided by the embodiments of the application has the beneficial effects that at least:
the method comprises the steps that the number of access points around the scanning of a station is determined, when the number of the access points is smaller than the preset number, the station is determined that the interference received by the station is smaller, the station uses the maximum channel bandwidth in the supported multiple channel bandwidths to transmit data, the problem that the throughput rate of data transmission is lower due to the fact that a certain channel bandwidth is fixedly used for transmitting data in the related technology is avoided, and the data can be transmitted according to the interference condition received by the station by adaptively selecting the channel bandwidth, so that the throughput rate of data transmission is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a network configuration diagram of a wireless lan communication system according to an embodiment of the present application;
fig. 2 is a flow chart of a method for controlling channel bandwidth according to an embodiment of the present application;
fig. 3 is a flow chart of a method for controlling channel bandwidth according to an embodiment of the present application;
FIG. 4 is a schematic view of an apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an operating system and user space provided by an embodiment of the present application;
FIG. 7 is an architecture diagram of the android operating system of FIG. 5;
FIG. 8 is an architecture diagram of the IOS operating system of FIG. 5.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
Embodiments of the present application may be applied to wireless local area networks (wireless local area network, WLAN), which currently employ the standard of the institute of electrical and electronics engineers (institute of electrical and electronics engineers, IEEE) 802.11 family. The WLAN may include a plurality of basic service sets (basic service set, BSSs), each of which may include an Access Point (AP) and a plurality of Stations (STAs) associated with the AP.
An AP is also called a wireless access point or a hotspot, and is an access point where a mobile user enters a wired network, and is mainly deployed in a home, a building, and a campus, where a typical coverage radius is several tens meters to hundreds meters, and of course, the AP may also be deployed outdoors. The AP acts as a bridge connecting the wired network and the wireless network, and is mainly used to connect the wireless network clients together and then access the wireless network to the ethernet. In particular, the AP may be a terminal device or a network device with a WiFi chip. Optionally, the AP may be a device supporting an 802.11ax standard, and further optionally, the AP may be a device supporting multiple WLAN standards such as 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11 a.
The STA may be a wireless communication chip, a wireless sensor, or a wireless communication terminal. For example: the mobile phone supporting the WiFi communication function, the tablet personal computer supporting the WiFi communication function, the set top box supporting the WiFi communication function, the smart television supporting the WiFi communication function, the smart wearable device supporting the WiFi communication function, the vehicle-mounted communication device supporting the WiFi communication function and the computer supporting the WiFi communication function. Optionally, the STA may support 802.11ax, and further optionally, the station supports multiple WLAN systems such as 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11 a.
As shown in fig. 1, which is an application scenario diagram of a BSS provided by the embodiment of the present application, the BSS includes an AP, an STA1, an STA2, and an STA3, where the STA1, the STA2, and the STA3 are associated with the AP, a station in the embodiment of the present application may be any STA in fig. 1, and an access point may be the AP in fig. 1, and it should be noted that the number of STAs in the embodiment of the present application is only an example.
The following describes in detail a method for controlling channel bandwidth according to an embodiment of the present application with reference to fig. 2 to fig. 3. The device for controlling the channel bandwidth in the embodiment of the present application may be a station shown in fig. 1.
Referring to fig. 2, a flow chart of a method for controlling channel bandwidth is provided in an embodiment of the present application. As shown in fig. 2, the method according to the embodiment of the present application may include the following steps:
s201, scanning the access point.
The station scans surrounding access points based on a preset scanning rule, and then counts the number of the scanned access points. The station may periodically detect the number of access points. Stations support multiple channel bandwidths, for example: stations support channel bandwidths of 10M, 20M, and 40M.
After the station establishes the WiFi connection with the access point, the station stores a service set identifier (service set identifier, SSID), a basic service set identifier (basic service set identifier, BSSID) and a channel number of the access point that successfully establishes the WiFi connection, where the SSID identifies a name of the access point, the name may be user-defined, different access points may set the same SSID, and multiple identical SSID networks may implement seamless handover of station roaming. The BSSID, i.e. the MAC address of the access point, is used to uniquely represent the hardware identifier of the access point, the channel number represents the sequence number of the channel used by the access point to transmit the signal, and the channel represents the frequency range used by the access point, for example: 2.4G WiFi channel division into 14 channels: and the bandwidth of each channel is 20MHz, and the channels between two adjacent channels have coincident frequency bands. The station may support 2.4G WiFi protocol or 5G WiFi protocol.
S202, determining the number of the scanned at least one access point.
The method comprises the steps that a station periodically scans channels to find surrounding access points, the station scans channels used by the access points to find the access points, the station obtains stored channel identifiers of the access points, scans the access points on the channels indicated by channel numbers, generates an access point set according to at least one scanned access point, and counts the number of the access points in the access point set.
And S203, if the number is smaller than the preset number, using the maximum channel bandwidth in the plurality of channel bandwidths to perform data transmission.
Wherein the site is pre-stored or pre-configured with a pre-set number, such as: the preset number is 1, that is, when the station scans to the surrounding access points with current connection, the station is indicated to be slightly interfered. Determining the maximum channel bandwidth in a plurality of channel bandwidths supported by a station, judging whether the currently used channel bandwidth is the maximum channel bandwidth, if so, continuing to use the maximum channel bandwidth for data transmission; and if the currently used channel bandwidth is not the maximum channel bandwidth, switching the currently used channel bandwidth to the maximum channel bandwidth.
When the scheme of the embodiment of the application is executed, the stations scan the number of access points around, and when the number of the access points is smaller than the preset number, the stations are determined to receive smaller interference, the stations use the maximum channel bandwidth in the supported multiple channel bandwidths to transmit data, so that the problem of lower data transmission throughput rate caused by fixedly using a certain channel bandwidth to transmit data in the related technology is avoided.
Referring to fig. 3, a flow chart of a method for controlling channel bandwidth according to an embodiment of the present application is shown. The present embodiment is illustrated by applying the control method of the channel bandwidth to the station, and the control method of the channel bandwidth may include the following steps:
s301, establishing WiFi connection.
The station sends a WiFi connection request to surrounding access points, the WiFi connection request carries a WiFi password, and after the access points verify that the WiFi password is correct, the access points establish WiFi connection with the station.
S302, acquiring the current region.
The site can acquire the current coordinates through the global positioning module, and the current area is determined according to the mapping relation between the prestored or preconfigured coordinates and the area. The region represents a country and a region, and frequency ranges of channels supported by different countries and regions are different. The site may also determine the current location area by a country or region code stored in the subscriber identity module (subscriber identification module, SIM).
S303, inquiring a full channel list of the current area.
The frequency ranges of channels supported by different countries or regions are different, the site prestores or is preconfigured with a mapping relation between the region and the channel distribution information, and then the site determines a full channel list of the current region according to the mapping relation. For example: for the chinese region, the full channel list at 2.4GHz includes 14 channels, and the frequency ranges of the 14 channels are shown in table 1:
TABLE 1
S304, channel scanning is carried out on the full channel list to generate an access point set.
The station scans the access points on each channel according to a certain sequence, and generates an access point set according to the scanned access points. The station can scan the access points according to the sequence from small to large of the channel numbers, or the station can scan the access points according to the channel numbers randomly, or the station obtains the pre-stored channels used by the connected access points, and scans the access points on the channels.
For example, the full channel list is shown in table 1, the station scans channel 1 for channel 14 in turn, and generates an access point set according to the access points scanned on channels 1-14. Or stations sequentially scan from channel 14 to channel 1, and an access point set is generated according to the access points scanned on channels 14-1.
By way of further example, a station pre-stored connected access point includes: access point 1, access point 2 and access point 2, the channel used by access point 1 is channel 1, the channel used by access point 2 is channel 10, and the channel used by access point 3 is channel 5, then the station scans for access points only on channel 1, channel 10 and channel 5, and generates an access point set according to the scanned access points.
S305, counting the number of access points in the access point set.
The station counts the number of access points in the access point set, and the access point set comprises at least one access point because the station currently establishes WiFi connection with a certain access point. The station counts the number of access points in the access point combination, and the smaller the number of access points is, the smaller the interference received by the station is likely to be, and the larger the number of access points is, the larger the interference received by the station is likely to be.
For example, the access points included in the set of access points include: access point a1, access point a2, and access point a3, wherein access point a1 is the access point where the station currently establishes a WiFi connection. The station counts the number of access points in the set of access points to 3.
S306, judging whether the number is smaller than or equal to the preset number.
The station pre-stores or pre-configures a preset number, and when the station determines that the number of access points in the access point set in S305 is less than or equal to the preset number, S307 is executed; if the station determines that the number of access points in the access point combination is greater than the preset number, S310 is executed.
For example, if the preset number is 1, and the station determines that the number of access points in the access point set is 3, determining that the number of access points in the access point set is greater than 1, and executing S310; if the station determines that the number of access points in the access point set is 1, it determines that the number of access points in the access point set is equal to 1, and S307 is executed.
S307, judging whether the current channel bandwidth is the maximum channel bandwidth.
Wherein, the station supports a plurality of channel bandwidths, and parameter values of the plurality of channel bandwidths are different, for example: the station supports a channel bandwidth of 20M and a channel bandwidth of 40M, and the station judges whether the current channel bandwidth is the maximum channel bandwidth, if yes, S309 is executed, and if no, S308 is executed. For example: the current channel bandwidth of the station is 20M, the station determines that the current channel bandwidth is not the maximum channel bandwidth, and S308 is executed; also for example: the current channel bandwidth of the station is 40M, the station determines that the current channel bandwidth is the maximum channel bandwidth, and S309 is performed.
And S308, switching the current channel bandwidth to the maximum channel bandwidth.
For example, the station switches the current channel bandwidth 20M to the maximum channel bandwidth 40M according to the example of S307.
S309, keeping the current channel bandwidth unchanged.
S310, determining the number of channels and the channel interval corresponding to the access point set.
When the number of the access points in the access point set is greater than the preset number, determining the number of channels and the channel interval corresponding to the access point set, wherein different access points may use the same or different channels to send WiFi signals, and the channel interval represents the difference of channel numbers between any two channels.
For example, the set of access points includes: the channel used by the access point a1 is the channel 1, the channel used by the access point a2 is the channel 10, and the channel used by the access point a3 is the channel 8. The station determines that the number of channels corresponding to the access point set is 3, the channel interval between the channel 1 and the channel 10 is 9, the channel interval between the channel 1 and the channel 8 is 7, and the channel interval between the channel 8 and the channel 10 is 2.
Also for example, the set of access points includes: the method comprises the steps that an access point a1 and an access point a2, a channel used by the access point a1 is a channel 1, a channel used by the access point a2 is a channel 10, a station determines that the number of channels corresponding to an access point set is 2, and a channel interval between the channel 1 and the channel 10 is 9.
S311, judging whether the number of channels is two and whether the channel interval of the two channels is larger than or equal to the preset interval.
The station judges whether the number of channels corresponding to the access point set is two or not, and whether the interval between the two channels is larger than a preset interval or not. If yes, executing S312; if not, S315 is executed. The larger the channel spacing between the channels, the lower the interference level between the two channels, whereas the smaller the channel spacing between the channels, the higher the interference level between the two channels.
For example, the preset interval is 8, and the set of access points includes: and the access point a1 and the access point a2, wherein the channel used by the access point a1 is the channel 1, the channel used by the access point a2 is the channel 10, the station determines that the number of channels corresponding to the access point set is 2, the channel interval between the channel 1 and the channel 10 is 9, and the channel interval is equal to the preset interval 8, and if the judgment result of the station is yes, the step S312 is executed.
For another example, the predetermined interval is 8, and the set of access points includes: the method comprises the steps that an access point a1 and an access point a2, channels used by the access point a1 are channels 5, channels used by the access point a2 are channels 10, a station determines that the number of channels corresponding to an access point set is 2, the channel interval between the channels 5 and the channels 10 is 5, the channel interval is smaller than a preset interval 8, the station judges whether the judgment result is negative, and S315 is executed.
S312, judging whether the current channel bandwidth is the maximum channel bandwidth.
Wherein, the station supports a plurality of channel bandwidths, and parameter values of the plurality of channel bandwidths are different, for example: the station supports a channel bandwidth of 20M and a channel bandwidth of 40M, and the station judges whether the current channel bandwidth is the maximum channel bandwidth, if yes, S314 is executed, and if no, S313 is executed. For example: the current channel bandwidth of the station is 20M, the station determines that the current channel bandwidth is not the maximum channel bandwidth, and S313 is executed; also for example: the current channel bandwidth of the station is 40M, the station determines that the current channel bandwidth is the maximum channel bandwidth, and S314 is performed.
S313, switching the current channel bandwidth to the maximum channel bandwidth.
S314, keeping the current channel bandwidth unchanged.
S315, transmitting data using the minimum channel bandwidth.
The station supports a plurality of channel bandwidths, parameter values of the plurality of channel bandwidths are different, the station determines the minimum channel bandwidth in the plurality of channel bandwidths, then uses the minimum channel bandwidth to transmit, and avoids high interference caused by using the maximum channel bandwidth, thereby influencing the throughput rate of data transmission.
When the scheme of the embodiment of the application is executed, the stations scan the number of access points around, and when the number of the access points is smaller than the preset number, the stations are determined to receive smaller interference, the stations use the maximum channel bandwidth in the supported multiple channel bandwidths to transmit data, so that the problem of lower data transmission throughput rate caused by fixedly using a certain channel bandwidth to transmit data in the related technology is avoided.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Referring to fig. 4, a schematic structural diagram of a control device for channel bandwidth according to an exemplary embodiment of the present application is shown. Hereinafter referred to as the device 4, the device 4 may be implemented as all or part of a terminal by software, hardware or a combination of both. The apparatus 4 comprises a scanning unit 401, a determining unit 402 and a transmitting unit 403.
A scanning unit 401 for scanning for access points; wherein, the station supports a plurality of channel bandwidths;
a determining unit 402, configured to determine a number of scanned at least one access point;
and a transmission unit 403, configured to perform data transmission using the maximum channel bandwidth of the plurality of channel bandwidths if the number is less than or equal to a preset number.
In one or more embodiments, the transmission unit 403 is further configured to:
if the number is greater than the preset number, determining the channel interval corresponding to each of the at least one access point;
and when the channel interval of the channels used by any two access points is larger than or equal to the preset interval, using the maximum channel bandwidth to perform data transmission.
In one or more embodiments, the transmission unit 403 is further configured to:
and when the channel interval of the channels used by any two access points is smaller than the preset interval, using the minimum channel bandwidth in the plurality of channel bandwidths to perform data transmission.
In one or more embodiments, the transmission unit 403 is further configured to:
if the number is greater than the preset number, determining the number of channels and the channel interval corresponding to the at least one access point;
and carrying out data transmission by using the maximum channel bandwidth under the request that the number of the channels is two and the channel interval of the two channels is larger than or equal to the preset interval.
In one or more embodiments, the preset number is 1 and the preset channel interval is 8.
In one or more embodiments, the transmitting data using the maximum channel bandwidth of the plurality of channel bandwidths includes:
judging whether the current channel bandwidth is the maximum channel bandwidth;
if yes, continuing to use the current channel bandwidth for data transmission;
if not, switching the current channel bandwidth to the maximum channel bandwidth, and using the maximum channel bandwidth to carry out data penetration.
In one or more embodiments, the scanning for access points includes:
acquiring a channel of a prestored access point;
scanning for access points on the channel.
In one or more embodiments, the scanning for access points includes:
acquiring a full channel list associated with a current region;
scanning for access points on each channel in the full channel list.
It should be noted that, when the apparatus 4 provided in the foregoing embodiment performs the control method of the channel bandwidth, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the method for controlling the channel bandwidth provided in the foregoing embodiments belong to the same concept, which embody detailed implementation procedures in the method embodiments, and are not described herein again.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The method comprises the steps that the number of access points around the scanning of a station is determined, when the number of the access points is smaller than the preset number, the station is determined that the interference received by the station is smaller, the station uses the maximum channel bandwidth in the supported multiple channel bandwidths to transmit data, the problem that the throughput rate of data transmission is lower due to the fact that a certain channel bandwidth is fixedly used for transmitting data in the related technology is avoided, and the data can be transmitted according to the interference condition received by the station by adaptively selecting the channel bandwidth, so that the throughput rate of data transmission is improved.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are adapted to be loaded by a processor and execute the method steps of the embodiment shown in fig. 2 to 3, and the specific execution process may refer to the specific description of the embodiment shown in fig. 2 to 3, which is not repeated herein.
The present application also provides a computer program product storing at least one instruction that is loaded and executed by the processor to implement the method of controlling channel bandwidth as described in the above embodiments.
Referring to fig. 5, a block diagram of a terminal, i.e., a station according to the present application, according to an exemplary embodiment of the present application is shown. The terminal of the present application may include one or more of the following components: processor 110, memory 120, input device 130, output device 140, and bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected by a bus 150.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal using various interfaces and lines, performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in at least one hardware form of digital signal processing (digital signal processing, DSP), field-programmable gate array (field-programmable gate array, FPGA), programmable logic array (programmable logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (central processing unit, CPU), an image processor (graphics processing unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
The memory 120 may include a random access memory (random Access Memory, RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, which may be an Android (Android) system (including a system developed based on the Android system), an IOS system developed by apple corporation (including a system developed based on the IOS system), or other systems, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal in use (such as phonebook, audio-video data, chat-record data), etc.
Referring to FIG. 6, the memory 120 may be divided into an operating system space in which the operating system runs and a user space in which native and third party applications run. In order to ensure that different third party application programs can achieve better operation effects, the operating system allocates corresponding system resources for the different third party application programs. However, the requirements of different application scenarios in the same third party application program on system resources are different, for example, under the local resource loading scenario, the third party application program has higher requirement on the disk reading speed; in the animation rendering scene, the third party application program has higher requirements on the GPU performance. The operating system and the third party application program are mutually independent, and the operating system often cannot timely sense the current application scene of the third party application program, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third party application program.
In order to enable the operating system to distinguish specific application scenes of the third-party application program, data communication between the third-party application program and the operating system needs to be communicated, so that the operating system can acquire current scene information of the third-party application program at any time, and targeted system resource adaptation is performed based on the current scene.
Taking an operating system as an Android system as an example, as shown in fig. 7, a program and data stored in the memory 120 may be stored in the memory 120 with a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360 and an application layer 380, where the Linux kernel layer 320, the system runtime library layer 340 and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides the various hardware of the terminal with the underlying drivers such as display drivers, audio drivers, camera drivers, bluetooth drivers, wi-Fi drivers, power management, etc. The system runtime layer 340 provides the main feature support for the Android system through some C/c++ libraries. For example, the SQLite library provides support for databases, the OpenGL/ES library provides support for 3D graphics, the Webkit library provides support for browser kernels, and the like. Also provided in the system runtime library layer 340 is a An Zhuoyun runtime library (Android run) which provides mainly some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building applications, which developers can also build their own applications by using, for example, campaign management, window management, view management, notification management, content provider, package management, call management, resource management, location management. At least one application program is running in the application layer 380, and these application programs may be native application programs of the operating system, such as a contact program, a short message program, a clock program, a camera application, etc.; and may also be a third party application developed by a third party developer, such as a game-like application, instant messaging program, photo beautification program, shopping program, etc.
Taking an operating system as an IOS system as an example, the programs and data stored in the memory 120 are shown in fig. 4, the IOS system includes: core operating system layer 420 (Core OS layer), core service layer 440 (Core Services layer), media layer 460 (Media layer), and touchable layer 480 (Cocoa Touch Layer). The core operating system layer 420 includes an operating system kernel, drivers, and underlying program frameworks that provide more hardware-like functionality for use by the program frameworks at the core services layer 440. The core services layer 440 provides system services and/or program frameworks required by the application, such as a Foundation (Foundation) framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a sports framework, and the like. The media layer 460 provides an interface for applications related to audiovisual aspects, such as a graphics-image related interface, an audio technology related interface, a video technology related interface, an audio video transmission technology wireless play (AirPlay) interface, and so forth. The touchable layer 480 provides various commonly used interface-related frameworks for application development, with the touchable layer 480 being responsible for user touch interactions on the terminal. Such as a local notification service, a remote push service, an advertisement framework, a game tool framework, a message User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
Among the frameworks illustrated in fig. 8, frameworks related to most applications include, but are not limited to: the infrastructure in core services layer 440 and the UIKit framework in touchable layer 480. The infrastructure provides many basic object classes and data types, providing the most basic system services for all applications, independent of the UI. While the class provided by the UIKit framework is a basic UI class library for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides the infrastructure for applications to build user interfaces, draw, process and user interaction events, respond to gestures, and so on.
The manner and principle of implementing data communication between the third party application program and the operating system in the IOS system can refer to the Android system, and the application is not described herein.
The input device 130 is configured to receive input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are a touch display screen for receiving a touch operation thereon or thereabout by a user using a finger, a touch pen, or any other suitable object, and displaying a user interface of each application program. The touch display screen is typically provided at the front panel of the terminal. The touch display screen may be designed as a full screen, a curved screen, or a contoured screen. The touch display screen may also be designed as a combination of a full screen and a curved screen, and the combination of a special-shaped screen and a curved screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configuration of the terminal illustrated in the above-described figures does not constitute a limitation of the terminal, and the terminal may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. For example, the terminal further includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (wireless fidelity, wiFi) module, a power supply, and a bluetooth module, which are not described herein.
In the embodiment of the present application, the execution subject of each step may be the terminal described above. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an android system, an IOS system, or other operating systems, which is not limited by the embodiments of the present application.
The terminal of the embodiment of the application can be further provided with a display device, and the display device can be various devices capable of realizing display functions, such as: cathode ray tube displays (cathode ray tubedisplay, CR), light-emitting diode displays (light-emitting diode display, LED), electronic ink screens, liquid crystal displays (liquid crystal display, LCD), plasma display panels (plasma display panel, PDP), and the like. A user may view displayed text, images, video, etc. information using a display device on the terminal 101. The terminal may be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality ) device, an automobile, a data storage device, an audio playing device, a video playing device, a notebook, a desktop computing device, a wearable device such as an electronic watch, electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic article of clothing, etc.
In the terminal shown in fig. 5, the processor 110 may be used to call an application program stored in the memory 120 and specifically execute the channel bandwidth control method according to the embodiment of the present application.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (10)

1. A method for controlling a channel bandwidth, the method comprising:
scanning an access point based on the acquired channel identifier stored in the station; wherein the station supports multiple channel bandwidths;
generating an access point set based on the scanned access points, and determining the number of at least one access point scanned in the access point set;
if the number is smaller than or equal to the preset number, using the maximum channel bandwidth in the plurality of channel bandwidths to perform data transmission;
if the number is greater than the preset number, judging whether the number of channels is two and the channel interval of the two channels is greater than or equal to a preset value;
if yes, using the maximum channel bandwidth to transmit data;
if not, the minimum channel bandwidth is used for data transmission.
2. The method as recited in claim 1, further comprising:
if the number is greater than the preset number, determining the channel interval corresponding to each of the at least one access point;
and when the channel interval of the channels used by any two access points is larger than or equal to the preset interval, using the maximum channel bandwidth to perform data transmission.
3. The method as recited in claim 2, further comprising:
and when the channel interval of the channels used by any two access points is smaller than the preset interval, using the minimum channel bandwidth in the plurality of channel bandwidths to perform data transmission.
4. The method as recited in claim 1, further comprising:
if the number is greater than the preset number, determining the number of channels and the channel interval corresponding to the at least one access point;
and carrying out data transmission by using the maximum channel bandwidth under the request that the number of the channels is two and the channel interval of the two channels is larger than or equal to the preset interval.
5. The method of claim 4, wherein using the maximum channel bandwidth of the plurality of channel bandwidths for data transmission comprises:
judging whether the current channel bandwidth is the maximum channel bandwidth;
if yes, continuing to use the current channel bandwidth for data transmission;
if not, switching the current channel bandwidth to the maximum channel bandwidth, and using the maximum channel bandwidth to carry out data penetration.
6. The method of claim 5, wherein the scanning for access points comprises:
acquiring a channel of a prestored access point;
scanning for access points on the channel.
7. The method of claim 5, wherein the scanning for access points comprises:
acquiring a full channel list associated with a current region;
scanning for access points on each channel in the full channel list.
8. A control apparatus for channel bandwidth, the apparatus comprising:
a scanning unit, configured to scan an access point based on a channel indicated by the acquired channel identifier stored in the station; wherein the station supports multiple channel bandwidths;
a determining unit, configured to generate an access point set based on the scanned access points, and determine the number of at least one access point scanned in the access point set;
a transmission unit, configured to perform data transmission using a maximum channel bandwidth of the plurality of channel bandwidths if the number is less than or equal to a preset number;
the transmission unit is further configured to:
if the number is greater than the preset number, judging whether the number of channels is two and the channel interval of the two channels is greater than or equal to a preset value;
if yes, using the maximum channel bandwidth to transmit data;
if not, the minimum channel bandwidth is used for data transmission.
9. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any one of claims 1 to 7.
10. A station, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-7.
CN201910989818.3A 2019-10-17 2019-10-17 Control method and device of channel bandwidth, storage medium and station Active CN110944359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910989818.3A CN110944359B (en) 2019-10-17 2019-10-17 Control method and device of channel bandwidth, storage medium and station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910989818.3A CN110944359B (en) 2019-10-17 2019-10-17 Control method and device of channel bandwidth, storage medium and station

Publications (2)

Publication Number Publication Date
CN110944359A CN110944359A (en) 2020-03-31
CN110944359B true CN110944359B (en) 2023-11-14

Family

ID=69906064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910989818.3A Active CN110944359B (en) 2019-10-17 2019-10-17 Control method and device of channel bandwidth, storage medium and station

Country Status (1)

Country Link
CN (1) CN110944359B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245311A (en) * 2021-10-13 2022-03-25 深圳市华曦达科技股份有限公司 Wireless communication method of set top box, set top box and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765207A (en) * 2004-10-20 2010-06-30 高通股份有限公司 Multiple frequency band operation in wireless networks
CN104735799A (en) * 2013-12-24 2015-06-24 华为技术有限公司 Channel selection method and device
CN105072697A (en) * 2015-08-04 2015-11-18 Tcl集团股份有限公司 Method and system for wireless access point to select wireless communication channel
CN106856629A (en) * 2015-12-08 2017-06-16 华为技术有限公司 A kind of data transmission protection and its device
CN107087304A (en) * 2016-02-15 2017-08-22 华为技术有限公司 A kind of communication means, access point and website

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765207A (en) * 2004-10-20 2010-06-30 高通股份有限公司 Multiple frequency band operation in wireless networks
CN104735799A (en) * 2013-12-24 2015-06-24 华为技术有限公司 Channel selection method and device
CN105072697A (en) * 2015-08-04 2015-11-18 Tcl集团股份有限公司 Method and system for wireless access point to select wireless communication channel
CN106856629A (en) * 2015-12-08 2017-06-16 华为技术有限公司 A kind of data transmission protection and its device
CN107087304A (en) * 2016-02-15 2017-08-22 华为技术有限公司 A kind of communication means, access point and website

Also Published As

Publication number Publication date
CN110944359A (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN108733334B (en) Image quality parameter adjusting method, device, terminal and storage medium
US11026269B2 (en) Preamble configuration method, sending method and related devices on an unlicensed carrier
WO2021031793A1 (en) Wireless high-fidelity wi-fi connection control method and related product
US12004096B2 (en) Signal transmission method and communications device
CN114079478B (en) Signal interference processing method and device, storage medium and electronic equipment
WO2022156332A1 (en) Network state synchronization method and apparatus, and storage medium and electronic device
CN113595662B (en) Signal prompting method, device, terminal equipment and storage medium
CN116367251A (en) Roaming method, device and system of WiFi equipment, storage medium and WiFi equipment
CN110944359B (en) Control method and device of channel bandwidth, storage medium and station
EP3585106A1 (en) Method and apparatus for processing service set identifier, and terminal
US11044766B2 (en) Method for Wi-Fi connection and related products
CN113286349B (en) Personal hot spot connection method, device, terminal and storage medium
KR20200085877A (en) Synchronization block and paging-method, method and apparatus for associating scheduling signaling message
CN113950043B (en) Communication method, device, storage medium and terminal
CN111935778B (en) Power regulation method, device, storage medium and network equipment
CN113228795B (en) Communication resource unit allocation method, device, communication equipment and storage medium
CN114125048B (en) Message push setting method and device, storage medium and electronic equipment
CN116209096A (en) Communication connection configuration method, device, communication equipment and storage medium
CN115314588B (en) Background synchronization method, device, terminal, equipment, system and storage medium
CN111935831B (en) Frequency band allocation method, device, storage medium, network equipment and terminal
CN113068252B (en) Positioning method, positioning device, terminal and storage medium
CN113692026B (en) Network connection method, device, terminal and storage medium
WO2023104025A1 (en) Srs resource allocation method and apparatus, terminal, and network side device
WO2023273936A1 (en) Wallpaper setting method and apparatus, and storage medium and electronic device
WO2023160675A1 (en) Signal transmission method and related apparatus

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