Summary of the invention
The present invention provides the method for attachment of WIHD function in a kind of mobile phone terminal, according to scan with described
The display device that WIHD function in mobile phone terminal is attached, obtains the MAC information of described display device,
Described mobile phone terminal carries out the connection of WIHD function according to described MAC information in described display device, passes through
WIHD function is built in mobile phone terminal, simplifies connection procedure, and no longer limit WIHD technology
Field of employment.
The present invention provides the method for attachment of WIHD function in a kind of mobile phone terminal, and described method includes:
The display device that mobile phone terminal scanning is attached with the WIHD function in described mobile phone terminal;
Described mobile phone terminal obtains the media interviews of the described display device scanned and controls MAC information;
Described mobile phone terminal carries out the connection of WIHD function according to described MAC information and described display device.
Described mobile phone terminal carries out the connection of WIHD function according to described MAC information and described display device,
Particularly as follows:
Described mobile phone terminal is according to the type of display device described in described MAC acquisition of information;
Described mobile phone terminal loads corresponding described WIHD function according to described type;
Described mobile phone terminal according to described MAC information by described display device and corresponding described WIHD function
It is attached.
At described mobile phone terminal according to described MAC information by described display device and corresponding described WIHD merit
After being attached, described method also includes:
Described mobile phone terminal starts corresponding application program according to the operational order of user;
Described mobile phone terminal obtains the described application program image in described mobile phone terminal display screen display;
Described image projection is set to described display by described mobile phone terminal by corresponding described WIHD function
It is standby, so that described display device shows described image.
After described WIHD function corresponding in described mobile phone terminal and described display device disconnect, institute
Method of stating also includes:
The described WIHD function that the unloading of described mobile phone terminal is corresponding.
A kind of mobile phone terminal, has WIHD function in described mobile phone terminal, described terminal includes:
Scan module, the display device that the WIHD function in scanning with described mobile phone terminal is attached;
First acquisition module, controls MAC letter for obtaining the media interviews of the described display device scanned
Breath;
Link block, for carrying out the connection of WIHD function according to described MAC information and described display device.
Described link block, specifically for:
Type according to display device described in described MAC acquisition of information;
Corresponding described WIHD function is loaded according to described type;
According to described MAC information, described display device is attached with corresponding described WIHD function.
Described terminal also includes:
Start module, in described link block according to described MAC information by described display device with corresponding
After described WIHD function is attached, start corresponding application program for the operational order according to user;
Second acquisition module, for obtaining described application program in described mobile phone terminal display screen display
Image;
Projection module, for setting described image projection to described display by corresponding described WIHD function
It is standby, so that described display device shows described image.
Described terminal also includes:
Unload module, when described WIHD function corresponding in described mobile phone terminal disconnects with described display device
After connection, for unloading the described WIHD function of correspondence.
The present invention sets according to the display being attached with the WIHD function in described mobile phone terminal scanned
Standby, obtain the MAC information of described display device, described mobile phone terminal according to described MAC information in described
Display device carries out the connection of WIHD function, by WIHD function is built in mobile phone terminal, simplifies
Connection procedure, and no longer limit the field of employment of WIHD technology.
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.
As it is shown in figure 1, be the method for attachment flow process of WIHD function in a kind of mobile phone terminal in the present inventor
Figure, described method may comprise steps of:
Step 101, the display that mobile phone terminal scanning is attached with the WIHD function in described mobile phone terminal
Equipment.
Concrete, described mobile phone terminal is according to the scanning of WIHD procotol and the WIHD merit in mobile phone terminal
The described display device that can be attached.
Step 102, described mobile phone terminal obtains the media interviews of the described display device scanned and controls MAC
Information.
Step 103, described mobile phone terminal carries out WIHD merit according to described MAC information and described display device
The connection of energy.
Described mobile phone terminal carries out the connection of WIHD function according to described MAC information and described display device,
Particularly as follows:
Described mobile phone terminal is according to the type of display device described in described MAC acquisition of information;
Described mobile phone terminal loads corresponding described WIHD function according to described type;
Described mobile phone terminal according to described MAC information by described display device and corresponding described WIHD function
It is attached.
Concrete, described mobile phone terminal can (Media Access Control, media be visited according to MAC
Ask control) information determines the described display device being attached with the WIHD function in mobile phone terminal, and then
Determining the type of described display device, the type of described display device can be: intelligent television, have aobvious
Show the intelligent helmet etc. of function, due to different types of display device WIHD function the most difference,
That is: different types of display device needs special WIHD function to provide data for it, and in order to reach
The purpose of power saving and saving internal memory is after determining described display device, and described mobile phone terminal just loads and institute
State the WIHD function that display device type is corresponding, load the WIHD corresponding with described display device
After function, described mobile phone terminal according to described MAC information by corresponding described WIHD function and described display
Equipment is attached, so that image is transferred to described display device by WIHD function by described mobile phone terminal.
At described mobile phone terminal according to described MAC information by described display device and corresponding described WIHD merit
After being attached, described method also includes:
Described mobile phone terminal starts corresponding application program according to the operational order of user;
Described mobile phone terminal obtains the described application program image in described mobile phone terminal display screen display;
Described image projection is set to described display by described mobile phone terminal by corresponding described WIHD function
It is standby, so that described display device shows described image.
Concrete, after described WIHD function is connected with described display device, described mobile phone terminal is the most permissible
User is wanted transmission image transmitting give described display device, further, when described user wants handle
Image transmitting of certain application is to time on described display device, and described mobile phone terminal obtains described application in institute
State the image of display on mobile phone display screen, and described image transmitting is given described display device, wherein, this
The purpose of invention is the image in order to obtain on the display screen of mobile phone terminal, the most described acquisition mobile phone terminal
The method of display image belongs to protection scope of the present invention.
Equally, in order to reach power saving and save the purpose of internal memory, described in corresponding in described mobile phone terminal
After WIHD function and described display device disconnect, described method also includes:
The described WIHD function that the unloading of described mobile phone terminal is corresponding.
The present invention sets according to the display being attached with the WIHD function in described mobile phone terminal scanned
Standby, obtain the MAC information of described display device, described mobile phone terminal according to described MAC information in described
Display device carries out the connection of WIHD function, by WIHD function is built in mobile phone terminal, simplifies
Connection procedure, and no longer limit the field of employment of WIHD technology.
In order to the technological thought of the application is expanded on further, in conjunction with concrete application scenarios, to the application
Technical scheme illustrate, concrete, in order to realize the WIHD function in mobile phone terminal, the present invention opens
Having sent out a kind of WIHD functional framework, as in figure 2 it is shown, wherein, described display device is intelligent television.
In described framework, SII6400IP is built-in with WIHD functional module, is used for and described intelligent television
The connection carrying out WIHD function and the image transmitting obtained by mobile phone terminal are to described intelligent television, wherein
SII6400IP i.e. supports wire transmission, supports again to be wirelessly transferred;HDMI Ctroller is that mobile phone shows
(High Definition Multimedia Interface, fine definition is many for the built-in HDMI of controller
Media interface) bus control unit, all of video data is all exported by HDMI.
Described mobile phone terminal scans described intelligent television by WIHD functional module, is scanning described Intelligent electric
Depending on the MAC information of the described intelligent television of rear acquisition, and described MAC information is sent to sii6400driver,
Described sii6400driver sets up with described intelligent terminal according to WIHD procotol and is connected, and works as connection
After foundation completes, report UEVENT event by the libwihd in described framework, to notify WiHD
Service underlying device successful connection, receives, in WiHD service underlying device, the UEVENT reported
After event, described UEVENT event is converted to standard intent message, and by described standard intent
Message is sent to APP application layer, receives described standard intent message in described APP application layer, right
Described standard intent message resolves, and obtains device type, and described APP layer is by described device type
It is sent to kernel layer, so that described kernel layer loads corresponding WIHD function, the most described mobile phone
Terminal just can obtain the image on screen, and shows described image transmitting to described intelligent television.
After WIHD functional chain is connected into merit, the application that described mobile phone terminal acquisition user opens shows in display
Image on screen, the image of mobile telephone display is transferred to Sii6400 by HDMI EBI
Driver, by wireless WIHD fuction output to intelligent television.
Conceive based on the application as said method, the invention allows for a kind of mobile phone terminal, described
Having WIHD function in mobile phone terminal, as described in Figure 3, this device end includes:
Scan module 31, the display that the WIHD function in scanning with described mobile phone terminal is attached
Equipment;
First acquisition module 32, controls MAC for obtaining the media interviews of the described display device scanned
Information;
Link block 33, for carrying out WIHD function according to described MAC information and described display device
Connect.
Described link block, specifically for:
Type according to display device described in described MAC acquisition of information;
Corresponding described WIHD function is loaded according to described type;
According to described MAC information, described display device is attached with corresponding described WIHD function.
Described terminal also includes:
Start module, in described link block according to described MAC information by described display device with corresponding
After described WIHD function is attached, start corresponding application program for the operational order according to user;
Second acquisition module, for obtaining described application program in described mobile phone terminal display screen display
Image;
Projection module, for setting described image projection to described display by corresponding described WIHD function
It is standby, so that described display device shows described image.
Described terminal also includes:
Unload module, when described WIHD function corresponding in described mobile phone terminal disconnects with described display device
After connection, for unloading the described WIHD function of correspondence.
The present invention sets according to the display being attached with the WIHD function in described mobile phone terminal scanned
Standby, obtain the MAC information of described display device, described mobile phone terminal according to described MAC information in described
Display device carries out the connection of WIHD function, by WIHD function is built in mobile phone terminal, simplifies
Connection procedure, and no longer limit the field of employment of WIHD technology.
One of ordinary skill in the art will appreciate that: realize all or part of step of above-mentioned each method embodiment
Suddenly can be completed by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer can
Read in storage medium.This program upon execution, performs to include the step of above-mentioned each method embodiment;And
Aforesaid storage medium includes: ROM, RAM, magnetic disc or CD etc. are various can store program code
Medium.
Device embodiment described above is only schematically, the list wherein illustrated as separating component
Unit can be or may not be physically separate, and the parts shown as unit can be or also
Can not be physical location, i.e. may be located at a place, or at least two network can also be distributed to
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.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, rather than right
It limits;Although the present invention being described in detail with reference to foregoing embodiments, this area common
Skilled artisans appreciate that the technical scheme described in foregoing embodiments still can be modified by it,
Or the most some or all of technical characteristic is carried out equivalent;And these amendments or replacement, and
The essence not making appropriate technical solution departs from the scope of various embodiments of the present invention technical scheme.