[go: up one dir, main page]

CN112702803A - Channel determination method and device, terminal equipment and computer readable storage medium - Google Patents

Channel determination method and device, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN112702803A
CN112702803A CN202011598482.7A CN202011598482A CN112702803A CN 112702803 A CN112702803 A CN 112702803A CN 202011598482 A CN202011598482 A CN 202011598482A CN 112702803 A CN112702803 A CN 112702803A
Authority
CN
China
Prior art keywords
connection
working channel
channel
sta
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011598482.7A
Other languages
Chinese (zh)
Inventor
赵凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN202011598482.7A priority Critical patent/CN112702803A/en
Publication of CN112702803A publication Critical patent/CN112702803A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Landscapes

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

Abstract

本公开提供一种信道的确定方法、装置、终端设备和计算机可读存储介质。终端设备通过在接收到第一P2P连接的启动指令,获取已建立的STA连接的第一工作信道,根据第一工作信道确定第一P2P连接的第二工作信道,其中,第二工作信道的频率与第一工作信道的频率完全重叠,即第一P2P连接与STA连接的工作信道相同,则避免了两种连接均需要传输数据时,频繁切换信道的问题,或者,第二工作信道的频段与第一工作信道的频段不同,则两种连接可以同时进行数据传输,从而基于第二工作信道建立第一P2P连接。使得终端设备同时处于P2P工作模式和STA工作模式时,数据传输延迟较低,提高了用户体验。

Figure 202011598482

The present disclosure provides a channel determination method, apparatus, terminal device, and computer-readable storage medium. After receiving the start instruction of the first P2P connection, the terminal device obtains the first working channel of the established STA connection, and determines the second working channel of the first P2P connection according to the first working channel, wherein the frequency of the second working channel is It completely overlaps with the frequency of the first working channel, that is, the working channel of the first P2P connection and the STA connection is the same, which avoids the problem of frequent channel switching when both connections need to transmit data, or the frequency band of the second working channel is the same as If the frequency bands of the first working channel are different, the two connections can perform data transmission at the same time, thereby establishing the first P2P connection based on the second working channel. When the terminal device is in the P2P working mode and the STA working mode at the same time, the data transmission delay is low, and the user experience is improved.

Figure 202011598482

Description

Channel determination method and device, terminal equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a channel determination method, an apparatus, a terminal device, and a computer-readable storage medium.
Background
Currently, most terminal devices support wireless local area network (WIFI) connectivity, wherein the operating mode of WIFI may include a peer-to-peer (P2P) operating mode and a Station (STA) operating mode.
It often happens that the terminal device performs data transmission in the P2P operating mode and the STA operating mode simultaneously. For example, the terminal device is connected to a television for wireless screen projection (in this case, the P2P operation mode), and is connected to a router for network game (in this case, the STA operation mode).
However, when the terminal device performs data transmission in both the P2P operation mode and the STA operation mode, the data transmission delay is high. For example, in the above scenario, the situations of pause, high delay and the like may occur in the game process, and the situation of screen splash and the like may occur in the television screen projection, which affects the user experience.
Disclosure of Invention
To solve the technical problem or at least partially solve the technical problem, the present disclosure provides a channel determination method, apparatus, terminal device and computer-readable storage medium.
In a first aspect, the present disclosure provides a method for determining a channel, including:
receiving a starting instruction of a point-to-point first P2P connection, and acquiring a first working channel of the established STA connection;
determining a second working channel connected with the first P2P according to the first working channel, wherein the frequency of the second working channel completely overlaps with the frequency of the first working channel, or the frequency band of the second working channel is different from the frequency band of the first working channel;
a first P2P connection is established based on the second working channel.
Optionally, in a case that the frequency of the second operating channel completely overlaps with the frequency of the first operating channel, the method further includes:
and controlling the first P2P connection and the STA connection to transmit data on the first working channel in a time division multiplexing mode.
Optionally, in a case that the frequency band of the second operating channel is different from the frequency band of the first operating channel, the method further includes:
and controlling the first P2P connection and the STA connection to transmit data in an antenna multiplexing mode.
Optionally, before receiving the start instruction of the first P2P connection, the method further includes:
receiving a starting instruction of STA connection, and establishing the STA connection;
determining that the STA connection and the established second P2P connection are in different channels of the same frequency band, and disconnecting the established second P2P connection.
Optionally, the method further includes:
suspending a part of the traffic of the STA connection operation, wherein the part of the traffic comprises: scanning for wireless local area network access point traffic, and/or wireless roaming traffic.
In a second aspect, the present disclosure provides an apparatus for determining a channel, including:
a receiving module, configured to receive a start instruction of a point-to-point first P2P connection, and acquire a first working channel to which an established STA is connected;
a determining module, configured to determine, according to the first working channel, a second working channel connected to the first P2P, where a frequency of the second working channel completely overlaps a frequency of the first working channel, or a frequency band of the second working channel is different from a frequency band of the first working channel;
a establishing module, configured to establish a first P2P connection based on the second working channel.
Optionally, in a case that the frequency of the second operating channel completely overlaps with the frequency of the first operating channel, the apparatus further includes:
a first control module, configured to control the first P2P connection and the STA connection to transmit data on the first working channel in a time division multiplexing manner.
Optionally, in a case that a frequency band of the second operating channel is different from a frequency band of the first operating channel, the apparatus further includes:
a second control module, configured to control the first P2P connection and the STA connection to transmit data in an antenna multiplexing manner.
Optionally, the receiving module is further configured to:
receiving a starting instruction of STA connection, and establishing the STA connection;
determining that the STA connection and the established second P2P connection are in different channels of the same frequency band, and disconnecting the established second P2P connection.
Optionally, the apparatus further comprises:
a suspending module, configured to suspend a part of traffic executed by the STA connection, where the part of traffic includes: scanning for wireless local area network access point traffic, and/or wireless roaming traffic.
In a third aspect, the present disclosure provides a terminal device, comprising:
a memory for storing processor-executable instructions;
a processor for implementing the method of determining a channel as described in the first aspect above when the computer program is executed.
In a fourth aspect, the present disclosure provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the method for determining a channel as described in the first aspect above when the computer-executable instructions are executed by a processor.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
the terminal equipment obtains a first working channel of the established STA connection by receiving a starting instruction of the first P2P connection, and determines a second working channel of the first P2P connection according to the first working channel, wherein the frequency of the second working channel is completely overlapped with the frequency of the first working channel, namely the first P2P connection is the same as the working channel of the STA connection, so that the problem of frequently switching channels when both connections need to transmit data is avoided, or the frequency band of the second working channel is different from that of the first working channel, namely the P2P working mode and the STA working mode are in different frequency bands, so that the two connections can simultaneously transmit data, and the first P2P connection is established based on the second working channel. When the terminal equipment is in the P2P working mode and the STA working mode at the same time, the data transmission delay is low, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a channel determination method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a connection interface of a wireless screen projection device provided by the present disclosure;
fig. 3 is a schematic flowchart of another channel determination method provided in the embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a method for determining a channel according to another embodiment of the disclosure;
fig. 5 is a schematic structural diagram of a channel determination apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
fig. 7 is a block diagram of a terminal device provided by the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Currently, most terminal devices support wireless local area network (WIFI) connection, wherein when the WIFI connection is performed, both communication parties can select corresponding frequency bands and channels for data transmission. The frequency bands of WIFI may include, but are not limited to, a 2.4G frequency band and a 5G frequency band, each frequency band corresponds to a plurality of channels, where there may be overlapping frequency ranges between the channels.
The operating modes of the WIFI connection may include a point-to-point (P2P) operating mode and a Station (STA) operating mode. The P2P operating mode is a wireless local area network direct connection mode (WIFI direct), and WIFI direct connection can be realized between different terminal devices to transmit data. For example, when the terminal device is connected to a television for wireless screen projection operation, the operating mode of the terminal device is the P2P operating mode. In the STA operation mode, the terminal device is connected as a Station (STA) to a wireless Access Point (AP), for example, the terminal device connects to a wireless router and accesses the internet through the wireless router to play a game.
In some scenarios, the terminal device performs data transmission in the P2P operating mode and the STA operating mode simultaneously, and the two operating modes are different channels in the 5G frequency band. For example, a mobile phone is wirelessly connected with a television for screen projection (in this connection, the mobile phone is in a P2P operating mode), and then the mobile phone is wirelessly connected with a router for network game (in this connection, the mobile phone is in an STA operating mode), at this time, the mobile phone needs to wirelessly project a screen with the television and needs to transmit data of the network game with the router.
However, the terminal device performs data transmission in the P2P operating mode and the STA operating mode at the same time, and since the two operating modes operate in channels with different frequency bands, frequent channel switching is required, so that the data transmission delay is high. For example, the mobile phone is wirelessly connected with the television for screen projection, and meanwhile, the mobile phone is wirelessly connected with the router for network game, so that the situations of jamming, high delay and the like may occur in the game process of the mobile phone, and the user experience is influenced. Further, in other scenes, the television may have a situation such as a screen splash, which affects the user experience.
The channel determining method is applied to terminal equipment, the terminal equipment can be a computer, a mobile phone, a tablet device, an intelligent wearable device and the like, and the method is not particularly limited to the terminal equipment as long as the terminal equipment has a WIFI function. The terminal device receives a starting instruction of a first P2P connection, acquires a first working channel of an established STA connection, and determines a second working channel of the first P2P connection according to the first working channel, wherein the frequency of the second working channel is completely overlapped with the frequency of the first working channel, namely the first P2P connection is the same as the working channel of the STA connection, so that the problem of frequently switching channels when both connections need to transmit data is solved, or the frequency band of the second working channel is different from that of the first working channel, so that both connections can simultaneously transmit data, and the first P2P connection is established based on the second working channel. When the terminal equipment is in the P2P working mode and the STA working mode at the same time, the data transmission delay is low, and the user experience is improved.
The following describes the technical solutions of the present disclosure and how to solve the above problems with specific examples.
Fig. 1 is a schematic flow chart of a method for determining a channel according to an embodiment of the present disclosure, as shown in fig. 1, the method of the present embodiment is executed by a terminal device, where the present disclosure is not limited, and the method of the present embodiment is as follows:
and S101, receiving a starting command of the first P2P connection.
Wherein, the starting instruction of the first P2P connection is used for indicating the starting of establishing the first P2P connection. The start instruction of the first P2P connection may be a start instruction of the first P2P connection received by the terminal device, and the start instruction of the first P2P connection may be various types of instructions. The starting instruction of the first P2P connection may be a touch instruction received by the electronic device at a specified position in a preset interface, for example, clicking a "first P2P connection" option in a WIFI setting interface starts the first P2P connection. The start instruction of the first P2P connection may also be a voice instruction, for example, the electronic device receives a voice message such as "connect P2P", "start to connect to tv" and the like through voice input, and starts the first P2P connection. The starting instruction of the first P2P connection may also be a preset clear gesture instruction, for example, if the electronic device receives a preset slide gesture, or if the user strokes a preset shape in the air, the first P2P connection is started. It is to be understood that the start command of the first P2P connection is not limited to the above form, and may be in other predefined forms. The received starting instruction of the first P2P connection may be in various forms, which is convenient for the user to select according to the actual needs, so as to start the first P2P connection.
For example, fig. 2 is a schematic diagram of a connection interface of a wireless screen projection device provided by the present disclosure, as shown in fig. 2, when a user clicks a "wireless screen projection" button on a terminal device to enter the connection interface of the wireless screen projection device, the terminal device automatically searches for surrounding devices that can be connected by wireless screen projection, and displays the devices in the connection interface of the wireless screen projection device, as exemplarily shown in fig. 2, 2 devices are respectively device 1 and device 2. The terminal device triggers and starts connection with the first P2P of the device by clicking the position corresponding to the device in the display interface, and if the user wants to connect the device 1 for wireless screen projection, the user can click the device 1 at the corresponding position in the interface, and the terminal device receives a starting instruction for performing the first P2P connection with the device 1, thereby triggering and starting the connection with the first P2P of the device 1.
S102, judging whether STA connection is established currently.
After receiving the start instruction of the first P2P connection, the terminal device needs to determine whether the STA connection is currently established, that is, the terminal device needs to determine whether a scenario in which the STA connection and the first P2P connection perform data transmission simultaneously occurs. If no STA connection is currently established, a first P2P connection is established according to the existing flow. If the STA connection is currently established, S103 is continuously performed.
S103, acquiring a first working channel of the established STA connection.
And S104, determining a second working channel connected with the first P2P according to the first working channel.
The frequency of the second working channel is completely overlapped with the frequency of the first working channel, or the frequency band of the second working channel is different from the frequency band of the first working channel.
In a possible implementation manner, it may be determined that, according to the first working channel of the established STA connection, the frequency of the second working channel of the first P2P connection completely overlaps with the frequency of the first working channel, that is, the working frequency band of the first P2P connection is the same as that of the STA connection, and the channels are the same.
Optionally, in a case that the frequency of the second operating channel completely overlaps with the frequency of the first operating channel, after the first P2P connection is established, the method of this embodiment may further include:
and controlling the first P2P connection and the STA connection to transmit data on the first working channel in a Time Division Multiplexing (TDM) manner.
In this embodiment, since the first P2P connection and the STA connection have the same channel, different signals may be transmitted in different time periods in a time division multiplexing manner, the time for transmitting data in the channel is divided into a plurality of time slices (referred to as time slots), and the time slots are allocated to the first P2P connection or the STA connection, so as to achieve the purpose of transmitting data in two operating modes (the first P2P connection and the STA connection), and further, the channel does not need to be frequently switched.
In another possible implementation manner, it may be determined that, according to the first operating channel of the established STA connection, a frequency band of the second operating channel of the first P2P connection is different from a frequency band of the first operating channel, that is, an operating frequency band of the first P2P connection is different from an operating frequency band of the STA connection.
Optionally, in a case that the operating frequency band of the first P2P connection is different from the operating frequency band of the STA connection, after the first P2P connection is established, the method of this embodiment may further include:
and controlling the first P2P connection and the STA connection to transmit data in an antenna multiplexing mode.
In this embodiment, the antenna multiplexing is to use the same antenna to perform data transmission in different frequency bands, and since the operating frequency bands of the P2P operating mode and the STA operating mode are different, an antenna multiplexing mode may be adopted, signals of the P2P operating mode and the STA operating mode may be transmitted in a parallel manner without interfering with each other, and transmission delay may not be considered when transmitting signals of any one of the two operating modes, so as to achieve the purpose of transmitting data in the two operating modes (the first P2P connection is connected with the STA), and the two operating modes do not interfere with each other, so that there is almost no transmission delay.
And S105, establishing a first P2P connection based on the second working channel.
In the process of establishing the first P2P connection, the two devices determine the working channel used by the first P2P connection through negotiation. In this embodiment, after the terminal device determines the second working channel, in the process of establishing the first P2P connection, the peer device connected with the first P2P negotiates to determine that the second working channel is used for the connection.
Further, in the process of establishing the first P2P connection, the two parties of the connection determine a master device (GO) and a slave device (GC) through negotiation, and the master device may set an operating channel used for the first P2P connection. In this embodiment, in the process of establishing the first P2P connection, the terminal device sets the P2P operation channel (P2P operation channel) as the second working channel, and sets a willingness value (GO intent) to become the master device at the same time, where the GO intent is 15 at maximum, and the larger the GO intent value is, the more willing to make the master device is indicated, so that the terminal device sets the GO intent to 15 (or 14), which indicates that the master device needs to be made, and after it is determined that the terminal device becomes the master device, the working channel connected by the first P2P is the second working channel.
In this embodiment, the terminal device obtains the first working channel of the established STA connection by receiving the start instruction of the first P2P connection, and determines the second working channel of the first P2P connection according to the first working channel, where the frequency of the second working channel completely overlaps with the frequency of the first working channel, that is, the first P2P connection is the same as the working channel of the STA connection, so as to avoid the problem of frequently switching channels when both connections need to transmit data, or the frequency band of the second working channel is different from the frequency band of the first working channel, so that both connections can simultaneously perform data transmission, thereby establishing the first P2P connection based on the second working channel. When the terminal equipment is in the P2P working mode and the STA working mode at the same time, the data transmission delay is low, and the user experience is improved.
On the basis of the foregoing embodiment, further, in the process of establishing the STA connection, the working channel of the STA connection is determined by the AP, and the terminal device cannot determine the working channel of the STA connection, so that if the terminal device has already established the first P2P connection, and the terminal device needs to establish the STA connection at this time, it may determine whether to disconnect the first P2P connection first according to the channels of the STA connection and the already established first P2P connection, and then establish the first P2P connection by using the foregoing method.
Fig. 3 is a schematic flow diagram of another channel determination method provided in the embodiment of the present disclosure, where fig. 3 is based on the embodiment shown in fig. 1, and further, as shown in fig. 3, the method of this embodiment may further include S1001, S1002, and S1003:
s1001, receiving a starting instruction of STA connection and establishing the STA connection.
The starting instruction of the STA connection is used for indicating the starting of establishing the STA connection. The STA connection start instruction may be a STA connection start instruction received by the terminal device, and the STA connection start instruction may be an instruction in various forms. The STA connection starting instruction may be a touch instruction received by the electronic device at a specified position in a preset interface, for example, the "STA connection" option is clicked in a WIFI interface to start the STA connection. The STA connection starting instruction may also be a voice instruction, for example, the electronic device receives a voice message such as "connect STA", "start to connect WIFI" input by voice, and starts the STA connection. The start instruction of the STA connection may also be a preset idle gesture instruction, for example, when the electronic device receives a preset sliding gesture, or the user strokes a preset shape in the air, the STA connection is started. It is to be understood that the STA connection start instruction is not limited to the above-described form, and may be in another predefined form, and the STA connection start instruction is different from the first P2P connection start instruction. The received starting instruction of the STA connection can be in various forms, and a user can conveniently select the starting instruction according to actual needs, so that the STA connection is started.
In this embodiment, the STA connection is established according to the received start instruction of the STA connection, and then the working channel of the STA connection may be determined.
S1002, judging whether a second P2P connection is established currently.
After the STA connection is established, the terminal device needs to determine whether a second P2P connection is established currently, that is, the terminal device needs to determine whether a scenario that the STA connection and the second P2P connection perform data transmission simultaneously occurs.
If the second P2P connection is not established, data transmission of the STA connection is performed according to the existing procedure, and further, after the STA connection is established, if a start instruction of the first P2P connection is received, the first P2P connection may be established according to the method shown in fig. 1.
If the second P2P connection has been established, execution continues with S1003.
S1003, judging whether the STA connection and the established second P2P connection are in different channels of the same frequency band.
If the STA connection and the established second P2P connection are not in different channels of the same frequency band, that is, the STA connection and the established second P2P connection are in the same channel, or the STA connection and the established second P2P connection are in different frequency bands, the data transmission of the STA connection and the data transmission of the second P2P connection are performed according to the existing procedure.
If the STA connects to a different channel in the same frequency band as the established second P2P connection, S1004 is executed continuously.
And S1004, disconnecting the established second P2P connection.
If the STA connection and the established second P2P connection are in different channels of the same frequency band, the STA connection and the established second P2P connection may cause a high data transmission delay when transmitting data simultaneously, so that the established second P2P connection may be disconnected.
Further, after the established second P2P connection is disconnected, the first P2P connection may be automatically reestablished, or the first P2P connection may be established after receiving a start command of the first P2P connection.
In this embodiment, after receiving an STA connection start instruction and establishing an STA connection, determining that the STA connection and the established second P2P connection are in different channels of the same frequency band, at this time, when the STA connection and the established second P2P connection transmit data simultaneously, data transmission delay is high, the established second P2P connection may be disconnected, and then, according to the established first working channel of the STA connection, the first P2P connection may be re-established, and the second working channel of the first P2P connection is determined, so that when the terminal device is in the P2P working mode and the STA working mode simultaneously, data transmission delay is low, and user experience is improved.
Fig. 4 is a schematic flowchart of a method for determining a channel according to another embodiment of the present disclosure, where fig. 4 is based on the embodiment shown in fig. 1 or fig. 3, and further, as shown in fig. 4, the method of this embodiment may further include S106:
and S106, suspending part of the service operated by the STA connection.
Wherein, part of the services include: scanning for wireless local area network access point traffic, and/or wireless roaming traffic.
In the STA operating mode, part of the service of WIFI may be run, for example, scan wlan access point service, and/or wireless roaming service. The operation of part of services will affect the data transmission of the STA connection, and therefore, the operation of part of services of the STA connection can be reduced or suspended.
In this embodiment, by suspending part of the service in which the STA is connected to operate, the data transmission in which the STA is connected to is less delayed by the operation of the part of the service, so that when the terminal device is in the P2P operating mode and the STA operating mode at the same time, the data transmission delay is low, and the user experience is improved.
On the basis of the above embodiment, further, after S105, the method may further include: the resolution of the data transmitted in the first P2P connection is adjusted to a preset resolution interval, and/or the frame rate is adjusted to a preset frame rate interval.
For example, when the first P2P connection is used for wireless screen projection, if the resolution of the current image quality is 4K, the frame rate is 60 frames, and the current image quality is ultra high definition, the resolution and/or the frame rate of the data transmitted in the first P2P connection can be reduced to a corresponding section, and the data transmitted in the first P2P connection can be reduced without affecting the image quality.
In this embodiment, the resolution of the data transmitted in the first P2P connection is adjusted to a preset resolution interval, and/or the frame rate is adjusted to a preset frame rate interval. The amount of data transmitted in the first P2P connection can be made small, so as to further solve the problem of high data transmission delay, so that the data transmission delay in the first P2P connection is low, and the user experience is improved.
Fig. 5 is a schematic structural diagram of a channel determination apparatus provided in an embodiment of the present disclosure, and as shown in fig. 5, the apparatus of this embodiment may include:
a receiving module 501, configured to receive a start instruction of a peer-to-peer first P2P connection, and acquire a first working channel to which an established STA is connected;
a determining module 502, configured to determine, according to the first working channel, a second working channel connected to the first P2P, where a frequency of the second working channel completely overlaps a frequency of the first working channel, or a frequency band of the second working channel is different from a frequency band of the first working channel;
a establishing module 503, configured to establish the first P2P connection based on the second working channel.
Optionally, in a case that the frequency of the second operating channel completely overlaps with the frequency of the first operating channel, the apparatus further includes:
and the first control module is used for controlling the first P2P connection and the STA connection to transmit data on the first working channel in a time division multiplexing mode.
Optionally, in a case that the frequency band of the second operating channel is different from the frequency band of the first operating channel, the apparatus further includes:
and the second control module is used for controlling the first P2P connection and the STA connection to transmit data in an antenna multiplexing mode.
Optionally, the receiving module 501 is further configured to:
receiving a starting instruction of STA connection, and establishing the STA connection;
and determining that the STA connection and the established second P2P connection are in different channels of the same frequency band, and disconnecting the established second P2P connection.
Optionally, the apparatus further comprises:
a suspension module, configured to suspend a part of services executed by STA connections, where the part of services includes: scanning for wireless local area network access point traffic, and/or wireless roaming traffic.
The apparatus of the foregoing embodiment may be configured to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of a terminal device provided in an embodiment of the present disclosure, and as shown in fig. 6, the terminal device of this embodiment may include:
a memory 601, a memory for storing processor-executable instructions;
a processor 602, configured to implement the method for determining a channel as shown in fig. 1, fig. 3 or fig. 4 as described above when the computer program is executed.
The terminal device of the foregoing embodiment may be configured to execute the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is used for implementing the channel determination method as shown in fig. 1, fig. 3 or fig. 4.
Fig. 7 is a block diagram of a terminal device provided by the present disclosure, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WIFI, 3G, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for determining a channel, comprising:
receiving a starting instruction of a first point-to-point P2P connection, and acquiring a first working channel of an established STA connection;
determining a second working channel connected with the first P2P according to the first working channel, wherein the frequency of the second working channel completely overlaps with the frequency of the first working channel, or the frequency band of the second working channel is different from the frequency band of the first working channel;
a first P2P connection is established based on the second working channel.
2. The method of claim 1, wherein in the case that the frequency of the second operating channel completely overlaps with the frequency of the first operating channel, the method further comprises:
and controlling the first P2P connection and the STA connection to transmit data on the first working channel in a time division multiplexing mode.
3. The method of claim 1, wherein in a case that a frequency band of the second operating channel is different from a frequency band of the first operating channel, the method further comprises:
and controlling the first P2P connection and the STA connection to transmit data in an antenna multiplexing mode.
4. The method according to any of claims 1-3, wherein before receiving the start instruction of the first P2P connection, the method further comprises:
receiving a starting instruction of STA connection, and establishing the STA connection;
determining that the STA connection and the established second P2P connection are in different channels of the same frequency band, and disconnecting the established second P2P connection.
5. The method according to any one of claims 1-3, further comprising:
suspending a part of the traffic of the STA connection operation, wherein the part of the traffic comprises: scanning for wireless local area network access point traffic, and/or wireless roaming traffic.
6. An apparatus for determining a channel, comprising:
a receiving module, configured to receive a start instruction of a point-to-point first P2P connection, and acquire a first working channel to which an established STA is connected;
a determining module, configured to determine, according to the first working channel, a second working channel connected to the first P2P, where a frequency of the second working channel completely overlaps a frequency of the first working channel, or a frequency band of the second working channel is different from a frequency band of the first working channel;
a establishing module, configured to establish a first P2P connection based on the second working channel.
7. The apparatus of claim 6, wherein in case the frequency of the second operating channel completely overlaps with the frequency of the first operating channel, the apparatus further comprises:
a first control module, configured to control the first P2P connection and the STA connection to transmit data on the first working channel in a time division multiplexing manner.
8. The apparatus of claim 6, wherein in case that the frequency band of the second operating channel is different from the frequency band of the first operating channel, the apparatus further comprises:
a second control module, configured to control the first P2P connection and the STA connection to transmit data in an antenna multiplexing manner.
9. A terminal device, comprising:
a memory for storing processor-executable instructions;
processor for implementing the method of determining a channel according to any of the claims 1 to 5 when the computer program is executed.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the method for determining a channel according to any one of claims 1 to 5.
CN202011598482.7A 2020-12-29 2020-12-29 Channel determination method and device, terminal equipment and computer readable storage medium Pending CN112702803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011598482.7A CN112702803A (en) 2020-12-29 2020-12-29 Channel determination method and device, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011598482.7A CN112702803A (en) 2020-12-29 2020-12-29 Channel determination method and device, terminal equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112702803A true CN112702803A (en) 2021-04-23

Family

ID=75511976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011598482.7A Pending CN112702803A (en) 2020-12-29 2020-12-29 Channel determination method and device, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112702803A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965787A (en) * 2021-10-19 2022-01-21 深圳创维-Rgb电子有限公司 Picture sharing method and device, display terminal and storage medium
CN115226126A (en) * 2022-06-13 2022-10-21 北京小米移动软件有限公司 Channel occupation method, device and storage medium
CN115665468A (en) * 2022-09-21 2023-01-31 海信视像科技股份有限公司 Screen projection method and device and electronic equipment
CN115883625A (en) * 2021-09-28 2023-03-31 海信视像科技股份有限公司 Display device and screen projection processing method
WO2023142655A1 (en) * 2022-01-27 2023-08-03 海信视像科技股份有限公司 Screen projection method, display device, and intelligent device
WO2025015933A1 (en) * 2023-07-17 2025-01-23 荣耀终端有限公司 Communication method, electronic device, and storage medium
WO2025026310A1 (en) * 2023-08-01 2025-02-06 华为技术有限公司 Communication control method and system, and related apparatus

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102958080A (en) * 2011-08-17 2013-03-06 联发科技股份有限公司 parallel control method
CN104467901A (en) * 2013-09-25 2015-03-25 联想(北京)有限公司 Antenna multiplexing device and method and electronic device
CN105392163A (en) * 2014-08-27 2016-03-09 精工爱普生株式会社 Wireless communication device and wireless communication method
US20170094639A1 (en) * 2015-09-29 2017-03-30 Mediatek Singapore Pte. Ltd. Peer to peer wireless functionality between devices using white spaces
CN108055671A (en) * 2017-12-13 2018-05-18 深圳创维-Rgb电子有限公司 More equipment communication means, device, equipment and storage medium
CN108811100A (en) * 2017-05-04 2018-11-13 展讯通信(上海)有限公司 Working channel dispatching method and device, computer readable storage medium, terminal
CN108882295A (en) * 2013-10-14 2018-11-23 网件公司 For using work in the front-end module and Antenna Design of the wireless device of the WLAN module of different radio frequency band simultaneously
CN111050368A (en) * 2019-12-24 2020-04-21 Oppo(重庆)智能科技有限公司 Network transmission control method, device, terminal equipment and storage medium
US10743358B1 (en) * 2019-12-11 2020-08-11 Cypress Semiconductor Corporation Dedicated TDLS link in off-channel 5 GHz band using RSDB

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102958080A (en) * 2011-08-17 2013-03-06 联发科技股份有限公司 parallel control method
CN104467901A (en) * 2013-09-25 2015-03-25 联想(北京)有限公司 Antenna multiplexing device and method and electronic device
CN108882295A (en) * 2013-10-14 2018-11-23 网件公司 For using work in the front-end module and Antenna Design of the wireless device of the WLAN module of different radio frequency band simultaneously
CN105392163A (en) * 2014-08-27 2016-03-09 精工爱普生株式会社 Wireless communication device and wireless communication method
US20170094639A1 (en) * 2015-09-29 2017-03-30 Mediatek Singapore Pte. Ltd. Peer to peer wireless functionality between devices using white spaces
CN108811100A (en) * 2017-05-04 2018-11-13 展讯通信(上海)有限公司 Working channel dispatching method and device, computer readable storage medium, terminal
CN108055671A (en) * 2017-12-13 2018-05-18 深圳创维-Rgb电子有限公司 More equipment communication means, device, equipment and storage medium
US10743358B1 (en) * 2019-12-11 2020-08-11 Cypress Semiconductor Corporation Dedicated TDLS link in off-channel 5 GHz band using RSDB
CN111050368A (en) * 2019-12-24 2020-04-21 Oppo(重庆)智能科技有限公司 Network transmission control method, device, terminal equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ZAWAR SHAH: "Throughput Comparison of IEEE 802.11ac and IEEE 802.11n in an Indoor Environment with Interference", "THROUGHPUT COMPARISON OF IEEE 802.11AC AND IEEE 802.11N IN AN INDOOR ENVIRONMENT WITH INTERFERENCE", ZAWAR SHAH, "2015 INTERNATIONAL TELECOMMUNICATION NETWORKS AND APPLICATIONS CONFERENCE (ITNAC)", 2016-1-4, 4 January 2016 (2016-01-04) *
毛澄宇: "基于Android终端的Wi-Fi中继功能的研究和实现", "基于ANDROID终端的WI-FI中继功能的研究和实现",毛澄宇,《电子质量》,2016-01-20, no. 1, 20 January 2016 (2016-01-20) *
郭新军: "无线局域网共存性解决方案研究", "无线局域网共存性解决方案研究",郭新军,《河南科学》,2007-02-28, vol. 25, no. 1, 8 February 2007 (2007-02-08) *
黎育才: "《wi-fi高性能投屏与游戏样机研发》,黎育才,《硕士电子期刊》,2021.5.1", 1 May 2021 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115883625A (en) * 2021-09-28 2023-03-31 海信视像科技股份有限公司 Display device and screen projection processing method
CN113965787A (en) * 2021-10-19 2022-01-21 深圳创维-Rgb电子有限公司 Picture sharing method and device, display terminal and storage medium
CN113965787B (en) * 2021-10-19 2023-11-17 深圳创维-Rgb电子有限公司 Screen sharing method, device, display terminal and storage medium
WO2023142655A1 (en) * 2022-01-27 2023-08-03 海信视像科技股份有限公司 Screen projection method, display device, and intelligent device
CN115226126A (en) * 2022-06-13 2022-10-21 北京小米移动软件有限公司 Channel occupation method, device and storage medium
CN115665468A (en) * 2022-09-21 2023-01-31 海信视像科技股份有限公司 Screen projection method and device and electronic equipment
WO2025015933A1 (en) * 2023-07-17 2025-01-23 荣耀终端有限公司 Communication method, electronic device, and storage medium
WO2025026310A1 (en) * 2023-08-01 2025-02-06 华为技术有限公司 Communication control method and system, and related apparatus

Similar Documents

Publication Publication Date Title
CN112702803A (en) Channel determination method and device, terminal equipment and computer readable storage medium
US10098166B2 (en) Method and device for wireless connection establishment
US20160210105A1 (en) Method, device and system for projection on screen
EP3226432B1 (en) Method and devices for sharing media data between terminals
WO2019113883A1 (en) User equipment power-saving method and device, user equipment and base station
CN110337825B (en) Service switching method and device
CN105578391B (en) Information processing method, device and system and terminal equipment
WO2020223931A1 (en) Cell handover method and apparatus, handover configuration method and apparatus, and user equipment
US20240179761A1 (en) Communication method and device, and storage medium
CN103379304A (en) Video call switching method and system
CN110945926B (en) Connection establishment method and device, base station, user equipment and core network equipment
CN108476479A (en) Accidental access method and device, user equipment and computer readable storage medium
RU2663355C1 (en) Method and device for installing connection for service
CN113329389A (en) Service providing method, device, equipment and storage medium based on Bluetooth connection
CN110933773B (en) Link monitoring method and device
CN110100478B (en) Network configuration method, network measurement method and device
EP4344164A1 (en) Call processing method, storage medium, and electronic device
US12185343B2 (en) Methods and apparatuses for determining network allocation vector, and storage media
CN110945941B (en) Identification sending method, identification receiving method, information sending method and device
WO2022052070A1 (en) Connection control method and connection control apparatus
WO2022036610A1 (en) Communication method and device, and storage medium
CN115552947B (en) Cause determination method and device, cause indication method and device
WO2023077318A1 (en) Communication method and apparatus based on auxiliary resource set, and storage medium
CN113678548B (en) Frequency band indication, determination method and device, communication device and storage medium
US20240349036A1 (en) Gap request method and apparatus, request receiving method and apparatus, and communication apparatus and storage medium

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