Invention content
In view of this, a kind of projecting method of the application offer and device, real on the basis of realizing shadow casting technique, to reduceMaterial Cost, raising projection efficiency needed for existing shadow casting technique.
To achieve the goals above, technical solution provided in an embodiment of the present invention is as follows:
A kind of projecting method is applied to first terminal, and the first terminal includes universal input/output GPIO, and describedProjection transmitting terminal is provided on first terminal, this method includes:
When it itself is booting power-up state to determine, the detection signal of coupled second terminal output is obtained, it is describedProjection receiving terminal is provided in second terminal;
According to the detection signal, determine whether the second terminal meets preset state switching demand;Wherein, describedState switches demand:The second terminal switches to booting power-up state from power-up state is not keyed up;
When meeting, the GPIO outputs power on signal is controlled, the power on signal sends the projection for controllingEnd and projection receiving terminal execute power on operation;
After the completion of determining that the projection transmitting terminal and projection receiving terminal power on, the GPIO outputs pairing signal is controlled,The pairing signal executes matching operation for controlling to the projection transmitting terminal and projection receiving terminal, so as to the second terminalUsing the projection transmitting terminal and projection receiving terminal of successful matching, the video letter that the first terminal is sent is received and exportedNumber, carry out projection displaying.
Preferably, in each two adjacent detection signal got, the detection signal that the latter getsThe time exported from the second terminal, it is later than the time that the detection signal that the former gets is exported from the second terminalWhen,
It is described to determine whether the second terminal meets preset state switching demand according to the detection signal, including:
Determine whether the detection signal currently got indicates that the second terminal is booting power-up state;
When being, determine that the detection signal that upper one adjacent with the detection signal currently got gets isThe no instruction second terminal is booting power-up state;
When no, determine that the second terminal meets preset state switching demand.
Preferably, determine whether the detection signal indicates that the second terminal is booting power-up state, including:
Determine that the level state of the detection signal, the level state are high level state or low level state;
According to the determining level state, determine whether the detection signal indicates that the second terminal is that booting powers onState.
Preferably, further include during carrying out projection displaying:
When in the first normal mode of operation, determine whether current application environment meets the triggering of the first power-saving working modeCondition, first normal mode of operation indicate that the first terminal is in the first normal operating conditions;
When meeting, first normal mode of operation is switched to the first power-saving working mode, the first province electricianOperation mode indicates that the first terminal is in the first power saving working condition.
Preferably, after determining that current application environment meets the first power-saving working mode trigger condition, this method further includes:
It generates and sends power-saving working mode trigger signal to the second terminal, so that the second terminal controls it certainlyIt is under corresponding second power-saving working mode of the power-saving working mode trigger signal, second power-saving working mode refers toShow that the second terminal is in the second power saving working condition.
Preferably, further include:
When in first power-saving working mode, the normal mode of operation recovery request received is responded, it will be describedFirst power-saving working mode is switched to first normal mode of operation.
Preferably, further include:
The normal mode of operation recovery request is sent to the second terminal, described in second terminal responseSecond power-saving working mode is switched to the second normal mode of operation by normal mode of operation recovery request, and described second justNormal operating mode indicates that the second terminal is in the second normal operating conditions.
A kind of projecting method is applied to second terminal, projection receiving terminal, this method packet is provided in the second terminalIt includes:
Detection signal is exported, so that coupled first terminal is when it itself is booting power-up state to determine, obtains instituteState detection signal, wherein the first terminal includes universal input/output GPIO, and projection is provided on the first terminalTransmitting terminal;And when according to the detection signal, when determining that the second terminal meets preset state switching demand, controlThe GPIO exports power on signal;And after the completion of determining that the projection transmitting terminal and projection receiving terminal power on, described in controlGPIO exports pairing signal;Wherein, the state switching demand includes:The second terminal is switched to from power-up state is not keyed upBe switched on power-up state;The power on signal executes power on operation for controlling to the projection transmitting terminal and projection receiving terminal;InstituteState pairing signal for control to the projection transmitting terminal and project receiving terminal execution matching operation;
Using the projection transmitting terminal and projection receiving terminal of successful matching, receives and export what the first terminal was sentVision signal carries out projection displaying.
Preferably, further include:
Receive the power-saving working mode trigger signal that the first terminal is sent;
It controls itself to be under corresponding second power-saving working mode of the power-saving working mode trigger signal, described secondPower-saving working mode indicates that the second terminal is in the second power saving working condition.
Preferably, further include:
Receive the normal mode of operation recovery request that the first terminal is sent;
The normal mode of operation recovery request is responded, second power-saving working mode is switched to the second normal workPattern, second normal mode of operation indicate that the second terminal is in the second normal operating conditions.
A kind of projection arrangement is applied to first terminal, and the first terminal includes universal input/output GPIO, and describedProjection transmitting terminal is provided on first terminal, which includes:
Acquiring unit, for when it is booting power-up state to determine the first terminal, obtaining coupled second eventuallyThe detection signal of output is held, projection receiving terminal is provided in the second terminal;
Determination unit, for according to the detection signal, determining whether the second terminal meets preset state switchingDemand;Wherein, the state switching demand includes:The second terminal powers on shape from being not keyed up power-up state and switch to bootingState;
Power on signal output unit exports power on signal for when meeting, controlling the GPIO, and the power on signal is usedPower on operation is executed to the projection transmitting terminal and projection receiving terminal in control;
Pairing signal output unit controls institute with after the completion of determining that the projection transmitting terminal and projection receiving terminal power onGPIO output pairing signals are stated, the pairing signal executes pairing behaviour for controlling to the projection transmitting terminal and projection receiving terminalMake, so that the second terminal is using the projection transmitting terminal of successful matching and projection receiving terminal, receives and export described theThe vision signal that one terminal is sent, carries out projection displaying.
A kind of projection arrangement is applied to second terminal, is provided with projection receiving terminal in the second terminal, the device packetIt includes:
Detection signal output unit exports detection signal, so as to coupled first for controlling the second terminalTerminal obtains the detection signal, wherein the first terminal includes general defeated when it itself is booting power-up state to determineEnter/export GPIO, and is provided with projection transmitting terminal on the first terminal;And described according to the detection signal, determineWhen second terminal meets preset state switching demand, the GPIO outputs power on signal is controlled;And when determining the projectionAfter the completion of transmitting terminal and projection receiving terminal power on, the GPIO outputs pairing signal is controlled;Wherein, the state switches demand packetIt includes:The second terminal switches to booting power-up state from power-up state is not keyed up;The power on signal is for controlling to describedIt projects transmitting terminal and projection receiving terminal executes power on operation;The pairing signal is for controlling to the projection transmitting terminal and projectionReceiving terminal executes matching operation;
Display unit is projected, for the projection transmitting terminal and projection receiving terminal using successful matching, receives and exportsThe vision signal that the first terminal is sent, carries out projection displaying.
A kind of projecting method of the application offer and device, are applied to first terminal, first terminal includes universal input/outputGPIO, and projection transmitting terminal is provided on first terminal.It itself be booting power-up state and coupled that first terminal, which is worked as,When two terminals meet preset state switching demand;Control GPIO outputs power on signal is the throwing projected in transmitting terminal and second terminalShadow receiving terminal powers on;After the completion of the two powers on, control GPIO output pairing signals are that projection transmitting terminal and projection receiving terminal are matchedIt is right, to receive and export the vision signal of first terminal transmission by second terminal after successful matching, carry out projection displaying.It keeps awayPhysical switch need to be respectively set in first terminal and second terminal by having exempted from the prior art, and is pressed two physical switch simultaneously and just may be usedThe problem of realizing the pairing to first terminal and second terminal so that on the basis of realizing shadow casting technique, reduce and realize projectionMaterial Cost, raising projection efficiency needed for technology.
Embodiment:
Fig. 1 is a kind of projecting method flow chart provided by the embodiments of the present application.
Projecting method as shown in Figure 1 is applied to first terminal, which includes GPIO (GeneralPurpose Input Output, universal input/output), wherein GPIO is alternatively referred to as bus extender.Also, this firstProjection transmitting terminal is additionally provided in terminal.
As shown in Figure 1, this method includes:
S101, when determine itself for booting power-up state when, obtain the detection signal of coupled second terminal output,Projection receiving terminal is provided in second terminal;
In the embodiment of the present application, it is preferred that first terminal is mobile terminal or desktop computer.Wherein, mobile terminal is penRemember this computer, tablet computer, mobile phone, Stick PC etc..
Above is only the preferred embodiment of the embodiment of the present application, and inventor can be according to the demand of oneself arbitrarily setting first eventuallyThe specific manifestation form at end, does not limit herein.
Optionally, when it itself is booting power-up state that first terminal, which determines, it is defeated that coupled second terminal can be obtainedThe detection signal gone out.
In the embodiment of the present application, it is preferred that second terminal is projecting apparatus.
Above is only the preferred embodiment of the embodiment of the present application, and inventor can be according to the demand of oneself arbitrarily setting second eventuallyThe specific manifestation form at end, does not limit herein.
Optionally, when it itself is booting power-up state that first terminal, which determines, coupled second terminal output is obtainedDetection signal, including:When it itself is booting power-up state that first terminal, which determines, detects and itself whether have received detecting letterNumber, after detecting that itself receives detection signal, it need to determine that the second terminal belonging to detection signal (namely sends detecting letterNumber second terminal), and obtain the detection signal of determining second terminal output.
Specifically, after first terminal detects detection signal, first terminal just has determined that there are coupledSecond terminal, the second terminal are exactly to send the terminal of the detection signal.
Optionally, projection receiving terminal is provided in second terminal.
Optionally, the combination for the projection receiving terminal being arranged on the projection transmitting terminal and second terminal being arranged on first terminal canIt is referred to as WiHD modules, wherein WiHD is the abbreviation of WirelessHD (WirelessHD).Wherein, projection transmitting terminal can be consideredIt is WirelessHD sending module, projection receiving terminal can be considered as WirelessHD receiving module.
S102, according to detection signal, determine whether second terminal meets preset state switching demand;When meeting, holdRow step S103;
Optionally, first terminal is according to the detection signal of the second terminal output received, it may be determined that the second terminal isIt is no to meet preset state switching demand.Wherein, state switching demand includes:Second terminal is switched to from power-up state is not keyed upBe switched on power-up state.
S103, control GPIO export power on signal, and power on signal holds projection transmitting terminal and projection receiving terminal for controllingRow power on operation;
Optionally, for first terminal when determining that second terminal meets preset state switching demand, first terminal is controllableGPIO exports power on signal.
Optionally, first terminal controls the power on signal for the GPIO outputs for itself including, and can be used for controlling to projection transmissionEnd and projection receiving terminal execute power on operation.That is, after first terminal control GPIO output power on signal, by the power on signalIt is controllable that projection transmitting terminal and projection receiving terminal are powered on.
Optionally, power on signal includes being drawn for that will project the power supply signal of transmitting terminal and project the power supply signal of receiving terminalA high high level, the high level power supply signal for projecting transmitting terminal is drawn high, it can be achieved that projection transmitting terminal power on, shouldHigh level is drawn high the power supply signal for projecting receiving terminal, it can be achieved that being powered on to projection receiving terminal.
Above is only the preferred embodiment of the embodiment of the present application, and inventor can be according to the upper telecommunications of the demand of oneself arbitrarily settingNumber specific manifestation form, as long as power on signal can be used in control to projection transmitting terminal and projection receiving terminal execute power on operation, do not limit herein.
Optionally, the power on signal that GPIO is exported in first terminal can be used for controlling simultaneously to projection transmitting terminal and projectionReceiving terminal executes power on operation.
Above is only the preferred embodiment of the embodiment of the present application, and inventor can be according to the upper telecommunications of the demand of oneself arbitrarily settingNumber control projection transmitting terminal and project receiving terminal execute power on operation triggered time, do not limit herein.
It should be noted that:First terminal, which is in, to be switched on after power-up state, the projection transmitting terminal being set on first terminalAnd be not powered on, and when second terminal meets preset state switching demand, it is set to projection receiving terminal in second terminal also simultaneouslyIt is not powered on.It is after the GPIO output power on signal that first terminal controls that its own includes, by upper telecommunications in the embodiment of the present applicationNumber control is to projection transmitting terminal and projects receiving terminal and executes power on operation.Relative to, first terminal be in booting power on shapeAfter state, just the projection transmitting terminal being arranged on is powered on, when second terminal, which meets preset state, switches demand, is set with regard to DuiThe mode that projection receiving terminal placed on it powers on, further saves the energy.
S104, when determine projection transmitting terminal and projection receiving terminal power on after the completion of, control GPIO export pairing signal, pairingSignal executes matching operation for controlling to projection transmitting terminal and projection receiving terminal, so that second terminal utilizes the throwing of successful matchingShadow transmitting terminal and projection receiving terminal, receive and export the vision signal of first terminal transmission, carry out projection displaying.
Optionally, after the completion of first terminal determines that projection transmitting terminal and projection receiving terminal power on, first terminal is controllableIts own GPIO for including exports pairing signal.
Optionally, pairing signal executes matching operation for controlling projection transmitting terminal and projection receiving terminal, that is to say, that whenAfter the GPIO output pairing signals that first terminal itself includes, by the controllable projection transmitting terminal of the pairing signal and projection receiving terminalMatching operation is executed between the two, so that projection transmitting terminal and projection receiving terminal are completed to match between the two.
Optionally, first terminal sends video by the projection transmitting terminal and projection receiving terminal of successful matching to second terminalSignal and second terminal output receive the vision signal sent by first terminal, to carry out projection displaying.Wherein, firstTerminal sends vision signal to second terminal to be completed by completing the projection transmitting terminal of pairing with projection receiving terminal, and second eventuallyIt is by being completed with the projection receiving terminal of projection transmitting terminal pairing that end, which receives the vision signal sent by first terminal,.
Optionally, the pairing signal that GPIO is exported in first terminal, can be used for controlling projection transmitting terminal simultaneously and projection connectsReceiving end executes matching operation.
Above is only the preferred embodiment of the embodiment of the present application, and pairing letter can be arbitrarily arranged in inventor according to the demand of oneselfNumber control projection transmitting terminal and project receiving terminal execute matching operation triggered time, do not limit herein.
In the embodiment of the present application, it is preferred that pairing signal control projection transmitting terminal and projection receiving terminal execute pairing behaviourThe time of work is less than 10 seconds;It it is 10 seconds when the time that pairing signal controls projection transmitting terminal and projection receiving terminal execution matching operationWhen, if projection transmitting terminal and the projection also unpaired success of receiving terminal, it is determined that projection transmitting terminal and projection receiving terminal pairing failure.
Above is only the preferred embodiment of the embodiment of the present application, and inventor can be according to the arbitrary setting pairing letter of needs of oneselfNumber control projection transmitting terminal and project receiving terminal execute matching operation time, do not limit herein.
A kind of projecting method of the application offer and device, are applied to first terminal, first terminal includes universal input/outputGPIO, and projection transmitting terminal is provided on first terminal.It itself be booting power-up state and coupled that first terminal, which is worked as,When two terminals meet preset state switching demand;Control GPIO outputs power on signal is the throwing projected in transmitting terminal and second terminalShadow receiving terminal powers on;After the completion of the two powers on, control GPIO output pairing signals are that projection transmitting terminal and projection receiving terminal are matchedIt is right, to receive and export the vision signal of first terminal transmission by second terminal after successful matching, carry out projection displaying.It keeps awayPhysical switch need to be respectively set in first terminal and second terminal by having exempted from the prior art, and is pressed two physical switch simultaneously and just may be usedThe problem of realizing the pairing to first terminal and second terminal so that on the basis of realizing shadow casting technique, reduce and realize projectionMaterial Cost, raising projection efficiency needed for technology.
For the ease of being elaborated to a kind of projecting method provided by the embodiments of the present application, at this to the embodiment of the present application" according to detection signal, determine whether second terminal meets preset state and cut involved by a kind of projecting method providedChange demand " the specific execution method of content describes in detail.
Fig. 2 is provided by the embodiments of the present application a kind of according to detection signal, determines whether second terminal meets preset shapeState switches the method flow diagram of demand.
As shown in Figure 2 is a kind of according to detection signal, determines whether second terminal meets preset state switching demandThe implementing precondition of method is:In each two adjacent detection signal got, the detection signal that the latter gets is whole from secondThe time for holding output, it is later than the time that the detection signal that the former gets is exported from second terminal.
As shown in Fig. 2, this method includes:
S201, determine whether the detection signal currently got indicates that second terminal is booting power-up state;When being, holdRow step S202;
In the embodiment of the present application, it is preferred that determine whether detection signal indicates that second terminal is booting power-up state, packetIt includes:Determine that the level state of detection signal, level state are high level state or low level state;According to determining level shapeState, determines whether detection signal indicates that second terminal is booting power-up state.
Optionally, for some detection signal, the level state for the detection signal determined is high level state, orThe level state of person, the detection signal determined are low level state.
Optionally, determine that detection signal does not indicate that second terminal is booting power-up state, it will be appreciated that be:Determine detection signalInstruction second terminal is to be not keyed up power-up state.
Optionally, according to determining level state, determine whether detection signal indicates that second terminal is booting power-up state,Including:According to the correspondence pre-set between level state and the state of second terminal, the level shape of detection signal is determined(wherein, the state of second terminal includes booting power-up state to correspondence between state and the state of second terminal, alternatively, notBe switched on power-up state);When level state corresponds to the booting power-up state of second terminal, determine that detection signal indicates second terminalFor the power-up state that is switched on;When level state corresponds to when being not keyed up power-up state of second terminal, detection signal instruction second is determinedTerminal is to be not keyed up power-up state.
For example, pre-setting the booting power-up state that high level state corresponds to second terminal, low level state corresponds to secondTerminal is not keyed up power-up state;If it is determined that when the level state of detection signal is high level state, the height of detection signal is determinedLevel state corresponds to the booting power-up state of second terminal, and then determines that detection signal instruction second terminal is that booting powers on shapeState;If it is determined that when the level state of detection signal is low level state, determine that the low level state of detection signal corresponds to second eventuallyEnd is not keyed up power-up state, and then determines that detection signal instruction second terminal is to be not keyed up power-up state.
Above is only the preferred embodiment of the embodiment of the present application, and level shape can be arbitrarily arranged according to the demand of oneself in inventorCorrespondence between state and the state of second terminal, does not limit herein.
Whether S202, determination upper one detection signal that gets adjacent with the detection signal currently got indicate secondTerminal is booting power-up state;When no, step S203 is executed;
S203, determine that second terminal meets preset state switching demand.
In the embodiment of the present application, it is preferred that be only in the determining detection signal instruction second terminal currently gotBe switched on power-up state, and determines that upper one detection signal that gets adjacent with the detection signal currently got does not indicate secondTerminal is to be switched on power-up state (that is, determining that upper one detection signal that gets adjacent with the detection signal currently got refers toShow that second terminal is to be not keyed up power-up state) when, it just can determine that second terminal meets preset state switching demand.
By it is above-mentioned to provided by the embodiments of the present application according to detection signal, determine whether second terminal meets preset shapeThe method of state switching demand is further described so that and a kind of projecting method provided by the embodiments of the present application is more clear, completely,Convenient for those skilled in the art understand that.
Further, a kind of projecting method provided by the embodiments of the present application further includes during carrying out projection displaying:When in the first normal mode of operation, determine whether current application environment meets the first power-saving working mode trigger condition, theOne normal mode of operation instruction first terminal is in the first normal operating conditions;When meeting, the first normal mode of operation is cutIt is changed to the first power-saving working mode, the first power-saving working mode instruction first terminal is in the first power saving working condition.
Optionally, carry out projection displaying process include:After projecting transmitting terminal and projection receiving terminal successful matching, secondTerminal receives and exports the vision signal of first terminal transmission using the projection transmitting terminal and projection receiving terminal of successful matching, intoThe process of row projection displaying.
In the embodiment of the present application, it is preferred that during carrying out projection displaying, first terminal is normal in firstWhen operating mode, determine whether current application environment meets the first power-saving working mode trigger condition;When meeting, first terminalFirst normal mode of operation is switched to the first power-saving working mode;Wherein, at the first normal mode of operation instruction first terminalIn the first normal operating conditions;First power-saving working mode instruction first terminal is in the first power saving working condition.
Optionally, current application environment meets the first power-saving working mode trigger condition, including:When determining that second terminal connectsThe vision signal for receiving and exporting a video of first terminal transmission, when completing the projection displaying process of the video.
In the embodiment of the present application, it is preferred that during carrying out projection displaying, first terminal is normal in firstWhen operating mode, it can determine whether second terminal completes the projection displaying process of a video;When it is completed, first terminal will be certainlyBe in the first normal mode of operation be switched to the first power-saving working mode.
Optionally, second terminal completes the projection displaying process of a video, including:Second terminal receives and exports firstAll vision signals for the video that terminal is sent, the projection to complete the video are shown.
For example, second terminal is received and is sent out by first terminal by the projection transmitting terminal and projection receiving terminal of successful matchingAfter the vision signal of some video (e.g., Seattle 1 is fallen in love in Beijing) sent, the vision signal of the exportable video is projectedDisplaying, then it is believed that the projection displaying of the video is completed after exporting all vision signals of the video completely.At this point, firstControllable the first normal mode of operation by residing for itself of terminal is switched to the first power-saving working mode, energy saving to realizePurpose.
A kind of projecting method provided by the present application, by being further arranged when first terminal is true during projecting displayingWhen settled preceding application environment meets the first power-saving working mode, the first normal mode of operation residing for first terminal itself is switchedFor the first power-saving working mode so that not only can reduce the object realized needed for shadow casting technique on the basis of realizing shadow casting techniqueExpect cost, improves projection efficiency, can also further realize energy saving purpose.
Further, a kind of projecting method provided by the embodiments of the present application, when determine current application environment meet the first provinceAfter electrician's operation mode trigger condition, this method further includes:
It generates and sends power-saving working mode trigger signal to second terminal, province is in so that second terminal controls its ownUnder corresponding second power-saving working mode of electrician's operation mode trigger signal, the second power-saving working mode indicates that second terminal is in theTwo power saving working conditions.
Optionally, after first terminal determines that current application environment meets the first power-saving working mode trigger condition, not onlyThe first normal mode of operation residing for itself can be switched to the first power-saving working mode;Can also, generate power-saving working mode touchIt signals, and the power-saving working mode trigger signal of generation is sent to second terminal;Work as so as to second terminal and receives thisAfter power-saving working mode trigger signal, the power-saving working mode trigger signal is responded, its own is controlled and is in the power saving Working mouldUnder corresponding second power-saving working mode of formula trigger signal.
For example, second terminal is received and is sent out by first terminal by the projection transmitting terminal and projection receiving terminal of successful matchingAfter the vision signal of some video (e.g., Seattle 1 is fallen in love in Beijing) sent, the vision signal of the exportable video is projectedDisplaying;Then it is believed that the projection of the video shows completion after the vision signal of the video is exported completely.At this point, not only can be byFirst terminal controls itself and is switched to the first power-saving working mode from the first normal mode of operation, to realize energy saving mesh's;Power-saving working mode trigger signal can be also generated by first terminal, and the power-saving working mode trigger signal is whole to secondEnd is sent, and corresponding second power-saving working mode of the power-saving working mode trigger signal itself is in so that second terminal controlsUnder;To further realize energy saving purpose.
A kind of projecting method provided by the present application, by being further arranged when first terminal is true during projecting displayingWhen settled preceding application environment meets the first power-saving working mode, generates and send power-saving working mode triggering letter to second terminalNumber, it itself is under corresponding second power-saving working mode of the power-saving working mode trigger signal, makes so that second terminal controlsIt obtains on the basis of the projecting method for not influencing above-described embodiment offer normally executes, further realizes energy saving purpose.
Further, in a kind of projecting method provided by the embodiments of the present application, further include:It works in the first power savingWhen pattern, the normal mode of operation recovery request received is responded, the first power-saving working mode is switched to the first normal workPattern.
Optionally, first terminal is when in the first power-saving working mode, the first terminal can respond receive it is normalThe first power-saving working mode residing for its own is switched back into the first normal mode of operation by operating mode recovery request.
In the embodiment of the present application, it is preferred that the triggering mode of normal mode of operation recovery request includes:On first terminalPower on button be pressed.
Optionally, the power on button on first terminal is:Control the first terminal that first terminal realizes booting power-up stateIn power button.
It should be noted that:When first terminal is in the first power-saving working mode, if first terminal need to be to second terminalSend the vision signal of a video.At this point, first terminal is needed to switch back into the first normal work from the first power-saving working mode firstOperation mode, the first terminal just can perform the action for the vision signal that the video is sent to second terminal.
The embodiment of the present application passes through on the basis of the above embodiments, it is further provided first terminal works from the first power savingPattern switching is the mode of the first normal mode of operation so that a kind of projecting method provided by the embodiments of the present application is more clear,Completely, it is convenient for those skilled in the art understand that and application.
Further, in a kind of projecting method provided by the embodiments of the present application, further include:Normal mode of operation is restoredIt asks to send to second terminal, so that second terminal responds normal mode of operation recovery request, the second power-saving working mode is cutIt is changed to the second normal mode of operation, the second normal mode of operation instruction second terminal is in the second normal operating conditions.
Optionally, after first terminal receives normal mode of operation recovery request, normal mode of operation can also be restoredIt asks to send to second terminal, so that second terminal responds the normal mode of operation recovery request sent by first terminal, by itThe second residing power-saving working mode is switched to the second normal mode of operation.
Optionally, the second normal mode of operation instruction second terminal is in the second normal operating conditions.
A kind of projecting method provided by the embodiments of the present application, by being further provided for when first during projecting displayingAfter terminal receives normal mode of operation recovery request, which is sent to second terminal, so as toSecond terminal responds the normal mode of operation recovery request received, and the second power-saving working mode residing for its own is switched toThe working condition of the mode of second normal mode of operation, the working condition and first terminal that may make second terminal is consistent,I.e. when first terminal is normal mode of operation (the first normal mode of operation), second terminal is also switched to normal mode of operation(the second normal mode of operation), further increases projection efficiency.
Fig. 3 is another projecting method flow chart provided by the embodiments of the present application.
Projecting method as shown in Figure 3 is applied to second terminal, and projection receiving terminal is provided in the second terminal.
As shown in figure 3, this method includes:
S301, output detection signal obtain so that coupled first terminal is when it itself is booting power-up state to determineTake detection signal, wherein first terminal includes universal input/output GPIO, and projection transmitting terminal is provided on first terminal;WithAnd when according to detection signal, when determining that second terminal meets preset state switching demand, control GPIO outputs are for control pairIt projects transmitting terminal and projects the power on signal that receiving terminal executes power on operation;And it is received when determining projection transmitting terminal and projectingAfter the completion of end powers on, control GPIO exports the pairing letter for controlling to projection transmitting terminal and projecting receiving terminal execution matching operationNumber;
Optionally, state switching demand includes:Second terminal switches to booting power-up state from power-up state is not keyed up.
Optionally, power on signal executes power on operation for controlling to projection transmitting terminal and projection receiving terminal;Pairing signalMatching operation is executed to projection transmitting terminal and projection receiving terminal for controlling.
S302, projection transmitting terminal and projection receiving terminal using successful matching, receive and export regarding for first terminal transmissionFrequency signal carries out projection displaying.
The application provides a kind of projecting method, is applied to second terminal, is provided with projection receiving terminal in second terminal, and secondTerminal is by exporting detection signal, so that coupled first terminal is when it itself is booting power-up state to determine, acquisition is detectdSurvey signal, wherein first terminal includes universal input/output GPIO, and projection transmitting terminal is provided on first terminal;AndWhen according to detection signal, when determining that second terminal meets preset state switching demand, control GPIO outputs are for controlling to throwingShadow transmitting terminal and projection receiving terminal execute the power on signal of power on operation;And project transmitting terminal and projection receiving terminal when determiningAfter the completion of powering on, control GPIO exports the pairing letter for controlling to projection transmitting terminal and projecting receiving terminal execution matching operationNumber;And projection transmitting terminal and projection receiving terminal using successful matching, receive and export the video letter of first terminal transmissionNumber, the mode of projection displaying is carried out, physical switch need to be respectively set in first terminal and second terminal by avoiding the prior art, andThe problem of pairing to first terminal and second terminal just can be achieved in two physical switch is pressed simultaneously so that projects skill realizingOn the basis of art, Material Cost, the raising projection efficiency realized needed for shadow casting technique are reduced.
Further, in a kind of projecting method as shown in Figure 3 provided by the embodiments of the present application, further include:Receive theThe power-saving working mode trigger signal that one terminal is sent;It controls and itself is in corresponding second province of power-saving working mode trigger signalUnder electrician's operation mode, the second power-saving working mode instruction second terminal is in the second power saving working condition.
Optionally, second terminal can receive the power-saving working mode trigger signal that first terminal is sent, and then control itselfUnder corresponding second power-saving working mode of power-saving working mode trigger signal.
In the embodiment of the present application, it is preferred that the second power-saving working mode instruction second terminal is in the second power saving workState.
The embodiment of the present application receives first terminal hair by the way that second terminal on the basis of the above embodiments, is further arrangedThe power-saving working mode trigger signal sent, and control and itself be in the corresponding second power saving work of power-saving working mode trigger signalUnder pattern, not only so that on the basis of realizing shadow casting technique, reduces the Material Cost needed for realization shadow casting technique, improvesProjection efficiency also further achievees the purpose that energy saving.
Further, in a kind of projecting method as shown in Figure 3 provided by the embodiments of the present application, further include:Receive theThe normal mode of operation recovery request that one terminal is sent;Normal mode of operation recovery request is responded, by the second power-saving working modeIt is switched to the second normal mode of operation, the second normal mode of operation instruction second terminal is in the second normal operating conditions.
Optionally, second terminal can receive the normal mode of operation recovery request that first terminal is sent;And it responds and receivesBy first terminal send normal mode of operation recovery request, the second power-saving working mode residing for itself is switched to secondNormal mode of operation.
In the embodiment of the present application, it is preferred that the second normal mode of operation indicates that second terminal is in the second normal workState.
The embodiment of the present application receives first terminal hair by the way that second terminal on the basis of the above embodiments, is further arrangedThe normal mode of operation recovery request sent, and respond the normal mode of operation recovery request and the second power saving residing for itself worksPattern switching is the mode of the second normal mode of operation so that on the basis of the above embodiments, further such that second terminalWorking condition and the working condition of first terminal be consistent, i.e., when first terminal is normal mode of operation (the first normal workOperation mode) when, second terminal is also switched to normal mode of operation (the second normal mode of operation), to further improve projectionEfficiency.
Fig. 4 is a kind of structural schematic diagram of projection arrangement provided by the embodiments of the present application.
Projection arrangement as shown in Figure 4 is applied to first terminal, and first terminal includes universal input/output GPIO, and theProjection transmitting terminal is provided in one terminal.
As shown in figure 4, the device includes:
Acquiring unit 41, for when it is booting power-up state to determine first terminal, obtaining coupled second terminalThe detection signal of output is provided with projection receiving terminal in second terminal;
Determination unit 42, for according to detection signal, determining whether second terminal meets preset state switching demand;ItsIn, state switching demand includes:Second terminal switches to booting power-up state from power-up state is not keyed up;
Power on signal output unit 43, for when meeting, control GPIO to export power on signal, and power on signal is for controllingPower on operation is executed to projection transmitting terminal and projection receiving terminal;
Pairing signal output unit 44 controls GPIO with after the completion of determining that projection transmitting terminal and projection receiving terminal power onPairing signal is exported, pairing signal executes matching operation for controlling to projection transmitting terminal and projection receiving terminal, eventually so as to secondEnd receives and exports the vision signal of first terminal transmission using the projection transmitting terminal and projection receiving terminal of successful matching, carry outProjection displaying.
In embodiments of the present invention, it is preferred that in each two adjacent detection signal got, what the latter gotThe time that detection signal is exported from second terminal, when being later than the time that the detection signal that the former gets is exported from second terminal,A kind of alternative construction of determination unit 42 provided in an embodiment of the present invention, determination unit 42 include:
Determination subelement, for determining whether the detection signal currently got indicates that second terminal is that booting powers on shapeState;
First determination unit, for when being, determining what upper one adjacent with the detection signal currently got gotWhether detection signal indicates that second terminal is booting power-up state;
Second determination unit, for when no, determining that second terminal meets preset state switching demand.
In the embodiment of the present application, it is preferred that determine whether detection signal indicates that second terminal is booting power-up state, packetIt includes:Determine that the level state of detection signal, level state are high level state or low level state;According to determining level shapeState, determines whether detection signal indicates that second terminal is booting power-up state.
In projection arrangement as shown in Figure 4 provided by the embodiments of the present application, further include:First switch unit,
First switch unit, for during carrying out projection displaying, the first normal work to be in first terminalWhen pattern, determine whether current application environment meets the first power-saving working mode trigger condition, the instruction of the first normal mode of operationFirst terminal is in the first normal operating conditions;When meeting, the first normal mode of operation is switched to the first power saving Working mouldFormula, the first power-saving working mode instruction first terminal are in the first power saving working condition.
In projection arrangement as shown in Figure 4 provided by the embodiments of the present application, further include:Second switch unit,
Second switch unit is used for after determining that current application environment meets the first power-saving working mode trigger condition,It generates and sends power-saving working mode trigger signal to second terminal, power saving Working mould is in so that second terminal controls its ownUnder corresponding second power-saving working mode of formula trigger signal, the second power-saving working mode instruction second terminal is in the second province electricianMake state.
In projection arrangement as shown in Figure 4 provided by the embodiments of the present application, further include:Third switch unit,
The third switch unit, for when first terminal is in the first power-saving working mode, respond receive it is normalFirst power-saving working mode is switched to the first normal mode of operation by operating mode recovery request.
In projection arrangement as shown in Figure 4 provided by the embodiments of the present application, further include:4th switch unit,
4th switch unit, for sending normal mode of operation recovery request to second terminal, so as to second terminalNormal mode of operation recovery request is responded, the second power-saving working mode is switched to the second normal mode of operation, the second normal workOperation mode instruction second terminal is in the second normal operating conditions.
The application provides a kind of projection arrangement, is applied to first terminal, and first terminal includes universal input/output GPIO,And projection transmitting terminal is provided on first terminal.The device is when first terminal is booting power-up state and is connected with first terminalSecond terminal meet preset state switching demand when;It is in projection transmitting terminal and second terminal to control GPIO output power on signalProjection receiving terminal power on;After the completion of the two powers on, control GPIO output pairing signals are that projection transmitting terminal and projection receiveEnd pairing carries out projection exhibition to receive and export the vision signal of first terminal transmission by second terminal after successful matchingShow.Physical switch need to be respectively set in first terminal and second terminal by avoiding the prior art, and is pressed two physics simultaneously and openedClose the problem of pairing to first terminal and second terminal just can be achieved so that on the basis of realizing shadow casting technique, reduce realMaterial Cost, raising projection efficiency needed for existing shadow casting technique.
Fig. 5 is the structural schematic diagram of another projection arrangement provided by the embodiments of the present application.
Projection arrangement as shown in Figure 5 is applied to second terminal, is provided with projection receiving terminal in second terminal, the device packetIt includes:
Detection signal output unit 51 exports detection signal, eventually so as to coupled first for controlling second terminalEnd obtains detection signal when it itself is booting power-up state to determine, wherein and first terminal includes universal input/output GPIO,And projection transmitting terminal is provided on first terminal;And when according to detection signal, determining that second terminal meets preset state and cutsWhen changing demand, control GPIO exports power on signal;And after the completion of determining that projection transmitting terminal and projection receiving terminal power on, controlGPIO processed exports pairing signal;Wherein, state switching demand includes:Second terminal is switched to from power-up state is not keyed up in bootingElectricity condition;Power on signal executes power on operation for controlling to projection transmitting terminal and projection receiving terminal;Pairing signal is for controllingMatching operation is executed to projection transmitting terminal and projection receiving terminal;
Display unit 52 is projected, for the projection transmitting terminal and projection receiving terminal using successful matching, receives and exports theThe vision signal that one terminal is sent, carries out projection displaying.
In projection arrangement as shown in Figure 5 provided by the embodiments of the present application, further include:5th switch unit,
5th switch unit, the power-saving working mode trigger signal for receiving first terminal transmission;Control second is eventuallyEnd is under corresponding second power-saving working mode of power-saving working mode trigger signal, and the second power-saving working mode instruction second is eventuallyEnd is in the second power saving working condition.
In projection arrangement as shown in Figure 5 provided by the embodiments of the present application, further include:6th switch unit,
6th switch unit, the normal mode of operation recovery request for receiving first terminal transmission;Respond normal workSecond power-saving working mode is switched to the second normal mode of operation, the instruction of the second normal mode of operation by operation mode recovery requestSecond terminal is in the second normal operating conditions.
The application provides a kind of projection arrangement, is applied to second terminal, is provided with projection receiving terminal in second terminal, the dressIt sets and exports detection signal by controlling second terminal, work as so as to coupled first terminal and determine itself for booting power-up stateWhen, obtain detection signal, wherein first terminal includes universal input/output GPIO, and is provided with projection on first terminal and sendsEnd;And when according to detection signal, when determining that second terminal meets preset state switching demand, control GPIO outputs are used forControl to projection transmitting terminal and project the power on signal of receiving terminal execution power on operation;And project transmitting terminal and throwing when determiningAfter the completion of shadow receiving terminal powers on, control GPIO outputs execute matching operation to projection transmitting terminal for controlling with receiving terminal is projectedPairing signal;And projection transmitting terminal and projection receiving terminal using successful matching, it receives and exports regarding for first terminal transmissionFrequency signal carries out the mode of projection displaying, avoids the prior art and physics need to be respectively set in first terminal and second terminal and opensIt closes, and presses the problem of pairing to first terminal and second terminal just can be achieved in two physical switch simultaneously so that realizingOn the basis of shadow casting technique, Material Cost, the raising projection efficiency realized needed for shadow casting technique are reduced.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with otherThe difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodimentFor, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method partIt is bright.
The preferred embodiment that the above is only the application makes skilled artisans appreciate that or realization the application.It is rightA variety of modifications of these embodiments will be apparent to one skilled in the art, general original as defined hereinReason can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application will notBe intended to be limited to the embodiments shown herein, and be to fit to it is consistent with the principles and novel features disclosed in this article mostWide range.