CN105611360A - Method and system for interconnecting SINK device with intelligent mobile device based on MHL - Google Patents

Method and system for interconnecting SINK device with intelligent mobile device based on MHL Download PDF

Info

Publication number
CN105611360A
CN105611360A CN201511027766.XA CN201511027766A CN105611360A CN 105611360 A CN105611360 A CN 105611360A CN 201511027766 A CN201511027766 A CN 201511027766A CN 105611360 A CN105611360 A CN 105611360A
Authority
CN
China
Prior art keywords
state
mhl
value
intelligent mobile
sink
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201511027766.XA
Other languages
Chinese (zh)
Other versions
CN105611360B (en
Inventor
吴勇
张振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Hangsheng Electronic Co Ltd
Original Assignee
Shenzhen Hangsheng Electronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Hangsheng Electronic Co Ltd filed Critical Shenzhen Hangsheng Electronic Co Ltd
Priority to CN201511027766.XA priority Critical patent/CN105611360B/en
Publication of CN105611360A publication Critical patent/CN105611360A/en
Application granted granted Critical
Publication of CN105611360B publication Critical patent/CN105611360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43632Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wired protocol, e.g. IEEE 1394
    • H04N21/43635HDMI
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones

Abstract

The invention provides a method and a system for interconnecting an SINK device with an intelligent mobile device based on MHL, and belongs to the field of information transmission. The method provided by the invention comprises the following steps: judging whether MHL electrical discovery interruption occurs, if so, executing an MHL sideband channel connection discovery operation; judging whether an abort command is received, if so, resetting a register state and restarting a discovery sequence; judging whether Responder Rx receives a data interruption signal, if so, executing a Responder Rx cyclic operation to obtain a value of a variable Read-devcap; judging whether the Requster Rx receives the data interruption signal, if so, reading a command and data of a Requster Rx buffer area; and judging whether the value of the variable Read-devcap is equal to 1, if so, continuously reading the value of a capability register of a source end of the intelligent mobile device through an MHL sideband channel command. The method provided by the invention is used for interconnecting mobile phones in a software mode, in order to solve the problem that MHL mobile phone interconnection can be only realized by a hardware implementation scheme at present, and cross-platform transplantation can be realized.

Description

Realize SINK equipment and the interconnected method and system of Intelligent mobile equipment based on MHL
Technical field
The present invention relates to a kind of data transmission method and system, relate in particular to one and realize SINK equipment and Intelligent sliding based on MHLThe method and system of moving devices interconnect.
Background technology
Intelligent mobile equipment is such as the mode of mobile phone and SINK device talk is mainly passed through several below:
Mirrorlink is the open protocol based on RFB3.8 (RemoteFrameBuffer, remote buffer), to mobile phoneThe dependence of manufacturer is more intense, needs cell phone manufacturer that relevant APP (application, application) software is installed in advance. ItBe the laggard row transfer of data of video compress adopting H.26x, therefore have the features such as low code check, video quality is difficult to protect in factCard.
Miracast is towards various WI-FI equipment, adopts WI-FIdirect technology, without access focus and router.Shortcoming can not charge the phone, and power consumption is higher.
Carplay is the onboard system of American apple company exploitation, although in interconnected projection image quality and time control operations flowsVery high in smooth property, but it can only support (InternetworkOperatingSystem, internet operation system based on IOSSystem) equipment of operating system, for example Iphone, Ipad, Ipod etc., therefore limitation is larger.
Usblink is the privately owned interconnection protocol being defined by each producer, for example the VNC of RealVNC company oneself exploitationEnhance pattern, it is the privately owned scheme based on RFB4.1 agreement, is mainly used in being similar to the scene demand of applink,Although compared with Mirrorlink agreement in speed, encryption be greatly improved above extensibility, and to cell phone manufacturerDependence smaller (support unlike Mirrorlink also needs cell phone manufacturer's pre-installation), but its disposable the whole seriesSolution price is more expensive, and volume production after every also need to pay certain patent fee.
HDMI (HighDefinitionMultimediaInterface, HDMI) and MHL (MobileHigh-DefinitionLink, mobile terminal high-definition audio and video standard interface) although develop technically a lot of years,But the application on vehicle electronics or in recent years, and the more important thing is HDMI and MHL technology be do not rely on hardNo matter part platform and operation system of software is to run WinCE system or Android on the Prima2 of CSR process chipSystem, or in the I.mx6 of Freescale process chip, run Android system or linux system, or beIn the A7 of apple process chip, run IOS system etc., all can realize HDMI and MHL, it has become car machine at presentWith mobile phone is interconnected must obligato a kind of scheme.
Adopt video compression algorithm mode H.264 to pass with respect to Mirrorlink, Miracast, carpaly, usblinkDefeated video, (TimeMinimizeDifferentialSignal minimizes transmission difference for HDMI and MHL employing TMDSSignal), it is a kind of identical magnitude of voltage that utilizes 2 pins and the differential mode transmission of different positive-negative polarities, this has suppressedNoise signal in signals transmission, in addition, HDMI has 3 pairs for transmitting the TMDS passage of data, and MHL has 1 pairTMDS passage, uses from the real-time transmission of video/audio signal without compression, and maximum can reach 1080P resolution ratio.
HDMI and MHL and above other interconnect scheme contrasts, it also has high bandwidth, high transfer rate, fine definition, lowThe advantages such as cost, technological development are uncomplicated, can drop into fast volume production and use.
Adopt in the market the chip of HDMI/MHL bimodulus receiver also to have multiple, the micro-limited public affairs of scientific and technological share of driving in for example TaiwanThe EP9553E that department is used, but it is the mode that adopts devices at full hardware to realize, and substantially configures related register sequential value.Although simplified difficulty, there is certain limitation in stability, reliability, flexibility, in addition interconnected crucial skillArt always rests in chip manufacturer hand, is relatively subject to the restriction of chip manufacturer if carry out more complicated MHL communication.
Summary of the invention
For solving the problems of the prior art, the invention provides a kind of based on MHL realize SINK equipment and Intelligent mobile equipment mutualThe method of connection, also provides a kind of system that realizes said method.
The present invention is based on that MHL realizes SINK equipment and the interconnected method of Intelligent mobile equipment comprises the steps:
S1: start, judge whether to occur the electric discovery of MHL and interrupt, if so, carry out MHL sideband passage and connectFind operation, then perform step S2, if not, directly perform step S2;
S2: judge whether to receive abort order, if so, reseting register state and restart discovery sequence, soRear execution step S3, if not, directly performs step S3;
S3: whether judgement, when in ResponderRx state, receives data interrupt signal, if so, carries outResponderRx cycling, obtains the value of variable R ead_devcap, then performs step S4, if not, directly holdsRow step S4;
S4: whether judgement, when in RequsterRx state, receives data interrupt signal, if so, reads RequsterThe order of Rx state buffer and data, then perform step S5, if not, directly performs step S5;
S5: whether the value of judgment variable Read_devcap equals 1, if so, reads continuously by MHL sideband channel commandThe value of getting the capability register of Intelligent mobile equipment source end, finishes, and if not, directly finishes.
The present invention is further improved, and in step S1, described MHL sideband passage connects finds that operation comprises the steps:
A: start, read SINK state, judge whether the state in SINK2, if so, carry out and Intelligent mobile equipmentSource end Connection Step B, if not, carries out and judges whether in other SINK state step C;
Described and Intelligent mobile equipment source end Connection Step B comprises the steps: B1: the value that PATH_EN is set is 1,And open MHL+/-channel clock pattern; B2: send MHL sideband passage SET_HPD order to Intelligent mobile equipment sourceEnd; B3: send WRITE_STAT order and hold to Intelligent mobile equipment source; B4: send capability register shapeThe interrupt signal that state changes, to Intelligent mobile equipment source end, finishes,
Described judging whether comprises in other SINK state step C: C1: judge whether the state in SINK3, if so,Finish, if not, carry out C2; C2: the value that PATH_EN is set is 0, and close MHL+/-channel clock pattern; C3:Sending the order that PATH_EN value is 0 holds to Intelligent mobile equipment source; C4: reset RequsterTx and ResponderThe register of Tx state, finishes.
The present invention is further improved, and in step B3, the content of described WRITE_STAT order comprises the value of PATH_ENWhether the value that be 1, clock module is normal 24bit pattern, capability register is stable, wherein, and PATH_EN'sValue is that 1 expression transition minimized differential signaling path is enabled.
The present invention is further improved, and unstable when the value of capability register, Intelligent mobile equipment source end is readGet the value of the capability register of SINK equipment.
The present invention is further improved, the value of described capability register comprise SINK equipment state, MHL version number,The connection mode of the type that MHL can identify, the video and audio that can support, maximum data transfer bandwidth.
The present invention is further improved, and described SINK state comprises SINK0 state, SINK1 state, SINK2 state, SINK3State, represented state is as follows respectively: SINK0 state: SINK equipment does not connect MHL cable; SINK1 state: SINKEquipment connects upper Intelligent mobile equipment by MHL cable; SINK2 state: SINK equipment and Intelligent mobile equipment complete shakes hands;SINK3 state: SINK equipment can transmit video/audio with Intelligent mobile equipment.
The present invention is further improved, and in step S3, described ResponderRx cycling comprises the steps: (1)Start, read the order of ResponderRx state buffer and the mark of data and order and data; (2) send MHLSideband passage ACK answer signal is to the source end of Intelligent mobile equipment; (3) judge whether first byte readsFor WRITE_STAT order, if so, execution step (4), if not, whether what judge that first byte reads isWhether what first byte read is READ_DEVCAP order, if so, carries out concrete MHL sideband channel command,If not, finish, (4) judge whether second byte is connection status register address value, if so, and by the 3rd wordThe data of joint are write in the address of link status register of SINK equipment, BREAK, if not, execution step (5),(5) judge that whether second byte is to connect SBR register address value, if so, prints the address and the number that readAccording to value, BREAK, if not, execution step (6); (6) judge whether second byte is interrupt register address value,If so, the value that variable R ead_devcap is set is 1, BREAK, if not, and execution step (7); (7) judgement isNo mistake, if so, BREAK, finishes.
The present invention also provides a kind of system that realizes said method, comprises the first judge module: judge whether that MHL occurs electric
Discovery interrupts;
MHL sideband passage connects finds module: interrupt if there is the electric discovery of MHL, carry out MHL sideband passage and connect
Sending and receiving now operate;
The second judge module: judge whether to receive abort order;
Reset and restart module: if receive abort order, reseting register state with restart discovery sequence;
The 3rd judge module: whether judgement, when in ResponderRx state, receives data interrupt signal;
ResponderRx loop module: when in ResponderRx state, if receive data interrupt signal, hold
Row ResponderRx cycling, obtains the value of variable R ead_devcap;
The 4th judge module: whether judgement, when in RequsterRx state, receives data interrupt signal;
The first read module: when in RequsterRx state, receive data interrupt signal, read RequsterRx
The order of state buffer and data;
The 5th judge module: whether the value of judgment variable Read_devcap equals 1;
The second read module: if the value of variable R ead_devcap equals 1, read continuously by MHL sideband channel commandThe value of the capability register of Intelligent mobile equipment source end.
The present invention is further improved, and described MHL sideband passage connects finds that module comprises,
Read SINK block of state: read SINK state;
The 6th judge module: judge whether the state in SINK2;
Link block: if in SINK2 state, be connected with Intelligent mobile equipment source end;
The 7th judge module: judge whether in other SINK states;
Described link block comprises:
The first setting unit: the value that PATH_EN is set is 1, and open MHL+/-channel clock pattern;
First sends command unit: send MHL sideband passage SET_HPD order and hold to Intelligent mobile equipment source;
Second sends command unit: send WRITE_STAT order and hold to Intelligent mobile equipment source;
The first transmitted signal unit: send the interrupt signal of capability buffer status change to Intelligent mobile equipmentSource end,
Described the 7th judge module comprises:
The first judging unit: judge whether the state in SINK3;
The second setting unit: the value that PATH_EN is set is 0, and close MHL+/-channel clock pattern;
The 3rd sends command unit: send the order that PATH_EN value is 0 and hold to Intelligent mobile equipment source;
Reset unit: the register of reset RequsterTx and ResponderTx state.
The present invention is further improved, and in the second transmission command unit, the content of described WRITE_STAT order comprisesWhether the value that the value of PATH_EN is 1, clock module is normal 24bit pattern, capability register is stable, wherein,The value of PATH_EN is that 1 expression transition minimized differential signaling path is enabled.
Compared with prior art, the invention has the beneficial effects as follows: it is interconnected that the mode of (1) employing software is carried out mobile phone, solved orderBefore can only carry out MHL mobile phone interconnect problem by hard-wired scheme; (2) can real-time monitor SINK equipment state,Can also utilize in addition MSC order to read the performance of Intelligent mobile equipment source end; (3) programmable EDID data,Can allow Intelligent mobile equipment source end selectively send the video resolution of 480P, 720P or 1080P; (4) softPart interconnection line range code can be cross-platformly transplanted on other chip, has greatly increased interconnected flexibility, and in stabilityAlso promote with reliability aspect.
Brief description of the drawings
Fig. 1 is the inventive method flow chart;
Fig. 2 is that MHL sideband passage of the present invention connects discovery flow chart;
Fig. 3 is ResponderRx cycling method flow diagram of the present invention;
Fig. 4 is SINK state conversion schematic diagram of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further details.
As shown in Figure 1-Figure 3, the inventive method comprises the steps: S1: start, SINK equipment judges whether to occur MHLElectric discovery interrupts, and if so, carries out MHL sideband passage and connects discovery operation, then performs step S2, ifNo, directly perform step S2;
S2: judge whether to receive abort order, if so, reseting register state and restart discovery sequence, soRear execution step S3, if not, directly performs step S3;
S3: whether judgement, when in ResponderRx state, receives data interrupt signal, if so, carries outResponderRx cycling, obtains the value of variable R ead_devcap, then performs step S4, if not, directly holdsRow step S4;
S4: whether judgement, when in RequsterRx state, receives data interrupt signal, if so, reads RequsterThe order of Rx state buffer and data, then perform step S5, if not, directly performs step S5;
S5: whether the value of judgment variable Read_devcap equals 1, if so, reads continuously by MHL sideband channel commandThe value of getting the capability register of Intelligent mobile equipment source end, finishes, and if not, directly finishes.
In step S1, described MHL sideband passage connects finds that operation comprises the steps:
A: start, read SINK state, judge whether the state in SINK2, if so, carry out and Intelligent mobile equipmentSource end Connection Step B, if not, carries out and judges whether in other SINK state step C;
Described and Intelligent mobile equipment source end Connection Step B comprises the steps:
B1: the value that PATH_EN is set is 1, and open MHL+/-channel clock pattern;
B2: send MHL sideband passage SET_HPD order and hold to Intelligent mobile equipment source;
B3: send WRITE_STAT order and hold to Intelligent mobile equipment source;
B4: send the interrupt signal of capability buffer status change to Intelligent mobile equipment source end, finish,Described judging whether comprises in other SINK state step C:
C1: judge whether the state in SINK3, if so, finish, if not, carry out C2;
C2: the value that PATH_EN is set is 0, and close MHL+/-channel clock pattern;
C3: send the order that PATH_EN value is 0 and hold to Intelligent mobile equipment source;
C4: the register of reset RequsterTx and ResponderTx state, finishes.
In step S3, described ResponderRx cycling comprises the steps:
(1) start, read the order of ResponderRx state buffer and the mark of data and order and data;
(2) send the source end of MHL sideband passage ACK answer signal to Intelligent mobile equipment;
(3) whether what judge that first byte reads is WRITE_STAT order, if so, and execution step (4), asFruit is no, judge that first byte reads whether what be whether that first byte reads be READ_DEVCAP order, asBe really, carry out concrete MHL sideband channel command, if not, finish,
(4) judge that whether second byte is connection status register address value, if so, writes the data of the 3rd byteIn the address of the link status register of SINK equipment, BREAK, if not, execution step (5),
(5) judge that whether second byte is to connect SBR register address value, if so, prints the address of readingWith data value, BREAK, if not, execution step (6);
(6) judge that whether second byte is interrupt register address value, if so, arranges the value of variable R ead_devcapBe 1, BREAK, if not, execution step (7);
(7) judge whether mistake, if so, BREAK, finishes.
In the present invention, BREAK represents to interrupt, and jumps out circulation, carries out next step.
In this example, what SINK equipment adopted is the ADV7481 chip of ADI company. Wherein MHL maximum pixel clock is 75MHZ,Therefore high bandwidth can reach 2.25Gbps=75MHZ*30bit. The high bandwidth of HDMI can reach2.235Gbps=74.25MH*10bit*3. These two kinds of bandwidth are far above the bandwidth of 480Mbps that adopts USB2.0, andMirrorlink, USBlink all adopt USB2.0 transmission. Above-mentioned ADV7481 chip is arranged in car machine.
And the mobile phone that Intelligent mobile equipment adopts is controlled output and the broadcasting of video and audio by mobile phone.
The present invention is based on MHL realize SINK equipment and the interconnected method of Intelligent mobile equipment based on SINK equipment such as ADV7481The inner finite state machine of chip (being called for short 7481) carries out MSC (MHLSidebandChannel, MHL sideband passage) lifeOrder realizes communication protocol, holds the interconnected of 7481sink end thereby complete from mobile phone source.
As shown in Figure 4, this routine SINK equipment switches between four kinds of SINK states. Because ADV7481 is as SINK equipment,MHLLINKDISCOVERY (MHL connects discovery) module is contained in inside, when mobile phone source end and 7481sink end are heldHand when communication, any one in SINK0, SINK1, these 4 kinds of state values of SINK2, SINK3 of 7481 meeting. AndHow controlling these 4 kinds of states becomes mobile phone source end and holds the basis of communicating by letter with 7481sink.
(native system adopts the in-vehicle processor of freescale (Freescale) company to the system-level SOC chip of this routine car machineI.mx6Q) by loading 7481 driver, reaching the object that initializes 7481 registers, is below that SINK state is cutThe condition of changing and sequential:
1. in the time that the major part (standard HDMI joint) of MHL cable interface is not connected on 7481 equipment, 7481SINKEquipment is in SINK0 state.
2. the generation from SINK0 to SINK1 state. In the time plugging MHL cable, the CD_SENSE pin of ADV7481 will be examinedMeasure high level, now 7481 will think that what be connected to is MHL pattern, instead of HDMI pattern, and 7481 in SINK1State. Mobile phone source end can detect the characteristic of CBUS (ControlBUS--control bus) cable of 7481sink endImpedance changes (from tri-state state ICBUS_LEAK_SINKBe changed to ZCBUS_SINK_DISCOVER)。
3. the generation from SINK1 to SINK2 state. When 7481 after SINK1 state, mobile phone source end can be automaticallySend wake (waking up) pulse train by single line LinkCBUS, wake discover (discovery) sequence and discovery up(discovery) pulse train is given 7481SINK equipment, if SINK equipment is correctly identified pulsewidth and counted pulsewidth, can there is electric discovery and interrupt in number, 7481 equipment are SINK2 state from SINK1 state transition. Now 7481The impedance matching of the CBUS cable of sink end is varied to ZCBUS_SRC_ON, the impedance matching of the CBUS cable of mobile phone source end turnsBecome ZCBUS_SINK_ON, mobile phone source end driving CBUS is that high level remains 2V simultaneously. 7481sink end can initiatively existIn MHL+/-this pair of differential lines, send RxSense deglitch signal enable signal, if mobile phone source end detectsRxSense signal is effective, difference wire harness MHL+/-never connected state is transformed into connected state, and impedance matching is simultaneously changed toZRXSENSE_TERMBut MHL+/-this pair of differential lines is still in connected state not.
From SINK2 to SINK3 state be by software control go realize. Concrete control mode is as follows:
FSM (FiniteStateMachine, finite state machine) based on ADV7481 inside carries out MSC (MHLSidebandChannel, MHL sideband passage) command operation, its object is to make to get through MHL+/-passage, and carries out mobile phoneWhat source end and 7481sink held communicates by letter, in the namely communication between mobile phone and car machine of this example.
Described FSM can switch under Requester (promoter) and Responder (respondent) state, whereinThere is again RequesterRx (promoter reads) and RequesterTx (promoter writes) state in Requester; ResponderThere is again ResponderRx (respondent reads) and ResponderTx (reply and write) state; Also there is in addition an IDLE(free time) state, so described FSM mono-has five kinds of states.
As a kind of embodiment of the present invention, once SINK Equipment Inspection is interrupted to there is CBUS, will jump into and interrupt processing letterNumber is the interconnected kernel thread program of MHL mobile phone in the bottom of interrupting processing in function, as shown in Figure 1. Work as ADV7481After completing electric discovery, will trigger the electric discovey of MHL and interrupt, then carry out MSClinkdiscoveyOperation, is shown in Fig. 2. Then, judge that whether SINK equipment receives abort order, if receive this order, entersThe all buffer status of horizontal reset operation and restart discovery sequence. Then judge at ResponderRx state and beNoly receive order and data, if received, will carry out ResponderRx cycling, as shown in Figure 3. Then sentenceWhether disconnected RequsterRx receives order and data, will carry out concrete MSC command operation, Requster if receivedRx responds as promoter, generally only can receive the answer signal of ResponderTx. Finally, judge basisWhether the value of the variable R ead_devcap in ResponderRx cycling is 1 to operate whether need to read mobile phoneThe value of the capability register of source end.
Wherein, the concrete execution of this routine MSClinkdiscovery operation is as follows: first read the SINK state of ADV7481,If under SINK2 state, the PATN_EN that ADV7481sink end is set is 1, and clock module is normal 24-bit,Represent that SINK equipment has been ready to reading out data, now 7481 will be SINK3 state from SINK2 state variation, stillThe now impedance Z in TDMS differential linesRxSense_TERMBe 100Kohms, because resistance value is too large, video/audio still can notTransmission. Now FSM state machine is under IDLE state. Then start to send MSCSET_HPD order, it is a letterNumber go to tell and go to read the EDID of ADV7481 inside by CBUS bus by mobile phone source end (EDID is ExtendedDisplayidentificationdata writes a Chinese character in simplified form, Chinese expansion by name display list registration certificate, and it refers to screen resolutionData, comprise trade name and sequence number, general EDID is present in the PROM (programmableread-only of displayMemory) or EEPROM in), there are a DDCEmulation (EDID simulator), its mould in ADV7481 insideIntend DDCSDA (data signal line of I2C bus) bus and go to read EDID data. And I2C (Inter-IntegratedCircuit) bus is for connecting microcontroller and ancillary equipment thereof.
Once order is sent completely, and initiation SINK equipment RequesterTx transfer of data is completed to interruption, FSM state machineTo be automatically switched to RequesterRx state. Once play Jiu Hui when mobile phone source end receives first byteMobile phone source end produces ResponderRx and interrupts, and the FSM state machine of mobile phone source end switches from IDLE state immediatelyTo ResponderRx state, read SET_HPD order. Then can there is ResponderTx interruption in mobile phone source end,The FSM state machine of mobile phone is switched to ResponderTx state, sends ACK answer signal and holds to ADV7481sink, tellsIt has successfully received signal, in the RequesterRx state buffer of ADV7481sink end, reception is received to ACKAnswer signal, produces afterwards IDEL and interrupts, and FSM state machine switches to IDLE state from RequesterRx state.
Process accordingly at mobile phone source end, by DDCchannel, (function of CBUS bus is now by void simultaneouslyIntend into DDCchannel) (EDID data are to tell mobile phone source end preferential to read the EDID data of ADV7481 insideSend to ADV7481sink to look closely the form of audio frequency), get after EDID data, it is right that mobile phone source end can carry outThe analysis of EDID data, then sends concrete video and audio form according to EDID data.
Then, ADV7481sink end sends WRITE_STAT order, and the effect of this order is to write byte machine source in one's handsEnd. For example send PATH_EN and be 1 and CLK_MODE be normal 24bit pattern to mobile phone source end, tell mobile phoneSource holds the now TMDS path of SINK equipment to be enabled, and clock module is normal 24bit, mobile phone sourceAfter termination is received this order, will enable the TMDS of mobile phone source end simultaneously and open normal clock module. Now,Impedance matching Z in MHL+/-differential linesRXSENSE_TMDSBe reduced to 700ohms, mean that TDMS is got through this moment, data canTransmission, so far mobile phone source end will have transfer of data to 7481sink end.
In addition, SINK equipment also can send number order and remove to tell mobile phone source end, now the capability of sink endWhether the value of register is stable, if unstable, mobile phone source end will read the capability of 7481sink endThe value of register, comprising its equipment state, MHL version number, the discernible type of MHL system, the supported sound of lookingData transfer bandwidth of connection mode frequently, maximum etc. The same with above of the process sending, now ADV7481sinkThe FSM state of end is RequesterTx, and the FSM state of mobile phone source end is ResponderRx, then mobile phone sourceThe FSM state machine of end and ADV7481sink end is made corresponding change according to the sending and receiving of data, and final both sides reachTo IDLE state, so far, sign off.
In the time extracting the microcephaly of the MHL cable being connected with mobile phone, because the CBUS bus of ADV7481 equipment has not had handThe pulling drive of machine source end, now CBUS bus can be in low level state, and there is no wake pulse, can produceDiscovey interrupts, and enters into MSClinkdiscovery handling function. The SINK state of ADV7481 can switch toSINK1 state.
In the time extracting the major part of the MHL cable not being connected with mobile phone, in the same manner as above, CBUS bus is owing to there is no mobile phoneSource holds driving, will be in low level state, and there is no wake pulse, can produce discovey this moment and interrupt,Also can enter into MSClinkdiscovery handling function. In addition because the CD_SENSE pin of ADV7481 detects notTo high level, cause 7481 to think that MHL pattern does not exist, now can occur again MHLMODE (pattern) detecting less than inDisconnected, then the SINK state of ADV7481 can switch to SINK0 state.
No matter be SINK1 state, or SINK0 state, next all can forbid the PATH_EN that ADV7481sink holdsWith close MHL+/-channel clock pattern, then send WRITE_STAR order, content is PATH_EN{sink=0}, mobile phoneSource termination is received this order, also the TMDS of mobile phone source end can be enabled to forbid, make like this MHL+/-in notConnected state. In the time plugging again MHL cable, re-execute method of the present invention and complete discovery and Connection Step.
This routine concrete manner of execution of ResponderRx cycling is as follows:
First, SINK equipment reads order and the data of ResponderRx buffering area, and the mark of order and data is comeConclude which is order, and which is data. And then send ACK answer signal to mobile phone source end, tell mobile phone sourceEnd has received data. Then, undertaken by switchcase cycling statement according to concrete order and dataCorresponding cycling. For example: if first byte is to receive WRITE_STAT order, second byte is to interrupt postingThe address value of storage, the capability register of mobile phone source end sends and changes, and variable is now setThe value of Read_devcap is 1.
The present invention also provides a kind of system that realizes above-mentioned interconnected method, comprises the first judge module: judge whether to occur MHLElectric discovery interrupts; MHL sideband passage connects finds module: interrupt if there is the electric discovery of MHL,Carry out MHL sideband passage and connect discovery operation; The second judge module: judge whether to receive abort order; Reset and restartModule: if receive abort order, reseting register state and restart discovery sequence; The 3rd judge module: sentenceDisconnected when in ResponderRx state, whether receive data interrupt signal; ResponderRx loop module: whenIn the time of ResponderRx state, if receive data interrupt signal, carry out ResponderRx cycling, obtainGet the value of variable R ead_devcap; The 4th judge module: whether judgement, when in RequsterRx state, receivesData interrupt signal; The first read module: when in RequsterRx state, receive data interrupt signal, readThe order of RequsterRx state buffer and data; The 5th judge module: whether the value of judgment variable Read_devcapEqual 1; The second read module: if the value of variable R ead_devcap equals 1, read continuously by MHL sideband channel commandGet the value of the capability register of Intelligent mobile equipment source end.
Described MHL sideband passage connects finds that module comprises, reads SINK block of state: read SINK state; The 6th sentencesDisconnected module: judge whether the state in SINK2; Link block: if in SINK2 state, with Intelligent mobile equipmentSource holds connection; The 7th judge module: judge whether in other SINK states; Described link block comprises: firstSetting unit: the value that PATH_EN is set is 1, and open MHL+/-channel clock pattern; First sends command unit: send outSend MHL sideband passage SET_HPD order to hold to Intelligent mobile equipment source; Second sends command unit: sendWRITE_STAT order is held to Intelligent mobile equipment source; The first transmitted signal unit: send capability registerThe interrupt signal that state changes is to Intelligent mobile equipment source end.
Described the 7th judge module comprises, the first judging unit: judge whether the state in SINK3; The second setting unit:The value that PATH_EN is set is 0, and closes MHL+/-channel clock pattern; The 3rd sends command unit: send PATH_ENValue is that 0 order is to Intelligent mobile equipment source end; Reset unit: reset RequsterTx and ResponderTxThe register of state.
In the second transmission command unit, the content of described WRITE_STAT order comprises that the value of PATH_EN is 1, clock mouldFormula is whether the value of normal 24bit pattern, capability register stable, wherein, the value of PATH_EN be 1 expressionLittleization differential signal transmission path is enabled.
In sum, the present invention is through test experiments repeatedly, can support more than MHL2.1 mobile phone and SINK equipment mutuallyConnection, by amendment, EDID allows mobile phone remove to select preferentially to send the video of 1080P or 720P, and wherein 1080P can reach30fps, 720P can reach 60fps, and transmission of video quality is good, without postponing Caton phenomenon, has met car machine and intelligenceThe interconnected requirement of energy mobile phone.
The present invention has following advantage:
(1) the single line LinkCBUS of point-to-point provides two-way communication, and MSC status machine is realized communication protocol, electricalDiscovery (hardware realization) and extendeddiscovery (software realization) set up from Intelligent mobile equipment sourceEnd connects to the MHL of SINK equipment sink end, can real-time monitor SINK equipment state. Still can utilize in additionMSC order reads the performance of Intelligent mobile equipment source end, for example its equipment state, MHL version number, MHL systemThe connection mode of discernible type, the supported video and audio of uniting, maximum data transfer bandwidth etc.
(2) programmable EDID data, can allow Intelligent mobile equipment source end selective send 480P, 720P orThe video resolution of person 1080P.
(3) software interconnection thread code can be cross-platformly transplanted on other chip, such as TV, computer, amusement equipment etc.Chip on, greatly increased the flexibility of interconnect scheme, and also promoted aspect stability and reliability.
The detailed description of the invention of the above is preferred embodiments of the present invention, not limits specific embodiment of the invention with thisScope, scope of the present invention comprises and is not limited to this detailed description of the invention, all equivalences of doing according to the present invention change all at thisIn the protection domain of invention.

Claims (10)

1. realize SINK equipment and the interconnected method of Intelligent mobile equipment based on MHL, it is characterized in that comprising the steps:
S1: start, judge whether to occur the electric discovery of MHL and interrupt, if so, carry out MHL sideband passage and connectFind operation, then perform step S2, if not, directly perform step S2;
S2: judge whether to receive abort order, if so, reseting register state and restart discovery sequence, soRear execution step S3, if not, directly performs step S3;
S3: whether judgement, when in ResponderRx state, receives data interrupt signal, if so, carries outResponderRx cycling, obtains the value of variable R ead_devcap, then performs step S4, if not, and directlyExecution step S4;
S4: whether judgement, when in RequsterRx state, receives data interrupt signal, if so, reads RequsterThe order of Rx state buffer and data, then perform step S5, if not, directly performs step S5;
S5: whether the value of judgment variable Read_devcap equals 1, if so, reads continuously by MHL sideband channel commandThe value of getting the capability register of Intelligent mobile equipment source end, finishes, and if not, directly finishes.
2. according to claim 1ly realize SINK equipment and the interconnected method of Intelligent mobile equipment, its feature based on MHLBe: in step S1, described MHL sideband passage connects finds that operation comprises the steps:
A: start, read SINK state, judge whether the state in SINK2, if so, carry out and Intelligent mobile equipmentSource end Connection Step B, if not, carries out and judges whether in other SINK state step C;
Described and Intelligent mobile equipment source end Connection Step B comprises the steps:
B1: the value that PATH_EN is set is 1, and open MHL+/-channel clock pattern;
B2: send MHL sideband passage SET_HPD order and hold to Intelligent mobile equipment source;
B3: send WRITE_STAT order and hold to Intelligent mobile equipment source;
B4: send the interrupt signal of capability buffer status change to Intelligent mobile equipment source end, finish,Described judging whether comprises in other SINK state step C:
C1: judge whether the state in SINK3, if so, finish, if not, carry out C2;
C2: the value that PATH_EN is set is 0, and close MHL+/-channel clock pattern;
C3: send the order that PATH_EN value is 0 and hold to Intelligent mobile equipment source;
C4: the register of reset RequsterTx and ResponderTx state, finishes.
3. according to claim 2ly realize SINK equipment and the interconnected method of Intelligent mobile equipment, its feature based on MHLBe: in step B3, the content of described WRITE_STAT order comprises that the value of PATH_EN is 1, clock moduleFor whether the value of normal 24bit pattern, capability register is stable, wherein, the value of PATH_EN is 1 expressionTransition minimized differential signaling path is enabled.
4. according to claim 3ly realize SINK equipment and the interconnected method of Intelligent mobile equipment, its feature based on MHLBe: unstable when the value of capability register, Intelligent mobile equipment source end reads SINK equipmentThe value of capability register.
5. according to claim 4ly realize SINK equipment and the interconnected method of Intelligent mobile equipment, its feature based on MHLBe: the value of described capability register comprises that SINK equipment state, MHL version number, MHL can identifyType, the connection mode of the video and audio that can support, maximum data transfer bandwidth.
6. according to claim 2ly realize SINK equipment and the interconnected method of Intelligent mobile equipment, its feature based on MHLBe: described SINK state comprises SINK0 state, SINK1 state, SINK2 state, SINK3 state, institute showsThe state showing is as follows respectively:
SINK0 state: SINK equipment does not connect MHL cable;
SINK1 state: SINK equipment connects upper Intelligent mobile equipment by MHL cable;
SINK2 state: SINK equipment and Intelligent mobile equipment complete shakes hands;
SINK3 state: SINK equipment can transmit video/audio with Intelligent mobile equipment.
7. according to claim 1ly realize SINK equipment and the interconnected method of Intelligent mobile equipment, its feature based on MHLBe: in step S3, described ResponderRx cycling comprises the steps:
(1) start, read the order of ResponderRx state buffer and the mark of data and order and data;
(2) send the source end of MHL sideband passage ACK answer signal to Intelligent mobile equipment;
(3) whether what judge that first byte reads is WRITE_STAT order, if so, and execution step (4),If not, judge that first byte reads be whether first byte read be whetherREAD_DEVCAP order, if so, carries out concrete MHL sideband channel command, if not, finishes,
(4) judge whether second byte is connection status register address value, if so, by the data of the 3rd byteWrite in the address of link status register of SINK equipment, BREAK, if not, execution step (5),
(5) judge that whether second byte is to connect SBR register address value, if so, prints the ground readingLocation and data value, BREAK, if not, execution step (6);
(6) judge that whether second byte is interrupt register address value, if so, arranges variable R ead_devcap'sValue is 1, BREAK, if not, and execution step (7);
(7) judge whether mistake, if so, BREAK, finishes.
8. realize and realize SINK equipment and Intelligent mobile equipment interconnected method based on MHL described in claim 1-7 any oneSystem, is characterized in that comprising:
The first judge module: judge whether to occur the electric discovery of MHL and interrupt;
MHL sideband passage connects finds module: interrupt if there is the electric discovery of MHL, carry out MHL sideband passageConnect and find operation;
The second judge module: judge whether to receive abort order;
Reset and restart module: if receive abort order, reseting register state with restart discovery sequence;
The 3rd judge module: whether judgement, when in ResponderRx state, receives data interrupt signal;
ResponderRx loop module: when in ResponderRx state, if receive data interrupt signal,
Carry out ResponderRx cycling, obtain the value of variable R ead_devcap;
The 4th judge module: whether judgement, when in RequsterRx state, receives data interrupt signal;
The first read module: when in RequsterRx state, receive data interrupt signal, read RequsterRxThe order of state buffer and data;
The 5th judge module: whether the value of judgment variable Read_devcap equals 1;
The second read module: if the value of variable R ead_devcap equals 1, read continuously by MHL sideband channel commandThe value of the capability register of Intelligent mobile equipment source end.
9. according to claim 8ly realize SINK equipment and the interconnected system of Intelligent mobile equipment, its feature based on MHLBe: described MHL sideband passage connects finds that module comprises,
Read SINK block of state: read SINK state;
The 6th judge module: judge whether the state in SINK2;
Link block: if in SINK2 state, be connected with Intelligent mobile equipment source end;
The 7th judge module: judge whether in other SINK states;
Described link block comprises:
The first setting unit: the value that PATH_EN is set is 1, and open MHL+/-channel clock pattern;
First sends command unit: send MHL sideband passage SET_HPD order and hold to Intelligent mobile equipment source;
Second sends command unit: send WRITE_STAT order and hold to Intelligent mobile equipment source;
The first transmitted signal unit: send the interrupt signal of capability buffer status change to Intelligent mobile equipmentSource end,
Described the 7th judge module comprises:
The first judging unit: judge whether the state in SINK3;
The second setting unit: the value that PATH_EN is set is 0, and close MHL+/-channel clock pattern;
The 3rd sends command unit: send the order that PATH_EN value is 0 and hold to Intelligent mobile equipment source;
Reset unit: the register of reset RequsterTx and ResponderTx state.
10. according to claim 9ly realize SINK equipment and the interconnected system of Intelligent mobile equipment, its feature based on MHLBe: in the second transmission command unit, the content of described WRITE_STAT order comprise the value of PATH_EN be 1,Clock module is whether the value of normal 24bit pattern, capability register is stable, wherein, and the value of PATH_ENBe that 1 expression transition minimized differential signaling path is enabled.
CN201511027766.XA 2015-12-30 2015-12-30 The method and system of SINK equipment and Intelligent mobile equipment interconnection are realized based on MHL Active CN105611360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511027766.XA CN105611360B (en) 2015-12-30 2015-12-30 The method and system of SINK equipment and Intelligent mobile equipment interconnection are realized based on MHL

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511027766.XA CN105611360B (en) 2015-12-30 2015-12-30 The method and system of SINK equipment and Intelligent mobile equipment interconnection are realized based on MHL

Publications (2)

Publication Number Publication Date
CN105611360A true CN105611360A (en) 2016-05-25
CN105611360B CN105611360B (en) 2019-02-26

Family

ID=55990851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511027766.XA Active CN105611360B (en) 2015-12-30 2015-12-30 The method and system of SINK equipment and Intelligent mobile equipment interconnection are realized based on MHL

Country Status (1)

Country Link
CN (1) CN105611360B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140019653A1 (en) * 2012-07-11 2014-01-16 Silicon Image, Inc. Transmission of multiple protocol data elements via a connector utilizing a data tunnel
CN103795952A (en) * 2013-11-01 2014-05-14 熊安永 Automobile-mobile terminal interconnection image transmission equipment
CN104158960A (en) * 2014-07-29 2014-11-19 常熟恒基科技有限公司 Vehicle-mounted mobile phone interconnecting device
CN204482042U (en) * 2014-10-22 2015-07-15 芜湖宏景电子股份有限公司 Based on the car crane monitoring system of MHL technology
CN104902209A (en) * 2014-03-05 2015-09-09 上海华虹集成电路有限责任公司 Data transmission system between CBUS and MCU

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140019653A1 (en) * 2012-07-11 2014-01-16 Silicon Image, Inc. Transmission of multiple protocol data elements via a connector utilizing a data tunnel
CN103795952A (en) * 2013-11-01 2014-05-14 熊安永 Automobile-mobile terminal interconnection image transmission equipment
CN104902209A (en) * 2014-03-05 2015-09-09 上海华虹集成电路有限责任公司 Data transmission system between CBUS and MCU
CN104158960A (en) * 2014-07-29 2014-11-19 常熟恒基科技有限公司 Vehicle-mounted mobile phone interconnecting device
CN204482042U (en) * 2014-10-22 2015-07-15 芜湖宏景电子股份有限公司 Based on the car crane monitoring system of MHL technology

Also Published As

Publication number Publication date
CN105611360B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
JP5616897B2 (en) Transmission of alternative content with standard equipment connectors
US8667203B2 (en) Operation of video source and sink with toggled hot plug detection
EP3070957A1 (en) Interconnection, interworking and multi-screen interaction device and system, and implementation method
US9804858B2 (en) System for re-enumeration of USB 3.0 compatible peripheral devices
EP2733619B1 (en) Electronic device with Thunderbolt interface, connecting method thereof, and docking apparatus
US8516234B2 (en) Frequency and symbol locking using signal generated clock frequency and symbol identification
US8370554B2 (en) Operation of video source and sink with hot plug detection not asserted
CN204595844U (en) USB multi-computer switch
US10866915B2 (en) Method for increasing the compatibility of displayport
US20140059257A1 (en) Keyboard-video-mouse system and method of providing and using the same
CN1897672A (en) Multimedia interface input method for conversing high resolution in tv
KR101277657B1 (en) Method for handling input event between external device and mobile terminal docking thereat
CN102710877B (en) The external control method of mobile terminal, mobile terminal and system
CN104936030A (en) Startup picture display method, equipment and combined terminal system
CN104731734B (en) A kind of output method and device of terminal signaling
CN102833513B (en) High definition player
CN105611360A (en) Method and system for interconnecting SINK device with intelligent mobile device based on MHL
CN102866567B (en) Intelligent NFC projector and control method thereof
CN108322798B (en) CEC bus monitoring equipment
KR101187269B1 (en) Electronic apparatus for transmitting/receiving data using mhl interface and data transmitting/receiving method thereof
CN202652394U (en) Data conversion device
CN203466851U (en) Vehicle-cellphone interconnection video-transmission system
US20190094933A1 (en) Communication device and communication method
CN105868130A (en) Method and mobile terminal for controlling interface application program
CN110618672A (en) Interface circuit and interface communication method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant