CN114615544B - Screen channel optimization method, device, equipment and computer readable storage medium - Google Patents

Screen channel optimization method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114615544B
CN114615544B CN202210266689.7A CN202210266689A CN114615544B CN 114615544 B CN114615544 B CN 114615544B CN 202210266689 A CN202210266689 A CN 202210266689A CN 114615544 B CN114615544 B CN 114615544B
Authority
CN
China
Prior art keywords
channel
screen
connection interface
working
negotiation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210266689.7A
Other languages
Chinese (zh)
Other versions
CN114615544A (en
Inventor
苏洪静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202210266689.7A priority Critical patent/CN114615544B/en
Publication of CN114615544A publication Critical patent/CN114615544A/en
Application granted granted Critical
Publication of CN114615544B publication Critical patent/CN114615544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4367Establishing a secure communication between the client and a peripheral device or smart card
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64784Data processing by the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a screen projection channel optimization method, device and equipment and a computer readable storage medium, and belongs to the technical field of screen projection. The invention obtains the negotiation result of networking negotiation with the screen throwing end; judging whether a working channel of a first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result; if the working channel of the first connection interface is the optimal channel, the negotiation result is saved; and transmitting the screen projection data by using the optimal channel according to the negotiation result. The invention solves the problem that the same equipment always performs data transmission on a channel with lower efficiency in the screen throwing process, and achieves the technical effect of improving the data transmission efficiency.

Description

Screen channel optimization method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of screen projection technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for screen projection channel optimization.
Background
With the development and popularization of internet technology, the age of everything interconnection is also coming, and various home appliances also realize the function of connecting to the network. At present, a WIFI (Wireless-Fidelity) module is generally configured in the smart television to realize the networking function of the television, and meanwhile, in order to realize higher transmission efficiency, a part of televisions are integrated with a WIFI module with dual receiving and dual transmitting functions.
When the television end performs mirror image screen-throwing networking negotiation with other equipment, a channel negotiation result is usually automatically stored, so that the renegotiation time can be saved when the same equipment is used for screen-throwing again. However, if the television end is configured with the dual WIFI module, a channel scheme used by the first negotiation result may be a non-optimal scheme, that is, a situation that there is mutual interference between a working channel used by the television end and a working channel connected to an external network during the screen-throwing process. And at the moment, the television end automatically saves the negotiation result, so that when the television end is connected with the same equipment in a screen-throwing way, the channel scheme is continuously used for data transmission, and the problem that the same equipment always transmits data on a channel with lower efficiency in the screen-throwing process occurs.
Disclosure of Invention
The invention mainly aims to provide a screen-throwing channel optimization method, device, equipment and a computer readable storage medium, and aims to solve the problem that the same equipment always performs data transmission on a channel with lower efficiency in the screen throwing process.
In order to achieve the above purpose, the present invention provides a screen-projection channel optimization method, which comprises the following steps:
obtaining a negotiation result of networking negotiation with a screen throwing end;
judging whether a working channel of a first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result;
if the working channel of the first connection interface is the optimal channel, the negotiation result is saved;
And transmitting the screen projection data by using the optimal channel according to the negotiation result.
Optionally, after the step of determining whether the working channel of the first connection interface between the first connection interface and the screen-throwing end is the optimal channel according to the negotiation result, the method further includes:
And if the working channel of the first connection interface is not the optimal channel, discarding the negotiation result.
Optionally, the method further comprises:
and carrying out networking negotiation with the screen throwing end according to the networking request initiated by the screen throwing end.
Optionally, the step of performing networking negotiation with the screen-throwing end according to the networking request initiated by the screen-throwing end includes:
and selecting a working channel of the first connection interface as a group manager in the process of establishing peer-to-peer network connection with the screen throwing end.
Optionally, the step of determining whether the working channel of the first connection interface between the first connection interface and the screen-throwing end is an optimal channel according to the negotiation result includes:
Acquiring a working channel of a second connection interface between the working channel and an external network;
Judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same frequency band;
And if the working channels do not belong to the same frequency band, judging that the working channel of the first connection interface is the optimal channel.
Optionally, after the step of determining whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same frequency band, the method further includes:
If the working channels belong to the same frequency band, judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same channel;
And if the working channels belong to the same channel, judging that the working channel of the first connection interface is the optimal channel.
Optionally, the step of determining whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same channel further includes:
And if the working channels do not belong to the same channel, judging that the working channel of the first connection interface is not the optimal channel.
In addition, the invention also provides a screen projection channel optimizing device, which comprises:
The acquisition module is used for acquiring a negotiation result of networking negotiation with the screen throwing end;
The judging module is used for judging whether the working channel of the first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result;
The storage module is used for storing the negotiation result if the working channel of the first connection interface is the optimal channel;
and the data transmission module is used for transmitting the screen projection data by using the optimal channel according to the negotiation result.
Optionally, the storage module is further configured to:
And if the working channel of the first connection interface is not the optimal channel, discarding the negotiation result.
Optionally, the apparatus further comprises:
and the networking module is used for carrying out networking negotiation with the screen throwing end according to the networking request initiated by the screen throwing end.
Optionally, the networking module is further configured to:
and selecting a working channel of the first connection interface as a group manager in the process of establishing peer-to-peer network connection with the screen throwing end.
Optionally, the judging module is further configured to:
Acquiring a working channel of a second connection interface between the working channel and an external network;
Judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same frequency band;
And if the working channels do not belong to the same frequency band, judging that the working channel of the first connection interface is the optimal channel.
Optionally, the judging module is further configured to:
If the working channels belong to the same frequency band, judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same channel;
And if the working channels belong to the same channel, judging that the working channel of the first connection interface is the optimal channel.
Optionally, the judging module is further configured to:
And if the working channels do not belong to the same channel, judging that the working channel of the first connection interface is not the optimal channel.
In addition, the invention also provides a screen projection channel optimizing device, which comprises: the system comprises a memory, a processor and a screen channel optimizing program stored in the memory and capable of running on the processor, wherein the screen channel optimizing program is configured to realize the steps of the screen channel optimizing method.
In addition, the invention also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a screen-throwing channel optimizing program, and the screen-throwing channel optimizing program realizes the steps of the screen-throwing channel optimizing method when being executed by a processor.
The invention obtains the negotiation result of networking negotiation with the screen throwing end; judging whether a working channel of a first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result; if the working channel of the first connection interface is the optimal channel, the negotiation result is saved; and transmitting the screen projection data by using the optimal channel according to the negotiation result. Before the negotiation result is stored, whether the working channel of the first connection interface of the screen throwing end is an optimal channel or not is judged, and the negotiation result is stored when the working channel is the optimal channel, so that the problem that the same equipment always performs data transmission on a channel with lower efficiency in the screen throwing process is solved, and the technical effect of improving the data transmission efficiency is achieved.
Drawings
FIG. 1 is a schematic diagram of a hardware running environment terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart of an embodiment of a method for optimizing a projected channel according to the present invention;
FIG. 3 is a schematic diagram of an application flow of an embodiment of the method for optimizing a screen-projection channel according to the present invention;
fig. 4 is a schematic diagram of the functional module structure of a projection channel optimizing device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context. The terms "or", "and/or", "including at least one of", and the like, as used herein, may be construed as inclusive, or mean any one or any combination.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
For a clearer understanding of technical features, objects, and effects of the present invention, a specific embodiment of the present invention will be described with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware running environment terminal device according to an embodiment of the present invention.
The terminal device in this embodiment is a terminal device with a dual WIFI module, for example, a terminal device such as a television, a mobile phone, a tablet computer, and the like.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a wireless fidelity interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the terminal device, and may include more or less components than illustrated, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a data storage module, a network communication module, a user interface module, and a projection channel optimization program may be included in the memory 1005 as one type of storage medium.
In the terminal device shown in fig. 1, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the terminal device of the present invention may be provided in the terminal device, and the terminal device calls the screen-cast channel optimization program stored in the memory 1005 through the processor 1001 and performs the following operations:
obtaining a negotiation result of networking negotiation with a screen throwing end;
judging whether a working channel of a first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result;
if the working channel of the first connection interface is the optimal channel, the negotiation result is saved;
And transmitting the screen projection data by using the optimal channel according to the negotiation result.
Further, the processor 1001 may be configured to invoke the on-screen channel optimization program stored in the memory 1005, and further perform the following operations:
And if the working channel of the first connection interface is not the optimal channel, discarding the negotiation result.
Further, the processor 1001 may be configured to invoke the on-screen channel optimization program stored in the memory 1005, and further perform the following operations:
and carrying out networking negotiation with the screen throwing end according to the networking request initiated by the screen throwing end.
Further, the processor 1001 may be configured to invoke the on-screen channel optimization program stored in the memory 1005, and further perform the following operations:
and selecting a working channel of the first connection interface as a group manager in the process of establishing peer-to-peer network connection with the screen throwing end.
Further, the processor 1001 may be configured to invoke the on-screen channel optimization program stored in the memory 1005, and further perform the following operations:
Acquiring a working channel of a second connection interface between the working channel and an external network;
Judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same frequency band;
And if the working channels do not belong to the same frequency band, judging that the working channel of the first connection interface is the optimal channel.
Further, the processor 1001 may be configured to invoke the on-screen channel optimization program stored in the memory 1005, and further perform the following operations:
If the working channels belong to the same frequency band, judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same channel;
And if the working channels belong to the same channel, judging that the working channel of the first connection interface is the optimal channel.
Further, the processor 1001 may be configured to invoke the on-screen channel optimization program stored in the memory 1005, and further perform the following operations:
And if the working channels do not belong to the same channel, judging that the working channel of the first connection interface is not the optimal channel.
Currently, in order to achieve higher data transmission efficiency, many terminal devices are integrated with dual-receiving and dual-transmitting WIFI modules, that is, the WIFI modules support real-time operation of 2.4G frequency bands and 5G frequency bands, rather than a time division multiplexing operation mode. When the terminal equipment integrates the module, the ideal state is that the screen-throwing connection interface of the terminal equipment and the screen-throwing end equipment and the interface connected with an external network work on different frequency bands when the screen throwing is performed, so that signal interference is reduced. However, in the actual channel negotiation process, the working channel negotiated by the terminal device screen-switching connection interface may interfere with the working channel of the interface connected to the external network. At this time, since the terminal device automatically saves the time of repeating the network negotiation, the channel negotiation result of the screen-on connection with the current device is automatically saved. Therefore, when the same equipment is screen-switched again, the stored channels with mutual interference are continuously used for data transmission, namely the problem that the same equipment always performs data transmission on the channels with lower efficiency in the screen-switched process exists.
In order to solve the above problems, the present invention provides a method for optimizing a screen-projection channel, comprising: obtaining a negotiation result of networking negotiation with a screen throwing end; judging whether a working channel of a first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result; if the working channel of the first connection interface is the optimal channel, the negotiation result is saved; and transmitting the screen projection data by using the optimal channel according to the negotiation result. According to the method, before the networking negotiation result is stored, whether the working channel is an optimal channel or not, namely whether the working channel is a channel with higher transmission efficiency is judged, and the negotiation result is stored only when the working channel is the optimal channel, so that the same equipment always uses the optimal channel for data transmission in the subsequent screen throwing process. The problem that the same equipment always performs data transmission on a channel with lower efficiency in the screen throwing process is solved, and the technical effect of improving the data transmission efficiency is achieved.
The embodiment of the invention provides a screen-projection channel optimization method, and referring to fig. 2, fig. 2 is a flow chart of an embodiment of the screen-projection channel optimization method of the invention.
In this embodiment, the method for optimizing the screen-projection channel includes:
step S10, obtaining a negotiation result of networking negotiation with the screen throwing end.
In this embodiment, the executing body is a screen-thrown end in the screen-throwing process, for example, when the mobile phone end performs mirror image screen-throwing on the television end through the Miracast technology, the screen-thrown end at this time is the television end, that is, the executing body is a television, and in addition, the screen-thrown end may also be called a receiving end. The networking negotiation refers to a negotiation process of network construction between the screen-throwing end and the screen-throwing end when the screen-throwing is performed, and the negotiation result mainly refers to a working channel of a screen-throwing connection interface selected after the screen-throwing end and the screen-throwing end complete the negotiation, wherein the screen-throwing connection interface is an interface for transmitting audio and video data to be played in the screen-throwing process.
Specifically, for example, as shown in fig. 3, after the networking negotiation is completed, a negotiation channel ChanP p0 (i.e. a working channel of a first connection interface to be described later) is recorded, and according to the recorded negotiation channel ChanP p0, a negotiation result of the networking negotiation with the screen-throwing end is obtained for further performing other steps in fig. 3.
And step S20, judging whether the working channel of the first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result.
In this embodiment, the first connection interface refers to a screen-throwing connection interface for performing data transmission between a screen-throwing end and a screen-thrown end, and the optimal channel is a working channel with higher data transmission efficiency and no interference with other network connection interfaces of the screen-throwing end.
It should be noted that, at this time, the screen-thrown end needs to be configured with a WIFI module for implementing dual receiving and dual transmitting, and in this case, the screen-thrown end will only have the mutual interference of the two interface working channels, so it is only necessary to determine whether the working channel of the first connection interface is an optimal channel.
Specifically, for example, working channel information of a first connection interface between the first connection interface and the screen throwing end in the negotiation result is obtained, wherein the working channel information comprises frequency bands and specific channel information; to determine whether the working channel of the first connection interface is an optimal channel.
Optionally, step S20 further includes, after determining whether the working channel of the first connection interface between the first connection interface and the screen-throwing end is an optimal channel according to the negotiation result:
step S50, if the working channel of the first connection interface is not the optimal channel, the negotiation result is abandoned to be saved.
In this embodiment, the working channel of the first connection interface is not the optimal channel, that is, the working channel of the screen-throwing interface negotiated by the screen-throwing end and the screen-throwing end at this time, and the working channels of other network connection interfaces of the screen-throwing end will interfere with each other, resulting in lower transmission efficiency. For example, the working channels of the two interfaces are in different channels of the same frequency band, so that the WIFI module at the screen-thrown end needs to frequency-hopping between different channels of the same frequency band at the moment, thereby affecting the working performance of the two interfaces at the same time. Therefore, the function of automatically storing the negotiation result by the screen throwing end is limited at the moment, and the current negotiation result is not stored.
According to the method, when judging that the working channel of the first connection interface for screen-throwing data transmission is not the optimal channel in the negotiation result, the current negotiation result is not saved, so that networking negotiation is conducted again when the same equipment is screen-throwing again, the working channel is reselected, and the transmission of screen-throwing data is not carried out by continuously using the channel with lower transmission efficiency negotiated in the previous screen-throwing process.
Step S30, if the working channel of the first connection interface is the optimal channel, the negotiation result is saved;
In this embodiment, when the working channel of the first connection interface is the optimal channel, the negotiation result, that is, the current working channel of the first connection interface is saved.
Specifically, for example, if the working channel of the first connection interface is an optimal channel, acquiring equipment identification information of the screen throwing end; and storing the negotiation result through a wpa (Wi-Fi Protected Access, wi-Fi network security access) module according to the equipment identification information of the screen throwing end. When the screen-throwing connection is carried out with the same equipment again, the stored working channel can be directly used for carrying out data transmission according to the equipment identification information, so that on one hand, the time for carrying out networking negotiation again is saved, and on the other hand, the used working channel is an optimal channel, and therefore the technical effect of improving the screen-throwing data transmission efficiency is achieved.
And step S40, transmitting screen projection data by using the optimal channel according to the negotiation result.
In this embodiment, the optimal channel is the working channel of the first connection interface stored in the foregoing step. Because the negotiation result is stored, when the screen-throwing end is connected with the corresponding screen-throwing end, the screen-throwing data is transmitted directly according to the working channel, namely the optimal channel, in the stored negotiation result.
Specifically, for example, when the screen projection data is transmitted, the working channel information in the stored negotiation result is acquired, and according to the working channel information, a corresponding working channel is selected to transmit the screen projection data.
The embodiment obtains a negotiation result of networking negotiation with the screen throwing end; judging whether a working channel of a first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result; if the working channel of the first connection interface is the optimal channel, the negotiation result is saved; and transmitting the screen projection data by using the optimal channel according to the negotiation result. Because the non-optimal channel is not stored in the negotiation result, when the channel efficiency used in the first negotiation result is lower, the next screen-throwing can renegotiate, thereby solving the problem that the same equipment always performs data transmission on the channel with lower efficiency in the screen-throwing process, and realizing the technical effect of improving the data transmission efficiency. In addition, because the optimal channel is stored, the channel with higher efficiency can be used for data transmission all the time in the screen throwing process, and the method is also beneficial to improving the picture quality in the screen throwing process and improving the user experience.
Further, in another embodiment of the present invention, the method further includes:
And step S60, carrying out networking negotiation with the screen throwing end according to the networking request initiated by the screen throwing end.
In this embodiment, the networking request is a request for establishing a peer-to-peer network. The screen-throwing end and the screen-throwing end transmit the screen-throwing data, and the peer-to-peer network is established, so that networking negotiation is required according to a networking request initiated by the screen-throwing end, and a working channel for transmitting the screen-throwing data is selected.
Specifically, for example, when a networking request of a screen-throwing end is received, equipment identification information of the screen-throwing end is obtained; judging whether a screen-thrown end stores a history negotiation result corresponding to the screen-thrown end according to the equipment identification information, and if so, directly acquiring the history negotiation result; if not, carrying out networking negotiation with the screen throwing end.
In this embodiment, the networking negotiation is performed with the screen-throwing end according to the networking request initiated by the screen-throwing end. Because whether the history negotiation result with the screen throwing end is stored in the screen throwing end can be judged according to the networking request, and the negotiation result is directly obtained when the history negotiation result is stored, the networking negotiation time is saved, and the speed of establishing the screen throwing connection is facilitated to be increased.
Optionally, step S60, performing networking negotiation with the screen-throwing end according to the networking request initiated by the screen-throwing end, includes:
step S61, selecting the working channel of the first connection interface as a group manager in the process of establishing peer-to-peer network connection with the screen throwing end.
In this embodiment, the group manager is GO (Group Owner), which is used to determine the working channel to be used, i.e. the screen-cast end is made to be the GO, so as to actively select the working channel of the screen-cast connection interface.
Specifically, for example, as shown in fig. 3, go_interval (with maximum intention value 15, minimum value 0, default value 7) of the screen-cast end is set to 14 (corresponding to the step of setting go_interval of the television end to 14 in fig. 3), so that the screen-cast end is used as a group manager as far as possible in the process of establishing peer-to-peer network connection by the screen-cast end, so as to select the working channel of the first connection interface for further performing other steps in fig. 3.
According to the embodiment, the screen-thrown end is used as a group manager to actively select the working channel of the first connection interface, and the working channel of other network connection interfaces can be acquired, so that when the working channel of the first connection interface is selected, the working channel which can interfere with other network connection interfaces can be avoided, and the technical effect of negotiating the working channel with higher transmission efficiency in the networking negotiation process is achieved.
Further, in another embodiment of the screen-projection channel optimization method of the present invention, step S20 of determining whether the working channel of the first connection interface with the screen-projection end is an optimal channel according to the negotiation result includes:
Step S21, acquiring a working channel of a second connection interface between the working channel and an external network;
In this embodiment, the second connection interface is an interface that the screen-cast terminal connects to an external network, for example, when the screen-cast terminal is a television, the second connection interface may be an interface that the television connects to the router.
Specifically, for example, current wifi connection information is obtained, and a working channel of a second connection interface between the current wifi connection information and an external network is obtained.
Step S22, judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same frequency band;
In this embodiment, the frequency band refers to the frequency range of the radio wave, specifically includes two frequency bands of 2.4G and 5G, and the channel is a data signal transmission channel using a wireless signal as a transmission carrier, and there are different channels in the same frequency band. For example, the 2.4G band in our country typically includes 13 channels. It is therefore necessary to determine whether the working channels of the two interfaces are in the same frequency band.
Step S23, if the working channels do not belong to the same frequency band, the working channels of the first connection interface are judged to be the optimal channels.
In this embodiment, if the working channels of the two interfaces do not belong to the same frequency band, for example, the first connection interface works in the 5G frequency band, and the second connection interface works in the 2.4G frequency band, the performance of the dual-reception dual-transmission wifi module can be exerted to the greatest extent at this time, and the interference of audio and video data transmission is reduced, so that higher transmission efficiency is achieved, and the working channel of the first connection interface is the optimal channel at this time.
Optionally, step S22, after determining whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same frequency band, further includes:
step S24, if the working channels belong to the same frequency band, judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same channel;
In this embodiment, when the working channels of the two interfaces belong to the same frequency band, for example, both are 5G frequency bands or both are 2.4G frequency bands, it is further required to determine whether the working channels of the two interfaces belong to the same channel.
Step S241, if the channels belong to the same channel, determining that the working channel of the first connection interface is the optimal channel.
In this embodiment, if the working channels of the two interfaces are the same channel, for example, the working channels of the two interfaces are both channels 6 in the 2.4G frequency band, then the wifi module only needs to work in one channel at this time, and frequent frequency hopping is not needed, so that the working performance of the 2 interfaces is not affected at this time, so that the working channel of the first connection interface is determined to be the optimal channel at this time, and the negotiation result is automatically saved at a later time.
Optionally, step S24, if the working channels belong to the same frequency band, determines whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same channel, and further includes:
Step S242, if the channels do not belong to the same channel, determining that the working channel of the first connection interface is not the optimal channel.
In this embodiment, if the working channels of the two interfaces are not the same channel, for example, the working channel of the first connection interface is channel 6 in the 2.4G frequency band, and the working channel of the second connection interface is channel 1 in the 2.4G frequency band, because the wifi module needs to hop back and forth between different channels in the same frequency band at this time, the working performance of the 2 interfaces will be affected at the same time, so the transmission efficiency of the working channel of the first connection interface at this time will also be lower, so it is determined that the working channel of the first connection interface is not the optimal channel at this time, and the negotiation result at this time is discarded and stored in the subsequent steps.
For better understanding of the above embodiments, referring to fig. 3, the executing body (i.e. the screen-to-be-screened end) is the tv end, and in the networking negotiation process, the GO content of the tv end is set to be 14; recording a negotiation channel ChanP p0 (i.e. a working channel of a first connection interface) after networking negotiation is completed, and judging whether ChanWlan0 (i.e. a working channel of a second connection interface) and ChanP p0 belong to the same frequency band; if not, the negotiation configuration is saved (namely, the negotiation result is saved); if yes; then determine ChanWlan0 and ChanP2p0 if they belong to the same channel; if the same channel is used, the negotiation configuration is saved, and if the same channel is not used, the negotiation configuration is abandoned.
According to the method and the device, the working channel of the second connection interface of the screen-thrown end connected with the external network and the working channel of the first connection interface of the screen-thrown end connected with the screen-thrown end in the negotiation result are obtained, whether the working channel of the first connection interface is an optimal signal or not is judged, so that whether the negotiation result is saved is judged, the negotiation result when only the working channel of the first connection interface is the optimal channel is realized, and the phenomenon that the same equipment always performs data transmission on a channel with lower efficiency in the screen-throwing process due to the fact that the negotiation result is saved when the non-optimal channel is avoided. In addition, since automatic judgment of whether to perform the save operation is realized without manual judgment or operation, the technical effect of simplifying the operation is also realized.
Further, an embodiment of the present invention further provides a device for optimizing a screen-projection channel, as shown in fig. 4, where the device for optimizing a screen-projection channel of the present invention includes:
the acquisition module 10 is used for acquiring a negotiation result of networking negotiation with the screen throwing end;
the judging module 20 is configured to judge whether a working channel of the first connection interface between the screen-throwing end and the first connection interface is an optimal channel according to the negotiation result;
A storage module 30, configured to save the negotiation result if the working channel of the first connection interface is the optimal channel;
and the data transmission module 40 is configured to transmit the screen-projection data by using the optimal channel according to the negotiation result.
Preferably, the screen projection channel optimizing device further comprises:
and the networking module is used for carrying out networking negotiation with the screen throwing end according to the networking request initiated by the screen throwing end.
The steps implemented by each functional module of the screen-projection channel optimization device of the present invention during operation may refer to each embodiment of the screen-projection channel optimization method of the present invention, which is not described herein.
Further, an embodiment of the present invention further provides a device for optimizing a screen-throwing channel, where the device includes: the system comprises a memory, a processor and a screen-throwing channel optimizing program stored in the memory and capable of running on the processor, wherein the screen-throwing channel optimizing program is configured to realize the steps of the screen-throwing channel optimizing method provided by the embodiment, and the specific implementation steps can refer to the embodiment and are not repeated herein.
Further, an embodiment of the present invention further provides a computer readable storage medium, where a screen-throwing channel optimization program is stored in the computer readable storage medium, and when the screen-throwing channel optimization program is executed by a processor, the steps of the screen-throwing channel optimization method provided in the foregoing embodiment are implemented, and the specific implementation steps may refer to the foregoing embodiment and are not repeated herein.
The device, the device and the computer readable storage medium provided by the embodiment of the invention are used for realizing the screen-throwing channel optimization method provided by the embodiment, so that the problem that the same device always performs data transmission on a channel with lower efficiency in the screen-throwing process is solved.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The screen projection channel optimization method is characterized by comprising the following steps of:
networking negotiation is carried out with the screen throwing end according to a networking request initiated by the screen throwing end;
obtaining a negotiation result of networking negotiation with a screen throwing end;
judging whether a working channel of a first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result;
if the working channel of the first connection interface is the optimal channel, the negotiation result is saved;
Transmitting screen projection data by using the optimal channel according to the negotiation result;
the step of performing networking negotiation with the screen throwing end according to the networking request initiated by the screen throwing end comprises the following steps:
and selecting a working channel of the first connection interface as a group manager in the process of establishing peer-to-peer network connection with the screen throwing end, wherein the set negotiation intention value is higher than a default negotiation intention value.
2. The method for optimizing a screen-drop channel according to claim 1, further comprising, after said step of determining whether an operating channel of a first connection interface with said screen-drop terminal is an optimal channel according to said negotiation result:
And if the working channel of the first connection interface is not the optimal channel, discarding the negotiation result.
3. The method for optimizing a screen-drop channel according to claim 1, wherein the step of determining whether the working channel of the first connection interface with the screen-drop terminal is an optimal channel according to the negotiation result comprises:
Acquiring a working channel of a second connection interface between the working channel and an external network;
Judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same frequency band;
And if the working channels do not belong to the same frequency band, judging that the working channel of the first connection interface is the optimal channel.
4. The method for optimizing a drop channel as claimed in claim 3, further comprising, after said step of determining whether the working channel of said first connection interface and the working channel of said second connection interface belong to the same frequency band:
If the working channels belong to the same frequency band, judging whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same channel;
And if the working channels belong to the same channel, judging that the working channel of the first connection interface is the optimal channel.
5. The method for optimizing a drop channel as defined in claim 4, wherein the step of determining whether the working channel of the first connection interface and the working channel of the second connection interface belong to the same channel further comprises:
And if the working channels do not belong to the same channel, judging that the working channel of the first connection interface is not the optimal channel.
6. A screen-drop channel optimization apparatus, the apparatus comprising:
The networking module is used for carrying out networking negotiation with the screen throwing end according to a networking request initiated by the screen throwing end;
The acquisition module is used for acquiring a negotiation result of networking negotiation with the screen throwing end;
The judging module is used for judging whether the working channel of the first connection interface between the screen throwing end and the first connection interface is an optimal channel according to the negotiation result;
The storage module is used for storing the negotiation result if the working channel of the first connection interface is the optimal channel;
The data transmission module is used for transmitting the screen projection data by using the optimal channel according to the negotiation result;
the networking module is further configured to select, as a group manager, a working channel of the first connection interface in a process of establishing peer-to-peer network connection with the screen-throwing end, where a negotiation intention value is set to be higher than a default negotiation intention value.
7. A screen-drop channel optimization device, the device comprising: a memory, a processor, and a screen channel optimization program stored on the memory and executable on the processor, the screen channel optimization program configured to implement the steps of the screen channel optimization method of any one of claims 1 to 5.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a screen channel optimization program, which when executed by a processor, implements the steps of the screen channel optimization method according to any of claims 1 to 5.
CN202210266689.7A 2022-03-17 2022-03-17 Screen channel optimization method, device, equipment and computer readable storage medium Active CN114615544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210266689.7A CN114615544B (en) 2022-03-17 2022-03-17 Screen channel optimization method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210266689.7A CN114615544B (en) 2022-03-17 2022-03-17 Screen channel optimization method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114615544A CN114615544A (en) 2022-06-10
CN114615544B true CN114615544B (en) 2024-06-04

Family

ID=81865046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210266689.7A Active CN114615544B (en) 2022-03-17 2022-03-17 Screen channel optimization method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114615544B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604403A (en) * 2017-01-12 2017-04-26 惠州Tcl移动通信有限公司 Miracast-protocol-based channel selection method and system
CN112929972A (en) * 2020-07-28 2021-06-08 华为技术有限公司 Channel adjusting method and electronic equipment
CN113316013A (en) * 2021-05-31 2021-08-27 烽火通信科技股份有限公司 Video screen projection method and system
CN113891403A (en) * 2021-09-28 2022-01-04 福建捷联电子有限公司 Wireless screen projection negotiation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657099B (en) * 2015-01-15 2019-04-12 小米科技有限责任公司 Screen projective techniques, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604403A (en) * 2017-01-12 2017-04-26 惠州Tcl移动通信有限公司 Miracast-protocol-based channel selection method and system
CN112929972A (en) * 2020-07-28 2021-06-08 华为技术有限公司 Channel adjusting method and electronic equipment
CN114007267A (en) * 2020-07-28 2022-02-01 华为技术有限公司 Channel adjusting method and electronic equipment
CN113316013A (en) * 2021-05-31 2021-08-27 烽火通信科技股份有限公司 Video screen projection method and system
CN113891403A (en) * 2021-09-28 2022-01-04 福建捷联电子有限公司 Wireless screen projection negotiation method

Also Published As

Publication number Publication date
CN114615544A (en) 2022-06-10

Similar Documents

Publication Publication Date Title
CN113841339B (en) Service connection establishing method, bluetooth main device, chip and Bluetooth system
CN109640310B (en) Data transmission control method and related product
CN112823554B (en) Electronic device for determining P2P operation channel and method thereof
CN1925656B (en) Multimode communication IC and its information interacting method
US9369858B2 (en) Wi-Fi P2P communication terminal device and communication method thereof
US11089638B2 (en) Mobile device and electronic device for wireless communication, and operation methods thereof
CN107124690B (en) Method for data transmission between smart watch and mobile phone
US8891451B2 (en) Method and system for wireless communication channel allocation in wireless networks
CN111542133B (en) Information transmission method, system, receiving device, transmitting device and storage medium
CN111800892B (en) Connection method, system, equipment and storage medium of wireless double-frequency network
US8406694B2 (en) Channel discovery protocol
JP6961708B2 (en) Network connection method and equipment
CN101796878B (en) Network allocation
US20110009058A1 (en) Method and apparatus for managing sound volume of wireless connection device in mobile communication terminal
JP2005073261A (en) Method and apparatus for enhancing packet service performance of mobile communication terminal
US20050185614A1 (en) Wireless access point apparatus, wireless LAN system, wireless communicating method, program for implementing the method, and storage medium storing the program
CN114615544B (en) Screen channel optimization method, device, equipment and computer readable storage medium
WO2024067687A1 (en) Information transmission method, first communication node, second communication node, and storage medium
CN105407452A (en) Method and system for controlling data flow in Bluetooth sharing network
CN111556360A (en) Wireless channel selection method, computer device and storage medium
CN111741453A (en) Bluetooth data encapsulation communication method and device
CN114466230B (en) Display equipment function expanding method and device, screen projector and storage medium
WO2021240747A1 (en) Radio communication device and radio communication method
CN113950123B (en) Connection method, device, equipment and storage medium of communication equipment
JP2014187491A (en) Electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant