CN105975414A - Method and device for controlling mobile terminal - Google Patents
Method and device for controlling mobile terminal Download PDFInfo
- Publication number
- CN105975414A CN105975414A CN201510705729.3A CN201510705729A CN105975414A CN 105975414 A CN105975414 A CN 105975414A CN 201510705729 A CN201510705729 A CN 201510705729A CN 105975414 A CN105975414 A CN 105975414A
- Authority
- CN
- China
- Prior art keywords
- hdmi
- mhl
- drives
- hpd
- mobile terminal
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4081—Live connection to bus, e.g. hot-plugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/38—Universal adapter
- G06F2213/3852—Converter between protocols
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The embodiment of the invention provides a method and device for controlling a mobile terminal. The method and the device aim to solve the problem in the prior art that the mobile terminal keeps on enabling an HPD function of an HDMI after being started and thus power consumption of the mobile terminal is increased. The mobile terminal comprises a USB interface and the HDMI, wherein working modes of the USB interface are compatible to a USB OTG mode and an MHL mode. The method for controlling the mobile terminal comprises the steps that an USB OTG driver detects whether MHL equipment is inserted into the USB interface; and if insertion of the MHL equipment into the USB interface is detected, the USB OTG driver can be triggered to enable the HPD function of the HDMI. The method and the device provided by the embodiment of the invention have the advantages that unnecessary power consumption caused by that the HPD function is still operated when a hot-plug event does not need to be detected can be avoided, so that the power consumption of the mobile terminal can be reduced.
Description
Technical field
The present embodiments relate to technical field of mobile terminals, particularly relate to the controlling party of a kind of mobile terminal
Method and device.
Background technology
Along with developing rapidly of communication technology, mobile terminal has had become as in people's life requisite
Means of communication, has provided the user many conveniences, along with mobile terminal experience is wanted by user
Asking more and more higher, the kind of mobile terminal is more and more abundanter, and function is the most from strength to strength.Existing movement
Terminal, in order to meet the requirement of digital times high quality graphics image, is arranged the most in the terminal
HDMI (High Definiton Multimedia Interface, HDMI), HDMI
It is a kind of digitized video/audio interface technology, is the tailored version digital interface being suitable for image transmission, its
Audio frequency and signal of video signal can be transmitted simultaneously, thus the such as intelligent display of convenient mobile terminal and receiving terminal sets
For the communication between waiting.
One significant advantage of HDMI is that it supports hot plug, and the equipment therefore with HDMI has
The feature of " plug and play ", can hold consultation between signal source and receiving terminal automatically, automatically selects and closes most
Suitable video/audio format.
HDMI has HPD (Hot Plug Detect, hot plug detects) function, after enabling this function is
Hot plug events can be detected, after mobile terminal-opening, enable HDMI in the prior art the most always
HPD function, so as to hot plug events detected, and then realize the plug and play of equipment.But,
When need not detect hot plug events, this HPD function is without running, therefore prior art
Mode can increase the power consumption of mobile terminal.
Summary of the invention
The embodiment of the present invention provides control method and the device of a kind of mobile terminal, in order to solve prior art
Enable the HPD function of HDMI after middle mobile terminal-opening the most always, cause the power consumption increasing mobile terminal
Problem.
The embodiment of the present invention provides the control method of a kind of mobile terminal, and described mobile terminal includes general string
Row bus USB interface and HDMI HDMI, the mode of operation of described USB interface
Compatible USB OTG pattern and mobile terminal high-definition audio and video standard interface MHL pattern,
Described method includes:
USB OTG drives and has detected whether that MHL equipment inserts described USB interface;
If having detected, MHL equipment inserts described USB interface, and the most described USB OTG drives triggering
Enable the hot plug detection HPD function of described HDMI.
The embodiment of the present invention provides the control device of a kind of mobile terminal, and described mobile terminal includes general string
Row bus USB interface and HDMI HDMI, the mode of operation of described USB interface
Compatible USB OTG pattern and mobile terminal high-definition audio and video standard interface MHL pattern,
Described device includes that USB OTG drives, and described USB OTG drives and includes:
Insert detection module, for detecting whether there is MHL equipment to insert described USB interface;
Enable trigger module, described for having detected that MHL equipment inserts at described insertion detection module
USB interface, then trigger the hot plug detection HPD function enabling described HDMI.
The control method of the mobile terminal that the embodiment of the present invention provides and device, after mobile terminal-opening also
Enable the HPD function of HDMI the most immediately, and be to detect whether MHL (Mobile High-Definition
Link, mobile terminal high-definition audio and video standard interface) equipment inserts the USB interface of mobile terminal, if detection
To there being MHL equipment to insert USB interface, then enable the HPD function of HDMI.Therefore, the present invention
Embodiment provides the mode of the HPD function of a kind of dynamically enabling HDMI, is really needing use HPD
This function could being enabled during function, therefore can avoiding when need not hot plug events is detected still
So run the unnecessary power consumption that HPD function causes, reduce the purpose of mobile terminal power consumption.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under,
Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of steps of the control method of a kind of mobile terminal of the embodiment of the present invention one;
Fig. 2 is the schematic diagram that a kind of source of the embodiment of the present invention one is connected with receiving terminal;
Fig. 3 is the flow chart of steps of the control method of a kind of mobile terminal of the embodiment of the present invention two;
Fig. 4 is the flow chart of steps of the control method of a kind of mobile terminal of the embodiment of the present invention three;
Fig. 5 is the structured flowchart controlling device of a kind of mobile terminal of the embodiment of the present invention four;
Fig. 6 is the structured flowchart controlling device of a kind of mobile terminal of the embodiment of the present invention five.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Embodiment one
With reference to Fig. 1, it is shown that the step stream of the control method of a kind of mobile terminal of the embodiment of the present invention one
Cheng Tu.
The control method of the mobile terminal of the embodiment of the present invention may comprise steps of:
Step 101, USB OTG drives and has detected whether that MHL equipment inserts USB interface.
The mobile terminal of the embodiment of the present invention includes USB interface and HDMI.HDMI has 19 pins,
Be not suitable for directly applying in portable set such as mobile terminal, therefore, it is common that inside mobile terminal
Built-in HDMI, and to arrange MHL, MHL in the terminal be a kind of to connect portable electron device
Audio-visual standard interface, it only has 5 pins, makes the storage of data and the transmission of data become more to hold
Easily, the MHL that mobile terminal is supported can realize by the transmission of video of mobile terminal to receiving terminal (as
Intelligent display device) play.With reference to Fig. 2, it is shown that a kind of source (Source of the embodiment of the present invention one
End) schematic diagram that is connected with receiving terminal (Sink end), as shown in Figure 2, Source end (mobile terminal)
In be provided with HDMI and HDMI and turn MHL chip, be wherein additionally provided with MHL and (Fig. 2 do not show
Go out), HDMI is set between HDMI and MHL and turns MHL chip, this HDMI turns MHL chip
Effect be HDMI form to be converted into MHL form, so as to transmitted by MHL;And
The video format that Sink end (intelligent display device) can be play is HDMI form, therefore at Sink end
And also needing between Source end, MHL is set turn HDMI chip, this MHL turns the work of HDMI chip
MHL form being converted into HDMI form with being, one end that MHL turns HDMI chip is inserted
Sink end, the other end inserts Source end, can realize the video of mobile terminal is presented in intelligent display
On equipment.
Further, it is contemplated that if being separately provided MHL on mobile terminals, then can increase mobile terminal
The quantity of hardware interface, therefore to reduce the quantity of hardware interface, uses interface sharing technology.USB
(Universal Serial Bus, USB (universal serial bus)) is an external bus standard, for specification computer
With being connected and communicate with of external equipment, USB interface be one make computer peripheral equipment connection standard,
The interface of unification, the plug and play of a holding equipment and warm connection function.Generally all can set on mobile terminal
Put USB interface, therefore the most typically pass through existing USB interface multiplexing MHL on mobile terminal, from
And make the structure of mobile terminal simpler.Owing to by USB interface multiplexing MHL, therefore USB connects
Mouthful can compatible USB OTG (OTG is the abbreviation of On-The-Go, is mainly used in various different
Connection between equipment or mobile device, carries out data exchange, and OTG technology is not having Host (main frame) exactly
In the case of, it is achieved the data transmission of equipment room) pattern and two kinds of mode of operations of MHL pattern, when having
After USB OTG equipment inserts, USB interface is operated in USB OTG pattern, uses USB OTG to drive,
After having MHL equipment to insert, USB interface is operated in MHL pattern, uses MHL to drive.
As above, the HDMI in mobile terminal is to communicate with MHL, therefore when using HDMI,
The equipment inserting mobile terminal USB interface should be MHL equipment.Mobile terminal-opening in the prior art
After enable the HPD function of HDMI the most always, this kind of mode can increase the power consumption of mobile terminal, the present invention
Embodiment is for the problems referred to above, it is contemplated that the most really need to make when needing the HDMI using mobile terminal
The HPD function of energy HDMI, therefore the most directly enables the HPD of HDMI after mobile terminal-opening
Function, but driven by USB OTG and USB interface is monitored, to have detected whether MHL
Equipment inserts USB interface.
Step 102, if having detected, MHL equipment inserts USB interface, then USB OTG drives and triggers
Enable the HPD function of HDMI.
If having detected that MHL equipment inserts USB interface in a step 101, then can illustrate now
Needing to use HDMI, therefore in the case of this kind, USB OTG drives and can trigger the HPD enabling HDMI
Function.If be detected that do not have MHL equipment to insert USB interface, then temporarily without enabling HDMI's
HPD function, will perform corresponding operating according to practical situation in the case of this kind, such as, if inserting USB
Interface is USB OTG equipment, then perform the operation etc. of transmission data.
The control method of the mobile terminal that the embodiment of the present invention provides, after mobile terminal-opening the most immediately
Enable the HPD function of HDMI, and be to detect whether that MHL equipment inserts the USB of mobile terminal
Interface, if having detected, MHL equipment inserts USB interface, then enable the HPD function of HDMI.
Therefore, the mode of the HPD function of a kind of dynamically enabling HDMI is embodiments provided, really
Need to enable this function when using HPD function, therefore can avoid need not hot plug events
Still run the unnecessary power consumption that HPD function causes when detecting, reduce mobile terminal power consumption
Purpose.
Embodiment two
With reference to Fig. 3, it is shown that the step stream of the control method of a kind of mobile terminal of the embodiment of the present invention two
Cheng Tu.
The control method of the mobile terminal of the embodiment of the present invention may comprise steps of:
Step 301, USB OTG drives and has detected whether that MHL equipment inserts USB interface.
The USB interface of mobile terminal include VBUS pin, USB_ID pin, USB_DP pin,
USB_DM pin and GND pin, wherein VBUS pin and the Power IC (power supply of mobile terminal
IC) connecting, during normal work, the voltage of VBUS pin is 5V, GND pin ground connection.When there being USB
OTG equipment or MHL equipment insert USB interface or when USB interface is extracted, USB_ID pin
Level can change and result in the interrupt signal of USB_ID pin.Such as, when there being USB OTG
When equipment or MHL equipment insert USB interface, the level of this USB_ID pin can be dragged down (i.e.
The level of USB_ID pin becomes low level), thus produce the interrupt signal of USB_ID pin;When
There are USB OTG equipment or MHL equipment when USB interface is extracted, can be by this USB_ID pin
Level raise (i.e. the level of USB_ID pin becomes high level), thus produce USB_ID pin
Interrupt signal.Can be pre-in the AP (Application Processor, application processor) of mobile terminal
First registration for processing the interrupt processing function of above-mentioned interrupt signal, when have USB OTG equipment or
When MHL equipment inserts USB interface, the USB OTG of mobile terminal drives can receive USB_ID
The interrupt signal of pin, can call interrupt processing function and process, to further determine that after receiving
Insert for which kind of equipment.
Preferably, this step 301 can include following sub-step:
Sub-step a1, USB OTG drives after the interrupt signal receiving USB_ID pin, detection
The level of USB_ID pin;If USB_ID pin is low level, then perform sub-step a2;If
USB_ID pin is high level, then perform sub-step a4;
When USB OTG equipment or MHL equipment insert the USB interface of mobile terminal, hardware meeting
Reporting the interrupt signal about USB_ID pin, the USB OTG in mobile terminal drives and will receive
The interrupt signal of this USB_ID pin, and detect after the interrupt signal receiving USB_ID pin
The level of USB_ID pin.
Sub-step a2, if be detected that the level of USB_ID pin is low level, then reads USB_ID
The resistance to earth of pin;If the resistance of resistance to earth is 1K Ω, then perform sub-step a3;If over the ground
The resistance of resistance is not 1K Ω, then perform sub-step a4;
The external equipment resistance value to having between a USB_ID pin and ground, this resistance is connected across
On external equipment, the USB OTG of mobile terminal drives level USB_ID pin being detected to be low electricity
Flat, then can read the resistance to earth of USB_ID pin further.
Sub-step a3, if the resistance of the resistance to earth of USB_ID pin is 1K Ω, it is determined that there is MHL
Equipment inserts USB interface.
USB OTG equipment or MHL equipment when inserting USB interface, the electricity over the ground of USB_ID pin
The resistance of resistance is different, according to MHL specification, and USB_ID pin when MHL equipment inserts
The resistance of resistance to earth is 1K Ω, therefore, if be detected that the resistance of the resistance to earth of USB_ID pin
For 1K Ω, then may determine that MHL equipment inserts USB interface.
Sub-step a4, determines and does not has MHL equipment to insert USB interface.
If detecting that in sub-step a1 USB_ID pin is high level, it is determined that do not have MHL to set
Standby insertion USB interface;If the resistance to earth reading USB_ID pin in sub-step a2 is not
1K Ω, then it is also determined that do not have MHL equipment to insert USB interface.
Step 302, if having detected, MHL equipment inserts USB interface, then USB OTG drives and triggers
Enable the HPD function of HDMI.
If having detected that MHL equipment inserts USB interface in step 301, then can illustrate now
Needing to use the HDMI of mobile terminal, therefore in the case of this kind, USB OTG drives and can trigger enable
The HPD function of HDMI, can detect hot plug events after enabling this function, and then realizes
Signal transmission (detailed process will be discussed in embodiment three) between mobile terminal and intelligent display device.
If detect in step 301 do not have MHL equipment insert USB interface, then can illustrate temporarily without
The HPD function of HDMI need to be enabled.
Step 303, MHL drives and has detected whether that MHL equipment is extracted from USB interface.
The embodiment of the present invention can also be driven by MHL further and detected whether that MHL equipment is from USB
Interface is extracted.As described in step 301, when having USB OTG equipment or MHL equipment from USB
When interface is extracted, the level of USB_ID pin can change and result in the interruption of USB_ID pin
Signal, in the embodiment of the present invention when there being MHL equipment to extract from USB interface, the MHL of mobile terminal
Driving can receive the interrupt signal of USB_ID pin.Further, MHL drives inside should be had to deposit
Device, this internal register is for storing the data that can be identified for that MHL equipment and insert or pull out (for tool
The data mode of body, those skilled in the art carry out respective handling according to practical experience, and the present invention is real
Execute example this is not any limitation as), insert USB interface when there being MHL equipment or pull out from USB interface
When going out, will automatically trigger the data updated in this internal register.It is therefore preferred that this step 303
Can include following sub-step:
Sub-step b1, MHL drives after the interrupt signal receiving USB_ID pin, reads correspondence
Internal register in data;
Sub-step b2, if the data in internal register are the data that mark MHL equipment is extracted, then
Determine that MHL equipment is extracted from USB interface.
Step 304, if having detected, MHL equipment is extracted from USB interface, then MHL drives to trigger and closes
Close the HPD function of HDMI.
If having detected that MHL equipment is extracted from USB interface in step 303, then this can be described
Time be no longer necessary to use mobile terminal HDMI, therefore in the case of this kind MHL drive can trigger closedown
The HPD function of HDMI, to reduce the power consumption of mobile terminal further.
The method proposing the HPD function of a kind of dynamic control HDMI in the embodiment of the present invention, works as needs
Enable the HPD function of HDMI when using the HDMI of mobile terminal, move eventually when being no longer necessary to use
Close the HPD function of HDMI during the HDMI held, thus reach effectively to reduce the power consumption of mobile terminal,
Reduce the purpose of the loss of battery of mobile terminal.
Embodiment three
With reference to Fig. 4, it is shown that the step stream of the control method of a kind of mobile terminal of the embodiment of the present invention three
Cheng Tu.
The control method of the mobile terminal of the embodiment of the present invention may comprise steps of:
Step 401, USB OTG drives and has detected whether that MHL equipment inserts USB interface.If detection
To there being MHL equipment to insert USB interface, then perform step 402;If detecting and not having MHL equipment to insert
Enter USB interface, then perform corresponding operating.
Wherein, corresponding operating can perform according to practical situation, such as, connects if be detected that insert USB
Mouth is USB OTG equipment, then perform the operation of transmission data;The most such as, if be detected that do not have
Equipment inserts USB interface, does not deals with, etc..
Step 402, USB OTG drives and triggers the HPD function enabling HDMI.
HDMI includes HPD pin, and after enabling the HPD function of HDMI, HDMI drives and just can ring
The level answering HPD pin changes, and then performs corresponding operation, as detected that HPD pin is for height
Signal transmission operation etc. will be performed during level.In the embodiment of the present invention, if USB OTG in step 401
Driving has detected that MHL equipment inserts USB interface, then can trigger further and enable HDMI's
HPD function.Preferably, the process of the HPD function that USB OTG driving triggers enable HDMI can
To include: USB OTG drives to drive to MHL to send has MHL equipment insertion USB to connect for instruction
First notice of mouth;MHL drives after receiving this first notice, drives transmission to be used for referring to HDMI
Show the second notice of the HPD function enabling HDMI;HDMI drives after receiving this second notice,
Enable the HPD function of HDMI.
Step 403, USB OTG drives and reports MHL equipment to insert event to the service processes set,
Service processes, after this MHL equipment insertion event being detected, controls USB interface and is switched to MHL mould
Formula.
Mobile terminal can set the service processes (Service for switching USB interface mode of operation
Process), after USB OTG drives and has detected that MHL equipment inserts USB interface, can be to this
Service processes reports MHL equipment to insert event, and service processes is detecting that this MHL equipment inserts event
After, USB interface can be controlled and be switched to MHL pattern.
In the embodiment of the present invention, USB interface is also associated with permutator, and this permutator can be switched to
The MHL controller that the MHL pattern of USB interface is corresponding, it is also possible to be switched to the USB of USB interface
The USB otg controller that OTG pattern is corresponding, can realize USB interface by this permutator corresponding
The switching of mode of operation.Therefore, the process mode of operation of USB interface being switched to MHL pattern can
To be switched to the MHL controller realization of correspondence by controlling permutator.
Step 404, MHL drives and the HPD pin level of HDMI is set to high level.
When there being MHL equipment to insert USB interface, illustrate that mobile terminal now shows as intelligent with receiving terminal
Show that equipment connects, therefore need mobile terminal to transmit signal to receiving terminal.And in HDMI at the beginning of HPD pin
Beginning level is low level, and HDMI drives and performs signal transmission behaviour when detecting that HPD pin is high level
Make, also need to MHL driving the most before transmitting the signal and HPD pin level is set to high level,
So that follow-up HDMI drives this high level can be detected.
Preferably, the HPD pin level of HDMI is set to by the embodiment of the present invention in MHL driving
Before high level, MHL drives and can also again determine whether that MHL equipment inserts USB interface, and
The setting of HPD pin level is carried out after determining MHL equipment insertion USB interface.As implemented
Described in example two, when there being MHL equipment insert USB interface or extract from USB interface, will automatically touch
Sending out the data updated in the internal register that MHL driving is corresponding, therefore, it is right that MHL driving can be read
Data in the internal register answered, if the data in internal register are inserted for mark MHL equipment
Data, it is determined that have MHL equipment insert USB interface.
Step 405, HDMI drives when detecting that HPD pin level is high level, starts self
DDC, reads, by DDC passage, the EDID information that receiving terminal is corresponding, and transmits EDID to receiving terminal
The signal that information is corresponding.
HDMI is to there being DDC (Display Data Channel, DDC), and this DDC is
Set up the communication channel between transmitting terminal and receiving terminal, for exchanging between transmitting terminal and receiving terminal
Configuration information.In the memorizer of receiving terminal, storage has EDID (the Extended Display of correspondence
Identification Data, expanded display recognition data) information, this EDID information includes that receiving terminal can prop up
The information such as the resolution held, transmitting terminal i.e. can confirm that the setting of receiving terminal terminal demonstration according to EDID information
And function.Therefore, HDMI drives when detecting that HPD pin level is high level, will start self
DDC passage, read EDID information corresponding to receiving terminal by DDC passage, with determine need to
The resolution of the signal of receiving terminal transmission, and then transmit, to receiving terminal, the signal that EDID information is corresponding, also
The signal corresponding to resolution of i.e. EDID information instruction thus realize the such as video of the content in mobile terminal
Etc. being shown on intelligent display device.
Step 406, MHL drives and has detected whether that MHL equipment is extracted from USB interface.If detecting
There is MHL equipment to extract from USB interface, then perform step 407;If detect do not have MHL equipment from
USB interface is extracted, then perform corresponding operating.
Wherein, MHL drive detect do not have MHL equipment to extract from USB interface time, performed
Corresponding operating can be not deal with.
Step 407, MHL drives and the HPD pin level of HDMI is set to low level.
When MHL equipment is after USB interface is extracted, illustrate that mobile terminal does not now reconnect with receiving terminal,
Therefore mobile terminal is no longer necessary to transmit signal to receiving terminal, the most now MHL driving can be by HDMI
HPD pin level be set to low level so that follow-up HDMI drive this low level can be detected,
And then make mobile terminal no longer transmit signal to receiving terminal.
Step 408, HDMI drives when detecting that HPD pin level is low level, pre-by performing
The call back function first registered drives to MHL and sends for indicating HPD pin level as the low level 3rd
Notice.
In the embodiment of the present invention, when MHL drives and initializes, can register can be driven by HDMI and adjust
Call back function, and this call back function is registered to HDMI drive in.Call back function is exactly one and leads to
Cross the function that function pointer calls, if the pointer of certain function is passed to another function as parameter,
When this pointer is used as calling its pointed function, can this function be called now call back function.
When HDMI drive when detecting that HPD pin level is low level, by perform this call back function to
It is low level third notice that MHL drives transmission to be used for indicating HPD pin level.
Step 409, MHL drives after receiving third notice, triggers the HPD merit closing HDMI
Energy.
MHL drives after receiving third notice, it may be determined that be no longer necessary to use the HPD of HDMI
Function, namely HDMI drive be no longer necessary to respond HPD pin level change, therefore MHL drive
The HPD function closing HDMI will be triggered.Preferably, MHL drives and triggers the HPD closing HDMI
The process of function may include that MHL is driven through execution call back function and drives transmission for referring to HDMI
Show the 4th notice of the HPD function closing HDMI;HDMI drives after receiving the 4th notice,
Close the HPD function of HDMI.
The embodiment of the present invention by judge MHL equipment into and out, dynamically control HDMI
HPD function, it is possible to effectively reduce the power consumption of mobile terminal, reduces the battery loss of mobile terminal.
For aforesaid each method embodiment, in order to be briefly described, therefore it is all expressed as a series of dynamic
Combining, but those skilled in the art should know, the present invention is not by described sequence of movement
Limiting, because according to the present invention, some step can use other orders or carry out simultaneously.Secondly,
Those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment,
Necessary to involved action and the module not necessarily present invention.
Embodiment four
With reference to Fig. 5, it is shown that the structural frames controlling device of a kind of mobile terminal of the embodiment of the present invention four
Figure.Wherein, mobile terminal can include USB interface and HDMI, and the mode of operation of USB interface is held concurrently
Hold USB OTG pattern and MHL pattern.
The control device of the mobile terminal of the embodiment of the present invention can include that USB OTG drives 51, USB
OTG drives 51 may include that
Insert detection module 511, for detecting whether there is MHL equipment to insert USB interface;
Enable trigger module 512, for having detected that MHL equipment inserts USB at insertion detection module
Interface, then trigger the hot plug detection HPD function enabling HDMI.
The control device of the mobile terminal that the embodiment of the present invention provides, after mobile terminal-opening the most immediately
Enable the HPD function of HDMI, and be to detect whether that MHL equipment inserts the USB of mobile terminal
Interface, if having detected, MHL equipment inserts USB interface, then enable the HPD function of HDMI.
Therefore, the mode of the HPD function of a kind of dynamically enabling HDMI is embodiments provided, really
Need to enable this function when using HPD function, therefore can avoid need not hot plug events
Still run the unnecessary power consumption that HPD function causes when detecting, reduce mobile terminal power consumption
Purpose.
Embodiment five
With reference to Fig. 6, it is shown that the structural frames controlling device of a kind of mobile terminal of the embodiment of the present invention five
Figure.
The control device of the mobile terminal of the embodiment of the present invention can include that USB OTG drives 61, USB
OTG drives 61 to may include that insertion detection module 611, for detecting whether there is MHL equipment to insert
USB interface;Enable trigger module 612, for having detected that MHL equipment inserts at insertion detection module
USB interface, then trigger the hot plug detection HPD function enabling HDMI.
Preferably, enable trigger module 612, have MHL specifically for driving to send to MHL for instruction
Equipment inserts the first notice of USB interface;MHL drives after receiving the first notice, to HDMI
Drive the second notice sent for indicating the HPD function enabling HDMI;HDMI drives and is receiving
After second notice, enable the HPD function of HDMI.
Preferably, the control device of mobile terminal can also include that MHL drives 62, and MHL drives 62
May include that and extract detection module 621, for detecting whether there is MHL equipment to extract from USB interface;
Close trigger module 622, for having detected that MHL equipment pulls out from USB interface extracting detection module
Go out, then trigger the HPD function closing HDMI.
Preferably, MHL drives 62 can also include: the first level arranges module 623, for making
After energy trigger module triggers the HPD function enabling HDMI, the HPD pin level of HDMI is set
It is set to high level.
Preferably, MHL drives 62 can also include: second electrical level arranges module 624, for closing
Before closing the HPD function that trigger module triggers closedown HDMI, the HPD pin level of HDMI is set
It is set to low level.
Preferably, the control device of mobile terminal can also include: HDMI drives 63, in detection
To HPD pin level be low level time, drive to MHL send out by performing call back function registered in advance
Sending for indicating HPD pin level is low level third notice.Close trigger module 622, specifically use
In after receiving third notice, transmission is driven to be used for indicating closedown by performing call back function to HDMI
4th notice of the HPD function of HDMI;HDMI drives after receiving the 4th notice, closes HDMI
HPD function.
In the embodiment of the present invention, enable the HPD of HDMI when needing the HDMI using mobile terminal
Function, closes the HPD function of HDMI, thus when being no longer necessary to the HDMI using mobile terminal
Reach effectively to reduce the power consumption of mobile terminal, reduce the purpose of the loss of battery of mobile terminal.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described
Simply, relevant part sees the part of embodiment of the method and illustrates.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality
The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly
Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words
Dividing and can embody with the form of software product, this computer software product can be stored in computer can
Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one
Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented
The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it
Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area
Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill
The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (12)
1. the control method of a mobile terminal, it is characterised in that described mobile terminal includes general serial
Bus USB interface and HDMI HDMI, the mode of operation of described USB interface is held concurrently
Hold USB OTG pattern and mobile terminal high-definition audio and video standard interface MHL pattern,
Described method includes:
USB OTG drives and has detected whether that MHL equipment inserts described USB interface;
If having detected, MHL equipment inserts described USB interface, and the most described USB OTG drives triggering
Enable the hot plug detection HPD function of described HDMI.
Method the most according to claim 1, it is characterised in that also include:
MHL drives and has detected whether that MHL equipment is extracted from described USB interface;
If having detected, MHL equipment is extracted from described USB interface, and the most described MHL drives to trigger and closes
Close the HPD function of described HDMI.
Method the most according to claim 1, it is characterised in that drive at described USB OTG and touch
After sending out the step of the HPD function enabling described HDMI, also include:
MHL drives and the HPD pin level of described HDMI is set to high level.
Method the most according to claim 1, it is characterised in that described USB OTG drives triggering
Enable the step of the HPD function of described HDMI, including:
Described USB OTG drives to drive to send to described MHL has MHL equipment to insert for instruction
First notice of USB interface;
Described MHL drives after receiving described first notice, drives transmission to be used for indicating to HDMI
Enable the second notice of the HPD function of HDMI;
Described HDMI drives after receiving described second notice, enables the HPD merit of described HDMI
Energy.
Method the most according to claim 2, it is characterised in that drive to trigger at described MHL and close
Before closing the step of HPD function of described HDMI, also include:
Described MHL drives and the HPD pin level of described HDMI is set to low level.
Method the most according to claim 5, it is characterised in that
Described MHL drive the HPD pin level of described HDMI is set to low level step it
After, also include:
HDMI drives when detecting that described HPD pin level is low level, registered in advance by performing
Call back function drive transmission to MHL to be used for indicating described HPD pin level be low level threeway
Know;
Described MHL drives the step triggering the HPD function closing described HDMI, including:
Described MHL drives after receiving described third notice, by performing described call back function to institute
State HDMI and drive the 4th notice sent for indicating the HPD function closing HDMI;
Described HDMI drives after receiving described 4th notice, closes the HPD merit of described HDMI
Energy.
7. the control device of a mobile terminal, it is characterised in that described mobile terminal includes general serial
Bus USB interface and HDMI HDMI, the mode of operation of described USB interface is held concurrently
Hold USB OTG pattern and mobile terminal high-definition audio and video standard interface MHL pattern,
Described device includes that USB OTG drives, and described USB OTG drives and includes:
Insert detection module, for detecting whether there is MHL equipment to insert described USB interface;
Enable trigger module, described for having detected that MHL equipment inserts at described insertion detection module
USB interface, then trigger the hot plug detection HPD function enabling described HDMI.
Device the most according to claim 7, it is characterised in that described device also includes that MHL drives
Dynamic, described MHL drives and includes:
Extract detection module, for detecting whether there is MHL equipment to extract from described USB interface;
Close trigger module, for having detected that MHL equipment is from described USB at described detection module of extracting
Interface is extracted, then trigger the HPD function closing described HDMI.
Device the most according to claim 7, it is characterised in that described device also includes that MHL drives
Dynamic, described MHL drives and includes:
First level arranges module, enables described HDMI's for triggering at described enable trigger module
After HPD function, the HPD pin level of described HDMI is set to high level.
Device the most according to claim 7, it is characterised in that described enable trigger module, tool
Body leads to for driving transmission to have MHL equipment to insert the first of USB interface for instruction to described MHL
Know;Described MHL drives after receiving described first notice, drives transmission to be used for indicating to HDMI
Enable the second notice of the HPD function of HDMI;Described HDMI drive receive described second lead to
After knowing, enable the HPD function of described HDMI.
11. devices according to claim 8, it is characterised in that described MHL drives and also includes:
Second electrical level arranges module, closes described HDMI's for triggering at described closedown trigger module
Before HPD function, the HPD pin level of described HDMI is set to low level.
12. devices according to claim 11, it is characterised in that
Described device also includes: HDMI drives, and being used for described HPD pin level being detected is low electricity
At ordinary times, transmission is driven to be used for indicating described HPD to manage by the call back function that execution is registered in advance to MHL
Foot level is low level third notice;
Described closedown trigger module, specifically for after receiving described third notice, described by performing
Call back function drives the four-way sent for indicating the HPD function closing HDMI to described HDMI
Know;Described HDMI drives after receiving described 4th notice, closes the HPD merit of described HDMI
Energy.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510705729.3A CN105975414A (en) | 2015-10-26 | 2015-10-26 | Method and device for controlling mobile terminal |
PCT/CN2016/088390 WO2017071285A1 (en) | 2015-10-26 | 2016-07-04 | Mobile terminal control method and device |
US15/232,673 US20170116146A1 (en) | 2015-10-26 | 2016-08-09 | Control method and control device for a mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510705729.3A CN105975414A (en) | 2015-10-26 | 2015-10-26 | Method and device for controlling mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105975414A true CN105975414A (en) | 2016-09-28 |
Family
ID=56988452
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510705729.3A Pending CN105975414A (en) | 2015-10-26 | 2015-10-26 | Method and device for controlling mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105975414A (en) |
WO (1) | WO2017071285A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111885403A (en) * | 2020-07-06 | 2020-11-03 | 深圳市宝泽科技有限公司 | Wireless screen transmission method supporting double signals and wireless screen transmitter |
CN113030794A (en) * | 2021-03-02 | 2021-06-25 | Oppo广东移动通信有限公司 | Device detection method and device, computer readable medium and electronic device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI751660B (en) * | 2020-08-26 | 2022-01-01 | 龍星顯示科技股份有限公司 | Image switching control method and image processing device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203279031U (en) * | 2012-12-21 | 2013-11-06 | 青岛海尔电子有限公司 | MHL-HDMI converting and receiving unit and television with same |
CN103702056A (en) * | 2013-12-13 | 2014-04-02 | 乐视致新电子科技(天津)有限公司 | HDMI (High-definition Multimedia Interface) signal processing circuit and method |
CN104090855A (en) * | 2014-06-09 | 2014-10-08 | 青岛海信移动通信技术股份有限公司 | Method and device for making USB (universal serial bus) mode and MHL (mobile high-definition link) mode of USB interface compatible |
CN104202631A (en) * | 2014-09-12 | 2014-12-10 | 灿芯半导体(上海)有限公司 | MHL-USB (mobile high-definition link and universal serial bus) joint circuit and portable electronic device |
EP2824581A1 (en) * | 2012-07-13 | 2015-01-14 | Huawei Device Co., Ltd. | Device, method and mobile communication terminal using a common interface |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7788428B2 (en) * | 2008-03-27 | 2010-08-31 | Sony Ericsson Mobile Communications Ab | Multiplex mobile high-definition link (MHL) and USB 3.0 |
US8683087B2 (en) * | 2011-04-11 | 2014-03-25 | Fairchild Semiconductor Corporation | Mobile device auto detection apparatus and method |
CN102932683A (en) * | 2012-10-26 | 2013-02-13 | 深圳Tcl新技术有限公司 | Mobile high-definition link (MHL) realizing method and video playing device |
CN103237189B (en) * | 2013-03-26 | 2016-01-13 | 小米科技有限责任公司 | Electronic equipment, MHL connector, MHL system and connector detection method |
KR102048222B1 (en) * | 2013-05-21 | 2019-11-25 | 삼성전자주식회사 | Apparatus and method for recognizing an external device in a communication system |
-
2015
- 2015-10-26 CN CN201510705729.3A patent/CN105975414A/en active Pending
-
2016
- 2016-07-04 WO PCT/CN2016/088390 patent/WO2017071285A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2824581A1 (en) * | 2012-07-13 | 2015-01-14 | Huawei Device Co., Ltd. | Device, method and mobile communication terminal using a common interface |
CN203279031U (en) * | 2012-12-21 | 2013-11-06 | 青岛海尔电子有限公司 | MHL-HDMI converting and receiving unit and television with same |
CN103702056A (en) * | 2013-12-13 | 2014-04-02 | 乐视致新电子科技(天津)有限公司 | HDMI (High-definition Multimedia Interface) signal processing circuit and method |
CN104090855A (en) * | 2014-06-09 | 2014-10-08 | 青岛海信移动通信技术股份有限公司 | Method and device for making USB (universal serial bus) mode and MHL (mobile high-definition link) mode of USB interface compatible |
CN104202631A (en) * | 2014-09-12 | 2014-12-10 | 灿芯半导体(上海)有限公司 | MHL-USB (mobile high-definition link and universal serial bus) joint circuit and portable electronic device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111885403A (en) * | 2020-07-06 | 2020-11-03 | 深圳市宝泽科技有限公司 | Wireless screen transmission method supporting double signals and wireless screen transmitter |
CN111885403B (en) * | 2020-07-06 | 2022-03-29 | 深圳市宝泽科技有限公司 | Wireless screen transmission method supporting double signals and wireless screen transmitter |
CN113030794A (en) * | 2021-03-02 | 2021-06-25 | Oppo广东移动通信有限公司 | Device detection method and device, computer readable medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
WO2017071285A1 (en) | 2017-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3657778B1 (en) | Terminal device and control method therefor | |
US11232057B2 (en) | Terminal device and control method thereof | |
CN112688393B (en) | Electronic device, method for controlling charging through electronic device and method for supplying power through power supply device | |
CN102203755B (en) | Utilize control bus to find to connect | |
CN103563334B (en) | Method, Apparatus and system for audio/video devices conversion between source module and trap pattern | |
KR101490895B1 (en) | Discovery of electronic devices utilizing a control bus | |
CN107577620A (en) | Information processor, information processing method and recording medium | |
US20070180181A1 (en) | USB interface provided with host/device function and its control method | |
CN104216840B (en) | The method and device that a kind of USB sets and operated to external equipment | |
CN102572352A (en) | HDMI multiplexing method, HDMI, and equipped provided with HDMI | |
CN104063348B (en) | Realize the device and method of compatible USB communications and voice communication | |
CN107409242A (en) | The method and apparatus for sending/receiving electric power using HDMI | |
JP6773294B2 (en) | Video display equipment, connection method of video display equipment and multi-display system | |
CN103237189A (en) | Electronic equipment, MHL (mobile high-definition link) connector, MHL system and connector detection method | |
WO2014049686A1 (en) | Hdmi device, communication system, and hot-plug control method | |
CN111031371B (en) | Single-line screen projection system and method | |
CN105975414A (en) | Method and device for controlling mobile terminal | |
CN104571581A (en) | Switching device and switching method for enabling multiple hosts to share display equipment | |
WO2017185680A1 (en) | Terminal interaction control method and apparatus | |
CN101089946A (en) | Display apparatus and control method thereof | |
CN107003974A (en) | A kind of interface detection method and device | |
JP2016521502A (en) | Digital video transmission device for communication, self-diagnosis and control | |
CN105677596A (en) | Control method and electronic equipment | |
US20170116146A1 (en) | Control method and control device for a mobile terminal | |
CN110879792A (en) | Electronic equipment and interface control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160928 |
|
WD01 | Invention patent application deemed withdrawn after publication |