CN110876115B - Projection method, terminal, projection equipment and storage medium - Google Patents

Projection method, terminal, projection equipment and storage medium Download PDF

Info

Publication number
CN110876115B
CN110876115B CN201810992550.4A CN201810992550A CN110876115B CN 110876115 B CN110876115 B CN 110876115B CN 201810992550 A CN201810992550 A CN 201810992550A CN 110876115 B CN110876115 B CN 110876115B
Authority
CN
China
Prior art keywords
projection
information
terminal
wireless hotspot
beacon message
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
CN201810992550.4A
Other languages
Chinese (zh)
Other versions
CN110876115A (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.)
China Mobile Communications Group Co Ltd
China Mobile Internet Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Internet 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 China Mobile Communications Group Co Ltd, China Mobile Internet Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810992550.4A priority Critical patent/CN110876115B/en
Publication of CN110876115A publication Critical patent/CN110876115A/en
Application granted granted Critical
Publication of CN110876115B publication Critical patent/CN110876115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management

Landscapes

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

Abstract

The embodiment of the invention discloses a projection method, which is applied to a terminal and comprises the following steps: receiving a starting instruction, and starting the wireless hotspot according to the starting instruction; when the projection equipment is in the coverage range of the wireless hotspot, sending a target beacon message carrying preset projection request information to the projection equipment; when the projection equipment is accessed to the wireless hotspot according to the target beacon message, the projection information is sent to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information.

Description

Projection method, terminal, projection equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a projection method, a terminal, a projection device, and a storage medium.
Background
With the continuous development of communication technology, mobile office has become a new office form. For example, a video conference is performed through terminals such as a mobile phone and a tablet personal computer, so that participants can hear sounds of other conference places, see images, actions and expressions of participants in other conference places, and send electronic demonstration contents to enable the participants to see related information of the conference.
When a video conference is carried out through a terminal, the screen of the terminal is small, the provided display range is limited, and the projection device is provided with a large screen, so that related signals on the terminal are projected onto the large screen of the projection device, and a better conference effect is brought.
However, in the prior art, a user must manually control the terminal and the projection device to search for a wireless network signal and input a wireless network password to access the terminal and the projection device to the same wireless network, so as to further project a relevant signal on the terminal onto a large screen of the projection device.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present invention desirably provide a projection method, a terminal, a projection device, and a storage medium, where when a wireless hotspot is started by the terminal and the projection device is in a coverage area of the wireless hotspot, a target beacon message carrying projection request information is automatically sent to the projection device, and the projection device may join the wireless hotspot according to the received target beacon message to implement projection of relevant information on the terminal, so as to improve intelligence of information projection between the terminal and the projection device.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a projection method, which is applied to a terminal and comprises the following steps:
receiving a starting instruction, and starting a wireless hotspot according to the starting instruction;
when the projection equipment is located in the coverage range of the wireless hotspot, sending a target beacon message carrying preset projection request information to the projection equipment;
when the projection equipment is accessed to the wireless hotspot according to the target beacon message, transmitting projection information to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information.
In the above scheme, before the sending, to the projection device, the target beacon packet carrying preset projection request information when the projection device is in the coverage area of the wireless hotspot, the method further includes:
acquiring an initial beacon message, splitting the preset projection request information according to a preset splitting mode, and acquiring a plurality of split information;
coding each split information of the split information with the initial beacon message to obtain a plurality of modified beacon messages;
and determining the plurality of modified beacon messages as the target beacon message.
In the foregoing solution, the encoding each splitting information of the multiple splitting information with the initial beacon packet to obtain multiple modified information packets includes:
encoding first splitting information into a target multicast physical address of the initial beacon message to obtain a first modification information message in the plurality of modification beacon messages; the first splitting information is any one splitting information in the plurality of splitting information.
The embodiment of the invention provides a projection method, which is applied to projection equipment and comprises the following steps:
when the terminal is in the coverage range of a wireless hotspot started by the terminal, receiving a target beacon message which is sent by the terminal and carries preset projection request information;
analyzing the target beacon message to obtain the preset projection request information;
accessing the wireless hotspot according to the preset projection request information;
and receiving the projection information sent by the terminal through the wireless hotspot, and projecting the projection information.
In the above solution, after the projecting the projection information, the method further includes:
and when the wireless hotspot is out of the coverage range, disconnecting the wireless hotspot and stopping projecting the projection information.
An embodiment of the present invention provides a terminal, where the terminal includes:
the management module receives a starting instruction and starts the wireless hotspot according to the starting instruction;
the sending module is used for sending a target beacon message carrying preset projection request information to the projection equipment when the projection equipment is located in the coverage range of the wireless hotspot; when the projection equipment is accessed to the wireless hotspot according to the target beacon message, transmitting projection information to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information.
In the above terminal, the terminal further includes:
the encapsulation module is used for acquiring an initial beacon message, splitting the preset projection request information according to a preset splitting mode and acquiring a splitting information group; coding each split information of the split information with the initial beacon message to obtain a plurality of modified beacon messages; determining the plurality of modified beacon messages as the target beacon message;
the encapsulation module is specifically configured to encode first splitting information into a destination multicast physical address of the initial beacon packet, and obtain a first modification information packet in the multiple modification beacon packets; the first splitting information is any one splitting information in the plurality of splitting information.
An embodiment of the present invention provides a projection apparatus, including:
the receiving module is used for receiving a target beacon message which is sent by the terminal and carries preset projection request information when the target beacon message is within the coverage range of a wireless hotspot started by the terminal;
the analysis module is used for analyzing the target beacon message to obtain the preset projection request information;
the connection module is used for accessing the wireless hotspot according to the preset projection request information;
and the projection module is used for receiving the projection information sent by the terminal through the wireless hotspot and projecting the projection information.
In the above projection device, the connection module is further configured to disconnect the connection with the wireless hotspot and stop projecting the projection information when the connection module is outside the coverage range.
An embodiment of the present invention provides a computer-readable storage medium applied to a terminal, where the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the above-mentioned projection method applied to the terminal.
An embodiment of the present invention provides a computer-readable storage medium applied to a projection apparatus, where the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the projection method applied to the projection apparatus.
Therefore, in the technical scheme of the embodiment of the invention, the terminal receives the opening instruction and opens the wireless hotspot according to the opening instruction; when the projection equipment is in the coverage range of the wireless hotspot, sending a target beacon message carrying preset projection request information to the projection equipment; when the projection equipment is accessed to the wireless hotspot according to the target beacon message, the projection information is sent to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information. That is to say, in the technical solution of the embodiment of the present invention, when the terminal starts the wireless hotspot and the projection device is in the coverage area of the wireless hotspot, the target beacon message carrying the projection request information is automatically sent to the projection device, and the projection device can join the wireless hotspot according to the received target beacon message, so as to implement projection of the relevant information on the terminal, thereby improving intelligence of information projection between the terminal and the projection device.
Drawings
Fig. 1 is a first schematic flow chart of a projection method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for determining a target beacon packet according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an exemplary mapping relationship between a destination multicast physical address and a destination multicast IP address according to an embodiment of the present invention;
fig. 4 is a second flowchart illustrating a projection method according to an embodiment of the present invention;
fig. 5 is a first schematic diagram of an interaction between an exemplary terminal and a projection device according to an embodiment of the present invention;
fig. 6 is a schematic interaction diagram of an exemplary terminal and projection device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a projection apparatus according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Example one
The embodiment of the invention provides a projection method which is applied to a terminal. Fig. 1 is a first schematic flow chart of a projection method according to an embodiment of the present invention. As shown in fig. 1, the method mainly comprises the following steps:
s101, receiving a starting instruction, and starting the wireless hotspot according to the starting instruction.
In the embodiment of the invention, the terminal can receive the opening instruction sent by the user and open the wireless hotspot according to the opening instruction.
It should be noted that, in the embodiment of the present invention, the terminal has the wireless hotspot mode, so that after the user sends the opening instruction to the terminal, the terminal can receive the opening instruction, and open the wireless hotspot according to the opening instruction.
It should be noted that, in the embodiment of the present invention, the start instruction is used to instruct the terminal to start the wireless hotspot, and the start instruction may be a touch operation for a wireless hotspot icon, or may be that some specific keys are pressed in a specific manner. The specific open command is not limited in the embodiments of the present invention.
And S102, when the projection equipment is in the coverage range of the wireless hotspot, sending a target beacon message carrying preset projection request information to the projection equipment.
In the embodiment of the invention, after the terminal starts the wireless hotspot, when the projection equipment is in the coverage range of the wireless hotspot, the terminal sends the target beacon message carrying the projection request information to the projection equipment.
It can be understood that, in the embodiment of the present invention, since the user needs the terminal, such as the mobile phone and the tablet pc, to have a smaller size and be convenient for moving, the screen of the terminal is usually smaller and the display range is smaller. However, the projection device has a large screen, and thus, if contents that the terminal needs to display are displayed on the projection device, a better visual effect can be obtained. Specific projection devices embodiments of the present invention are not limited.
It should be noted that, in the embodiment of the present invention, the coverage range of the wireless hotspot opened by the terminal is limited, that is, the coverage range of the wireless hotspot is within a certain range with reference to the terminal, and the wireless hotspot cannot be covered outside the certain range.
It can be understood that the projection device is generally large in size and fixed in placement position, and the mobile phone, the tablet personal computer and other terminals are small in size and convenient to carry, so that a user can hold the terminal by hands to move the terminal. The casting device may not be within the coverage of the wireless hotspot when the terminal is in the first position, and as the terminal moves, the casting device is within the coverage of the wireless hotspot when the terminal is in the second position. That is to say, when the terminal approaches the projection device, the projection device may be located within the coverage of the wireless hotspot, and the terminal may thereby send the target beacon packet to the projection device.
It should be noted that, in the embodiment of the present invention, the target beacon packet carries preset projection request information, which is used to instruct the projection device to access the wireless hotspot and to complete the projection requirement of the terminal.
It should be noted that, in the embodiment of the present invention, the preset projection request information includes: the content of the preamble, the audio/video projection request code, the Service Set Identifier (SSID) length, the SSID, the password length, and the password is shown in table 1.
TABLE 1
Figure BDA0001781142300000061
In table 1, the preamble may be composed of four bytes of fefefeffefe, which represents the start of the projection request, the video projection request code may be one byte, the SSID length is one byte, the password length is one byte, and the bytes occupied by the SSID and the password are determined according to actual settings. The specific preamble codebook embodiment of the present invention is not limited.
Illustratively, in an embodiment of the present invention, the av casting request code may be one byte, as shown in table 2.
TABLE 2
Value taking Means of
0x00 Retention
0x01 Audio and video projection request code
0x02-0xFF Retention
As shown in table 2, the audio/video casting request code in the preset casting request information may be 0x01, that is, 0x01 is added to the preset casting request information, that is, the representation request is used for audio/video casting.
It is understood that in the embodiment of the present invention, other codes may also be used as the audiovisual projection request code, for example, 0x02 reserved in table 2 in the present meaning, and may also be used as the audiovisual projection request code, and 0x01 is not reserved.
Illustratively, in the embodiment of the present invention, a specific preset casting request message is shown in table 3.
TABLE 3
FEFEFEFE 0x01 8 “MYSOFTAP” 8 “12345678”
In table 3, FEFEFEFE is a preamble, 0x01 is an audio/video projection request code, the SSID length is 8, the SSID is "MYSOFTAP", the password length is 8, and the password is "12345678".
It should be noted that, in the embodiment of the present invention, before sending the target beacon packet to the projection device, the terminal needs to determine, according to a certain method, the target beacon packet carrying the preset projection request information, so as to further implement sending of the target beacon packet.
Fig. 2 is a flowchart illustrating a method for determining a target beacon packet according to an embodiment of the present invention. As shown in fig. 2, the method mainly comprises the following steps:
s201, obtaining an initial beacon message, splitting preset projection request information according to a preset splitting mode, and obtaining a plurality of splitting information.
In the embodiment of the present invention, the terminal may first obtain the initial beacon packet, and split the preset projection request information according to the preset splitting manner, so as to obtain a plurality of split information.
It should be noted that, in the embodiment of the present invention, the initial beacon packet acquired by the terminal includes the destination multicast physical address and the destination multicast IP address, and in the prior art, the terminal usually periodically sends the initial beacon packet to the receiver to show the SSID of the terminal. The terminal can directly obtain the initial beacon message according to the actual situation. The embodiment of the present invention is not limited to the specific initial beacon message.
It should be noted that, in the embodiment of the present invention, the terminal actually encodes the predetermined projection request information into the initial beacon message for transmission. Fig. 3 is a schematic diagram of an exemplary mapping relationship between a destination multicast physical address and a destination multicast IP address according to an embodiment of the present invention. As shown in fig. 3, in the initial beacon message, since the destination multicast physical address and the destination multicast IP address have a certain mapping relationship and the last 23 bits (bits) of the two addresses are completely the same, the same part of one of the two addresses can be replaced by other information, such as the preset projection request information. However, when the initial beacon message is sent, the destination multicast IP address is encrypted and cannot be directly read after being received by the receiver, and the destination multicast physical address can be directly read, so that the preset projection request information is carried by using the same part of the destination multicast physical address as the destination multicast IP address. In addition, since the number of bytes that can be carried in the destination multicast physical address is limited, the preset projection request information needs to be split and carried to the destination group physical addresses of the plurality of initial beacon messages, so as to implement the transmission of the preset projection request information.
It can be understood that, in the embodiment of the present invention, since 23 bits of the destination multicast physical address of the initial beacon packet can carry the preset projection request information, and the preset projection request information is much greater than 23 bits, the terminal can split the preset projection request information according to the preset splitting manner.
It should be noted that, in the embodiment of the present invention, the terminal stores a preset splitting manner, and since 23 bits of the destination multicast physical address of the start beacon packet can carry the preset projection request information, the preset splitting manner may be splitting in a manner that 23 bits and less than 23 bits are used as a splitting limit.
For example, in the embodiment of the present invention, the terminal may split the preset projection request information according to a length of 16 bits, that is, a preamble of four bytes and a total of 32 bits may be split into two pieces of split information, where an audio/video projection request code of one byte, an SSID length of one byte, and a password length of one byte are respectively one piece of split information, an SSID of M bytes in length is split into (M × 8)/16 pieces of split information, and a password of N bytes in length is split into (N × 8)/16 pieces of split information, so that the terminal obtains a plurality of pieces of split information.
S202, each piece of splitting information in the plurality of pieces of splitting information is respectively encoded with the initial beacon message, and a plurality of modification information messages are obtained.
In the embodiment of the invention, after acquiring the initial beacon message and splitting the preset projection request information into a plurality of split information, the terminal encodes each split information of the plurality of split information with the initial beacon message respectively, thereby acquiring a plurality of modified beacon messages.
Specifically, in the embodiment of the present invention, the terminal encodes the first splitting information into the destination multicast physical address of the initial beacon packet, and obtains the first modification information packet in the plurality of modification beacon packets; the first splitting information is any one splitting information in the plurality of splitting information.
It should be noted that, in the embodiment of the present invention, the terminal splits the preset projection request information according to the length of 16 bits, that is, the first split information is 16 bits, and therefore, the terminal encodes the first split information into the last 16 bits of the destination multicast physical address of the initial beacon packet.
It can be understood that, in the embodiment of the present invention, the terminal splits the multiple pieces of splitting information, and therefore, each piece of splitting information is encoded with the initial beacon packet, that is, each piece of splitting information is encoded into the destination multicast physical address of the initial beacon packet, so as to obtain multiple modified initial beacon packets, that is, multiple modified beacon packets.
S203, determining the plurality of modified beacon messages as target beacon messages.
In the embodiment of the present invention, after obtaining a plurality of modified beacon messages, the terminal determines the plurality of modified beacon messages as the target beacon message.
It can be understood that, in the embodiment of the present invention, each modified beacon message in the target beacon message is actually a message obtained by encoding a part of the preset projection request information in the initial beacon message, that is, a message after splitting information, and under a normal condition, the initial beacon message is repeatedly sent to the receiving party in a certain period, so that when the terminal sends the target beacon message to the projection device, different modified beacon messages can be sent one by one in a certain period, and when all of the modified beacon messages are sent to the projection device, that is, the sending of the target beacon message is completed, that is, the sending of the preset projection request information is completed. The specific period is not limited in the embodiments of the present invention.
S103, when the projection equipment is accessed to the wireless hotspot according to the target beacon message, the projection information is sent to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information.
In the embodiment of the invention, after the terminal sends the target beacon message carrying the preset projection request information to the projection equipment, when the projection equipment accesses the wireless hotspot according to the target beacon message, the terminal further sends the projection information to the projection equipment through the wireless hotspot.
It should be noted that, in the embodiment of the present invention, the projection device may access the wireless hotspot according to the target beacon packet sent by the terminal, and the projection device accesses the wireless hotspot started by the terminal, that is, the projection device and the terminal are actually in the same local area network. Therefore, the terminal may send the projection information to the projection device through the wireless hotspot based on a Transmission layer Protocol such as a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP), so that the projection device projects the projection information.
It should be noted that, in the embodiment of the present invention, the projection information may be information such as audio or video, and the specific projection information is not limited in the embodiment of the present invention.
The embodiment of the invention provides a projection method, which is applied to a terminal, wherein the terminal receives a starting instruction and starts a wireless hotspot according to the starting instruction; when the projection equipment is in the coverage range of the wireless hotspot, sending a target beacon message carrying preset projection request information to the projection equipment; when the projection equipment is accessed to the wireless hotspot according to the target beacon message, the projection information is sent to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information. That is to say, in the technical solution of the embodiment of the present invention, as long as the terminal opens the wireless hotspot and is close to the projection device, and the projection device is within the coverage of the wireless hotspot, the terminal can automatically send the target beacon message carrying the preset projection request information to the projection device, so that the projection device automatically accesses the wireless hotspot, and can send the projection information to the projection device, and projection of the projection information is implemented, so that the user does not need to perform operations such as manually inputting a wireless password to implement connection between the terminal and the projection device in the prior art, and intelligence of information projection between the terminal and the projection device is improved.
Example two
The embodiment of the invention provides a projection method which is applied to projection equipment. Fig. 4 is a second flowchart illustrating a projection method according to an embodiment of the present invention. As shown in fig. 4, the method mainly comprises the following steps:
s401, when the terminal is in the coverage range of the wireless hotspot started by the terminal, receiving a target beacon message which is sent by the terminal and carries preset projection request information.
In the embodiment of the invention, when the projection equipment is in the coverage range of the wireless hotspot started by the terminal, the target beacon message which is sent by the terminal and carries the preset projection request information can be received.
It should be noted that, in the embodiment of the present invention, the projection device may be a device having a large screen, such as a projector, and the specific projection device is not limited in the embodiment of the present invention.
It should be noted that, in the embodiment of the present invention, the target beacon packet includes a plurality of modified beacon packets, the preset projection request information is split into a plurality of split information, and each split information in the plurality of split information is encoded with the initial beacon security packet, so as to generate a plurality of modified beacon packets. The terminal actually transmits the plurality of modified beacon messages included in the target beacon message in a periodic manner, and therefore, the projection device receives the target beacon message in a periodic manner.
Specifically, in the embodiment of the present invention, the casting device receives a first modified beacon packet in the multiple modified beacon packets in one period, and after receiving the multiple modified beacon packets according to the period, the casting device completes receiving the target beacon packet. The specific period is not limited in the embodiments of the present invention.
It can be understood that, in the embodiment of the present invention, the projection device has a wireless network access function, and the projection device can receive the target beacon packet sent by the terminal only when the projection device is located within the coverage of the wireless hotspot opened by the terminal.
S402, analyzing the target beacon message to obtain preset projection request information.
In the embodiment of the present invention, after receiving the target beacon message, the projection device may analyze the target beacon message, so as to obtain the preset projection request information.
It can be understood that, in the embodiment of the present invention, the target beacon packet includes a plurality of modified beacon packets, and each modified beacon packet of the plurality of modified beacon packets has a part of information of the preset projection request information, that is, a part of splitting information, so that the projection device can parse the target beacon packet to obtain a plurality of splitting information, and the plurality of splitting information can be combined into the preset projection request information.
It should be noted that, in the embodiment of the present invention, the projection device may also perform, in the process of receiving the target beacon packet, analysis to obtain one piece of splitting information each time a modified beacon packet included in the target beacon packet is received. For example, after receiving a modified beacon message included in the target beacon message, the projection device performs analysis to obtain splitting information in preset projection request information, where the splitting information is an audio/video projection request code 0x01, and the projection device can learn that the terminal requests to perform audio/video projection, and the projection device itself has a projection function.
And S403, accessing the wireless hotspot according to the preset projection request information.
In the embodiment of the present invention, after the projection device analyzes the target beacon message and obtains the preset projection request information carried in the target beacon message, the projection device may access the wireless hotspot started by the terminal according to the preset projection request information.
It should be noted that, in the embodiment of the present invention, the preset projection request information includes: the projection equipment can automatically try to access the wireless hotspot according to the information after obtaining the information, so that the wireless hotspot is finally accessed.
And S404, receiving the projection information sent by the terminal through the wireless hotspot, and projecting the projection information.
In the embodiment of the invention, the projection equipment can receive the projection information sent by the terminal through the wireless hotspot after accessing the wireless hotspot started by the terminal, and project the projection information.
It is understood that, in the embodiment of the present invention, the wireless hotspot opened by the access terminal of the casting device is actually the same local area network as the terminal of the casting device. Therefore, when the terminal sends the projection information to the projection device through the wireless hotspot based on a transport layer protocol such as TCP or UDP, the projection device may receive the projection information and further project the projection information.
It should be noted that, in the embodiment of the present invention, the projection information may be information such as audio or video, and the specific projection information is not limited in the embodiment of the present invention.
It should be noted that, in the embodiment of the present invention, after step S304, that is, after the projection device projects the projection information, since the user can move the terminal by holding the terminal in a hand to change the position of the terminal, the projection device may be out of the coverage of the wireless hotspot opened by the terminal along with the movement of the terminal.
Specifically, in the embodiment of the present invention, when the projection device is out of the coverage of the wireless hotspot, the connection with the wireless hotspot is disconnected, and the projection of the projection information is stopped.
It can be understood that, in the embodiment of the present invention, the user may not need to continue to use the projection device to project the projection information at some time, and at this time, the user may hold the terminal by hand, be far away from the projection device, and be that the projection device is located outside the coverage of the wireless hotspot started by the terminal, so that the projection device is automatically disconnected from the wireless hotspot and stops projecting the projection information.
The embodiment of the invention provides a projection method, which is applied to projection equipment, and is used for receiving a target beacon message which is sent by a terminal and carries preset projection request information when the projection equipment is in a coverage range of a wireless hotspot started by the terminal; analyzing the target beacon message to obtain preset projection request information; accessing a wireless hotspot according to preset projection request information; and receiving the projection information sent by the terminal through the wireless hotspot, and projecting the projection information. That is to say, in the technical solution of the embodiment of the present invention, when the projection device is in the coverage area of the wireless hotspot started by the terminal, the target beacon message carrying the preset projection request information can be automatically received, so as to automatically access the wireless hotspot according to the preset projection request information, and further receive the projection information sent by the terminal for projection.
EXAMPLE III
Fig. 5 is a first interaction diagram of an exemplary terminal and a projection device according to an embodiment of the present invention. As shown in fig. 5, the specific steps of the terminal and the projection device for implementing the projection method are as follows:
s501, the terminal opens the wireless hotspot according to the opening instruction.
S502, the terminal determines a target beacon message carrying preset projection request information.
Specifically, in the embodiment of the present invention, the terminal first obtains an initial beacon packet, splits the preset projection request information according to a preset splitting manner, obtains a plurality of split information, then codes each split information of the plurality of split information with the initial beacon packet, obtains a plurality of modified beacon packets, and finally determines the plurality of modified beacon packets as the target beacon packet.
And S503, when the projection equipment is in the coverage range of the wireless hotspot, the terminal sends a target beacon message to the projection equipment.
Specifically, in the embodiment of the present invention, the coverage area of the wireless hotspot is 50m, so that when the projection device is located in the range with the wireless hotspot as a center and the radius of 50m, the terminal may send the target beacon packet to the projection device in a periodic manner. The target beacon message comprises a plurality of modification beacon messages, and the terminal sends one modification beacon message to the projection equipment in each period until all the modification beacon messages are sent, namely the target beacon message is sent.
S504, the projection equipment analyzes the target beacon message to obtain preset projection request information.
And S505, the projection equipment accesses the wireless hotspot according to the preset projection request information.
And S506, the terminal sends the projection information to the projection equipment based on a transmission layer protocol such as TCP or UDP.
And S507, the projection equipment projects the projection information.
Fig. 6 is a schematic interaction diagram of an exemplary terminal and a projection device according to an embodiment of the present invention. As shown in fig. 6, the interactive process includes: the terminal, the projection equipment 1 and the projection equipment 2 realize the projection method, and the method comprises the following specific steps:
s601, the projection equipment 1 accesses the wireless hotspot started by the terminal and projects projection information.
And S602, the terminal is far away from the projection equipment 1 and is close to the projection equipment 2.
S603, the projection equipment 1 is disconnected from the wireless hotspot, and projection of projection information is stopped.
It should be noted that, in the embodiment of the present invention, the terminal is far away from the projection device 1, which results in that the projection device 1 is out of the coverage of the wireless hotspot, and therefore, the projection device disconnects from the wireless hotspot and stops projecting the projection information sent by the terminal.
S604, the terminal sends a target beacon message carrying preset projection request information to the projection equipment 2.
It should be noted that, in step S501, when the projection device 1 accesses the wireless hotspot started by the terminal, the terminal also sends the target beacon message carrying the preset projection request information to the projection device 1, so that the terminal may directly continue to send the target beacon message to the projection device 2.
S605, the projection equipment 2 analyzes the target beacon message to obtain preset projection request information.
And S606, the projection equipment 2 accesses the wireless hotspot according to the preset projection request information.
S607, the terminal transmits the projection information to the projection device 2 based on a transport layer protocol such as TCP or UDP.
S608, the projection device 2 projects the projection information.
It is understood that in the embodiment of the present invention, the terminal may actually switch between the plurality of projection devices smoothly and autonomously during the movement, and the projection information is automatically switched between different projection devices to project.
Example four
The embodiment of the invention provides a terminal. Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 7, the terminal includes:
the management module 701 receives a starting instruction and starts a wireless hotspot according to the starting instruction;
a sending module 702, configured to send a target beacon packet carrying preset projection request information to a projection device when the projection device is in a coverage area of the wireless hotspot; when the projection equipment is accessed to the wireless hotspot according to the target beacon message, transmitting projection information to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information.
Optionally, the terminal further includes:
the encapsulation module 703 is configured to obtain an initial beacon packet, split the preset projection request information according to a preset splitting manner, and obtain a split information group; coding each split information of the split information with the initial beacon message to obtain a plurality of modified beacon messages; determining the plurality of modified beacon messages as the target beacon message;
the encapsulating module 703 is specifically configured to encode first splitting information into a destination multicast physical address of the initial beacon packet, and obtain a first modification information packet in the multiple modification beacon packets; the first splitting information is any one splitting information in the plurality of splitting information.
The embodiment of the invention provides a terminal, which receives a starting instruction and starts a wireless hotspot according to the starting instruction; when the projection equipment is in the coverage range of the wireless hotspot, sending a target beacon message carrying preset projection request information to the projection equipment; when the projection equipment is accessed to the wireless hotspot according to the target beacon message, the projection information is sent to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information. That is to say, the terminal provided in the embodiment of the present invention, as long as the wireless hotspot is turned on and is close to the projection device, so that the projection device is within the coverage area of the wireless hotspot, can automatically send the target beacon packet carrying the preset projection request information to the projection device, so that the projection device is automatically accessed to the wireless hotspot, and thus can send the projection information to the projection device, and implement projection of the projection information, so that a user does not need to perform operations such as manually inputting a wireless password to implement connection between the terminal and the projection device in the prior art, thereby improving intelligence of information projection between the terminal and the projection device.
The embodiment of the invention provides projection equipment. Fig. 8 is a schematic structural diagram of a projection apparatus according to an embodiment of the present invention. As shown in fig. 8, the projection apparatus includes:
the receiving module 801 is configured to receive a target beacon message which is sent by a terminal and carries preset projection request information when the target beacon message is within a coverage range of a wireless hotspot started by the terminal;
an analyzing module 802, configured to analyze the target beacon packet to obtain the preset projection request information;
a connection module 803, configured to access the wireless hotspot according to the preset projection request information;
the projection module 804 is configured to receive, through the wireless hotspot, projection information sent by the terminal, and project the projection information.
Optionally, the connection module 803 is further configured to disconnect the wireless hotspot and stop projecting the projection information when the wireless hotspot is out of the coverage area.
The embodiment of the invention provides a projection device, which is used for receiving a target beacon message which is sent by a terminal and carries preset projection request information when the projection device is in a coverage range of a wireless hotspot started by the terminal; analyzing the target beacon message to obtain preset projection request information; accessing a wireless hotspot according to preset projection request information; and receiving the projection information sent by the terminal through the wireless hotspot, and projecting the projection information. That is to say, when the projection device provided in the embodiment of the present invention is located within the coverage of the wireless hotspot started by the terminal, the projection device can automatically receive the target beacon message carrying the preset projection request information, so as to automatically access the wireless hotspot according to the preset projection request information, and further receive the projection information sent by the terminal for projection.
An embodiment of the present invention provides a computer-readable storage medium applied to a terminal, where the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the above-mentioned projection method applied to the terminal.
An embodiment of the present invention provides a computer-readable storage medium applied to a projection apparatus, where the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the projection method applied to the projection apparatus.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A projection method is applied to a terminal, and comprises the following steps:
receiving a starting instruction, and starting a wireless hotspot according to the starting instruction;
when the projection equipment is located in the coverage range of the wireless hotspot, sending a target beacon message carrying preset projection request information to the projection equipment; the preset projection request information includes: the system comprises a lead code, an audio and video projection request code, a service set identifier length, a service set identifier, a password length and a password;
when the projection equipment is accessed to the wireless hotspot according to the target beacon message, transmitting projection information to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information;
before the sending, to the projection device, a target beacon packet carrying preset projection request information when the projection device is in the coverage area of the wireless hotspot, the method further includes:
acquiring an initial beacon message, splitting the preset projection request information according to a preset splitting mode, and acquiring a plurality of split information;
coding each split information of the split information with the initial beacon message to obtain a plurality of modified beacon messages;
and determining the plurality of modified beacon messages as the target beacon message.
2. The method of claim 1, wherein the encoding each of the plurality of split messages with the initial beacon message to obtain a plurality of modified message messages comprises:
encoding first splitting information into a target multicast physical address of the initial beacon message to obtain a first modification information message in the plurality of modification beacon messages; the first splitting information is any one splitting information in the plurality of splitting information.
3. A projection method, applied to a projection apparatus, the method comprising:
when the terminal is in the coverage range of a wireless hotspot started by the terminal, receiving a target beacon message which is sent by the terminal and carries preset projection request information;
analyzing the target beacon message to obtain the preset projection request information; the preset projection request information includes: the system comprises a lead code, an audio and video projection request code, a service set identifier length, a service set identifier, a password length and a password;
accessing the wireless hotspot according to the preset projection request information;
receiving projection information sent by the terminal through the wireless hotspot, and projecting the projection information;
the method includes the steps of obtaining a target beacon message, where the target beacon message includes a plurality of modification beacon messages, each modification beacon message included in the plurality of modification beacon messages is splitting information of the preset projection request information, and analyzing the target beacon message to obtain the preset projection request information, including: analyzing the target beacon message to obtain a plurality of split information; and combining the plurality of split information into the preset projection request information.
4. The method of claim 3, wherein after said projecting the projection information, the method further comprises:
and when the wireless hotspot is out of the coverage range, disconnecting the wireless hotspot and stopping projecting the projection information.
5. A terminal, characterized in that the terminal comprises:
the management module receives a starting instruction and starts the wireless hotspot according to the starting instruction;
the sending module is used for sending a target beacon message carrying preset projection request information to the projection equipment when the projection equipment is located in the coverage range of the wireless hotspot; when the projection equipment is accessed to the wireless hotspot according to the target beacon message, transmitting projection information to the projection equipment through the wireless hotspot; wherein the projection device is used for projecting the projection information;
the terminal further comprises:
the encapsulation module is used for acquiring an initial beacon message, splitting the preset projection request information according to a preset splitting mode and acquiring a splitting information group; coding each split information of the split information with the initial beacon message respectively to obtain a plurality of modified beacon messages; and determining the plurality of modified beacon messages as the target beacon message.
6. The terminal of claim 5,
the encapsulation module is specifically configured to encode first splitting information into a destination multicast physical address of the initial beacon packet, and obtain a first modification information packet in the multiple modification beacon packets; the first splitting information is any one splitting information in the plurality of splitting information.
7. A projection apparatus, characterized in that the projection apparatus comprises:
the receiving module is used for receiving a target beacon message which is sent by the terminal and carries preset projection request information when the target beacon message is within the coverage range of a wireless hotspot started by the terminal;
the analysis module is used for analyzing the target beacon message to obtain the preset projection request information; the preset projection request information includes: the system comprises a lead code, an audio and video projection request code, a service set identifier length, a service set identifier, a password length and a password;
the connection module is used for accessing the wireless hotspot according to the preset projection request information;
the projection module is used for receiving projection information sent by the terminal through the wireless hotspot and projecting the projection information;
the analysis module is specifically configured to analyze the target beacon packet to obtain a plurality of pieces of split information; combining the plurality of split information into the preset projection request information; the target beacon message comprises a plurality of modification beacon messages, and each modification beacon message comprises splitting information of the preset projection request information.
8. The projection device of claim 7,
and the connection module is also used for disconnecting the connection with the wireless hotspot and stopping projecting the projection information when the wireless hotspot is out of the coverage range.
9. A computer-readable storage medium applied to a terminal, the computer-readable storage medium storing one or more programs which are executable by one or more processors to implement the method of any one of claims 1-2.
10. A computer-readable storage medium, for use in a projection device, the computer-readable storage medium having one or more programs stored thereon, the one or more programs being executable by one or more processors to perform the method of any one of claims 3-4.
CN201810992550.4A 2018-08-29 2018-08-29 Projection method, terminal, projection equipment and storage medium Active CN110876115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810992550.4A CN110876115B (en) 2018-08-29 2018-08-29 Projection method, terminal, projection equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810992550.4A CN110876115B (en) 2018-08-29 2018-08-29 Projection method, terminal, projection equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110876115A CN110876115A (en) 2020-03-10
CN110876115B true CN110876115B (en) 2021-12-07

Family

ID=69714230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810992550.4A Active CN110876115B (en) 2018-08-29 2018-08-29 Projection method, terminal, projection equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110876115B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN105898831A (en) * 2016-03-29 2016-08-24 海尔优家智能科技(北京)有限公司 Method and apparatus for smart device accessing wifi and smart device
CN106455118A (en) * 2016-09-29 2017-02-22 努比亚技术有限公司 Screen projection device and method
CN106454446A (en) * 2016-09-29 2017-02-22 努比亚技术有限公司 Screen projection apparatus and method
CN107969026A (en) * 2017-12-07 2018-04-27 锐捷网络股份有限公司 The wireless method and wireless controller AC for throwing screen is realized in a wireless local area network
CN108289241A (en) * 2016-09-29 2018-07-17 努比亚技术有限公司 A kind of wireless display device, system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851782B (en) * 2012-05-07 2020-11-17 华为终端有限公司 Data transmission method and device
US20140029921A1 (en) * 2012-07-27 2014-01-30 Adam Warren Systems and methods for hotspot enabled media
US9654232B2 (en) * 2015-07-09 2017-05-16 Cognitive Systems Corp. Radio frequency camera system
CN113554513A (en) * 2017-11-28 2021-10-26 创新先进技术有限公司 Data processing method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN105898831A (en) * 2016-03-29 2016-08-24 海尔优家智能科技(北京)有限公司 Method and apparatus for smart device accessing wifi and smart device
CN106455118A (en) * 2016-09-29 2017-02-22 努比亚技术有限公司 Screen projection device and method
CN106454446A (en) * 2016-09-29 2017-02-22 努比亚技术有限公司 Screen projection apparatus and method
CN108289241A (en) * 2016-09-29 2018-07-17 努比亚技术有限公司 A kind of wireless display device, system and method
CN107969026A (en) * 2017-12-07 2018-04-27 锐捷网络股份有限公司 The wireless method and wireless controller AC for throwing screen is realized in a wireless local area network

Also Published As

Publication number Publication date
CN110876115A (en) 2020-03-10

Similar Documents

Publication Publication Date Title
US10038772B2 (en) Communication systems and methods
CN111459433B (en) Screen transmission method, device and storage medium
US10374819B2 (en) Methods and devices of accessing wireless network
KR101687521B1 (en) Multi-screen interaction method, devices, and system
CN109194427B (en) Campus broadcasting system based on IP network
CN105357742A (en) Accessing method, device and system for wireless local area network
US9723486B2 (en) Method and apparatus for accessing network
CN103299313A (en) Transmission management apparatus, program, transmission management system, and transmission management method
CN113365153B (en) Data sharing method and device, storage medium and electronic equipment
US20170171496A1 (en) Method and Electronic Device for Screen Projection
CN107105339B (en) A kind of methods, devices and systems playing live video
CN106452924A (en) Method and device for synchronizing wireless network configuration
CN104901815A (en) Grouping method for user terminals, conference server and conference system
CN102710986A (en) Mobile phone audio and video playing method, mobile phone and playing device
CN107079383A (en) For the method for projection, device, system and electronic equipment
CN110876115B (en) Projection method, terminal, projection equipment and storage medium
US11490142B2 (en) One-to-many communication system
CN104822083B (en) Control method, file sharing method and the device of file-sharing
US20180007110A1 (en) Method, device and medium for determining coding format
CN107222769B (en) Method, device and system for transmitting auxiliary data stream
CN112910827B (en) Multi-party interaction system, method and device, electronic equipment and storage medium
CN108616485B (en) Communication method and device based on fusion device
CN104518863B (en) Method and system for realizing communication content synchronization based on DLNA network
CN116938617A (en) Conference control method, device, equipment and storage medium
CN116962640A (en) Monitoring plug flow method and device based on screen terminal and screen terminal

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