CN111050368A - Network transmission control method, device, terminal equipment and storage medium - Google Patents

Network transmission control method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111050368A
CN111050368A CN201911352408.4A CN201911352408A CN111050368A CN 111050368 A CN111050368 A CN 111050368A CN 201911352408 A CN201911352408 A CN 201911352408A CN 111050368 A CN111050368 A CN 111050368A
Authority
CN
China
Prior art keywords
connection
terminal device
wifi
channel
transmission control
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
CN201911352408.4A
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201911352408.4A priority Critical patent/CN111050368A/en
Publication of CN111050368A publication Critical patent/CN111050368A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link

Abstract

The invention discloses a network transmission control method, a device, a terminal device and a storage medium, wherein the method comprises the following steps: detecting whether the working channels of the WIFI connection and the P2P connection of the terminal equipment are the same or not; when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located. According to the scheme of the invention, when the P2P is connected and then the WIFI is connected to work in different channels, the P2P can be actively switched to the working channel where the WIFI is located, the purpose of working in the same channel is achieved, the experience of a user when the WIFI and the P2P are used simultaneously is improved, the data transmission performance of internet surfing, screen projection and the like in the scene is improved, and the competitiveness of a product in the P2P use scene is improved.

Description

Network transmission control method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of network transmission technologies, and in particular, to a network transmission control method, apparatus, terminal device, and storage medium.
Background
At present, the situation that the working channels of WIFI of a mobile phone are different in the coexistence of STA (site) and P2P (Peer to Peer, end to end) can only ensure that the mobile phone can work in the same channel when connected to WIFI first and then connected to P2P, but cannot ensure that the mobile phone works in the same channel when connected to P2P first and then connected to WIFI, at the moment, the mobile phone needs to continuously switch between different channels to work back and forth, and a situation with a high throughput demand can cause a phenomenon that some user experiences are not good. For example, the mobile phone is connected to P2P first and then connected to WIFI, and then works in different channels, and at this time, when a screen is projected or data is transmitted by using P2P, WIFI is downloaded or live broadcast and other scenes are watched, the problems of blockage, blockage of a screen, screen splash, unclear sound and the like occur.
Disclosure of Invention
The invention mainly aims to provide a network transmission control method, a network transmission control device, terminal equipment and a storage medium, so as to ensure that a user terminal network works in the same channel when a user uses WIFI and P2P functions simultaneously, and improve the network data transmission performance in the scene.
In order to achieve the above object, the present invention provides a network transmission control method, which is applied to a terminal device having WIFI and P2P functions, and includes:
detecting whether the working channels of the WIFI connection and the P2P connection of the terminal equipment are the same or not;
when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located.
Optionally, the switching the working channel of the P2P connection of the terminal device to the working channel of the WIFI connection of the terminal device when detecting that the working channels of the WIFI connection and the P2P connection of the terminal device are different includes:
when the working channel where the WIFI connection and the P2P connection of the terminal device are detected to be different, disconnecting the P2P connection between the terminal device and the opposite terminal device;
reestablishing the P2P connection between the terminal device and the opposite terminal device, so that the P2P connection between the terminal device and the opposite terminal device works on the WIFI working channel of the terminal device.
Optionally, the switching the working channel of the P2P connection of the terminal device to the working channel of the WIFI connection of the terminal device when detecting that the working channels of the WIFI connection and the P2P connection of the terminal device are different includes:
when the fact that working channels where the WIFI connection and the P2P connection of the terminal device are different is detected, sending a channel switching request to opposite-end equipment connected with the terminal device P2P to request switching to the working channel where the WIFI connection of the terminal device is located;
and after receiving the channel switching confirmation response message fed back by the opposite terminal equipment, switching the working channel where the P2P connection of the terminal equipment is located to the working channel where the WIFI connection of the terminal equipment is located.
Optionally, after receiving the channel switching confirmation response message fed back by the peer device, the step of switching the working channel where the P2P connection of the terminal device is located to the working channel where the WIFI connection of the terminal device is located further includes:
and interacting a confirmation message of successful channel switching with the opposite terminal equipment.
Optionally, the channel switching request is an action frame notification message.
Optionally, the data structure of the action frame notification message includes: the ID, length of action frame, whether the p2p channel switching function supports, current channel and target channel for switching.
Optionally, before the step of detecting whether the working channels where the WIFI connection and the P2P connection of the terminal device are located are the same, the method further includes:
receiving a connection operation request of a user on the terminal device, establishing P2P connection between the terminal device and an opposite terminal device according to the connection operation request of the user, and then establishing WIFI connection of the terminal device.
In addition, an embodiment of the present invention further provides a network transmission control apparatus, where the network transmission control apparatus is applied to a terminal device having WIFI and P2P functions, and the network transmission control apparatus includes:
the detection module is used for detecting whether the working channels where the WIFI connection and the P2P connection of the terminal equipment are located are the same or not;
and the switching module is used for switching the working channel where the P2P connection of the terminal equipment is located to the working channel where the WIFI connection of the terminal equipment is located when the working channel where the WIFI connection of the terminal equipment and the working channel where the P2P connection are located are detected to be different.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device has WIFI and P2P functions, and the terminal device includes a memory, a processor, and a network transmission control program stored in the memory and executable on the processor, where the network transmission control program, when executed by the processor, implements the steps of the network transmission control method described above.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a network transmission control program is stored, and when executed by a processor, the computer-readable storage medium implements the steps of the network transmission control method described above.
According to the network transmission control method, the network transmission control device, the terminal equipment and the storage medium, whether the working channels where the WIFI connection of the terminal equipment and the P2P connection are located are the same or not is detected; when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located. Therefore, by means of the scheme, when the P2P is connected and then the WIFI works on different channels, the P2P can be actively switched to the working channel where the WIFI is located, the purpose of working on the same channel is achieved, the experience of a user when the WIFI and the P2P are used simultaneously is improved, the data transmission performance of internet surfing, screen projection and the like in the scene is improved, and the competitiveness of a product in the P2P use scene is improved.
Drawings
Fig. 1 is a functional block diagram of a terminal device to which a network transmission control apparatus according to the present invention belongs;
fig. 2 is a flowchart illustrating an exemplary embodiment of a network transmission control method according to the present invention;
FIG. 3 is a schematic flow diagram illustrating a refinement of an embodiment of the present invention;
FIG. 4 is a diagram illustrating a data structure of an action frame notification message according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a network transmission control method according to another exemplary embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: whether the working channels where the WIFI connection and the P2P connection of the terminal equipment are located are the same or not is detected; when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located. Therefore, by means of the scheme, when the P2P is connected and then the WIFI works on different channels, the P2P can be actively switched to the working channel where the WIFI is located, the purpose of working on the same channel is achieved, the experience of a user when the WIFI and the P2P are used simultaneously is improved, the data transmission performance of internet surfing, screen projection and the like in the scene is improved, and the competitiveness of a product in the P2P use scene is improved.
The main technical terms related to the embodiments of the present application include:
P2P (Peer-to-Peer) is also called Peer-to-Peer technology, and is an internet system that does not have a central server and relies on user groups (peers) to exchange information. Different from a central network system with a central server, each user side of the peer-to-peer network is a node and has the function of the server, and any node cannot directly find other nodes and must rely on the user group to exchange information. The peer-to-peer network is also called a working group, each computer on the network has the same function, and has no master and slave, and one computer can be used as a server to set shared resources for other computers in the network, can be used as a working station, and has no special server or special working station. Peer-to-peer networks are a common networking approach for small local area networks.
An SCC scene: a Single-Channel content, which is the same Channel scene, in the present application, specifically, the WIFI connection and the P2P connection work in the same Channel;
MCC scenario: Multi-Channel content, different Channel scenarios, specifically refer to that the WIFI connection and the P2P connection work in different channels in this application.
STA (Station): each terminal connected to a wireless network, such as a laptop, PDA, and other user devices that may be networked, may be referred to as a station.
The STA station is generally a client in a Wireless Local Area Network (WLAN), and may be a computer equipped with a wireless network card, or a smartphone with a WiFi module, and may be mobile or fixed. The access process of the STA in the wireless environment comprises the following steps: authenticating whether the STA has authority and establishing a link with an Access Point (AP); the STA cannot access the WLAN; and after the STA accesses the WLAN network, the authority of authenticating that the STA can not access the network.
In the process of establishing a link between the STA and the AP, when the STA scans an accessible Service Set Identifier (SSID) through a Beacon (Beacon) frame or a probe response (probe) frame, the STA selects an appropriate SSID for access according to a Received Signal Strength Indication (RSSI) of the Beacon frame or the probe response frame.
Any device accessing the wireless AP may be referred to as an STA station, that is, a device accessing the router at ordinary times.
The embodiment of the invention considers that the related technology can only ensure that the mobile phone can work in the same channel when being connected with WIFI first and then being connected with P2P, but cannot ensure that the mobile phone works in the same channel when being connected with P2P first and then being connected with WIFI, because the WIFI connection at the mobile phone end is realized through a router, the WIFI working channel is fixed, if the mobile phone is connected with WIFI first, the working channel is fixed, and when being connected with P2P, the WIFI working channel is still selected to work; however, if the P2P is connected first and then the WIFI is connected, the general probability will be that the two connections operate on different channels, because the P2P operating channels have various options, which are different according to different channel waveform frequencies, when the P2P is connected first, two ends will negotiate to select one channel, which is not necessarily a fixed operating channel during the WIFI connection, and therefore, when the WIFI is connected again, two connections operate on different channels.
At this time, different channels need to be switched back and forth continuously, and some phenomena of poor user experience can be caused in scenes with large throughput requirements. For example, when a screen is projected or data is transmitted by using P2P, WIFI is downloaded or live broadcast is watched, the problems of stuck screen, blurred screen, unclear sound and the like may occur.
Based on this, the embodiment of the present invention provides a solution, which actively switches a channel to a WIFI working channel when P2P is connected, so as to ensure that a user terminal network works in the same channel when the user uses WIFI and P2P functions simultaneously, and improve network data transmission performance in this scenario.
Specifically, referring to fig. 1, fig. 1 is a functional module schematic diagram of a terminal device to which the network transmission control apparatus of the present invention belongs. The network transmission control device may be a device capable of performing data processing, which is independent from the terminal device, and may be carried on the terminal device in the form of hardware or software. The terminal device may be a mobile terminal such as a mobile phone, a tablet computer, or a fixed terminal, and in the embodiment of the present invention, a mobile terminal such as a mobile phone is used as an example, but not limited thereto.
In this embodiment, the terminal to which the network transmission control apparatus belongs at least includes an output module 110, a first processor 120, a first memory 130 and a first communication module 140.
The first memory 130 stores a first operating system and a network transmission control program, and the network transmission control apparatus may store information such as a working channel where the detected WIFI connection and P2P connection of the terminal device are located in the first memory 130, and may also store interaction information between the terminal device and the peer device in the first memory 130; the output module 110 may be a display screen, a speaker, etc., and the display screen may display a current network connection condition, a working channel condition, an interaction condition between the terminal device and the peer device, etc. The first communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the first communication module 140.
Wherein the network transmission control program in the first memory 130 when executed by the processor implements the steps of:
detecting whether the working channels of the WIFI connection and the P2P connection of the terminal equipment are the same or not;
when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located.
Further, the network transmission control program in the first memory 130 when executed by the processor further implements the steps of:
when the working channel where the WIFI connection and the P2P connection of the terminal device are detected to be different, disconnecting the P2P connection between the terminal device and the opposite terminal device;
reestablishing the P2P connection between the terminal device and the opposite terminal device, so that the P2P connection between the terminal device and the opposite terminal device works on the WIFI working channel of the terminal device.
Further, the network transmission control program in the first memory 130 when executed by the processor further implements the steps of:
when the fact that working channels where the WIFI connection and the P2P connection of the terminal device are different is detected, sending a channel switching request to opposite-end equipment connected with the terminal device P2P to request switching to the working channel where the WIFI connection of the terminal device is located;
and after receiving the channel switching confirmation response message fed back by the opposite terminal equipment, switching the working channel where the P2P connection of the terminal equipment is located to the working channel where the WIFI connection of the terminal equipment is located.
Further, the network transmission control program in the first memory 130 when executed by the processor further implements the steps of:
and interacting a confirmation message of successful channel switching with the opposite terminal equipment.
Further, the network transmission control program in the first memory 130 when executed by the processor further implements the steps of:
receiving a connection operation request of a user on the terminal device, establishing P2P connection between the terminal device and an opposite terminal device according to the connection operation request of the user, and then establishing WIFI connection of the terminal device.
According to the scheme, whether the working channels where the WIFI connection of the terminal device and the P2P connection are located are the same or not is detected; when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located. Therefore, by means of the scheme, when the P2P is connected and then the WIFI works on different channels, the P2P can be actively switched to the working channel where the WIFI is located, the purpose of working on the same channel is achieved, the experience of a user when the WIFI and the P2P are used simultaneously is improved, the data transmission performance of internet surfing, screen projection and the like in the scene is improved, and the competitiveness of a product in the P2P use scene is improved.
Based on the above terminal device architecture but not limited to the above terminal device architecture, embodiments of the method of the present invention are presented.
Referring to fig. 2, fig. 2 is a flowchart illustrating a network transmission control method according to an exemplary embodiment of the present invention. In this embodiment, the network transmission control method is applied to a terminal device having WIFI and P2P functions, and includes:
step S101, detecting whether the working channels of the WIFI connection and the P2P connection of the terminal equipment are the same or not;
the method execution main body in this embodiment may be a network transmission control device, or may be a terminal device having the functions of WIFI and P2P, which is exemplified by the terminal device in this embodiment.
In order to ensure that when the user uses the WIFI and P2P functions simultaneously, the WIFI and P2P networks of the user terminal device operate on the same channel, and the network data transmission performance under the scene is improved, in this embodiment, whether the working channel where the WIFI connection and the P2P connection of the terminal device are located are the same may be detected in real time, so that when the working channel where the WIFI connection and the P2P connection of the terminal device are located are detected to be different, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located.
The main reason why the working channels of the WIFI connection and the P2P connection of the terminal device are different is that when a user uses the terminal device, the P2P connection between the terminal device and the opposite terminal device is established first, and then the WIFI connection of the terminal device is established, in this case, the working channels belong to the MCC scenarios in which the WIFI connection and the P2P connection work in different channels.
Step S102, when the fact that the working channels of the WIFI connection and the P2P connection of the terminal equipment are different is detected, the working channel of the P2P connection of the terminal equipment is switched to the working channel of the WIFI connection of the terminal equipment.
Specifically, as an embodiment, when detecting that the working channels where the WIFI connection and the P2P connection of the terminal device are located are different, disconnecting the P2P connection between the terminal device and the peer device;
reestablishing the P2P connection between the terminal device and the peer device, so that the P2P connection between the terminal device and the peer device works on the WIFI working channel of the terminal device, that is, the MCC scene of the terminal device is converted into the SCC scene.
As another embodiment, when detecting that the working channels where the WIFI connection and the P2P of the terminal device are located are different, sending a channel switching request to the peer device connected to the terminal device P2P, where the channel switching request carries channel information to be switched, that is, requests to switch to the working channel where the WIFI connection of the terminal device is located;
and after receiving the channel switching confirmation response message fed back by the opposite terminal equipment, switching the working channel where the P2P connection of the terminal equipment is located to the working channel where the WIFI connection of the terminal equipment is located.
And then, interacting a confirmation message of successful channel switching between the terminal equipment and the opposite terminal equipment.
In the above solution, the channel switching request may be an action frame notification message, and may also be a nulldata frame notification message, as long as the channel switching request is a data packet for implementing the request.
The following describes in detail a scenario of switching a working channel when a mobile phone realizes WIFI connection and P2P connection, taking a channel switching request as an action frame notification message as an example:
as shown in fig. 3, the mobile phone terminal establishes a P2P connection with another device terminal as the GO terminal, and meanwhile, the mobile phone terminal opens a WIFI connection, and the specific processing flow is as follows:
firstly, a mobile phone end detects whether working channels where the WIFI connection and the P2P connection of the terminal device are the same, and when the working channels where the WIFI connection and the P2P connection of the terminal device are different, an action frame notification message is sent to other device ends connected with the P2P of the terminal device to notify an opposite end of which channel to switch to, namely, to request to switch to the working channel where the WIFI connection of the terminal device is located.
After receiving the action frame notification message sent by the terminal device, if the opposite terminal device confirms that the working channel where the WIFI connection of the terminal device is located can be switched to, the opposite terminal device sends an ack response message to the terminal device to inform that the terminal device can be switched to the working channel where the WIFI connection of the terminal device is located.
And after receiving the channel switching confirmation response message fed back by the opposite terminal equipment, the terminal equipment switches the working channel where the P2P connection of the terminal equipment is located to the working channel where the WIFI connection of the terminal equipment is located.
Then, after a preset time (for example, 100ms), the terminal device sends a confirmation message of successful channel switching to the peer device on a new channel, and the peer device also sends a confirmation message of successful channel switching, and in this way, the two are interacted three times, and a confirmation message of successful channel switching is interacted between the two.
Wherein, the data structure of the action frame notification message may include: the ID, length of action frame, whether the p2p channel switching function supports, current channel and target channel for switching. Specifically, the data structure of the action frame notification message may be as shown in fig. 4:
ID is the element ID number;
len: action frame length;
flag: whether the p2p channel switching function is supported;
reserved, Reserved byte;
payload: the first two bytes are the current channel and the target channel for the handover.
According to the scheme, whether the working channels where the WIFI connection and the P2P connection of the terminal device are located are the same or not is detected; when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located. Therefore, by means of the scheme, when the P2P is connected and then the WIFI works on different channels, the P2P can be actively switched to the working channel where the WIFI is located, the purpose of working on the same channel is achieved, the experience of a user when the WIFI and the P2P are used simultaneously is improved, the data transmission performance of internet surfing, screen projection and the like in the scene is improved, and the competitiveness of a product in the P2P use scene is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a network transmission control method according to another exemplary embodiment of the present invention. Based on the embodiment shown in fig. 2, before detecting whether the working channels where the WIFI connection and the P2P of the terminal device are located are the same in step S101, the method further includes:
step S100, receiving a connection operation request of a user on the terminal device, establishing a P2P connection between the terminal device and an opposite terminal device according to the connection operation request of the user, and then establishing a WIFI connection of the terminal device.
Compared with the embodiment shown in fig. 2, this embodiment further includes a scheme that the terminal device establishes the P2P connection and the WIFI connection successively.
Specifically, the application scenario of the present embodiment includes a solution that the terminal device establishes the P2P connection first and then establishes the WIFI connection, so that the P2P connection and the WIFI work in different channels.
In the scene, a user can connect the P2P from the setting interface of the terminal device first and then connect the WIFI; and when the terminal equipment detects that the two connections do not work in one channel, requesting the opposite terminal to switch to the channel where the WIFI is located.
Compared with the prior art, in the scheme of the embodiment, if the terminal equipment is connected with the P2P first and then connected with the WIFI, the terminal equipment can actively request to switch the working channel connected with the P2P to the working channel where the WIFI is located, and the purpose of working on the same channel is achieved, so that the user experience when the WIFI and the P2P function are used simultaneously is improved, the internet surfing and screen projection transmission performance under the scene is improved, the MCC scene is changed into the SCC scene, and the competitiveness of the product in the P2P use scene is improved.
In addition, an embodiment of the present invention further provides a network transmission control apparatus, where the network transmission control apparatus is applied to a terminal device having WIFI and P2P functions, and the network transmission control apparatus includes:
the detection module is used for detecting whether the working channels where the WIFI connection and the P2P connection of the terminal equipment are located are the same or not;
and the switching module is used for switching the working channel where the P2P connection of the terminal equipment is located to the working channel where the WIFI connection of the terminal equipment is located when the working channel where the WIFI connection of the terminal equipment and the working channel where the P2P connection are located are detected to be different.
For the principle and implementation process of implementing network transmission control in this embodiment, please refer to the above embodiments, which are not described herein again.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device has WIFI and P2P functions, and the terminal device includes a memory, a processor, and a network transmission control program stored in the memory and executable on the processor, where the network transmission control program, when executed by the processor, implements the steps of the network transmission control method according to the above embodiment.
Since the network transmission control program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and details are not repeated herein.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a network transmission control program is stored, and when the network transmission control program is executed by a processor, the steps of the network transmission control method according to the above embodiment are implemented.
Since the network transmission control program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and details are not repeated herein.
Compared with the prior art, the network transmission control method, the network transmission control device, the terminal device and the storage medium provided by the embodiment of the invention detect whether the working channels of the WIFI connection and the P2P connection of the terminal device are the same or not; when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located. Therefore, by means of the scheme, when the P2P is connected and then the WIFI works on different channels, the P2P can be actively switched to the working channel where the WIFI is located, the purpose of working on the same channel is achieved, the experience of a user when the WIFI and the P2P are used simultaneously is improved, the data transmission performance of internet surfing, screen projection and the like in the scene is improved, and the competitiveness of a product in the P2P use scene is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A network transmission control method, wherein the network transmission control method is applied to a terminal device having WIFI and peer-to-peer P2P functions, and the network transmission control method comprises:
detecting whether the working channels of the WIFI connection and the P2P connection of the terminal equipment are the same or not;
when the fact that the working channel where the WIFI connection and the P2P connection of the terminal device are located are different is detected, the working channel where the P2P connection of the terminal device is located is switched to the working channel where the WIFI connection of the terminal device is located.
2. The network transmission control method according to claim 1, wherein the step of switching the operating channel of the P2P connection of the terminal device to the operating channel of the WIFI connection of the terminal device when detecting that the operating channels of the WIFI connection and the P2P connection of the terminal device are different comprises:
when the working channel where the WIFI connection and the P2P connection of the terminal device are detected to be different, disconnecting the P2P connection between the terminal device and the opposite terminal device;
reestablishing the P2P connection between the terminal device and the opposite terminal device, so that the P2P connection between the terminal device and the opposite terminal device works on the WIFI working channel of the terminal device.
3. The network transmission control method according to claim 1, wherein the step of switching the operating channel of the P2P connection of the terminal device to the operating channel of the WIFI connection of the terminal device when detecting that the operating channels of the WIFI connection and the P2P connection of the terminal device are different comprises:
when the fact that working channels where the WIFI connection and the P2P connection of the terminal device are different is detected, sending a channel switching request to opposite-end equipment connected with the terminal device P2P to request switching to the working channel where the WIFI connection of the terminal device is located;
and after receiving the channel switching confirmation response message fed back by the opposite terminal equipment, switching the working channel where the P2P connection of the terminal equipment is located to the working channel where the WIFI connection of the terminal equipment is located.
4. The network transmission control method according to claim 3, wherein after the step of switching the working channel where the P2P connection of the terminal device is located to the working channel where the WIFI connection of the terminal device is located after receiving the channel switching confirmation response message fed back by the peer device, the method further comprises:
and interacting a confirmation message of successful channel switching with the opposite terminal equipment.
5. The network transmission control method according to claim 3, wherein the channel switch request is an action frame notification message.
6. The network transmission control method according to claim 5, wherein the data structure of the action frame notification message comprises: the ID, length of action frame, whether the p2p channel switching function supports, current channel and target channel for switching.
7. The network transmission control method according to any one of claims 1 to 6, wherein the step of detecting whether the working channels in which the WIFI connection and the P2P connection of the terminal device are located are the same further comprises:
receiving a connection operation request of a user on the terminal device, establishing P2P connection between the terminal device and an opposite terminal device according to the connection operation request of the user, and then establishing WIFI connection of the terminal device.
8. A network transmission control apparatus, wherein the network transmission control apparatus is applied to a terminal device having WIFI and P2P functions, the network transmission control apparatus comprising:
the detection module is used for detecting whether the working channels where the WIFI connection and the P2P connection of the terminal equipment are located are the same or not;
and the switching module is used for switching the working channel where the P2P connection of the terminal equipment is located to the working channel where the WIFI connection of the terminal equipment is located when the working channel where the WIFI connection of the terminal equipment and the working channel where the P2P connection are located are detected to be different.
9. A terminal device having WIFI and P2P functionalities, the terminal device comprising a memory, a processor and a network transmission control program stored on the memory and executable on the processor, the network transmission control program when executed by the processor implementing the steps of the network transmission control method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a network transmission control program, which when executed by a processor implements the steps of the network transmission control method according to any one of claims 1-7.
CN201911352408.4A 2019-12-24 2019-12-24 Network transmission control method, device, terminal equipment and storage medium Pending CN111050368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911352408.4A CN111050368A (en) 2019-12-24 2019-12-24 Network transmission control method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911352408.4A CN111050368A (en) 2019-12-24 2019-12-24 Network transmission control method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111050368A true CN111050368A (en) 2020-04-21

Family

ID=70240106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911352408.4A Pending CN111050368A (en) 2019-12-24 2019-12-24 Network transmission control method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111050368A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954447A (en) * 2021-01-27 2021-06-11 四川长虹电器股份有限公司 Method for following channel under Miracast background resident condition

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970686A (en) * 2011-09-02 2013-03-13 上海无线通信研究中心 Method for long term evolution device to device (LTED2D) communication working on ISM frequency band
US20130065627A1 (en) * 2011-09-14 2013-03-14 Samsung Electronics Co. Ltd. Method for using legacy wi-fi and wi-fi p2p simultaneously
CN103780672A (en) * 2012-10-22 2014-05-07 三星电子株式会社 Wi-fi p2p communication terminal device and communication method thereof
CN105392163A (en) * 2014-08-27 2016-03-09 精工爱普生株式会社 Wireless communication device and wireless communication method
CN109155948A (en) * 2016-03-30 2019-01-04 Idac控股公司 For executing the method and apparatus of physical layer moving process

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970686A (en) * 2011-09-02 2013-03-13 上海无线通信研究中心 Method for long term evolution device to device (LTED2D) communication working on ISM frequency band
US20130065627A1 (en) * 2011-09-14 2013-03-14 Samsung Electronics Co. Ltd. Method for using legacy wi-fi and wi-fi p2p simultaneously
CN103780672A (en) * 2012-10-22 2014-05-07 三星电子株式会社 Wi-fi p2p communication terminal device and communication method thereof
CN105392163A (en) * 2014-08-27 2016-03-09 精工爱普生株式会社 Wireless communication device and wireless communication method
CN109155948A (en) * 2016-03-30 2019-01-04 Idac控股公司 For executing the method and apparatus of physical layer moving process

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954447A (en) * 2021-01-27 2021-06-11 四川长虹电器股份有限公司 Method for following channel under Miracast background resident condition

Similar Documents

Publication Publication Date Title
US9654907B2 (en) System, method and apparatus for wireless network connection using near field communication
CA2655603C (en) Network selection
US11102702B2 (en) Method for establishing network clusters between networked devices
CN104205933B (en) Seamless transition of cellular phone from cellular communication to Wi-Fi communication
US8077684B2 (en) Personal area network implementation within an infrastructure network
US9781579B2 (en) Method and device for realizing terminal WIFI talkback
JP2007189658A (en) Method for setting radio security
JP2015534404A (en) Channel switching method, apparatus, and device
JP7467669B2 (en) Connection establishment method, communication device, and system
EP4185009A1 (en) Packet forwarding method, apparatus and system
CN105451368B (en) Communication method and device
JP2018515013A (en) Device manager for service routing
CN113455026A (en) Access method and communication device
CN114503777A (en) Direct communication session management method and apparatus in wireless communication system
WO2016112674A1 (en) Communication method, terminal, system and computer storage medium
WO2021047454A1 (en) Location information acquisition method, location service configuration method, and communication device
CN111050368A (en) Network transmission control method, device, terminal equipment and storage medium
US20170163737A1 (en) Wireless station and method for managing a multi-band session in wi-fi direct services
EP3864865B1 (en) Apparatus and method of performing a group communication
KR20210055537A (en) Method and apparatus for traffic steering for local processing
EP3817330B1 (en) Media interaction method in dect network cluster
EP3905736A1 (en) Device discovery method, apparatus, and system
US20160308600A1 (en) Base station apparatus, terminal apparatus, and wireless access system
US20230308971A1 (en) Methods and apparatus for supporting switching of traffic corresponding to a communication session between two non-3gpp access paths
CN113965516B (en) Method and device for transmitting data

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200421