WO2022142352A1 - 投屏方法、接收端、源端及投屏系统 - Google Patents

投屏方法、接收端、源端及投屏系统 Download PDF

Info

Publication number
WO2022142352A1
WO2022142352A1 PCT/CN2021/111514 CN2021111514W WO2022142352A1 WO 2022142352 A1 WO2022142352 A1 WO 2022142352A1 CN 2021111514 W CN2021111514 W CN 2021111514W WO 2022142352 A1 WO2022142352 A1 WO 2022142352A1
Authority
WO
WIPO (PCT)
Prior art keywords
source
signal strength
learning
screen projection
source end
Prior art date
Application number
PCT/CN2021/111514
Other languages
English (en)
French (fr)
Inventor
刘文华
Original Assignee
深圳Tcl新技术有限公司
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 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Priority to GB2310931.7A priority Critical patent/GB2617760A/en
Publication of WO2022142352A1 publication Critical patent/WO2022142352A1/zh
Priority to US18/343,764 priority patent/US20230345070A1/en

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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a screen projection method, a receiving end, a source end, and a screen projection system.
  • the wireless projection screen on the market is a wireless display standard based on Wi-Fi Direct.
  • Miracast your phone can play videos or photos directly on TV or other devices without any cables.
  • the specific method is to first start Miracast on the large screen or TV side to make the receiver in a discoverable state, then open the screencasting software through the screencasting source or mobile phone, and search for the large screen or TV that needs to be casted.
  • the device information of the terminal, click Connect, and the screen can be projected only after the connection is successful.
  • This screen projection method has the problems of complicated process, cumbersome operation, and long response time. Moreover, the operation entry of some screen projection sources or screen projection software settings on the mobile phone is relatively hidden, resulting in a poor user experience. Therefore, the screen projection method in the prior art has technical problems of complicated process and complicated operation.
  • the main purpose of the present application is to provide a screen projection method, a receiving end, a source end and a screen projection system, aiming at solving the technical problems of complicated process and complicated operation in the prior art screen projection method.
  • the present application provides a screen projection method, which is applied to a receiving end, and the method includes the following steps:
  • the identification detection request is a detection request sent when the source is within the preset range of the receiver
  • the method before the step of receiving the identification detection request sent by the source end, the method further includes:
  • the learning detection request is a detection request sent when the source is within the preset range of the receiver
  • the learning proximity information of the source end is obtained and stored.
  • the identification detection request includes the first signal strength value of the source end
  • the real-time proximity information of the source end includes the first proximity signal strength value of the source end relative to the receiving end and the first MAC address of the source end
  • the steps of obtaining the real-time proximity information of the source end include:
  • the identification detection request obtain the MAC address added when the source end encapsulates the identification detection request, as the first MAC address of the source end;
  • the average value of the first signal strength values within the range of the signal strength values among the plurality of first signal strength values is obtained as the first close signal strength value of the source end relative to the receiver end.
  • the identification detection request further includes the first proximity information element of the source end;
  • the method further includes:
  • the first approaching information element determine whether the received identification detection request is marked
  • the stored learning proximity information includes a second proximity signal strength value of the source end relative to the receiver end and a second MAC address of the source end;
  • the steps of matching the real-time proximity information of the source end with the stored learning proximity information to obtain a matching result include:
  • the first proximity signal strength value of the source end relative to the receiver end is greater than the second proximity signal strength value of the source end relative to the receiver end, and the first MAC address of the source end is consistent with the second MAC address of the source end, it is determined that the real-time proximity information of the source end is the same as that of the source end.
  • the stored learning is close to the information matching;
  • the first proximity signal strength value of the source end relative to the receiver end is not greater than the second proximity signal strength value of the source end relative to the receiver end, or the first MAC address of the source end is inconsistent with the second MAC address of the source end, determine the real-time proximity information of the source end Does not match the stored learning proximity information.
  • the present application provides a screen projection method, which is applied to the source end, and the method includes the following steps:
  • a screen projection request is sent to the receiving end to perform the screen projection, which specifically includes:
  • the application provides a receiving end, and the receiving end includes:
  • a computer program is stored in the memory, and when the computer program is executed by the processor, the screen projection method according to the above-mentioned first aspect is implemented.
  • the present application provides a source end, the source end includes:
  • a computer program is stored in the memory, and when the computer program is executed by the processor, the screen projection method of the above-mentioned second aspect is implemented.
  • the present application provides a screen projection system, which includes:
  • the receiving end is used to implement the screen projection method according to the above-mentioned first aspect
  • the source end is configured to implement the screen projection method as described in the first aspect.
  • a screen projection method, a receiving end, a source end and a screen projection system proposed in this application when the source end is close to the receiving end, obtain the real-time proximity information of the source end through the received identification detection request sent by the source end; The real-time proximity information of the source end is matched with the stored learning proximity information to obtain a matching result; finally, according to the matching result, the screen projection request sent by the source end is received to perform screen projection.
  • This application does not need to add or change additional hardware support. By first learning the proximity behavior between the source end and the receiving end, the corresponding learning proximity information is obtained and stored.
  • the present application greatly simplifies the operation steps of screen projection, and improves the user's experience of using the projection screen.
  • FIG. 1 is a schematic flowchart of a screen projection method according to Embodiment 1 of the present application
  • FIG. 2 is another schematic flowchart of a screen projection method provided in Embodiment 2 of the present application.
  • FIG. 3 is a schematic connection diagram of a screen projection system according to Embodiment 5 of the present application.
  • the terms “connected”, “fixed” and the like should be understood in a broad sense, for example, “fixed” may be a fixed connection, a detachable connection, or an integrated; It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal communication between two elements, or an interaction relationship between the two elements, unless otherwise clearly defined.
  • “fixed” may be a fixed connection, a detachable connection, or an integrated; It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal communication between two elements, or an interaction relationship between the two elements, unless otherwise clearly defined.
  • the present application provides a screen projection method, and the general idea is as follows:
  • the method When applied to a receiving end, the method includes: receiving an identification detection request sent by a source end, wherein the identification detection request is a detection request sent when the source end is within a preset range of the receiving end; and obtaining the source end according to the identification detection request
  • the real-time proximity information of the source terminal is matched; the real-time proximity information of the source terminal is matched with the stored learning proximity information to obtain a matching result; according to the matching result, the screen projection request sent by the source terminal is received, and the screen is projected;
  • the method When applied to the source end, the method includes: when the source end is within the preset range of the receiver end, sending an identification detection request to the receiver end, and receiving the identification detection reply sent by the receiver end; and obtaining the identification detection reply according to the identification detection reply.
  • Real-time proximity information of the receiving end match the real-time proximity information of the receiving end with the stored learning proximity information to obtain a matching result; send a screen projection request to the receiving end for screen projection according to the matching result.
  • the real-time proximity information of the source end is obtained through the received identification detection request sent by the source end; and then the real-time proximity information of the source end is matched with the stored learning proximity information, In order to obtain the matching result; finally, according to the matching result, the screen projection request sent by the source end is received, and the screen is projected.
  • This application does not need to add or change additional hardware support. By first learning the proximity behavior between the source end and the receiving end, the corresponding learning proximity information is obtained and stored. When the source end approaches the receiving end again, according to the acquired real-time proximity information By comparing with the stored learning proximity information, when the source end is close to the receiver end, it can recognize each other's proximity behavior. .
  • the present application greatly simplifies the operation steps of screen projection, and improves the user's experience of using the projection screen.
  • a first embodiment of the present application provides a screen projection method, which is applied to a receiving end.
  • the receiver and the source are mutually identifiable, but no connection is established.
  • the screen projection method can be applied to a screen projection display scenario, for example, a screen projection display scenario with a mobile phone as the source end and a TV as the receiver end, or a WIFI connection scenario, for example, with a mobile phone as the source end and router as the receiver.
  • the WIFI connection scene of the terminal for example, a screen projection display scenario with a mobile phone as the source end and a TV as the receiver end
  • a WIFI connection scenario for example, with a mobile phone as the source end and router as the receiver.
  • Step S101 Receive an identification detection request sent by a source end, wherein the identification detection request is a detection request sent when the source end is within a preset range of the receiver end.
  • the identification detection request includes the first signal strength value of the source end and the first proximity information element of the source end.
  • the source end continuously sends out identification detection requests
  • the receiving end continuously receives the identification detection request
  • the receiving end continuously sends identification detection requests
  • the detection reply correspondingly, the source end continuously receives the identification detection reply.
  • the identification detection request and the identification detection reply both carry the proximity information element.
  • the interaction between the source end and the receiver end is performed through the IEEE 802.11 management frame.
  • the receiver end receives the identification detection request sent by the source end, and the receiver end sends the identification detection reply to the interactive operation of the source end. This process does not It is necessary to connect to WIFI for information exchange, which saves the process of WIFI password verification and further simplifies the screen projection operation.
  • IEEE 802.11 is a common standard for wireless local area networks today, and IEEE
  • the management process of 802.11 management frames is divided into three steps: first, the mobile station finds a compatible wireless network to access, second, the network system verifies the mobile station, and finally, establishes the relationship between the mobile station and the wireless access point. association.
  • the frame body has fixed fields (fields of fixed length) and information elements (data blocks of variable length).
  • the near information element may be a proprietary protocol (Vendor IE) defined by the manufacturer.
  • Vendor IE the proprietary protocol
  • IE the Information Element, representing an information element or an information element, is a component in an information system.
  • the TV when the mobile phone is close to the TV, the TV receives the identification detection request sent by the mobile phone, and at the same time, the TV sends the identification detection reply to the mobile phone. It is also possible to send the identification detection request after the mobile phone receives the identification detection reply sent by the TV terminal, so as to prevent the mobile phone from sending the identification detection request at any time and occupying too much memory.
  • Step S102 Acquire real-time proximity information of the source end according to the identification detection request.
  • the identification detection request includes the first signal strength value of the source end
  • the real-time proximity information of the source end includes the first proximity signal strength value of the source end relative to the receiving end and the first MAC address of the source end.
  • the step of obtaining the real-time proximity information of the source terminal may include:
  • Step S102.1 According to the identification detection request, obtain the MAC address added when the source end encapsulates the identification detection request, as the first MAC address of the source end.
  • the MAC address added when the source end encapsulates the identification detection request is obtained from the identification detection request, as the obtained first MAC address of the source end.
  • Step S102.2 Acquire a plurality of first signal strength values according to the received historical identification detection request, and calculate the average value of the plurality of first signal strength values.
  • one identification and detection request may contain one signal strength value, there can also be two signal strength values, when there are two signal strength values, the largest signal strength value is used as the first signal strength value of the identification detection request; An average value of the corresponding plurality of first signal strength values is calculated.
  • the TV terminal receives 10 identification detection requests continuously sent by the mobile terminal, and the mobile phone adopts dual antennas. Therefore, two signal strength values can be read from each identification detection request, Only the maximum value is taken in each identification detection request , so that 10 first signal strength values RSSI can be read: , calculate the average of these 10 RSSI values: ,Should is the average value of a plurality of first signal strength values to be acquired in this step.
  • Step S102.3 Set the signal strength value range according to the average value of step S102.2.
  • the signal strength value range is set according to the actual situation, for example, it can be set within the range of 0.9 times to 1.1 times the average value.
  • the average value obtained according to step S102.2 , setting these 10 RSSI values should satisfy: .
  • Step S102.4 Obtain the average value of the first signal strength values within the range of the signal strength values among the plurality of first signal strength values, as the first close signal strength value of the source end relative to the receiver end.
  • the first signal strength value that exceeds the range of the signal strength value in step S102.3 is directly discarded, and the average value of the remaining signal strength values is calculated. , the first close signal strength value finally obtained can be accurately obtained.
  • 10 first signal strength values RSSI are confirmed in sequence: , are all within the range set in step S102.3, assuming is not within this range, directly discard, for the rest Find the average: , the average value obtained It is the first close signal strength value of the mobile phone relative to the TV.
  • the identification detection request further includes the first proximity information element of the source
  • the method further includes:
  • Step A102.1 Send an identification detection reply to the source end
  • Step A102.2 According to the first approaching information element, determine whether the received identification detection request is marked;
  • Step A102.3 If the received identification detection request is marked, stop sending the identification detection reply to the source.
  • a bit defined in the first proximity information element in the received identification detection request is marked, that is, when the bit is 1, it means that the source has identified the receiver and determined the proximity between the receiver and the source. Therefore, the receiver does not need to send an identification detection reply to the source.
  • Step S103 Match the real-time proximity information of the source end with the stored learning proximity information to obtain a matching result.
  • the learned proximity information stored at the receiving end includes a second proximity signal strength value of the source end relative to the receiving end and a second MAC address of the source end.
  • the step of matching the real-time proximity information of the source end with the stored learning proximity information to obtain a matching result may include:
  • S103.1 Determine whether the first close signal strength value of the source end relative to the receiving end is greater than the second close signal strength value of the source end relative to the receiving end, and whether the first MAC address of the source end is consistent with the second MAC address of the source end;
  • the receiving end and the source end first learn the proximity behavior, and store the learned second proximity signal strength value of the source end relative to the receiving end and the second MAC address of the source end as the learned proximity information stored by the receiving end .
  • the acquired first MAC address of the source is consistent with the stored second MAC address of the source, it means that the source is the source that has learned the proximity behavior with the receiver; at the same time, if The obtained first signal strength value of the source end relative to the receiver end is greater than the second signal strength value of the source end relative to the receiver end, indicating that the distance between the source end and the receiver end at this time is smaller than that of the source end and the receiving end in the previous learning approach process.
  • the distance between the source end and the receiving end can be determined to be established.
  • the obtained first MAC address of the mobile phone is in the MAC address list stored on the TV, that is, the first MAC address of the mobile is consistent with the second MAC address stored on the TV, and at the same time, If the second proximity information strength value between the mobile phone and the TV is consistent with the first proximity information strength value stored on the TV, it means that the mobile phone is very close to the TV, and it is determined that the proximity behavior of the mobile phone close to the TV is established.
  • Step S104 Receive a screen projection request sent by the source end according to the matching result, and perform screen projection.
  • the step of receiving the screen projection request sent by the source end, and performing the screen projection may include:
  • Step S104.1 When the real-time proximity information of the source end matches the stored learning proximity information, mark and identify the detection reply, and receive a screen projection request sent by the source end to perform screen projection.
  • the receiver recognizes the proximity behavior of the source successfully.
  • the receiver does not need to receive the source any more. Therefore, the identification detection response sent by the receiving end to the source end is marked, and the specific mark is a bit defined in the third closest information element of the identification detection response, and the flag bit is equal to 1.
  • the source side also determines that the proximity behavior of the receiver side is established, it will send a screencasting request. After the receiver side receives the screencasting request from the source side, it notifies the application layer to establish a screencasting connection, and then screencasting can be performed.
  • Step S104.2 When the real-time proximity information of the source end does not match the stored learning proximity information, stop receiving the identification detection request sent by the source end.
  • the real-time proximity information of the source does not match the stored learning proximity information, it means that the source and the receiver may not have learned the proximity behavior, and cannot perform screen projection based on the proximity behavior, and the receiver will no longer receive the source.
  • the identification detection request sent.
  • a learning process in which the source end is close to the receiving end is also provided, which can be implemented by the following steps:
  • Step X101 Receive a learning detection request sent by the source, wherein the learning detection request is a detection request sent when the source is within a preset range of the receiver.
  • a learning detection request sent by the source is received, and a learning detection reply is sent to the source, wherein the learning detection request includes the second signal strength value of the source and the second proximity information element of the source.
  • the source end When the source end is close to the receiving end and is within the preset signal receiving range of the receiving end, the source end continuously sends out learning detection requests, the receiving end continuously receives the learning detection request, and at the same time, the receiving end continuously sends learning detection requests.
  • the detection reply is sent to the source end, and correspondingly, the source end continuously receives the learning detection reply.
  • both the learning detection request and the learning detection response have proximity information elements.
  • Step X102 According to the learning detection request, the learning proximity information of the source end is acquired and stored.
  • the learning detection request includes the second signal strength value of the source end
  • the learning proximity information of the source end includes the second proximity signal strength value of the source end relative to the receiving end and the second MAC address of the source end.
  • the steps of acquiring and storing the learning proximity information of the source end may include:
  • Step X102.1 According to the learning detection request, obtain the MAC address added when the source end encapsulates the learning detection request, as the second MAC address of the source end.
  • the MAC address added when the source end encapsulates the learning detection request is obtained from the learning detection request, as the acquired second MAC address of the source end.
  • Step X102.2 Obtain a plurality of second signal strength values according to the received historical learning detection request, and calculate the average value of the plurality of second signal strength values;
  • Step X102.3 according to the average value of step X102.2, set the signal strength value range
  • Step X102.4 Obtain the average value of the second signal strength values within the range of the signal strength values among the plurality of second signal strength values, as the second close signal strength value of the source end relative to the receiver end.
  • Step X102.5 Store the learning proximity information of the source end.
  • the second proximity signal strength value of the source end relative to the receiver end and the second MAC address of the source end are stored, and the second MAC address is stored in the MAC address learning list of the receiver end, which is used for subsequent identification of the proximity behavior of the source end. ,Compared.
  • the method further includes:
  • Step X103 mark the learning detection response.
  • the receiver After storing the learning proximity information of the source, the receiver does not need to continue to receive the learning detection request from the source. Therefore, the learning detection reply sent by the receiver to the source is marked, and the first proximity information of the learning detection reply is specifically marked.
  • a bit defined in the element, the flag bit is equal to 1.
  • Step X104 According to the second proximity information element, determine whether the received learning detection request is marked.
  • Step X105 If the received learning detection request is marked, stop sending the learning detection reply to the source.
  • the receiver has It is no longer necessary to send the learning detection reply to the source, so stop sending the learning detection reply to the source.
  • the source end stops sending the learning detection request to the receiving end, and the receiving end also stops sending the learning detection reply to the source end, the learning approaching behavior of the source end approaching the receiving end ends, and when the source end approaches the receiving end again, It is sufficient to recognize the approaching behavior according to steps S101 to S104.
  • a screen projection method provided in this embodiment is applied to the receiving end.
  • the real-time proximity information of the source end is obtained through the received identification detection request sent by the source end;
  • the information is matched with the stored learning proximity information to obtain a matching result; finally, according to the matching result, the screencasting request sent by the source is received to perform screencasting.
  • This application does not need to add or change additional hardware support.
  • the corresponding learning proximity information is obtained and stored.
  • the present application greatly simplifies the operation steps of screen projection, and improves the user's experience of using the projection screen.
  • the mobile phone is close to the TV, and the screen projection can be directly triggered by the proximity recognition between the mobile phone and the TV, which can be used without changing the hardware or adding a near field communication device. , to realize screen projection display or WIFI connection.
  • a second embodiment of the present application provides a screen projection method, which is applied to the source end. Based on the above-mentioned first embodiment of the present application, the screen projection method provided by this embodiment is described in detail, and the method specifically includes the following steps:
  • Step S201 when the source end is within the preset range of the receiver end, send an identification detection request to the receiver end, and receive an identification detection reply sent by the receiver end.
  • the identification detection reply includes the third signal strength value of the receiving end and the third proximity information element of the receiving end.
  • the source end When the source end is close to the receiving end and is within the preset signal receiving range of the receiving end, it continuously sends out identification detection requests, and continuously receives the identification detection reply sent by the receiving end.
  • Step S202 Acquire real-time proximity information of the receiving end according to the identification detection reply.
  • the identification detection reply includes the third signal strength value of the receiver
  • the real-time proximity information of the receiver includes the third proximity signal strength value of the receiver relative to the source and the third MAC address of the receiver.
  • the step of obtaining the real-time proximity information of the receiving end may include:
  • Step S202.1 According to the identification detection reply, obtain the MAC address added when the receiver encapsulates the identification detection reply, as the third MAC address of the receiver.
  • the MAC address added when the receiver encapsulates the identification detection reply is obtained from the identification detection reply, as the acquired third MAC address of the receiver.
  • Step S202.2 Obtain a plurality of third signal strength values according to the received historical identification and detection responses, and calculate the average value of the plurality of third signal strength values;
  • Step S202.3 according to the average value of step S202.2, set the signal strength value range
  • Step S202.4 Obtain the average value of the third signal strength values within the range of the signal strength values among the plurality of third signal strength values, as the third proximity signal strength value of the receiving end relative to the source end.
  • the identification detection reply further includes the third proximity information element of the receiver
  • the method may further include:
  • Step A202.1 According to the third approaching information element, determine whether the received identification detection reply is marked;
  • Step A202.2 If the received identification detection reply is marked, stop sending the identification detection request to the receiving end.
  • a bit defined in the third proximity information element in the received identification detection reply is marked, that is, when the bit is 1, it means that the receiving end has identified the source end.
  • the receiving end sends an identification detection request.
  • Step S203 Match the real-time proximity information of the receiving end with the stored learning proximity information to obtain a matching result.
  • the learned proximity information stored by the source includes a fourth proximity signal strength value of the receiver relative to the source and a fourth MAC address of the receiver.
  • the step of matching the real-time proximity information of the receiving end with the stored learning proximity information to obtain a matching result may include:
  • Step S203.1 Determine whether the third proximity signal strength value of the receiver relative to the source end is greater than the fourth proximity signal strength value of the receiver end relative to the source end, and whether the third MAC address of the receiver is consistent with the fourth MAC address of the receiver;
  • Step S203.2 If the third proximity signal strength value of the receiver relative to the source end is greater than the fourth proximity signal strength value of the receiver end relative to the source end, and the third MAC address of the receiver is consistent with the fourth MAC address of the receiver, it is determined that the receiver receives The real-time proximity information of the terminal matches the stored learning proximity information;
  • Step S203.3 If the third proximity signal strength value of the receiver relative to the source end is not greater than the fourth proximity signal strength value of the receiver end relative to the source end, or the third MAC address of the receiver is inconsistent with the fourth MAC address of the receiver, determine The real-time proximity information at the receiver does not match the stored learning proximity information.
  • the source first learns the proximity behavior of the receiver to the source, and stores the learned fourth proximity signal strength value of the receiver relative to the source and the fourth MAC address of the receiver, as the source has stored of learning near information.
  • the acquired third MAC address of the receiver is consistent with the fourth MAC address of the receiver, it means that the receiver has learned the proximity behavior with the source; at the same time, if the acquired The signal strength value of the third proximity signal strength of the receiving end relative to the source end is greater than the fourth proximity signal strength value of the receiving end relative to the source end, indicating that the distance between the source end and the receiver end is smaller than the distance between the source end and the receiver end in the previous learning approach process, that is, It is determined that the proximity behavior of the sink end close to the source end is established.
  • Step S204 According to the matching result, send a screen projection request to the receiving end to perform screen projection.
  • the step of sending a screen projection request to the receiving end to perform screen projection may include:
  • Step S204.1 when the real-time proximity information of the receiving end matches the stored learning proximity information, continue to receive the identification detection reply;
  • Step S204.2 when the number of received identification detection replies reaches a preset number, mark the identification detection request, and send a screen projection request to the receiving end for screen projection;
  • the receiver is determined to be the same as the receiver.
  • the proximity behavior of the source end is established, and the source end recognizes the proximity behavior of the receiver end successfully.
  • the source end does not need to receive the identification detection reply sent by the receiver end. Therefore, the identification detection request sent by the source end to the receiver end is marked.
  • a bit defined in the first proximity information element of the identification detection request, and the flag bit is equal to 1.
  • Step S204.3 When the real-time proximity information of the receiver does not match the stored learning proximity information, stop receiving the identification detection reply sent by the receiver.
  • the real-time proximity information of the receiving end does not match the stored learning proximity information, it means that the source end may not have learned the proximity behavior of the receiving end before, and cannot realize screen projection according to the proximity behavior, and the source end will no longer receive the proximity behavior.
  • the identification detection reply sent by the receiver when the real-time proximity information of the receiving end does not match the stored learning proximity information, it means that the source end may not have learned the proximity behavior of the receiving end before, and cannot realize screen projection according to the proximity behavior, and the source end will no longer receive the proximity behavior.
  • a learning process in which the receiving end is close to the source end is also provided, which can be specifically implemented by the following steps:
  • Step X201 When the source end is within the preset range of the receiver end, send a learning detection request to the receiver end, and receive a learning detection reply sent by the receiver end.
  • the learning detection reply includes the third signal strength value of the receiving end and the fourth proximity information element of the receiving end.
  • the learning detection request is continuously sent, and the learning detection reply sent by the receiving end is continuously received.
  • Step X202 Acquire and store the learning proximity information of the receiving end according to the learning detection reply.
  • the learning detection reply includes the third signal strength value of the receiver, and the learning proximity information of the receiver includes the fourth proximity signal strength value of the receiver relative to the source and the fourth MAC address of the receiver.
  • the steps of acquiring and storing the learning proximity information of the receiving end may include:
  • Step X202.1 According to the learning detection reply, obtain the MAC address added when the receiving end encapsulates the learning detection reply, as the fourth MAC address of the receiving end.
  • the MAC address added when the receiving end encapsulates the learning detection reply is obtained from the learning detection reply, as the obtained fourth MAC address of the receiving end.
  • Step X202.2 Obtain a plurality of third signal strength values according to the received historical learning detection responses, and calculate the average value of the plurality of third signal strength values;
  • Step X202.3 according to the average value of step X202.2, set the signal strength value range
  • Step X202.4 Obtain the average value of the third signal strength values within the range of the signal strength values among the plurality of third signal strength values, as the fourth near signal strength value of the receiving end relative to the source end.
  • Step X202.5 Store the learning approach information of the receiving end.
  • the fourth proximity signal strength value of the receiving end relative to the source end and the fourth MAC address of the receiving end are stored for subsequent recall and comparison when identifying the proximity behavior of the receiving end.
  • the method further includes:
  • Step X203 Mark the learning detection request.
  • the source end After storing the learning approach information of the receiving end, the source end does not need to continue to receive the learning detection reply of the receiving end. Therefore, the learning detection request sent to the receiving end is marked, and when the receiving end receives and recognizes the learning detection request Once flagged, it stops sending learning ping replies.
  • Step X204 according to the fourth approaching information element, determine whether the received learning detection reply is marked;
  • Step X205 If the received learning detection reply is marked, stop sending the learning detection request to the receiving end.
  • the received learning detection reply when the received learning detection reply is marked, it means that the receiving end has learned the proximity behavior with the source end. Therefore, the source end does not need to send a learning detection request to the receiving end, so it stops sending learning detection. request to the receiver.
  • the receiver stops sending learning detection replies to the source and the source also stops sending learning detection requests to the receiver, the learning approach behavior of the source close to the receiver ends, and when the source gets closer to the receiver, follow the steps S201 ⁇ S204 can identify the approaching behavior.
  • a screen projection method provided in this embodiment is applied to the source end.
  • the real-time proximity information of the receiving end is obtained through the received identification detection reply sent by the receiving end; and then the real-time proximity information of the receiving end is obtained.
  • the information is matched with the stored learning proximity information to obtain a matching result; finally, according to the matching result, a screencasting request is sent to the receiving end for screencasting.
  • the user wants to display the screen projection of the mobile phone on the TV side, he directly brings the mobile phone close to the TV, and can directly trigger the screen projection through the proximity recognition between the mobile phone and the TV, without changing the hardware or adding the near field communication device. Under the circumstance, screen projection display or WIFI connection can be realized.
  • the receiving end may be an electronic device such as a mobile phone and a tablet computer.
  • the receiving end includes:
  • a computer program is stored in the memory, and when the computer program is executed by the processor, the screen projection method in the above-mentioned first embodiment is implemented.
  • the receiving end may further include a multimedia component, an input/output (I/O) interface, and a communication component.
  • the processor is configured to execute all or part of the steps in the screen projection method in the above-mentioned first embodiment.
  • the memory is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.
  • the processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (Digital Signal Processor) Processor, referred to as DSP), digital signal processing equipment (Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (Field Programmable Gate Array) Programmable Gate Array, FPGA for short), a controller, a microcontroller, a microprocessor, or other electronic components to implement all or part of the steps in the screen projection method in the first embodiment above.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller a microcontroller, a microprocessor, or other electronic components to implement all or part of the steps in the screen projection method in the first embodiment above.
  • Memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory) Access Memory, referred to as SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory) Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (EPROM) Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM static random access memory
  • SRAM Static Random Access Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • PROM Programmable Read-Only Memory
  • ROM Read-Only Memory
  • magnetic memory flash memory
  • flash memory magnetic disk or optical disk.
  • the multimedia components may include a screen, which may be a touch screen, and an audio component for outputting and/or inputting audio signals.
  • the audio component may include a microphone for receiving external audio signals.
  • the received audio signal may be further stored in memory or transmitted through the communication component.
  • the audio assembly also includes at least one speaker for outputting audio signals.
  • the I/O interface provides an interface between the processor and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, and so on. These buttons can be virtual buttons or physical buttons.
  • the communication component is used for wired or wireless communication between the electronic device and other devices.
  • Wireless communication such as Wi-Fi, Bluetooth, Near Field Communication (NFC for short), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication components may include: Wi-Fi -Fi module, bluetooth module, NFC module.
  • this embodiment provides a source end, which can be an electronic device such as a TV or a computer, and the source end includes:
  • a computer program is stored in the memory, and when the computer program is executed by the processor, the screen projection method as in the above-mentioned second embodiment is implemented.
  • the electronic device may also include multimedia components, input/output (I/O) interfaces, and communication components.
  • multimedia components input/output (I/O) interfaces, and communication components.
  • the processor is configured to execute all or part of the steps in the screen projection method in the second embodiment.
  • the memory is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.
  • the processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (Digital Signal Processor) Processor, referred to as DSP), digital signal processing equipment (Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (Field Programmable Gate Array) Programmable Gate Array, FPGA for short), a controller, a microcontroller, a microprocessor, or other electronic components to implement all or part of the steps in the screen projection method in the second embodiment above.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller a microcontroller, a microprocessor, or other electronic components to implement all or part of the steps in the screen projection method in the second embodiment above.
  • Memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory) Access Memory, referred to as SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory) Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (EPROM) Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM static random access memory
  • SRAM Static Random Access Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • PROM Programmable Read-Only Memory
  • ROM Read-Only Memory
  • magnetic memory flash memory
  • flash memory magnetic disk or optical disk.
  • the multimedia components may include a screen, which may be a touch screen, and an audio component for outputting and/or inputting audio signals.
  • the audio component may include a microphone for receiving external audio signals.
  • the received audio signal may be further stored in memory or transmitted through the communication component.
  • the audio assembly also includes at least one speaker for outputting audio signals.
  • the I/O interface provides an interface between the processor and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, and so on. These buttons can be virtual buttons or physical buttons.
  • the communication component is used for wired or wireless communication between the electronic device and other devices.
  • Wireless communication such as Wi-Fi, Bluetooth, Near Field Communication (NFC for short), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication components may include: Wi-Fi -Fi module, bluetooth module, NFC module.
  • this embodiment provides a screen projection system, which includes:
  • the receiving end is used to implement all or part of the steps in the screen projection method in the first embodiment; the source end is used to implement all or part of the steps in the screen projection method in the second embodiment.
  • the source end When the source end approaches the receiver end, the source end obtains the real-time proximity information of the receiver end through the received identification detection reply sent by the receiver end; and then matches the real-time proximity information of the receiver end with the stored learning proximity information to obtain a match Result; finally, according to the matching result, send a screencasting request to the receiving end for screencasting.
  • the receiving end obtains the real-time proximity information of the source end through the received identification detection request sent by the source end; and then matches the real-time proximity information of the source end with the stored learning proximity information to obtain a matching result; finally, according to the matching result , receive the screencasting request sent by the source, and perform screencasting.
  • This application does not need to add or change additional hardware support, so that when the source end is close to the receiving end, the behavior of mutual recognition of approaching can be realized, thereby triggering application scenarios such as screen projection display or WIFI connection.
  • the present application greatly simplifies the operation steps of screen projection, and improves the user's experience of using the projection screen.
  • the user wants to display the screen projection of the mobile phone on the TV side, he directly brings the mobile phone close to the TV, and can directly trigger the screen projection through the proximity recognition between the mobile phone and the TV, without changing the hardware or adding the near field communication device. Under the circumstance, screen projection display or WIFI connection can be realized.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Circuits Of Receivers In General (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种投屏方法、接收端、源端及投屏系统,涉及通信技术领域,包括:当源端处于接收端的预设范围内时,接收端接收源端发送的识别侦测请求;根据识别侦测请求,获取源端的实时靠近信息;将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;再根据匹配结果,接收源端发送的投屏请求,进行投屏。

Description

投屏方法、接收端、源端及投屏系统
本申请要求于2020年12月29日提交中国专利局、申请号为202011610143.6、申请名称为“一种投屏方法、接收端、源端及投屏系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种投屏方法、接收端、源端及投屏系统。
背景技术
目前市面上的无线投屏,比如Miracast,是以Wi-Fi直连(Wi-Fi Direct)为基础的无线显示标准。手机可透过Miracast将视频或照片直接在电视或其他设备播放而无需任何连接线。具体方法是,在大屏端或TV端先启动Miracast,使该接收端处于可被发现的状态,再通过投屏源端或手机端打开投屏软件,搜索需要投屏的大屏端或TV端的设备信息,点击连接,连接成功后才能实现投屏。
技术问题
这种投屏方法存在过程复杂、操作繁琐、响应时间长的问题,而且,有些投屏源端或手机端的投屏软件设置的操作入口比较隐蔽,导致用户的使用体验感不高。因此,现有技术的投屏方法存在过程复杂、操作繁琐的技术问题。
技术解决方案
本申请的主要目的在于:提供一种投屏方法、接收端、源端及投屏系统,旨在解决现有技术的投屏方法存在过程复杂、操作繁琐的技术问题。
为实现上述目的,本申请采用如下技术方案:
第一方面,本申请提供了一种投屏方法,应用于接收端,方法包括以下步骤:
接收源端发送的识别侦测请求,其中,识别侦测请求为源端处于接收端的预设范围内时发送的侦测请求;
根据识别侦测请求,获取源端的实时靠近信息;
将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;
根据匹配结果,接收源端发送的投屏请求,进行投屏。
可选地,上述投屏方法中,在接收源端发送的识别侦测请求的步骤之前,方法还包括:
接收源端发送的学习侦测请求,其中,学习侦测请求为源端处于接收端的预设范围内时发送的侦测请求;
根据学习侦测请求,获取源端的学习靠近信息并存储。
可选地,上述投屏方法中,识别侦测请求包括源端的第一信号强度值,源端的实时靠近信息包括源端相对于接收端的第一靠近信号强度值和源端的第一MAC地址;
根据识别侦测请求,获取源端的实时靠近信息的步骤,具体包括:
根据识别侦测请求,获取源端封装识别侦测请求时加入的MAC地址,作为源端的第一MAC地址;
根据接收的历史识别侦测请求,获取其中多个第一信号强度值,计算多个第一信号强度值的平均值;
根据平均值,设定信号强度值范围;
获取多个第一信号强度值中在信号强度值范围内的第一信号强度值的平均值,作为源端相对于接收端的第一靠近信号强度值。
可选地,上述投屏方法中,识别侦测请求还包括源端的第一靠近信息元素;
在接收源端发送的识别侦测请求的步骤之后,方法还包括:
发送识别侦测回复至源端;
根据第一靠近信息元素,判断接收的识别侦测请求是否被标记;
若接收的识别侦测请求被标记,停止发送识别侦测回复至源端。
可选地,上述投屏方法中,已存储的学习靠近信息包括源端相对于接收端的第二靠近信号强度值和源端的第二MAC地址;
将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果的步骤,具体包括:
判断源端相对于接收端的第一靠近信号强度值是否大于源端相对于接收端的第二靠近信号强度值,以及源端的第一MAC地址与源端的第二MAC地址是否一致;
若源端相对于接收端的第一靠近信号强度值大于源端相对于接收端的第二靠近信号强度值,且源端的第一MAC地址与源端的第二MAC地址一致,判定源端的实时靠近信息与已存储的学习靠近信息匹配;
若源端相对于接收端的第一靠近信号强度值不大于源端相对于接收端的第二靠近信号强度值,或源端的第一MAC地址与源端的第二MAC地址不一致,判定源端的实时靠近信息与已存储的学习靠近信息不匹配。
第二方面,本申请提供了一种投屏方法,应用于源端,方法包括以下步骤:
当源端处于接收端的预设范围内时,发送识别侦测请求至接收端,并接收所述接收端发送的识别侦测回复;
根据识别侦测回复,获取接收端的实时靠近信息;
将接收端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;
根据匹配结果,发送投屏请求至接收端,以进行投屏。
可选地,上述投屏方法中,根据匹配结果,发送投屏请求至接收端,以进行投屏的步骤,具体包括:
当接收端的实时靠近信息与已存储的学习靠近信息匹配时,继续接收识别侦测回复;
当接收的识别侦测回复的数量达到预设数量时,标记识别侦测请求,并发送投屏请求至接收端,以进行投屏;
当接收端的实时靠近信息与已存储的学习靠近信息不匹配时,停止接收所述接收端发送的识别侦测回复。
第三方面,本申请提供了一种接收端,接收端包括:
存储器和处理器;
其中,存储器上存储有计算机程序,该计算机程序被处理器执行时,实现如上述第一方面的投屏方法。
第四方面,本申请提供了一种源端,源端包括:
存储器和处理器;
其中,存储器上存储有计算机程序,该计算机程序被处理器执行时,实现如上述的第二方面的投屏方法。
第五方面,本申请提供了一种投屏系统,系统包括:
接收端和源端;
其中,接收端用于实现如上述第一方面的投屏方法;
源端用于实现如上述第一方面的投屏方法。
有益效果
本申请提供的上述一个或多个技术方案,可以具有如下优点或至少实现了如下技术效果:
本申请提出的一种投屏方法、接收端、源端及投屏系统,当源端靠近接收端时,通过接收到的源端发送的识别侦测请求,获取源端的实时靠近信息;再将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;最后根据匹配结果,接收源端发送的投屏请求,进行投屏。本申请不需要增加或更改额外的硬件支持,通过先学习源端与接收端之间的靠近行为,获取对应的学习靠近信息并存储,当源端再次靠近接收端时,根据获取的实时靠近信息与已存储的学习靠近信息进行对比,即可实现在源端靠近接收端时,相互识别对方的靠近行为,当源端和接收端均识别成功,便可触发投屏显示或者WIFI连接等应用场景。本申请大大简化了投屏的操作步骤,提高了用户使用投屏的体验感。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的这些附图获得其他的附图。
图1为本申请实施例一提供的一种投屏方法的流程示意图;
图2为本申请实施例二提供的一种投屏方法的另一流程示意图;
图3为本申请实施例五提供的一种投屏系统的连接示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明,本申请实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。
在本申请中,除非另有明确的规定和限定,术语“连接”、“固定”等应做广义理解,例如,“固定”可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连;可以是两个元件内部的连通,也可以是两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。
另外,若本申请实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,全文中出现的“和/或”的含义,包括三个并列的方案,以“A和/或B”为例,包括A方案、或B方案、或A和B同时满足的方案。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时,应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
鉴于现有技术中的投屏方法存在过程复杂、操作繁琐的技术问题,本申请提供了一种投屏方法,总体思路如下:
应用于接收端时,方法包括:接收源端发送的识别侦测请求,其中,识别侦测请求为源端处于接收端的预设范围内时发送的侦测请求;根据识别侦测请求,获取源端的实时靠近信息;将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;根据匹配结果,接收源端发送的投屏请求,进行投屏;
应用于源端时,方法包括:当源端处于接收端的预设范围内时,发送识别侦测请求至接收端,并接收所述接收端发送的识别侦测回复;根据识别侦测回复,获取接收端的实时靠近信息;将接收端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;根据匹配结果,发送投屏请求至接收端,以进行投屏。
通过上述技术方案,当源端靠近接收端时,通过接收到的源端发送的识别侦测请求,获取源端的实时靠近信息;再将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;最后根据匹配结果,接收源端发送的投屏请求,进行投屏。本申请不需要增加或更改额外的硬件支持,通过先学习源端与接收端之间的靠近行为,获取对应的学习靠近信息并存储,当源端再次靠近接收端时,根据获取的实时靠近信息与已存储的学习靠近信息进行对比,即可实现在源端靠近接收端时,相互识别对方的靠近行为,当源端和接收端均识别成功,便可触发投屏显示或者WIFI连接等应用场景。本申请大大简化了投屏的操作步骤,提高了用户使用投屏的体验感。
实施例一
参照图1,本申请第一实施例提供了一种投屏方法,应用于接收端。接收端与源端互相可识别,但未建立连接。该投屏方法可以应用于投屏显示场景,例如,以手机作为源端,以电视作为接收端的投屏显示场景,也可以应用于WIFI连接场景,例如,以手机作为源端,以路由器作为接收端的WIFI连接场景。
下面结合图1,对本实施例提供的投屏方法进行详细描述,方法具体包括以下步骤:
步骤S101:接收源端发送的识别侦测请求,其中,识别侦测请求为源端处于接收端的预设范围内时发送的侦测请求。
具体的,识别侦测请求包括源端的第一信号强度值和源端的第一靠近信息元素。当源端靠近接收端,位于接收端预设的信号接收范围内时,源端连续不断地发出识别侦测请求,接收端则不断接收该识别侦测请求,同时,接收端连续不断地发送识别侦测回复,对应的,源端则不断接收该识别侦测回复。其中,识别侦测请求和识别侦测回复均带有靠近信息元素。
在具体实施方式中,通过IEEE 802.11管理帧进行源端与接收端的交互,比如,接收端接收源端发送的识别侦测请求,以及接收端发送识别侦测回复至源端的交互操作,该过程不需要通过连接WIFI才进行信息交互,省却了WIFI密码验证的过程,可进一步简化投屏操作。
具体的,IEEE 802.11是现今无线局域网通用的标准,IEEE 802.11管理帧的管理过程分为三步:首先,移动式工作站找出可供访问的兼容无线网络,其次,网络系统对移动式工作站进行验证,最后,移动式工作站与无线接入点之间建立关联。帧主体有固定字段(长度固定的字段)和信息元素(长度不定的数据块)。
在具体实施方式中,靠近信息元素(Nearby IE)可以是厂商定义的私有协议(Vendor IE),其中,IE,即Information Element,表示信息要素或信息元素,是信息系统中的一个组成部件。
在本实施例中,当手机靠近电视时,电视接收手机发送的识别侦测请求,同时,电视向手机发送识别侦测回复。也可以是在手机接收到电视端发送的识别侦测回复后,再发送识别侦测请求,防止手机随时发送识别侦测请求,占用太多内存。
步骤S102:根据识别侦测请求,获取源端的实时靠近信息。
在一种实施方式中,识别侦测请求包括源端的第一信号强度值,源端的实时靠近信息包括源端相对于接收端的第一靠近信号强度值和源端的第一MAC地址。
在具体实施方式中,根据识别侦测请求,获取源端的实时靠近信息的步骤,可以包括:
步骤S102.1:根据识别侦测请求,获取源端封装识别侦测请求时加入的MAC地址,作为源端的第一MAC地址。
具体的,从该识别侦测请求中获取源端封装该识别侦测请求时加入的MAC地址,作为获取的源端的第一MAC地址。
步骤S102.2:根据接收的历史识别侦测请求,获取其中多个第一信号强度值,计算多个第一信号强度值的平均值。
具体的,由于是连续不断地接收源端发送的识别侦测请求,因此,当前可能已经接收有多个识别侦测请求,根据源端的天线数,一个识别侦测请求中,可以有一个信号强度值,也可以有两个信号强度值,当有两个信号强度值时,以其中最大的信号强度值作为该识别侦测请求的第一信号强度值;再根据这多个识别侦测请求,计算对应的多个第一信号强度值的平均值。
在本实施例中,假设电视端接收到手机端连续发送的10个识别侦测请求,手机中采用的是双天线,因此,可以从每个识别侦测请求中读取两个信号强度值,每个识别侦测请求中只取最大值
Figure dest_path_image001
,这样就可以读取到10个第一信号强度值RSSI:
Figure 865699dest_path_image002
,计算这10个RSSI值的平均值:
Figure dest_path_image003
,该
Figure 35650dest_path_image001
便是该步骤要获取的多个第一信号强度值的平均值。
步骤S102.3:根据步骤S102.2的平均值,设定信号强度值范围。
具体的,根据步骤S102.2获取的多个第一信号强度值的平均值,根据实际情况设定信号强度值范围,比如,可以设定在该平均值的0.9倍至1.1倍的范围内。
在本实施例中,根据步骤S102.2获取的平均值
Figure 368542dest_path_image004
,设定这10个RSSI值应满足:
Figure dest_path_image005
步骤S102.4:获取多个第一信号强度值中在信号强度值范围内的第一信号强度值的平均值,作为源端相对于接收端的第一靠近信号强度值。
具体的,为了去掉波动较大,可能影响计算结果的信号强度值,对超过步骤S102.3的信号强度值范围的第一信号强度值直接丢弃,对剩下的信号强度值再求取平均值,可以精确最终获得的第一靠近信号强度值。
在本实施例中,依次确认10个第一信号强度值RSSI:
Figure 573127dest_path_image006
,是否均在步骤S102.3设定的范围内,假设
Figure dest_path_image007
不在该范围内,则直接将
Figure 788732dest_path_image008
丢弃,对剩下的
Figure dest_path_image009
求取平均值:
Figure 445979dest_path_image010
,获取的平均值
Figure dest_path_image011
便是手机相对于电视端的第一靠近信号强度值。
在另一种实施方式中,识别侦测请求还包括源端的第一靠近信息元素;
在接收源端发送的识别侦测请求的步骤之后,方法还包括:
步骤A102.1:发送识别侦测回复至源端;
步骤A102.2:根据第一靠近信息元素,判断接收的识别侦测请求是否被标记;
步骤A102.3:若接收的识别侦测请求被标记,停止发送识别侦测回复至源端。
具体的,当接收的识别侦测请求中的第一靠近信息元素中定义的一个bit位被标记,即bit位为1时,说明源端已经识别出接收端,确定了接收端与源端的靠近行为,因此,接收端不需要再向该源端发送识别侦测回复。
步骤S103:将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果。
具体的,接收端已存储的学习靠近信息包括源端相对于接收端的第二靠近信号强度值和源端的第二MAC地址。
在具体实施方式中,将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果的步骤,可以包括:
S103.1:判断源端相对于接收端的第一靠近信号强度值是否大于源端相对于接收端的第二靠近信号强度值,以及源端的第一MAC地址与源端的第二MAC地址是否一致;
S103.2:若源端相对于接收端的第一靠近信号强度值大于源端相对于接收端的第二靠近信号强度值,且源端的第一MAC地址与源端的第二MAC地址一致,判定源端的实时靠近信息与已存储的学习靠近信息匹配;
S103.3:若源端相对于接收端的第一靠近信号强度值不大于源端相对于接收端的第二靠近信号强度值,或源端的第一MAC地址与源端的第二MAC地址不一致,判定源端的实时靠近信息与已存储的学习靠近信息不匹配。
具体的,接收端与源端先学习了靠近行为,会将学习得到的源端相对于接收端的第二靠近信号强度值和源端的第二MAC地址进行存储,作为接收端已存储的学习靠近信息。在实际靠近识别过程中,若获取到的源端的第一MAC地址与已存储源端的第二MAC地址一致,说明该源端是已经与该接收端学习过靠近行为的源端;同时地,若获取到的源端相对于接收端的第一靠近信号强度值大于源端相对于接收端的第二靠近信号强度值,说明该源端此时与接收端的距离已经小于此前学习靠近过程中源端与接收端的距离,即可确定该源端靠近接收端的靠近行为成立。
在本实施例中,若获取到的该手机的第一MAC地址在电视端已存储的MAC地址列表中,即该手机的第一MAC地址与电视端已存储的第二MAC地址一致,同时,若手机与电视的第二靠近信息强度值与电视端已经存储的第一靠近信息强度值一致,说明该手机已经离电视很近,确定手机靠近电视的靠近行为成立。
步骤S104:根据匹配结果,接收源端发送的投屏请求,进行投屏。
在具体实施方式中,根据匹配结果,接收源端发送的投屏请求,进行投屏的步骤,可以包括:
步骤S104.1:当源端的实时靠近信息与已存储的学习靠近信息匹配时,标记识别侦测回复,并接收源端发送的投屏请求,进行投屏。
具体的,当源端的实时靠近信息与已存储的学习靠近信息匹配时,确定了源端与该接收端的靠近行为成立,接收端识别源端的靠近行为成功,此时,接收端不需要再接收源端发送的识别侦测请求,因此,标记接收端发送至源端的识别侦测回复,具体标记识别侦测回复的第三靠近信息元素中定义的一个bit位,标记bit位等于1,当源端接收并识别到该识别侦测回复被标记后,便会停止发送识别侦测请求到接收端。同时,若源端也确定了接收端的靠近行为成立,便会发送投屏请求,接收端接收源端的投屏请求后,通知应用层建立投屏连接,便可进行投屏。
步骤S104.2:当源端的实时靠近信息与已存储的学习靠近信息不匹配时,停止接收源端发送的识别侦测请求。
具体的,当源端的实时靠近信息与已存储的学习靠近信息不匹配时,说明源端可能与接收端没有学习过靠近行为,无法根据靠近行为实现投屏,接收端便不再接收该源端发送的识别侦测请求。
结合前述具体实施方式,在进一步的技术方案中,还提供源端靠近接收端的学习过程,具体可以通过如下步骤实现:
步骤X101:接收源端发送的学习侦测请求,其中,学习侦测请求为源端处于接收端的预设范围内时发送的侦测请求。
具体的,接收源端发送的学习侦测请求,并发送学习侦测回复至源端,其中,学习侦测请求包括源端的第二信号强度值和源端的第二靠近信息元素。当源端靠近接收端,位于接收端预设的信号接收范围内时,源端连续不断地发出学习侦测请求,接收端则不断接收该学习侦测请求,同时,接收端连续不断地发送学习侦测回复至源端,对应的,源端则不断接收该学习侦测回复。其中,学习侦测请求和学习侦测回复均带有靠近信息元素。当一个新的源端与接收端进行靠近学习时,接收端没有存储该源端的学习靠近信息,便可区别出接收的侦测请求为学习侦测请求,并不是识别侦测请求。
步骤X102:根据学习侦测请求,获取源端的学习靠近信息并存储。
具体的,学习侦测请求包括源端的第二信号强度值,源端的学习靠近信息包括源端相对于接收端的第二靠近信号强度值和源端的第二MAC地址。
具体的,根据学习侦测请求,获取源端的学习靠近信息并存储的步骤,可以包括:
步骤X102.1:根据学习侦测请求,获取源端封装学习侦测请求时加入的MAC地址,作为源端的第二MAC地址。
具体的,从该学习侦测请求中获取源端封装该学习侦测请求时加入的MAC地址,作为获取的源端的第二MAC地址。
步骤X102.2:根据接收的历史的学习侦测请求,获取其中多个第二信号强度值,计算多个第二信号强度值的平均值;
步骤X102.3:根据步骤X102.2的平均值,设定信号强度值范围;
步骤X102.4:获取多个第二信号强度值中在信号强度值范围内的第二信号强度值的平均值,作为源端相对于接收端的第二靠近信号强度值。
需要说明的是,上述步骤X102.2~X102.4计算源端相对于接收端的第二靠近信号强度值的详细过程,与上述步骤S102.2~S102.4计算源端相对于接收端的第一靠近信号强度值类似,为了说明书的简洁,此处不再赘述。
步骤X102.5:存储源端的学习靠近信息。
具体的,存储源端相对于接收端的第二靠近信号强度值和源端的第二MAC地址,将该第二MAC地址存储到接收端的MAC地址学习列表中,以备后续识别源端的靠近行为时调用、对比。
在另一种实施方式中,在根据学习侦测请求,获取源端的学习靠近信息并存储的步骤之后,方法还包括:
步骤X103:标记学习侦测回复。
具体的,存储源端的学习靠近信息后,接收端不需要再继续接收源端的学习侦测请求,因此,标记接收端发送至源端的学习侦测回复,具体标记学习侦测回复的第一靠近信息元素中定义的一个bit位,标记bit位等于1,当源端接收并识别到该学习侦测回复被标记后,便会停止发送学习侦测请求。
步骤X104:根据第二靠近信息元素,判断接收的学习侦测请求是否被标记。
具体的,在根据学习侦测请求,获取源端的学习靠近信息并存储的同时,根据第二靠近信息元素,判断接收的学习侦测请求是否被标记。
步骤X105:若接收的学习侦测请求被标记,停止发送学习侦测回复至源端。
具体的,当接收的学习侦测请求中的第二靠近信息元素中定义的一个bit位被标记,即bit位为1时,说明源端已经学习好了与接收端的靠近行为,因此,接收端不需要再向该源端发送学习侦测回复,因此停止发送学习侦测回复至源端。当源端停止发送学习侦测请求到接收端,且接收端也停止发送学习侦测回复至源端时,该源端靠近接收端的学习靠近行为结束,后续该源端再次靠近该接收端时,按照步骤S101~S104进行靠近行为的识别即可。
本实施例提供的一种投屏方法,应用于接收端,当源端靠近接收端时,通过接收到的源端发送的识别侦测请求,获取源端的实时靠近信息;再将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;最后根据匹配结果,接收源端发送的投屏请求,进行投屏。本申请不需要增加或更改额外的硬件支持,通过先学习源端与接收端之间的靠近行为,获取对应的学习靠近信息并存储,当源端再次靠近接收端时,根据获取的实时靠近信息与已存储的学习靠近信息进行对比,即可实现在源端靠近接收端时,相互识别对方的靠近行为,当源端和接收端均识别成功,便可触发投屏显示或者WIFI连接等应用场景。本申请大大简化了投屏的操作步骤,提高了用户使用投屏的体验感。当用户想要进行手机在电视端的投屏显示时,将手机靠近电视,通过手机与电视的之间的靠近识别,可直接触发投屏,可在不需要更改硬件或增加近场通信设备的情况下,实现投屏显示或WIFI连接。
实施例二
基于同一申请构思,参照图2,本申请第二实施例提供了一种投屏方法,应用于源端。基于上述本申请的第一实施例,对本实施例提供的投屏方法进行详细描述,方法具体包括以下步骤:
步骤S201:当源端处于接收端的预设范围内时,发送识别侦测请求至接收端,并接收所述接收端发送的识别侦测回复。
具体的,识别侦测回复包括接收端的第三信号强度值和接收端的第三靠近信息元素。当源端靠近接收端,位于接收端预设的信号接收范围内时,连续不断地发出识别侦测请求,并不断接收该接收端发送的识别侦测回复。
步骤S202:根据识别侦测回复,获取接收端的实时靠近信息。
在一种实施方式中,识别侦测回复包括接收端的第三信号强度值,接收端的实时靠近信息包括接收端相对于源端的第三靠近信号强度值和接收端的第三MAC地址。
在具体实施方式中,根据识别侦测回复,获取接收端的实时靠近信息的步骤,可以包括:
步骤S202.1:根据识别侦测回复,获取接收端封装识别侦测回复时加入的MAC地址,作为接收端的第三MAC地址。
具体的,从该识别侦测回复中获取接收端封装该识别侦测回复时加入的MAC地址,作为获取的接收端的第三MAC地址。
步骤S202.2:根据接收的历史的识别侦测回复,获取其中多个第三信号强度值,计算多个第三信号强度值的平均值;
步骤S202.3:根据步骤S202.2的平均值,设定信号强度值范围;
步骤S202.4:获取多个第三信号强度值中在信号强度值范围内的第三信号强度值的平均值,作为接收端相对于源端的第三靠近信号强度值。
需要说明的是,上述步骤S202.2~S202.4计算接收端相对于源端的第三靠近信号强度值的详细过程,与上述步骤S102.2~S102.4计算源端相对于接收端的第一靠近信号强度值类似,为了说明书的简洁,此处不再赘述。
在另一种实施方式中,识别侦测回复还包括接收端的第三靠近信息元素;
在当源端处于接收端的预设范围内时,发送识别侦测请求至接收端,并接收所述接收端发送的识别侦测回复的步骤之后,方法还可以包括:
步骤A202.1:根据第三靠近信息元素,判断接收的识别侦测回复是否被标记;
步骤A202.2:若接收的识别侦测回复被标记,停止发送识别侦测请求至接收端。
具体的,当接收的识别侦测回复中的第三靠近信息元素中定义的一个bit位被标记,即bit位为1时,说明接收端已经识别出源端,因此,源端不需要再向该接收端发送识别侦测请求。
步骤S203:将接收端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果。
具体的,源端已存储的学习靠近信息包括接收端相对于源端的第四靠近信号强度值和接收端的第四MAC地址。
在具体实施方式中,将接收端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果的步骤,可以包括:
步骤S203.1:判断接收端相对于源端的第三靠近信号强度值是否大于接收端相对于源端的第四靠近信号强度值,以及接收端的第三MAC地址与接收端的第四MAC地址是否一致;
步骤S203.2:若接收端相对于源端的第三靠近信号强度值大于接收端相对于源端的第四靠近信号强度值,且接收端的第三MAC地址与接收端的第四MAC地址一致,判定接收端的实时靠近信息与已存储的学习靠近信息匹配;
步骤S203.3:若接收端相对于源端的第三靠近信号强度值不大于接收端相对于源端的第四靠近信号强度值,或接收端的第三MAC地址与接收端的第四MAC地址不一致,判定接收端的实时靠近信息与已存储的学习靠近信息不匹配。
具体的,源端先学习了接收端对该源端的靠近行为,会将学习得到的接收端相对于源端的第四靠近信号强度值和接收端的的第四MAC地址进行存储,作为源端已存储的学习靠近信息。在实际靠近识别过程中,若获取到的接收端的第三MAC地址与接收端的第四MAC地址一致,说明该接收端是已经与该源端学习过靠近行为的接收端;同时,若获取到的接收端相对于源端的第三靠近信号强度值大于接收端相对于源端的第四靠近信号强度值,说明源端与该接收端的距离已经小于此前学习靠近过程中源端与接收端的距离,即可确定该接收端靠近源端的靠近行为成立。
步骤S204:根据匹配结果,发送投屏请求至接收端,以进行投屏。
在具体实施方式中,根据匹配结果,发送投屏请求至接收端,以进行投屏的步骤,可以包括:
步骤S204.1:当接收端的实时靠近信息与已存储的学习靠近信息匹配时,继续接收识别侦测回复;
具体的,以防只是临时靠近,因此,当当前获取的接收端的实时靠近信息与源端已存储的学习靠近信息匹配,也不急于建立连接;
步骤S204.2:当接收的识别侦测回复的数量达到预设数量时,标记识别侦测请求,并发送投屏请求至接收端,以进行投屏;
具体的,当源端连续根据多个识别侦测回复获取到的接收端的实时靠近信息与源端已存储的学习靠近信息均匹配,且识别匹配的次数达到预设次数时,才确定接收端与源端的靠近行为成立,源端识别接收端的靠近行为成功,此时,源端不需要再接收该接收端发送的识别侦测回复,因此,标记源端发送至接收端的识别侦测请求,具体标记识别侦测请求的第一靠近信息元素中定义的一个bit位,标记bit位等于1,当接收端接收并识别到该识别侦测请求被标记后,便会停止发送识别侦测回复。同时,源端会通知应用层,生成投屏请求,并将该投屏请求发送给接收端,以使接收端在接收到该投屏请求后建立投屏连接,以进行投屏。
步骤S204.3:当接收端的实时靠近信息与已存储的学习靠近信息不匹配时,停止接收该接收端发送的识别侦测回复。
具体的,当接收端的实时靠近信息与已存储的学习靠近信息不匹配时,说明此前源端可能没有学习过该接收端的靠近行为,无法根据该靠近行为实现投屏,源端便不再接收该接收端发送的识别侦测回复。
结合前述具体实施方式,在进一步的技术方案中,还提供接收端靠近源端的学习过程,具体可以通过如下步骤实现:
步骤X201:当源端处于接收端的预设范围内时,发送学习侦测请求至接收端,并接收接收端发送的学习侦测回复。
具体的,学习侦测回复包括接收端的第三信号强度值和接收端的第四靠近信息元素。当源端靠近接收端,位于接收端预设的信号接收范围内时,连续不断地发出学习侦测请求,并不断接收该接收端发送的学习侦测回复。
步骤X202:根据学习侦测回复,获取接收端的学习靠近信息并存储。
具体的,学习侦测回复包括接收端的第三信号强度值,接收端的学习靠近信息包括接收端相对于源端的第四靠近信号强度值和接收端的第四MAC地址。
具体的,根据学习侦测回复,获取接收端的学习靠近信息并存储的步骤,可以包括:
步骤X202.1:根据学习侦测回复,获取接收端封装该学习侦测回复时加入的MAC地址,作为接收端的第四MAC地址。
具体的,从学习侦测回复中获取接收端封装该学习侦测回复时加入的MAC地址,作为获取的接收端的第四MAC地址。
步骤X202.2:根据接收的历史的学习侦测回复,获取其中多个第三信号强度值,计算多个第三信号强度值的平均值;
步骤X202.3:根据步骤X202.2的平均值,设定信号强度值范围;
步骤X202.4:获取多个第三信号强度值中在信号强度值范围内的第三信号强度值的平均值,作为接收端相对于源端的第四靠近信号强度值。
需要说明的是,上述步骤X202.2~X202.4计算接收端相对于源端的第四靠近信号强度值的详细过程,与上述步骤S102.2~S102.4计算源端相对于接收端的第一靠近信号强度值类似,为了说明书的简洁,此处不再赘述。
步骤X202.5:存储接收端的学习靠近信息。
具体的,存储接收端相对于源端的第四靠近信号强度值和接收端的第四MAC地址,以备后续识别接收端的靠近行为时调用、对比。
在另一种实施方式中,在根据学习侦测回复,获取接收端的学习靠近信息并存储的步骤之后,方法还包括:
步骤X203:标记学习侦测请求。
具体的,存储接收端的学习靠近信息后,源端不需要再继续接收该接收端的学习侦测回复,因此,标记发送至接收端的学习侦测请求,当接收端接收并识别到该学习侦测请求被标记后,便会停止发送学习侦测回复。
步骤X204:根据第四靠近信息元素,判断接收的学习侦测回复是否被标记;
具体的,在根据学习侦测回复,获取接收端的学习靠近信息并存储的同时,根据第四靠近信息元素,判断接收的学习侦测回复是否被标记。
步骤X205:若接收的学习侦测回复被标记,停止发送学习侦测请求至接收端。
具体的,当接收的学习侦测回复被标记时,说明接收端已经学习好了与源端的靠近行为,因此,源端不需要再向该接收端发送学习侦测请求,因此停止发送学习侦测请求至接收端。当接收端停止发送学习侦测回复至源端,源端也停止发送学习侦测请求到接收端时,源端靠近该接收端的学习靠近行为结束,后续源端再靠近该接收端时,按照步骤S201~S204进行靠近行为的识别即可。
本实施例提供的一种投屏方法,应用于源端,当源端靠近接收端时,通过接收到的接收端发送的识别侦测回复,获取接收端的实时靠近信息;再将接收端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;最后根据匹配结果,发送投屏请求至接收端,以进行投屏。当用户想要进行手机在电视端的投屏显示时,直接将手机靠近电视,通过手机与电视的之间的靠近识别,即可直接触发投屏,在不需要更改硬件或增加近场通信设备的情况下,就可实现投屏显示或WIFI连接。
实施例三
基于同一申请构思,本实施例提供了一种接收端,该接收端可以是手机、平板电脑等电子设备,接收端包括:
存储器和处理器;
其中,存储器上存储有计算机程序,该计算机程序被处理器执行时,实现如上述实施例一中的投屏方法。
可以理解,接收端还可以包括,多媒体组件,输入/输出(I/O)接口,以及通信组件。
其中,处理器用于执行如上述实施例一中的投屏方法中的全部或部分步骤。存储器用于存储各种类型的数据,这些数据例如可以包括电子设备中的任何应用程序或方法的指令,以及应用程序相关的数据。
处理器可以是专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行如上述实施例一中的投屏方法中的全部或部分步骤。
存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。
多媒体组件可以包括屏幕和音频组件,屏幕可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器或通过通信组件发送。音频组件还包括至少一个扬声器,用于输出音频信号。
I/O接口为处理器和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。
通信组件用于该电子设备与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G或4G,或它们中的一种或几种的组合,因此相应的该通信组件可以包括:Wi-Fi模块,蓝牙模块,NFC模块。
实施例四
基于同一申请构思,本实施例提供了一种源端,该源端可以是电视、电脑等电子设备,源端包括:
存储器和处理器;
其中,存储器上存储有计算机程序,该计算机程序被处理器执行时,实现如上述实施例二中的投屏方法。
可以理解,电子设备还可以包括,多媒体组件,输入/输出(I/O)接口,以及通信组件。
其中,处理器用于执行如上述实施例二中的投屏方法中的全部或部分步骤。存储器用于存储各种类型的数据,这些数据例如可以包括电子设备中的任何应用程序或方法的指令,以及应用程序相关的数据。
处理器可以是专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行如上述实施例二中的投屏方法中的全部或部分步骤。
存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。
多媒体组件可以包括屏幕和音频组件,屏幕可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器或通过通信组件发送。音频组件还包括至少一个扬声器,用于输出音频信号。
I/O接口为处理器和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。
通信组件用于该电子设备与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G或4G,或它们中的一种或几种的组合,因此相应的该通信组件可以包括:Wi-Fi模块,蓝牙模块,NFC模块。
实施例五
基于同一申请构思,参照图3,本实施例提供了一种投屏系统,系统包括:
接收端和源端;
其中,接收端用于实现如上述实施例一中的投屏方法中的全部或部分步骤;源端用于实现如上述实施例二中的投屏方法中的全部或部分步骤。
当源端靠近接收端时,源端通过接收到的接收端发送的识别侦测回复,获取接收端的实时靠近信息;再将接收端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;最后根据匹配结果,发送投屏请求至接收端,以进行投屏。同时,接收端通过接收到的源端发送的识别侦测请求,获取源端的实时靠近信息;再将源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;最后根据匹配结果,接收源端发送的投屏请求,进行投屏。
本申请不需要增加或更改额外的硬件支持,即可实现在源端靠近接收端时,相互识别靠近的行为,从而触发投屏显示或者WIFI连接等应用场景。本申请大大简化了投屏的操作步骤,提高了用户使用投屏的体验感。当用户想要进行手机在电视端的投屏显示时,直接将手机靠近电视,通过手机与电视的之间的靠近识别,即可直接触发投屏,在不需要更改硬件或增加近场通信设备的情况下,就可实现投屏显示或WIFI连接。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是在本申请的申请构思下,利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均包括在本申请的专利保护范围内。

Claims (20)

  1. 一种投屏方法,其中,应用于接收端,所述方法包括以下步骤:
    接收源端发送的识别侦测请求,其中,所述识别侦测请求为所述源端处于所述接收端的预设范围内时发送的侦测请求;
    根据所述识别侦测请求,获取所述源端的实时靠近信息;
    将所述源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;
    根据所述匹配结果,接收所述源端发送的投屏请求,进行投屏。
  2. 如权利要求1所述的投屏方法,其中,所述在接收源端发送的识别侦测请求之前,所述方法还包括:
    接收所述源端发送的学习侦测请求,其中,所述学习侦测请求为所述源端处于所述接收端的预设范围内时发送的侦测请求;
    根据所述学习侦测请求,获取所述源端的学习靠近信息并存储。
  3. 如权利要求1所述的投屏方法,其中,所述识别侦测请求包括所述源端的第一信号强度值,所述源端的实时靠近信息包括所述源端相对于所述接收端的第一靠近信号强度值和所述源端的第一MAC地址;
    所述根据所述识别侦测请求,获取所述源端的实时靠近信息的步骤,具体包括:
    根据所述识别侦测请求,获取源端封装所述识别侦测请求时加入的MAC地址,作为所述源端的第一MAC地址;
    根据接收的历史识别侦测请求,获取其中多个第一信号强度值,计算所述多个第一信号强度值的平均值;
    根据所述平均值,设定信号强度值范围;
    获取所述多个第一信号强度值中在所述信号强度值范围内的第一信号强度值的平均值,作为所述源端相对于所述接收端的第一靠近信号强度值。
  4. 如权利要求3所述的投屏方法,其中,所述根据接收的历史识别侦测请求,获取其中多个第一信号强度值,计算所述多个第一信号强度值的平均值,包括:
    当有两个信号强度值时,以其中最大的信号强度值作为该识别侦测请求的第一信号强度值;
    根据多个识别侦测请求,计算对应的多个第一信号强度值的平均值。
  5. 如权利要求3所述的投屏方法,其中,所述识别侦测请求还包括所述源端的第一靠近信息元素;
    在接收源端发送的识别侦测请求的步骤之后,所述方法还包括:
    发送识别侦测回复至所述源端;
    根据所述第一靠近信息元素,判断接收的识别侦测请求是否被标记;
    若接收的识别侦测请求被标记,停止发送识别侦测回复至源端。
  6. 如权利要求3所述的投屏方法,其中,所述已存储的学习靠近信息包括所述源端相对于所述接收端的第二靠近信号强度值和所述源端的第二MAC地址;
    所述将所述源端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果的步骤,具体包括:
    判断所述源端相对于所述接收端的第一靠近信号强度值是否大于所述源端相对于所述接收端的第二靠近信号强度值,以及所述源端的第一MAC地址与所述源端的第二MAC地址是否一致;
    若所述源端相对于所述接收端的第一靠近信号强度值大于所述源端相对于所述接收端的第二靠近信号强度值,且所述源端的第一MAC地址与所述源端的第二MAC地址一致,判定所述源端的实时靠近信息与已存储的学习靠近信息匹配;
    若所述源端相对于所述接收端的第一靠近信号强度值不大于所述源端相对于所述接收端的第二靠近信号强度值,或所述源端的第一MAC地址与所述源端的第二MAC地址不一致,判定所述源端的实时靠近信息与已存储的学习靠近信息不匹配。
  7. 如权利要求3所述的投屏方法,其中,获取所述多个第一信号强度值中在所述信号强度值范围内的第一信号强度值的平均值,作为所述源端相对于所述接收端的第一靠近信号强度值,包括:
    舍弃超过所述信号强度值范围的第一信号强度值;
    计算剩下的信号强度值对应的平均值,作为所述源端相对于所述接收端的第一靠近信号强度值。
  8. 如权利要求1所述的投屏方法,其中,所述根据所述匹配结果,接收源端发送的投屏请求,进行投屏,包括:
    当所述源端的实时靠近信息与已存储的学习靠近信息匹配时,标记识别侦测回复,并接收所述源端发送的投屏请求,进行投屏;
    当所述源端的实时靠近信息与已存储的学习靠近信息不匹配时,停止接收所述源端发送的识别侦测请求
  9. 如权利要求8所述的投屏方法,其中,所述方法还包括:
    接收所述源端发送的学习侦测请求,其中,所述学习侦测请求为源端处于接收端的预设范围内时发送的侦测请求;
    根据所述学习侦测请求,获取所述源端的学习靠近信息并存储。
  10. 如权利要求9所述的投屏方法,其中,所述根据所述学习侦测请求,获取所述源端的学习靠近信息并存储,包括:
    根据学习侦测请求,获取源端封装学习侦测请求时加入的MAC地址,作为源端的第二MAC地址;
    根据接收的历史的学习侦测请求,获取多个第二信号强度值;
    计算所述多个第二信号强度值的平均值;
    根据所述平均值,设定信号强度值范围;
    获取所述多个第二信号强度值中在信号强度值范围内的第二信号强度值的平均值,作为所述源端相对于所述接收端的第二靠近信号强度值;
    存储所述源端的学习靠近信息。
  11. 如权利要求9所述的投屏方法,其中,在根据所述学习侦测请求,获取所述源端的学习靠近信息并存储的步骤之后,所述方法还包括:
    标记学习侦测回复;
    根据所述第二靠近信息元素,判断接收的学习侦测请求是否被标记;
    若接收的学习侦测请求被标记,停止发送学习侦测回复至所述源端。
  12. 一种投屏方法,其中,应用于源端,所述方法包括以下步骤:
    当所述源端处于接收端的预设范围内时,发送识别侦测请求至所述接收端,并接收所述接收端发送的识别侦测回复;
    根据所述识别侦测回复,获取所述接收端的实时靠近信息;
    将所述接收端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果;
    根据所述匹配结果,发送投屏请求至接收端,以进行投屏。
  13. 如权利要求12所述的投屏方法,其中,所述根据所述匹配结果,发送投屏请求至接收端,以进行投屏的步骤,具体包括:
    当所述接收端的实时靠近信息与已存储的学习靠近信息匹配时,继续接收所述识别侦测回复;
    当接收的所述识别侦测回复的数量达到预设数量时,标记识别侦测请求,并发送投屏请求至接收端,以进行投屏;
    当所述接收端的实时靠近信息与已存储的学习靠近信息不匹配时,停止接收所述接收端发送的识别侦测回复。
  14. 如权利要求12所述的投屏方法,其中,所述根据所述识别侦测回复,获取所述接收端的实时靠近信息,包括:
    根据识别侦测回复,获取接收端封装识别侦测回复时加入的MAC地址,作为接收端的第三MAC地址;
    根据接收的历史的识别侦测回复,获取多个第三信号强度值,计算多个第三信号强度值的平均值;
    根据多个第三信号强度值的平均值,设定信号强度值范围;
    获取多个第三信号强度值中在信号强度值范围内的第三信号强度值的平均值,作为接收端相对于所述源端的第三靠近信号强度值。
  15. 如权利要求12所述的投屏方法,其中,所述识别侦测回复还包括接收端的第三靠近信息元素,当所述接收端的实时靠近信息与已存储的学习靠近信息匹配时,继续接收所述识别侦测回复的步骤之后,所述方法还包括:
    根据第三靠近信息元素,判断接收的识别侦测回复是否被标记;
    若接收的识别侦测回复被标记,停止发送识别侦测请求至所述接收端。
  16. 如权利要求12所述的投屏方法,其中,所述将所述接收端的实时靠近信息与已存储的学习靠近信息进行匹配,以获得匹配结果,包括:
    判断接收端相对于源端的第三靠近信号强度值是否大于接收端相对于源端的第四靠近信号强度值,以及接收端的第三MAC地址与接收端的第四MAC地址是否一致;
    若接收端相对于源端的第三靠近信号强度值大于接收端相对于源端的第四靠近信号强度值,且接收端的第三MAC地址与接收端的第四MAC地址一致,判定接收端的实时靠近信息与已存储的学习靠近信息匹配;
    若接收端相对于源端的第三靠近信号强度值不大于接收端相对于源端的第四靠近信号强度值,或接收端的第三MAC地址与接收端的第四MAC地址不一致,判定接收端的实时靠近信息与已存储的学习靠近信息不匹配。
  17. 如权利要求12所述的投屏方法,其中,所述方法还包括:
    当所述源端处于所述接收端的预设范围内时,发送学习侦测请求至所述接收端,并接收所述接收端发送的学习侦测回复。
    根据所述接收端发送的学习侦测回复,获取所述接收端的学习靠近信息并存储。
  18. 一种接收端,其中,所述接收端包括:
    存储器和处理器;
    其中,所述存储器上存储有计算机程序,该计算机程序被所述处理器执行时,实现如权利要求1至11中任意一项所述的投屏方法。
  19. 一种源端,其中,所述源端包括:
    存储器和处理器;
    其中,所述存储器上存储有计算机程序,该计算机程序被所述处理器执行时,实现如权利要求12至17中任意一项所述的投屏方法。
  20. 一种投屏系统,其中,所述系统包括:
    接收端和源端;
    其中,所述接收端用于实现如权利要求1至5中任意一项所述的投屏方法;
    所述源端用于实现如权利要求12至17中任意一项所述的投屏方法。
PCT/CN2021/111514 2020-12-29 2021-08-09 投屏方法、接收端、源端及投屏系统 WO2022142352A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
GB2310931.7A GB2617760A (en) 2020-12-29 2021-08-09 Screen protection method, receiving end, source end, and screen projection system
US18/343,764 US20230345070A1 (en) 2020-12-29 2023-06-29 Screen projection

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011610143.6 2020-12-29
CN202011610143.6A CN112822530B (zh) 2020-12-29 2020-12-29 一种投屏方法、接收端、源端及投屏系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/343,764 Continuation US20230345070A1 (en) 2020-12-29 2023-06-29 Screen projection

Publications (1)

Publication Number Publication Date
WO2022142352A1 true WO2022142352A1 (zh) 2022-07-07

Family

ID=75854753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/111514 WO2022142352A1 (zh) 2020-12-29 2021-08-09 投屏方法、接收端、源端及投屏系统

Country Status (4)

Country Link
US (1) US20230345070A1 (zh)
CN (1) CN112822530B (zh)
GB (1) GB2617760A (zh)
WO (1) WO2022142352A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822530B (zh) * 2020-12-29 2022-07-29 深圳Tcl新技术有限公司 一种投屏方法、接收端、源端及投屏系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160321567A1 (en) * 2015-04-30 2016-11-03 Hewlett-Packard Development Company Projection device access
CN109618220A (zh) * 2018-12-25 2019-04-12 三星电子(中国)研发中心 无线投屏方法及无线投屏系统
JP2019082973A (ja) * 2017-10-31 2019-05-30 アルプスアルパイン株式会社 投影システム
CN111061447A (zh) * 2019-12-18 2020-04-24 青岛海信商用显示股份有限公司 无线传屏方法、装置及系统
CN111147938A (zh) * 2018-11-06 2020-05-12 奇酷互联网络科技(深圳)有限公司 视频投屏方法、视频源终端、播放终端及存储介质
CN112822530A (zh) * 2020-12-29 2021-05-18 深圳Tcl新技术有限公司 一种投屏方法、接收端、源端及投屏系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5963057B2 (ja) * 2013-07-26 2016-08-03 株式会社リコー 投射光学系および画像投射装置
US20150257091A1 (en) * 2014-03-10 2015-09-10 Nissim Zur Apparatuses, methods and systems for a Wi-Fi Bluetooth multimedia bridge
CN104780433B (zh) * 2015-03-26 2018-04-27 四川长虹电器股份有限公司 一种基于距离感应的无线传屏系统及方法
CN105094732B (zh) * 2015-06-29 2018-07-31 小米科技有限责任公司 屏幕显示方法及装置
CN106559699B (zh) * 2015-09-28 2019-08-27 中国电信股份有限公司 一种iptv的多屏互动方法、服务器和系统
CN106990650B (zh) * 2016-01-20 2020-05-22 中兴通讯股份有限公司 投影画面的调节方法及装置
CN108901024A (zh) * 2018-06-25 2018-11-27 北京小鱼在家科技有限公司 控制投屏接收设备连网及投屏接收设备连网方法、设备
CN109243226B (zh) * 2018-10-23 2020-07-14 广东精标科技股份有限公司 一种多屏互动教学系统及方法
CN109862404B (zh) * 2019-02-21 2021-02-02 深圳创维-Rgb电子有限公司 一种智能电视的交互方法、存储介质及智能电视
CN110191452A (zh) * 2019-06-12 2019-08-30 湖南快乐阳光互动娱乐传媒有限公司 一种多屏互动方法、系统及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160321567A1 (en) * 2015-04-30 2016-11-03 Hewlett-Packard Development Company Projection device access
JP2019082973A (ja) * 2017-10-31 2019-05-30 アルプスアルパイン株式会社 投影システム
CN111147938A (zh) * 2018-11-06 2020-05-12 奇酷互联网络科技(深圳)有限公司 视频投屏方法、视频源终端、播放终端及存储介质
CN109618220A (zh) * 2018-12-25 2019-04-12 三星电子(中国)研发中心 无线投屏方法及无线投屏系统
CN111061447A (zh) * 2019-12-18 2020-04-24 青岛海信商用显示股份有限公司 无线传屏方法、装置及系统
CN112822530A (zh) * 2020-12-29 2021-05-18 深圳Tcl新技术有限公司 一种投屏方法、接收端、源端及投屏系统

Also Published As

Publication number Publication date
GB2617760A (en) 2023-10-18
US20230345070A1 (en) 2023-10-26
CN112822530A (zh) 2021-05-18
GB202310931D0 (en) 2023-08-30
CN112822530B (zh) 2022-07-29

Similar Documents

Publication Publication Date Title
CN107483715B (zh) 终端与设备通信的方法和系统、终端、存储介质
US10178215B2 (en) Communication systems and methods
JP7204792B2 (ja) Wi-fiホットスポット接続方法および端末
JP6144428B2 (ja) 無線lan自動接続方法、無線lan自動接続装置、プログラム、及び記録媒体
WO2020007158A1 (zh) 一种网络接入方法及装置
CN104378801A (zh) 接入无线网络的方法及装置
US10863559B2 (en) Method and apparatus for communicating in a wireless communication network
US20170105237A1 (en) Methods and apparatuses for network connection
WO2016127669A1 (zh) 终端设备接入无线网络的方法及装置
US9386613B2 (en) Wireless network system and connecting method thereof
KR20200044505A (ko) 링크 공유를 지원하는 전자 장치 및 이를 위한 방법
CN112119673B (zh) 支持多种无线通信协议的电子装置及其方法
CN103716793A (zh) 接入点信息分享方法和装置
CN105246074A (zh) 建立连接的方法及装置
KR20200088013A (ko) 무선 통신 네트워크에서 nssai를 요청하기 위한 전자 장치 및 그에 관한 방법
WO2018112942A1 (zh) 设备认证方法、装置、电子设备及从设备
JP2018500832A (ja) ワイヤレスドッキングシステムにおけるドッキーのモダリティの制御
WO2018053894A1 (zh) 物联网基于传输速率的接入点切换方法及装置
US20230345070A1 (en) Screen projection
WO2019015040A1 (zh) 基于信号强度的频点选取方法及物联网终端
CN111277505A (zh) 基于局域网的多终端联控方法、装置、设备及存储介质
BR112019015131A2 (pt) Método de exibição e combinação de registro de mensagem e dispositivo terminal
KR20200114166A (ko) 네트워크 패킷 처리 방법 및 이를 위한 전자 장치
WO2021143298A1 (zh) 无屏设备分享站点连接信息的方法、装置和存储介质
CN105430642A (zh) 文件传输方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21913100

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 202310931

Country of ref document: GB

Kind code of ref document: A

Free format text: PCT FILING DATE = 20210809

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21913100

Country of ref document: EP

Kind code of ref document: A1