CN107423238A - A kind of method, apparatus and computer-readable recording medium of screen prjection connection - Google Patents

A kind of method, apparatus and computer-readable recording medium of screen prjection connection Download PDF

Info

Publication number
CN107423238A
CN107423238A CN201710617489.0A CN201710617489A CN107423238A CN 107423238 A CN107423238 A CN 107423238A CN 201710617489 A CN201710617489 A CN 201710617489A CN 107423238 A CN107423238 A CN 107423238A
Authority
CN
China
Prior art keywords
connection
screen prjection
target device
present terminal
link address
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.)
Granted
Application number
CN201710617489.0A
Other languages
Chinese (zh)
Other versions
CN107423238B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710617489.0A priority Critical patent/CN107423238B/en
Publication of CN107423238A publication Critical patent/CN107423238A/en
Application granted granted Critical
Publication of CN107423238B publication Critical patent/CN107423238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • 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/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses the method, apparatus and computer-readable recording medium of a kind of screen prjection connection.This method includes:Obtain the geographical location information of present terminal and default projection restrictive condition;Target device is searched according to the geographical location information of the projection restrictive condition and present terminal;The link address of the target device is obtained, and establishes screen prjection connection.The terminal includes:Memory, processor and the computer program that can be run on the memory and on the processor is stored in, the step of method of screen prjection connection provided by the invention is realized when the computer program is by the computing device.Screen prjection linker is stored with the computer-readable recording medium, the step of screen prjection linker realizes screen prjection connection method provided by the invention when being executed by processor.The present invention improves the connection speed of screen prjection, enriches the method for establishing screen prjection connection, greatly improves Consumer's Experience.

Description

A kind of method, apparatus and computer-readable recording medium of screen prjection connection
Technical field
The present invention relates to screen prjection technical field, more particularly to a kind of method, apparatus of screen prjection connection and calculating Machine readable storage medium storing program for executing.
Background technology
Screen prjection refers to that the screen picture of the machine is sent to receiving terminal by terminal, and receiving terminal, which receives, to be thrown Shadow data, and on the screen of the machine reproducing terminal screen picture.
Existing screen prjection technology, when establishing screen prjection connection, it is necessary first to which user sets terminal and connect manually Receiving end, then terminal scanning scouting screen projector equipment, and in the form of a list showing all screen prjection equipment, Then user needs the selection target equipment in screen prjection equipment is searched, and last terminal is just initiated screen to target device and thrown Shadow connection request.Whole screen prjection connection procedure is cumbersome, it is necessary to which user sets expected end receiver and selection target to set manually It is standby, and the process of terminal searching screen prjection equipment is very time-consuming, has a strong impact on the efficiency of screen prjection connection, great shadow Consumer's Experience is rung.
The content of the invention
The embodiments of the invention provide the method, apparatus and computer-readable recording medium of a kind of screen prjection connection, purport Projector equipment is intelligently being chosen, is lifting Consumer's Experience.
In view of this, first aspect of the embodiment of the present invention, there is provided a kind of method of screen prjection connection, including:
Obtain the geographical location information of present terminal and default projection restrictive condition;
Target device is searched according to the geographical location information of the projection restrictive condition and present terminal;
The link address of the target device is obtained, and establishes screen prjection connection.
In a kind of possible design, the projection restrictive condition includes target area shape and target area size.
In a kind of possible design, the target area is shaped as sector.
In a kind of possible design, the geographical location information according to the projection restrictive condition and present terminal is looked into Target device is looked for include:
The geography residing for vertical centerline that the present terminal is obtained according to the geographical location information of the present terminal Position;
The Axisymmetric Distributed Line of the target area shape is set to fall on the geographical position residing for the vertical centerline, and according to The corresponding geographical position range of the target area acquiring size target area;
Projector equipment in the corresponding geographical position range of the target area is designated as target device.
In a kind of possible design, the projection restrictive condition includes maximum angle and ultimate range.
It is described to obtain the link address of the target device in a kind of possible design, and establish screen prjection connection Including:
Link address request is sent to target device;
The response message that the target device returns is received, and the target device is parsed according to the response message Link address;
Connection request is initiated to the link address.
It is described to include to link address initiation connection request in a kind of possible design:
Whether the number for judging the link address is two or more;
If so, then selecting one of link address according to preset rules, and connection request is initiated to it.
In a kind of possible design, the preset rules include:
The link address of the nearest target device of present terminal described in selected distance;Or
Choose the link address of the target device minimum with the present terminal angle.
Second aspect of the embodiment of the present invention provides a kind of terminal, including:Memory, processor and it is stored in the storage On device and the computer program that can run on the processor, the computer program are realized this during the computing device The step of method for the screen prjection connection that invention any embodiment provides.
The third aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage medium Screen prjection linker is stored with matter, the present invention any reality is realized when the screen prjection linker is executed by processor The step of screen prjection connection method of example offer is provided.
As can be seen from the above technical solutions, in the embodiment of the present invention, the setting of default projection restrictive condition, section are passed through The time of scouting screen projector equipment has been saved, has eliminated the cumbersome flow of selection screen prjection target device, has improved screen throwing The connection speed of shadow, the method for establishing screen prjection connection is enriched, greatly improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of method one embodiment of screen prjection of the present invention connection;
Fig. 4 is the schematic diagram of another embodiment of the method for screen prjection of the present invention connection;
Fig. 5 is the schematic diagram of another embodiment of the method for screen prjection of the present invention connection;
Fig. 6 is the schematic diagram of one embodiment of target area shape of the present invention;
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable MediaPlayer, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System ofMobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division MultipleAccess, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (UserEquipment, is used Family equipment) 201, E-UTRAN (EvolvedUMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (MobilityManagement Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving GateWay, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Referring to Fig. 3, Fig. 3 is a kind of method one embodiment schematic diagram of screen prjection connection of the present invention, including:
301st, start;
302nd, the geographical location information of present terminal and default projection restrictive condition are obtained;
In the specific implementation, projecting restrictive condition can be by user's sets itself or change;Project restrictive condition limitation It is the position relationship between present terminal and target device for realizing screen prjection.
303rd, target device is searched according to the geographical location information of the projection restrictive condition and present terminal;
What it is due to projection restrictive condition limitation is position between present terminal and target device for realizing screen prjection Relation is put, therefore combines the geographical location information of present terminal, you can whether judge that current screen projection is set is target device;
304th, the link address of the target device is obtained, and establishes screen prjection connection;
Usually, if the number of the link address of target device is less than predetermined threshold value, can be built with the target device Vertical screen prjection connection;, can be by target device by certain if the number of the link address of target device is more than predetermined threshold value Rule arranged, for selection by the user.
305th, terminate.
As shown in figure 4, in another alternative embodiment of the method for screen prjection connection provided in an embodiment of the present invention, bag Include:
401st, start;
402nd, the predetermined registration operation to projecting restrictive condition is received;
In the specific implementation, projecting restrictive condition can be by user's sets itself or change;Project restrictive condition limitation It is the position relationship between present terminal and target device for realizing screen prjection;
403rd, the geographical location information of present terminal is obtained;
404th, target device is searched according to the geographical location information of the projection restrictive condition and present terminal;
What it is due to projection restrictive condition limitation is position between present terminal and target device for realizing screen prjection Relation is put, therefore combines the geographical location information of present terminal, you can whether judge that current screen projection is set is target device;
405th, link address request is sent to target device;
Link address can be sent by audio signal to target device to ask;Further, it is also possible to pass through bluetooth, WiFi etc. The mode being wirelessly transferred sends link address request, to obtain the link address of target device;
406th, the response message that the target device returns is received, and the target is parsed according to the response message and set Standby link address;
Usually, if target device energy normal work, will be asked to return to response message, the response according to link address The link address of itself is included in information.Now, present terminal is after the link address of target device shortly, it is also necessary to is done The initial work of screen prjection, such as start the service thread of screen prjection;
407th, connection request is initiated to the link address;
Target device corresponding to the link address just can establish screen after the connection request is received with present terminal Projection connection;
408th, terminate.
Alternatively, on the basis of any embodiment corresponding to above-mentioned Fig. 3 or Fig. 4, screen provided in an embodiment of the present invention In one alternative embodiment of method for projecting connection, the projection restrictive condition includes target area shape and target area is big It is small.
Target area shape can be sector, rectangle, square, semicircle or irregular shape, voluntarily be determined by user Justice;When setting target area size, corresponding parameter size can be set according to target area shape, such as fan-shaped, can be with Target area size is represented with angle and radius;Rectangle or square can be with the length of sides come target area size.
Now, target is searched in the execution geographical location information according to the projection restrictive condition and present terminal to set During standby step, as shown in figure 5, can include:
501st, start;
502nd, according to residing for the vertical centerline that the geographical location information of the present terminal obtains the present terminal Geographical position;
The vertical centerline of present terminal generally refers to the center line of present terminal in the direction of the width;Certainly it can also It is combined with the use state of present terminal, if for example, the screen of present terminal is in transverse state, in vertical corresponding to it Heart line is exactly the center line of present terminal in the longitudinal direction;If the screen of present terminal is in vertical state, corresponding to it Vertical centerline is exactly the center line of present terminal in the direction of the width;
503rd, the Axisymmetric Distributed Line of the target area shape is made to fall on the geographical position residing for the vertical centerline, and According to the corresponding geographical position range of the target area acquiring size target area;
Usually, target area is located at the front of present terminal, and bottom centre's point of target area shape can be current The central point on the top of terminal coincides.With referring to Fig. 6, in the present embodiment, target area shape 601 is sector;It is perpendicular Straight center line 602 is the center line of present terminal in the direction of the width;Now, make sector Axisymmetric Distributed Line fall it is described it is vertical in On geographical position residing for heart line 602, and the summit of the bottom of sector and the central point on the top of present terminal is set to coincide.Most The corresponding geographical position range of target area can be obtained according to target area size afterwards.
504th, the projector equipment in the corresponding geographical position range of the target area is designated as target device;
In embodiment as shown in Figure 6, all projector equipments in sector 601 can be designated as target device.
505th, terminate.
Alternatively, on the basis of any embodiment corresponding to above-mentioned Fig. 3 or Fig. 4, screen provided in an embodiment of the present invention In another alternative embodiment of the method for projection connection, the projection restrictive condition includes maximum angle and ultimate range.
Referring to Fig. 6, in the present embodiment, ultimate range refers to the maximum linear between present terminal and target device Distance D.Maximum angle is the maximum angle θ that can be offset centered on the vertical centerline of present terminal to both sides;Specific During implementation, the maximum angle offset to the left and the maximum angle offset to the right can be set respectively, two angles can with identical, Can also be different.
The vertical centerline of above-mentioned present terminal generally refers to the center line of present terminal in the direction of the width;Certainly its It can be combined with the use state of present terminal, if for example, the screen of present terminal is in transverse state, it is corresponding perpendicular Straight center line is exactly the center line of present terminal in the longitudinal direction;If the screen of present terminal is in vertical state, its is right The vertical centerline answered is exactly the center line of present terminal in the direction of the width.
It is described to include to link address initiation connection request on the basis of any of the above-described embodiment:
Whether the number for judging the link address is two or more;
If so, then selecting one of link address according to preset rules, and connection request is initiated to it.
In the present embodiment, if getting the link address of two or more target devices, can only select One of link address establishes screen prjection connection.
In the specific implementation, above-mentioned preset rules can include:
The link address of the nearest target device of present terminal described in selected distance;Or
Choose the link address of the target device minimum with the present terminal angle.
Wherein, distance refers to the air line distance between present terminal and target device, and angle refers to the center of target device With the angle between the line at the center of present terminal and the vertical centerline of present terminal.
In another embodiment of the invention, distance and the weights of angle can also be set;Calculate each target setting pair The score value answered, choose the link address that score value highest or minimum target are set.
The present invention also provides a kind of terminal, including:Memory, processor and it is stored on the memory and can be described The computer program run on processor, any embodiment of the present invention is realized when the computer program is by the computing device The step of method of the screen prjection connection of offer.
More specifically, realize following steps when the computer program is by the computing device:
Obtain the geographical location information of present terminal and default projection restrictive condition;In the specific implementation, projection limitation Condition can be by user's sets itself or change;Projection restrictive condition limitation is that present terminal realizes screen prjection with being used for Position relationship between target device.
Target device is searched according to the geographical location information of the projection restrictive condition and present terminal;Because projection limits Condition limitation is position relationship between present terminal and target device for realizing screen prjection, thus combine it is current eventually The geographical location information at end, you can whether judge that current screen projection is set is target device;
The link address of the target device is obtained, and establishes screen prjection connection;Usually, if the connection of target device The number of address is less than predetermined threshold value, then can establish screen prjection with the target device is connected;If the connection of target device The number of address is more than predetermined threshold value, then can be arranged target device according to certain rules, for selection by the user.
In another alternative embodiment of terminal provided in an embodiment of the present invention, the computer program is by the processor Following steps are realized during execution:
Receive the predetermined registration operation to projecting restrictive condition;In the specific implementation, projecting restrictive condition can be by user voluntarily Setting or change;Projection restrictive condition limitation is position between present terminal and target device for realizing screen prjection Relation;
Obtain the geographical location information of present terminal;
Target device is searched according to the geographical location information of the projection restrictive condition and present terminal;Because projection limits Condition limitation is position relationship between present terminal and target device for realizing screen prjection, thus combine it is current eventually The geographical location information at end, you can whether judge that current screen projection is set is target device;
Link address request is sent to target device;Link address can be sent to target device by audio signal please Ask;Further, it is also possible to link address request is sent by way of bluetooth, WiFi etc. are wirelessly transferred, to obtain target device Link address;
The response message that the target device returns is received, and the target device is parsed according to the response message Link address;Usually, if target device energy normal work, will be asked to return to response message, the sound according to link address Answer and the link address of itself is included in information.Now, present terminal is after the link address of target device shortly, it is also necessary to The initial work of screen prjection is done, such as starts the service thread of screen prjection;
Connection request is initiated to the link address;Target device corresponding to the link address receive the connection please After asking, it just can establish screen prjection with present terminal and be connected.
Alternatively, on the basis of any of the above-described embodiment, one alternative embodiment of terminal provided in an embodiment of the present invention In, the projection restrictive condition includes target area shape and target area size.
Target area shape can be sector, rectangle, square, semicircle or irregular shape, voluntarily be determined by user Justice;When setting target area size, corresponding parameter size can be set according to target area shape, such as fan-shaped, can be with Target area size is represented with angle and radius;Rectangle or square can be with the length of sides come target area size.
Now, target device is searched in the geographical location information according to the projection restrictive condition and present terminal When, realize following steps when the computer program is by the computing device:
The geography residing for vertical centerline that the present terminal is obtained according to the geographical location information of the present terminal Position;The vertical centerline of present terminal generally refers to the center line of present terminal in the direction of the width;Certainly it can also be with The use state of present terminal is combined, if for example, the screen of present terminal is in transverse state, vertical center corresponding to it Line is exactly the center line of present terminal in the longitudinal direction;If the screen of present terminal is in vertical state, it is corresponding perpendicular Straight center line is exactly the center line of present terminal in the direction of the width;
The Axisymmetric Distributed Line of the target area shape is set to fall on the geographical position residing for the vertical centerline, and according to The corresponding geographical position range of the target area acquiring size target area;Usually, target area is located at present terminal Front, bottom centre's point of target area shape can coincide with the central point on the top of present terminal.With please joining simultaneously According to Fig. 6, in the present embodiment, target area shape 601 is sector;Vertical centerline 602 be present terminal in the direction of the width Center line;Now, the Axisymmetric Distributed Line of sector is fallen on the geographical position residing for the vertical centerline 602, and make sector The central point on the summit of bottom and the top of present terminal coincides.Target area finally can be obtained according to target area size Corresponding geographical position range.
Projector equipment in the corresponding geographical position range of the target area is designated as target device;Such as Fig. 6 In shown embodiment, all projector equipments in sector 601 can be designated as target device.
Alternatively, on the basis of any embodiment corresponding to above-mentioned Fig. 3 or Fig. 4, terminal provided in an embodiment of the present invention In another alternative embodiment, the projection restrictive condition includes maximum angle and ultimate range.
Referring to Fig. 6, in the present embodiment, ultimate range refers to the maximum linear between present terminal and target device Distance D.Maximum angle is the maximum angle θ that can be offset centered on the vertical centerline of present terminal to both sides;Specific During implementation, the maximum angle offset to the left and the maximum angle offset to the right can be set respectively, two angles can with identical, Can also be different.
The vertical centerline of above-mentioned present terminal generally refers to the center line of present terminal in the direction of the width;Certainly its It can be combined with the use state of present terminal, if for example, the screen of present terminal is in transverse state, it is corresponding perpendicular Straight center line is exactly the center line of present terminal in the longitudinal direction;If the screen of present terminal is in vertical state, its is right The vertical centerline answered is exactly the center line of present terminal in the direction of the width.
On the basis of any of the above-described embodiment, when initiating connection request to the link address, the computer journey Following steps are realized when sequence is by the computing device:
Whether the number for judging the link address is two or more;
If so, then selecting one of link address according to preset rules, and connection request is initiated to it.
In the present embodiment, if getting the link address of two or more target devices, can only select One of link address establishes screen prjection connection.
In the specific implementation, above-mentioned preset rules can include:
The link address of the nearest target device of present terminal described in selected distance;Or
Choose the link address of the target device minimum with the present terminal angle.
Wherein, distance refers to the air line distance between present terminal and target device, and angle refers to the center of target device With the angle between the line at the center of present terminal and the vertical centerline of present terminal.
In another embodiment of the invention, distance and the weights of angle can also be set;Calculate each target setting pair The score value answered, choose the link address that score value highest or minimum target are set.
The present invention also provides a kind of computer-readable recording medium, and screen is stored with the computer-readable recording medium Linker is projected, the screen prjection linker realizes the screen that any embodiment of the present invention provides when being executed by processor The step of projecting connection method.
More specifically, realize following steps when the screen prjection linker is by the computing device:
Obtain the geographical location information of present terminal and default projection restrictive condition;In the specific implementation, projection limitation Condition can be by user's sets itself or change;Projection restrictive condition limitation is that present terminal realizes screen prjection with being used for Position relationship between target device.
Target device is searched according to the geographical location information of the projection restrictive condition and present terminal;Because projection limits Condition limitation is position relationship between present terminal and target device for realizing screen prjection, thus combine it is current eventually The geographical location information at end, you can whether judge that current screen projection is set is target device;
The link address of the target device is obtained, and establishes screen prjection connection;Usually, if the connection of target device The number of address is less than predetermined threshold value, then can establish screen prjection with the target device is connected;If the connection of target device The number of address is more than predetermined threshold value, then can be arranged target device according to certain rules, for selection by the user.
In another alternative embodiment of computer-readable recording medium provided in an embodiment of the present invention, the screen prjection Following steps are realized when linker is by the computing device:
Receive the predetermined registration operation to projecting restrictive condition;In the specific implementation, projecting restrictive condition can be by user voluntarily Setting or change;Projection restrictive condition limitation is position between present terminal and target device for realizing screen prjection Relation;
Obtain the geographical location information of present terminal;
Target device is searched according to the geographical location information of the projection restrictive condition and present terminal;Because projection limits Condition limitation is position relationship between present terminal and target device for realizing screen prjection, thus combine it is current eventually The geographical location information at end, you can whether judge that current screen projection is set is target device;
Link address request is sent to target device;Link address can be sent to target device by audio signal please Ask;Further, it is also possible to link address request is sent by way of bluetooth, WiFi etc. are wirelessly transferred, to obtain target device Link address;
The response message that the target device returns is received, and the target device is parsed according to the response message Link address;Usually, if target device energy normal work, will be asked to return to response message, the sound according to link address Answer and the link address of itself is included in information.Now, present terminal is after the link address of target device shortly, it is also necessary to The initial work of screen prjection is done, such as starts the service thread of screen prjection;
Connection request is initiated to the link address;Target device corresponding to the link address receive the connection please After asking, it just can establish screen prjection with present terminal and be connected.
Alternatively, on the basis of any of the above-described embodiment, computer-readable recording medium provided in an embodiment of the present invention In one alternative embodiment, the projection restrictive condition includes target area shape and target area size.
Target area shape can be sector, rectangle, square, semicircle or irregular shape, voluntarily be determined by user Justice;When setting target area size, corresponding parameter size can be set according to target area shape, such as fan-shaped, can be with Target area size is represented with angle and radius;Rectangle or square can be with the length of sides come target area size.
Now, target device is searched in the geographical location information according to the projection restrictive condition and present terminal When, realize following steps when the screen prjection linker is by the computing device:
The geography residing for vertical centerline that the present terminal is obtained according to the geographical location information of the present terminal Position;The vertical centerline of present terminal generally refers to the center line of present terminal in the direction of the width;Certainly it can also be with The use state of present terminal is combined, if for example, the screen of present terminal is in transverse state, vertical center corresponding to it Line is exactly the center line of present terminal in the longitudinal direction;If the screen of present terminal is in vertical state, it is corresponding perpendicular Straight center line is exactly the center line of present terminal in the direction of the width;
The Axisymmetric Distributed Line of the target area shape is set to fall on the geographical position residing for the vertical centerline, and according to The corresponding geographical position range of the target area acquiring size target area;Usually, target area is located at present terminal Front, bottom centre's point of target area shape can coincide with the central point on the top of present terminal.With please joining simultaneously According to Fig. 6, in the present embodiment, target area shape 601 is sector;Vertical centerline 602 be present terminal in the direction of the width Center line;Now, the Axisymmetric Distributed Line of sector is fallen on the geographical position residing for the vertical centerline 602, and make sector The central point on the summit of bottom and the top of present terminal coincides.Target area finally can be obtained according to target area size Corresponding geographical position range.
Projector equipment in the corresponding geographical position range of the target area is designated as target device;Such as Fig. 6 In shown embodiment, all projector equipments in sector 601 can be designated as target device.
Alternatively, on the basis of any embodiment corresponding to above-mentioned Fig. 3 or Fig. 4, calculating provided in an embodiment of the present invention In another alternative embodiment of machine readable storage medium storing program for executing, the projection restrictive condition includes maximum angle and ultimate range.
Referring to Fig. 6, in the present embodiment, ultimate range refers to the maximum linear between present terminal and target device Distance D.Maximum angle is the maximum angle θ that can be offset centered on the vertical centerline of present terminal to both sides;Specific During implementation, the maximum angle offset to the left and the maximum angle offset to the right can be set respectively, two angles can with identical, Can also be different.
The vertical centerline of above-mentioned present terminal generally refers to the center line of present terminal in the direction of the width;Certainly its It can be combined with the use state of present terminal, if for example, the screen of present terminal is in transverse state, it is corresponding perpendicular Straight center line is exactly the center line of present terminal in the longitudinal direction;If the screen of present terminal is in vertical state, its is right The vertical centerline answered is exactly the center line of present terminal in the direction of the width.
On the basis of any of the above-described embodiment, when initiating connection request to the link address, the screen prjection Following steps are realized when linker is by the computing device:
Whether the number for judging the link address is two or more;
If so, then selecting one of link address according to preset rules, and connection request is initiated to it.
In the present embodiment, if getting the link address of two or more target devices, can only select One of link address establishes screen prjection connection.
In the specific implementation, above-mentioned preset rules can include:
The link address of the nearest target device of present terminal described in selected distance;Or
Choose the link address of the target device minimum with the present terminal angle.
Wherein, distance refers to the air line distance between present terminal and target device, and angle refers to the center of target device With the angle between the line at the center of present terminal and the vertical centerline of present terminal.
In another embodiment of the invention, distance and the weights of angle can also be set;Calculate each target setting pair The score value answered, choose the link address that score value highest or minimum target are set.
The method, apparatus and computer-readable recording medium of screen prjection connection provided in an embodiment of the present invention, according to pre- If the positional information of projection restrictive condition and present terminal search target device and establish screen prjection and connect;Save search The time of screen prjection equipment, the cumbersome flow of user's selection target equipment in numerous screen prjection equipment is eliminated, improved The connection speed of screen prjection, the method for establishing screen prjection connection is enriched, greatly improves Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

  1. A kind of 1. method of screen prjection connection, it is characterised in that including:
    Obtain the geographical location information of present terminal and default projection restrictive condition;
    Target device is searched according to the geographical location information of the projection restrictive condition and present terminal;
    The link address of the target device is obtained, and establishes screen prjection connection.
  2. 2. the method for screen prjection connection as claimed in claim 1, it is characterised in that the projection restrictive condition includes target Region shape and target area size.
  3. 3. the method for screen prjection connection as claimed in claim 2, it is characterised in that the target area is shaped as sector.
  4. 4. the method for screen prjection connection as claimed in claim 2, it is characterised in that described according to the projection restrictive condition And the geographical location information of present terminal is searched target device and included:
    The geographical position residing for vertical centerline that the present terminal is obtained according to the geographical location information of the present terminal;
    The Axisymmetric Distributed Line of the target area shape is set to fall on the geographical position residing for the vertical centerline, and according to described The corresponding geographical position range of target area acquiring size target area;
    Projector equipment in the corresponding geographical position range of the target area is designated as target device.
  5. 5. the method for screen prjection connection as claimed in claim 1, it is characterised in that the projection restrictive condition includes maximum Angle and ultimate range.
  6. 6. the method for screen prjection connection as claimed in claim 1, it is characterised in that the company for obtaining the target device Location is grounded, and establish screen prjection connection to include:
    Link address request is sent to target device;
    The response message that the target device returns is received, and the connection of the target device is parsed according to the response message Address;
    Connection request is initiated to the link address.
  7. 7. the method for screen prjection connection as claimed in claim 6, it is characterised in that described to initiate to connect to the link address Connecing request includes:
    Whether the number for judging the link address is two or more;
    If so, then selecting one of link address according to preset rules, and connection request is initiated to it.
  8. 8. the method for screen prjection connection as claimed in claim 7, it is characterised in that the preset rules include:
    The link address of the nearest target device of present terminal described in selected distance;Or
    Choose the link address of the target device minimum with the present terminal angle.
  9. A kind of 9. terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be at the place The computer program run on reason device, the computer program are realized during the computing device as appointed in claim 1 to 8 The step of method of screen prjection connection described in one.
  10. 10. a kind of computer-readable recording medium, it is characterised in that screen throwing is stored with the computer-readable recording medium Shadow linker, realized when the screen prjection linker is executed by processor as any one of claim 1 to 8 The step of screen prjection connection method.
CN201710617489.0A 2017-07-26 2017-07-26 Screen projection connection method and device and computer readable storage medium Active CN107423238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710617489.0A CN107423238B (en) 2017-07-26 2017-07-26 Screen projection connection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710617489.0A CN107423238B (en) 2017-07-26 2017-07-26 Screen projection connection method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107423238A true CN107423238A (en) 2017-12-01
CN107423238B CN107423238B (en) 2021-07-23

Family

ID=60431289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710617489.0A Active CN107423238B (en) 2017-07-26 2017-07-26 Screen projection connection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107423238B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495863A (en) * 2018-09-21 2019-03-19 北京车和家信息技术有限公司 Exchange method and relevant device
CN109582263A (en) * 2018-10-26 2019-04-05 深圳点猫科技有限公司 The method and electronic equipment of projection device are wirelessly connected based on Linux
CN110198463A (en) * 2018-03-07 2019-09-03 腾讯科技(深圳)有限公司 A kind of mobile projector method, apparatus, computer-readable medium and electronic equipment
CN111078167A (en) * 2019-11-12 2020-04-28 上海博泰悦臻电子设备制造有限公司 Information transmission method, vehicle machine, computer storage medium and information transmission system
CN111190558A (en) * 2018-11-15 2020-05-22 腾讯科技(深圳)有限公司 Screen projection control method and device, computer readable storage medium and computer equipment
CN113093929A (en) * 2019-12-23 2021-07-09 上海品奇数码科技有限公司 Multi-screen nested interaction method for touch mobile terminal and touch fixed terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110164008A1 (en) * 2004-03-31 2011-07-07 Seiko Epson Corporation Image display system
US20120058725A1 (en) * 2008-07-01 2012-03-08 Yang Pan Handheld Media and Communication Device with a Detachable Projector
CN103975609A (en) * 2011-10-07 2014-08-06 高通股份有限公司 Mobile device peripheral device location and connection
CN105094732A (en) * 2015-06-29 2015-11-25 小米科技有限责任公司 Screen display method and apparatus
CN106371788A (en) * 2016-09-22 2017-02-01 努比亚技术有限公司 Screen projection connection device and method
CN106507286A (en) * 2016-11-22 2017-03-15 北京三快在线科技有限公司 A kind of document transmission method, source device and non-source device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110164008A1 (en) * 2004-03-31 2011-07-07 Seiko Epson Corporation Image display system
US20120058725A1 (en) * 2008-07-01 2012-03-08 Yang Pan Handheld Media and Communication Device with a Detachable Projector
CN103975609A (en) * 2011-10-07 2014-08-06 高通股份有限公司 Mobile device peripheral device location and connection
CN105094732A (en) * 2015-06-29 2015-11-25 小米科技有限责任公司 Screen display method and apparatus
CN106371788A (en) * 2016-09-22 2017-02-01 努比亚技术有限公司 Screen projection connection device and method
CN106507286A (en) * 2016-11-22 2017-03-15 北京三快在线科技有限公司 A kind of document transmission method, source device and non-source device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198463A (en) * 2018-03-07 2019-09-03 腾讯科技(深圳)有限公司 A kind of mobile projector method, apparatus, computer-readable medium and electronic equipment
CN109495863A (en) * 2018-09-21 2019-03-19 北京车和家信息技术有限公司 Exchange method and relevant device
CN109582263A (en) * 2018-10-26 2019-04-05 深圳点猫科技有限公司 The method and electronic equipment of projection device are wirelessly connected based on Linux
CN111190558A (en) * 2018-11-15 2020-05-22 腾讯科技(深圳)有限公司 Screen projection control method and device, computer readable storage medium and computer equipment
CN111190558B (en) * 2018-11-15 2022-09-30 腾讯科技(深圳)有限公司 Screen projection control method and device, computer readable storage medium and computer equipment
CN111078167A (en) * 2019-11-12 2020-04-28 上海博泰悦臻电子设备制造有限公司 Information transmission method, vehicle machine, computer storage medium and information transmission system
CN111078167B (en) * 2019-11-12 2023-08-22 博泰车联网科技(上海)股份有限公司 Information transmission method, vehicle, computer storage medium and information transmission system
CN113093929A (en) * 2019-12-23 2021-07-09 上海品奇数码科技有限公司 Multi-screen nested interaction method for touch mobile terminal and touch fixed terminal

Also Published As

Publication number Publication date
CN107423238B (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN107423238A (en) A kind of method, apparatus and computer-readable recording medium of screen prjection connection
CN107046696A (en) The method and mobile terminal of a kind of communication network switching
CN107222532A (en) A kind of radio firmware upgrade method, device and computer-readable recording medium
CN106961706A (en) Method, mobile terminal and the computer-readable recording medium of communication pattern switching
CN107343083A (en) One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN107436779A (en) A kind of application management method, equipment and computer-readable recording medium
CN107203305A (en) It is switched fast method, mobile terminal and the computer-readable recording medium of application
CN107329682A (en) Edge exchange method and mobile terminal
CN107844763A (en) A kind of face identification method, mobile terminal and computer-readable recording medium
CN107182097A (en) A kind of method for switching network, terminal and computer-readable recording medium
CN106953684A (en) A kind of method for searching star, mobile terminal and computer-readable recording medium
CN107248072A (en) Barcode scanning method of payment, mobile terminal and computer-readable recording medium
CN107787006A (en) Hotspot network quality detection method, mobile terminal and storage medium
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107172605A (en) A kind of Emmergency call method, mobile terminal and computer-readable recording medium
CN107580350A (en) A kind of signal intensity switching method, equipment and computer-readable recording medium
CN107360558A (en) Emergency call control method, communication terminal and computer-readable recording medium
CN107770842A (en) Hotspot connection method, mobile terminal and computer-readable recording medium
CN107506163A (en) Adjust method, terminal and the computer-readable recording medium of screen display
CN107454637A (en) Cell switching method, mobile terminal and computer-readable recording medium
CN107124708A (en) The display methods of international roaming service, device, computer-readable recording medium
CN107203278A (en) One-handed performance input method, mobile terminal and storage medium
CN110052023A (en) Game control method, mobile terminal and computer readable storage medium
CN107666538A (en) A kind of connection method and terminal
CN107133108A (en) Implementation method, terminal, server and the computer-readable recording medium of distributed complex lock

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