CN105868130A - Method and mobile terminal for controlling interface application program - Google Patents
Method and mobile terminal for controlling interface application program Download PDFInfo
- Publication number
- CN105868130A CN105868130A CN201510895534.XA CN201510895534A CN105868130A CN 105868130 A CN105868130 A CN 105868130A CN 201510895534 A CN201510895534 A CN 201510895534A CN 105868130 A CN105868130 A CN 105868130A
- Authority
- CN
- China
- Prior art keywords
- period
- hdmi
- connection status
- interface
- mhl
- 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/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- 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
Abstract
The invention discloses a method and a mobile terminal for controlling an interface application program. The method includes: after hot plug detection (HPD) signals are received and before high-bandwidth digital content protection (HDCP) inspection is started, the connection state of a mobile high-definition link (MHL) interface is detected for at least one time; and once the connection state of the MHL interface is detected to be disconnection, the operation of a high definition multimedia interface (HDMI) application program is terminated. According to the method and the mobile terminal, the problem of abnormal operation of the HDMI application program of the mobile terminal due to the looseness of HML wires can be effectively prevented, and the robustness of mobile terminal software can be improved.
Description
Technical field
The present invention relates to data communication technology field, particularly relate to a kind of method controlling interfacing application programs
And mobile terminal.
Background technology
At present, disposal ability and the decoding capability of various mobile terminals (such as mobile phone or panel computer) more comes
The strongest, meanwhile, increasing mobile terminal has carried the function of the fine definition output of video content,
Complete video content can be transmitted directly on the video content display device such as television set or display
And do not damage the high-resolution effect of video content.
The fine definition way of output is broadly divided into two kinds: one is the most directly to configure high-resolution
Degree multimedia interface (High Definition Multimedia Interface, HDMI);Another kind of in shifting
A kind of novel interface, the i.e. audio-visual standard interface of mobile terminal fine definition (Mobile is configured in dynamic terminal
High-Definition Link, MHL).
Compared with HDMI, MHL interface employs 5 stitch and just completes the output of video content,
And MHL interface is also compatible with general micro USB interface, so make MHL cable more portable,
Simultaneously as MHL interface and micro usb compatible, setting of mobile terminal therefore can also be made
Count more succinct, frivolous.It addition, the operating current of MHL interface and power consumption are the lowest, it is especially suitable for hands
The portable mobile terminal such as machine uses.
Below with video content outut device as mobile phone, as a example by video content display device is television set, please
Refering to shown in Fig. 1, Fig. 1 schematically shows between mobile phone with television set by MHL cable, phase
The adapter answered and HDMI cable realize the operative scenario figure of the fine definition output of video content.Its
In, after the MHL signal of mobile phone output is processed by MHL cable and corresponding adapter, so that it may
To be converted to HDMI signal.After the side of MHL cable is connected with mobile phone by MHL interface,
After mobile phone detects HPD signal, start HDMI application program, enable HDMI, call HDMI
Application program reads and resolves extending display identification data (the Extended Display of television set
Identification Data, EDID), then utilize HDMI that EDID is carried out high-bandwidth digital content
Protection (High-bandwidth Digital Content Protection, HDCP) inspection, after detecting successfully,
Just the video-audio data after can being encrypted by HDCP with television set transmission.
But, the present inventor finds under study for action, after mobile terminal receives HPD signal to
Before starting HCDP inspection, if the MHL interface in MHL cable loosens (or being referred to as shake),
Connection between MHL cable and mobile phone will disconnect, and now, HDMI application program still may proceed to
Associative operation, thus cause the running status of HDMI application program that mistake occurs, can cause time serious
HDMI application crash and abnormal exit.When HDMI application exception exits cannot in time by
Program recovery is init state, even if by MHL cable again grafting, HDMI all cannot be made to apply
Program is the most properly functioning.
Summary of the invention
Present invention seek to address that problem as described above.It is an object of the invention to provide and solve problem above
A kind of method controlling interfacing application programs and mobile terminal.
The invention provides a kind of method controlling interfacing application programs, including:
After receiving hot plug detection HPD signal, and starting high bandwidth digital protected contents
Before HDCP inspection, at least detect the company of a mobile terminal fine definition audio-visual connection MHL interface
Connect state;
Once detect that the connection status of described MHL interface, for disconnecting, terminates high-definition multimedia and connects
The operation of mouth HDMI application program.
Said method also has the following characteristics that described after receiving HPD signal, and is starting
Before HDCP inspection, at least connection status of MHL interface of detection includes:
At least one period within the three below period, complete described at least detect the most described MHL
The process of the connection status of interface:
First period: after receiving HPD signal and before enabling HDMI;
Second period: after enabling HDMI and before reading extending display identification data EDID;
3rd period: after reading and resolving EDID and before HDCP checks.
Said method detects in also having the following characteristics that two or three periods in described three periods
During the connection status of MHL interface, all carrying out n times detection in different periods, N is whole more than 1
Number.
Said method also has the following characteristics that when connection status MHL interface being detected in the first period
During for connecting, continue to enable HDMI;
When the connection status detecting MHL interface in the second period is to connect, continue to read EDID;
When the connection status detecting MHL interface in the 3rd period is to connect, proceed HDCP
Inspection.
Said method also has the following characteristics that the operation of described termination HDMI application program includes: should
It is init state with the recovering state of program, exits described HDMI application program.
Present invention also offers a kind of mobile terminal controlling interfacing application programs, including:
Receiver module, is used for receiving hot plug detection HPD signal;
Control module, after obtaining HPD signal at described receiver module and in beginning high bandwidth numeral
Before protection content HDCP inspection, an at least mobile terminal fine definition audio-visual connection MHL of detection
The connection status of interface;After detecting that the connection status of described MHL interface is for disconnecting, terminate high-resolution
The operation of degree multimedia interface HDMI application program.
Above-mentioned mobile terminal also has the following characteristics that described control module, within the three below period
At least one period at least detects the process of connection status of the most described MHL interface described in completing:
First period: after receiving HPD signal and before enabling HDMI;
Second period: after enabling HDMI and before reading extending display identification data EDID;
3rd period: after reading and resolving EDID and before HDCP checks.
Above-mentioned mobile terminal also has the following characteristics that described control module, in described three periods
Two or three periods in detection MHL interface connection status time, in different periods, all carry out N
Secondary detection, N is the integer more than 1.
Above-mentioned mobile terminal also has the following characteristics that described control module, is additionally operable to detect in the first period
When the connection status of MHL interface is for connecting, continue to enable HDMI;MHL is detected in the second period
When the connection status of interface is for connecting, continue to read EDID;MHL interface is detected in the 3rd period
When connection status is for connecting, proceed HDCP inspection.
Above-mentioned mobile terminal also has the following characteristics that described control module, for terminating by the following method
The operation of HDMI application program: be init state by the recovering state of application program, exits described
HDMI application program.
HDMI application program on the mobile terminal that the present invention can effectively prevent HML line from loosening and cause
The problem of operation exception, improve the robustness of mobile terminal software.
Accompanying drawing explanation
The accompanying drawing of the part being incorporated in description and constitute description shows the enforcement of the present invention
Example, and together with the description for explaining the principle of the present invention.In the drawings, similar accompanying drawing mark
Note is used for representing similar key element.Below describe in accompanying drawing be some embodiments of the present invention rather than
All embodiments.For those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawing can be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of existing mobile phone and video content display device connected mode;
Fig. 2 is the flow chart of the method controlling interfacing application programs;
Fig. 3 is the flow chart of the method controlling interfacing application programs in application example;
Fig. 4 is the structure chart of the mobile terminal controlling interfacing application programs.
Specific embodiment
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.It should be noted that do not conflicting
In the case of, the embodiment in the application and the feature in embodiment can mutual combination in any.
Fig. 2 is the flow chart of the method controlling interfacing application programs, and this method includes:
Step 201, after receiving hot plug detection HPD signal, and is starting HDCP inspection
Before, the connection status of a MHL interface is at least detected.
Step 202, once detects that the connection status of MHL interface, for disconnecting, terminates HDMI application
The operation of program.
Step the following detailed description of the present invention:
In step 201 receive hot plug detection HPD signal after and start HDCP check it
The period of front detection MHL interface connection status includes three altogether:
First period: after receiving HPD signal and before enabling HDMI;
Second period: after enabling HDMI and before reading EDID;
3rd period: after reading and resolving EDID and before HDCP checks.
Step 201 detects the connection status of MHL interface and specifically refers within these three periods at least one
The process of the connection status of a MHL interface is at least detected described in completing in the individual period.Specifically include with
Lower seven kinds of situations:
One, detect in the first period, i.e. after receiving HPD signal and before enabling HDMI
Detect;
Two, detect in the second period, i.e. after enabling HDMI and in the advance reading EDID
Row detection;
Three, detect in the 3rd period, i.e. after reading and resolving EDID and in HDCP inspection
Detect before;
Four, detect in the first period and the second period, i.e. after receiving HPD signal and make
Detect before energy HDMI and after enabling HDMI and before reading EDID;
Five, detect in the first period and the 3rd period, i.e. after receiving HPD signal and make
Detect before energy HDMI and after reading and resolving EDID and before HDCP checks;
Six, detect in the second period and the 3rd period, i.e. after enabling HDMI and in reading
Detect before EDID and after reading and resolving EDID and before HDCP checks;
Seven, detect in the first period, the second period and the 3rd period, i.e. receiving HPD letter
After number and before enabling HDMI, after enable HDMI and before reading EDID, read and resolve
Detect after EDID and before HDCP checks.
The number of times carrying out in step 201 detecting within each period is not limited to once, it is also possible to be once with
On.A kind of example that performs is: detect MHL interface in two or three periods in three periods
During connection status, all carrying out n times detection in different periods, N is the integer more than 1.
In step 201, after the connection status of the first period detection MHL interface is to connect, continue
Enable HDMI;After the connection status of the second period detection MHL interface is to connect, continue to read
EDID;After the connection status of the 3rd period detection MHL interface is to connect, proceed HDCP
Inspection.
The operation of the termination HDMI application program in step 202 refers to this application program normal switching-off, tool
Body includes: is init state by the recovering state of application program and exits this and answer two steps of program,
Normally to start when this program is run again.
Fig. 3 is the flow chart of the method controlling interfacing application programs in application example, in this application example
Method include:
Step 301: after connecting MHL interface by MHL cable, monitors HPD signal;
Step 302: after receiving HPD signal and before enabling HDMI, obtains MHL interface
Connection status;
Step 303: judge that whether the connection status of MHL interface is connection status, if it is, hold
Row step 304;Otherwise, step 311 is performed;
Step 304: enable HDMI;
Step 305: before enabling after HDMI and reading EDID, obtains the company of MHL interface
Connect state;
Step 306: judge that whether the connection status of MHL interface is connection status, if it is, hold
Row step 307;Otherwise, step 311 is performed;
Step 307: control HDMI and read and resolve EDID;
Step 308: after reading EDID and before starting HDCP inspection, obtain MHL and connect
The connection status of mouth;
Step 309: judge that the connection status of MHL interface as connecting, then performs step 310;Otherwise,
Perform step 311;
Step 310: control HDMI and EDID is performed HDCP inspection;After detecting successfully, transmit HDCP
The video-audio data of encryption, terminates.
Step 311: terminate the operation of HDMI application program, terminates.
Fig. 4 is the structure chart of the mobile terminal controlling interfacing application programs.This mobile terminal includes receiving mould
Block and control module.
Receiver module is used for receiving HPD signal;
Control module is after obtaining HPD signal at described receiver module and is starting HDCP inspection
Before, the connection status of a MHL interface is at least detected;Connection status MHL interface being detected is
After disconnection, terminate the operation of HDMI application program.
Wherein, control module completed at least to detect once at least one period within the three below period
The process of the connection status of described MHL interface:
First period: after receiving HPD signal and before enabling HDMI;
Second period: after enabling HDMI and before reading extending display identification data EDID;
3rd period: after reading and resolving EDID and before HDCP checks.
Specifically include seven kinds of situations described in said method, explanation is not repeated herein.
The number of times that control module carried out detecting within each period is not limited to once, it is also possible to be once with
On.Control module detects MHL interface within two or three periods in the above three period
During connection status, all carrying out n times detection in different periods, N is the integer more than 1.
Control module is additionally operable to, after the connection status of the first period detection MHL interface is to connect, continue
Continuous enable HDMI;After the connection status of the second period detection MHL interface is to connect, continue to read
Take EDID;After the connection status of the 3rd period detection MHL interface is to connect, proceed HDCP
Inspection.
Control module terminates the operation of HDMI application program and refers to the normal switching-off of this application program,
Can be init state by the recovering state of application program before closedown, in order to when this program is run again
Normal startup.
HDMI application program on the mobile terminal that the present invention can effectively prevent HML line from loosening and cause
The problem of operation exception, improve the robustness of mobile terminal software.
It should be noted that technical scheme is not limited only to the mobile terminal such as mobile phone and panel computer,
Apply also for the mobile terminals such as digital camera, digital camera and portable media player.
Descriptions above can combine enforcement individually or in every way, and these modification
Mode is all within protection scope of the present invention.
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 (10)
1. the method controlling interfacing application programs, it is characterised in that including:
After receiving hot plug detection HPD signal, and starting high bandwidth digital protected contents
Before HDCP inspection, at least detect the company of a mobile terminal fine definition audio-visual connection MHL interface
Connect state;
Once detect that the connection status of described MHL interface, for disconnecting, terminates high-definition multimedia and connects
The operation of mouth HDMI application program.
Method the most according to claim 1, it is characterised in that described receiving HPD signal
Afterwards, and before starting HDCP inspection, at least connection status of MHL interface of detection includes:
At least one period within the three below period, complete described at least detect the most described MHL
The process of the connection status of interface:
First period: after receiving HPD signal and before enabling HDMI;
Second period: after enabling HDMI and before reading extending display identification data EDID;
3rd period: after reading and resolving EDID and before HDCP checks.
Method the most according to claim 2, it is characterised in that
When detecting the connection status of MHL interface in two or three periods in described three periods,
All carrying out n times detection in different periods, N is the integer more than 1.
Method the most according to claim 2, it is characterised in that
When connection status MHL interface being detected in the first period is to connect, continue to enable
HDMI;
When the connection status detecting MHL interface in the second period is to connect, continue to read EDID;
When the connection status detecting MHL interface in the 3rd period is to connect, proceed HDCP
Inspection.
Method the most according to claim 1, it is characterised in that described termination HDMI application journey
The operation of sequence includes: be init state by the recovering state of application program, exits described HDMI application
Program.
6. the mobile terminal controlling interfacing application programs, it is characterised in that including:
Receiver module, is used for receiving hot plug detection HPD signal;
Control module, after obtaining HPD signal at described receiver module and in beginning high bandwidth numeral
Before protection content HDCP inspection, an at least mobile terminal fine definition audio-visual connection MHL of detection
The connection status of interface;After detecting that the connection status of described MHL interface is for disconnecting, terminate high-resolution
The operation of degree multimedia interface HDMI application program.
7. mobile terminal as claimed in claim 6, it is characterised in that
Described control module, within the three below period at least one period complete described at least detect
The process of the connection status of the most described MHL interface:
First period: after receiving HPD signal and before enabling HDMI;
Second period: after enabling HDMI and before reading extending display identification data EDID;
3rd period: after reading and resolving EDID and before HDCP checks.
8. mobile terminal as claimed in claim 7, it is characterised in that
Described control module, detects MHL within two or three periods in described three periods
During the connection status of interface, all carrying out n times detection in different periods, N is the integer more than 1.
9. mobile terminal as claimed in claim 7, it is characterised in that
Described control module, is additionally operable to detect the connection status of MHL interface for connect in the first period
Time, continue to enable HDMI;When the second period detected the connection status of MHL interface for connecting,
Continue to read EDID;The 3rd the period detect MHL interface connection status for connect time, continue into
Row HDCP checks.
10. mobile terminal as claimed in claim 6, it is characterised in that
Described control module, for terminating the operation of HDMI application program by the following method: will application
The recovering state of program is init state, exits described HDMI application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510895534.XA CN105868130A (en) | 2015-12-08 | 2015-12-08 | Method and mobile terminal for controlling interface application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510895534.XA CN105868130A (en) | 2015-12-08 | 2015-12-08 | Method and mobile terminal for controlling interface application program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105868130A true CN105868130A (en) | 2016-08-17 |
Family
ID=56624095
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510895534.XA Pending CN105868130A (en) | 2015-12-08 | 2015-12-08 | Method and mobile terminal for controlling interface application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105868130A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110019623A1 (en) * | 2008-03-27 | 2011-01-27 | Makoto Funabiki | Wireless communication device for processing packet including at least one of video output format of video data and audio output format of audio data |
CN102203755A (en) * | 2008-10-16 | 2011-09-28 | 晶像股份有限公司 | Discovery of connections utilizing a control bus |
CN202282825U (en) * | 2011-10-27 | 2012-06-20 | 浙江一舟电子科技股份有限公司 | MHL (Mobile High-Definition Link) data conversion system |
CN102546584A (en) * | 2010-11-01 | 2012-07-04 | 微软公司 | Calling of accessory-specific user experience |
CN102972034A (en) * | 2011-02-09 | 2013-03-13 | 索尼公司 | Electronic device, method for transmitting stereoscopic image information in electronic device, and method for receiving stereoscopic image information in electronic device |
CN103814404A (en) * | 2011-09-23 | 2014-05-21 | 高通股份有限公司 | Multimedia interface with content protection in a wireless communication device |
US20150163450A1 (en) * | 2013-03-14 | 2015-06-11 | Kabushiki Kaisha Toshiba | Video display system, source device, sink device, and video display method |
-
2015
- 2015-12-08 CN CN201510895534.XA patent/CN105868130A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110019623A1 (en) * | 2008-03-27 | 2011-01-27 | Makoto Funabiki | Wireless communication device for processing packet including at least one of video output format of video data and audio output format of audio data |
CN102203755A (en) * | 2008-10-16 | 2011-09-28 | 晶像股份有限公司 | Discovery of connections utilizing a control bus |
CN102546584A (en) * | 2010-11-01 | 2012-07-04 | 微软公司 | Calling of accessory-specific user experience |
CN102972034A (en) * | 2011-02-09 | 2013-03-13 | 索尼公司 | Electronic device, method for transmitting stereoscopic image information in electronic device, and method for receiving stereoscopic image information in electronic device |
CN103814404A (en) * | 2011-09-23 | 2014-05-21 | 高通股份有限公司 | Multimedia interface with content protection in a wireless communication device |
CN202282825U (en) * | 2011-10-27 | 2012-06-20 | 浙江一舟电子科技股份有限公司 | MHL (Mobile High-Definition Link) data conversion system |
US20150163450A1 (en) * | 2013-03-14 | 2015-06-11 | Kabushiki Kaisha Toshiba | Video display system, source device, sink device, and video display method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101566174B1 (en) | Image processing apparatus and control method thereof | |
CN102572352B (en) | HDMI multiplexing method, HDMI, and equipped provided with HDMI | |
US20130219087A1 (en) | High-definition multimedia interface (hdmi) receiver apparatuses, hdmi systems using the same, and control methods therefor | |
US20170161227A1 (en) | Universal serial bus converter circuit and related method | |
US20100289949A1 (en) | Operation of video source and sink with toggled hot plug detection | |
US9612990B2 (en) | Dual mode display-port connector for optical communication | |
US9197340B2 (en) | Connector and interface circuit for simultaneous content streaming and user data from handheld devices | |
CN107678985A (en) | Display device and signal carry out source switch method | |
EP2733619B1 (en) | Electronic device with Thunderbolt interface, connecting method thereof, and docking apparatus | |
EP3051801A1 (en) | Video switch and switching method thereof | |
CN100435574C (en) | Multimedia interface input method for conversing high resolution in tv | |
CN102681807B (en) | Electronic equipment and interface identification method | |
US10418213B2 (en) | Port connection circuit, port connection control method and electronic device | |
US8176228B2 (en) | Quick port-switching method and associated apparatus | |
WO2014049686A1 (en) | Hdmi device, communication system, and hot-plug control method | |
US8370554B2 (en) | Operation of video source and sink with hot plug detection not asserted | |
US20170308453A1 (en) | Incorrectly connected hdmi cable indicator | |
CN104932999A (en) | USB (universal serial bus) interface mode switching device and intelligent terminal | |
CN110045974B (en) | Upgrading method and device for display firmware and terminal | |
CN201042053Y (en) | Hot swap processing circuit for HDMI signal receiver | |
CN106844252B (en) | USB conversion circuit and signal conversion and transmission method | |
CN103491412A (en) | MHL device identification circuit with standby charging function | |
CN105868130A (en) | Method and mobile terminal for controlling interface application program | |
CN102833513B (en) | High definition player | |
CN107846588B (en) | Method and device for acquiring serial port record information in television |
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: 20160817 |
|
WD01 | Invention patent application deemed withdrawn after publication |