Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The embodiment of the present invention makes two when the distance between infrared sensor of two mobile terminals is less than predetermined threshold value
Mobile terminal RNTO, which includes the title of specified prefix and opened, specifies radio communication function, and two mobile terminals pass through finger again
Determine radio communication function and be attached foundation and data transfer, so as to substantially increase between mobile terminal in data transmission procedure
In operating efficiency.
Mobile terminal in the embodiment of the present invention includes but is not limited to mobile phone, PDA with functions of receiving and transmitting infrared
(PersonalDigitalAssistant, palm PC) and notebook computer.Infrared communication skill in the embodiment of the present invention
Art can be following specification:IrPHY, IrLAP, IrLMP, IrCOMM, TinyTP, OBEX, IrLAN, IrSimple or
IrSimpleSlot etc..
Fig. 1 shows the implementation process figure of the data transmission method between mobile terminal provided in an embodiment of the present invention, in detail
State as follows:
In S101, the first infrared sensor of the first mobile terminal and the second infrared sensing of the second mobile terminal are detected
The distance between device.
Infrared communication technique transmits data using infrared ray.Because infrared communication technique does not need entity connection, and greatly
Therefore most mobile terminals, when establishing data connection between mobile terminals, utilize infrared communication per se with infrared sensor
Technology is easy to use and cost of implementation is relatively low.In addition, infrared communication technique is point-to-point straight-line data transmission, strong security.
Fig. 2 shows the specific implementation flow of the data transmission method between mobile terminal provided in an embodiment of the present invention
Figure, reference picture 2:
The first infrared sensor of the first mobile terminal and the second infrared sensing of the second mobile terminal are detected described in S101
The distance between device includes:
In S201, first infrared sensor receives first infrared sensor and launches what back reflection was returned
First infrared signal and the second infrared signal of second infrared sensor transmitting;
In S202, first infrared signal that first infrared sensor detection is received and described second infrared
The intensity of signal;
In S203, first infrared sensor is strong according to first infrared signal and second infrared signal
Degree calculates the distance between first infrared sensor and second infrared sensor.
Herein, first infrared sensor and the second movement are detected using the first infrared sensor of the first mobile terminal
The distance between second infrared sensor of terminal.First infrared sensor has sending module and receiving module, and second is infrared
Sensor also has sending module and receiving module.
As one embodiment of the present of invention, in the infrared signal that the first infrared sensor is launched by its sending module
A part runs into the second mobile terminal back reflection and returned, and the infrared letter in the part is received by the receiving module of the first infrared sensor
Number, the part infrared signal is the first infrared signal.In the infrared signal that second infrared sensor is launched by its sending module
A part by the first infrared sensor receiving module receive, this part infrared signal is the second infrared signal.First is infrared
The receiving module of sensor receives the first infrared signal with after the second infrared signal, detecting the strong of this two parts infrared signal
Degree, so as to calculate the distance between the second infrared sensor and the first infrared sensor.It is strong when this two parts infrared signal
When spending sum and being more than default infrared intensity threshold value, judge that the distance between the first infrared sensor and second infrared sensor are less than
Predetermined threshold value.
In actual applications, when the first mobile terminal is not asked with other equipment sharing data, will not typically receive
The sufficiently strong infrared ray sent to other equipment.Now, the first infrared sensor is launched infrared ray by sending module and gone out
It if running into barrier, can reflect, be received by receiving module and detected the infrared ray reflected, be reflected by calculating
Infrared ray intensity, to judge the distance of barrier.As one embodiment of the present of invention, when the first infrared sensor detects
When being less than designated value to the distance of barrier and the first infrared sensor, screen backlight lamp is closed, now generally user is beating
The situation of phone.
Fig. 3 shows the implementation process of the data transmission method between the mobile terminal that another embodiment of the present invention provides
Figure, details are as follows:
Further, the of the first infrared sensor of the first mobile terminal and the second mobile terminal is being detected described in S101
Before the distance between two infrared sensors, methods described also includes:
In S301, first mobile terminal selectes the data waiting for transmission;
In S302, first mobile terminal selectes the specified radio communication function for transmitting the data.
As one embodiment of the present of invention, the first mobile terminal receive user transmit data request when, according to
Data waiting for transmission are selected in the instruction of user, and export radio communication function selection dialog box, make the user of the first mobile terminal
The instruction of radio communication function is specified according to selection dialog box input selection., can be in the first movement eventually in specific implementation
Data transfer button is provided in the file manager at end, user is sent the request of transmission data by the data transfer button.
Specified radio communication function in the embodiment of the present invention includes bluetooth (Bluetooth) function, Wi-Fi
(WirelessFidelity, adopting wireless fidelity technology) short-distance wireless communication function such as function or ZigBee functions, herein not
It is construed as limiting.Wherein, Wi-Fi functions include Wi-FiDirect (WirelessFidelityDirect, adopting wireless fidelity technology equity
Connection) function.
In S102, if the distance between first infrared sensor and second infrared sensor are less than default threshold
Value, then first mobile terminal, which is opened, specifies radio communication function.
As one embodiment of the present of invention, when the first infrared sensor detects it between the second infrared sensor
When distance is less than predetermined threshold value, the first mobile terminal judges have data to be passed between the first mobile terminal and the second mobile terminal
Defeated, the first infrared sensor docks with the second infrared sensor.First mobile terminal, which is opened, specifies radio communication function, for example,
If the first mobile terminal specifies Bluetooth technology to be used to transmit data, the first mobile terminal starts Bluetooth function;If the first movement
Terminal specifies Wi-FiDirect technologies to be used to transmit data, then the first mobile terminal starts Wi-FiDirect functions;If first
Mobile terminal specifies ZigBee technology to be used to transmit data, then the first mobile terminal starts ZigBee functions.
Fig. 4 shows the infrared of mobile terminal in data transmission method between mobile terminal provided in an embodiment of the present invention
The schematic diagram of sensor, reference picture 4:
Mobile terminal typically has infrared sensor at the top of equipment.As one embodiment of the present of invention, by
One infrared sensor before, pre-sets predetermined threshold value with the second infrared sensor phase.
It should be noted that because the docking between infrared sensor requires low-angle, the general cone angle for requiring docking exists
Within 30 degree, therefore, when having data to transmission between the first mobile terminal and the second mobile terminal, by the first infrared sensor
Docked with the second infrared sensor and require to ensure low-angle.
In S103, first mobile terminal notifies second mobile terminal, so that the second mobile terminal weight
It is named as specified title and opens the specified radio communication function.
As one embodiment of the present of invention, the first mobile terminal judge the first mobile terminal and the second mobile terminal it
Between have data to be transmitted after, the first mobile terminal send infrared signal to the second mobile terminal, the infrared signal include notify
Second mobile terminal RNTO specifies title, and notifies the second mobile terminal starts to specify radio communication function.Specific
When realizing, after the second mobile terminal RNTO specifies title, it can briefly show and refer on the screen of the second mobile terminal
Name title.The displaying time for referring herein to name can be referred to as 1 second, be not limited thereto.
Preferably, it is described to specify the entitled title for including specified prefix.
As one embodiment of the present of invention, specified prefix can be IR or infrared etc., be not limited thereto.For example,
The original name of second mobile terminal is referred to as MOBILE2, and the title that RNTO includes specified prefix is then changed into IR-MOBILE2.
As an alternative embodiment of the invention, specified prefix can be corresponding with specified radio communication function.For example, the
The original name of two mobile terminals is referred to as MOBILE2, and the title that RNTO includes specified prefix is then changed into BLUETOOTH-
MOBILE2。
As an alternative embodiment of the invention, the first mobile terminal specifies name notifying the second mobile terminal RNTO
While title, also RNTO includes the title of specified prefix to the machine.
As one embodiment of the present of invention, if the second mobile terminal success RNTO is specified title and opened specified
Radio communication function, then the confirmation of specified radio communication function renaming and is had turned on to first by infrared transmission
Mobile terminal.
In S104, if first mobile terminal detects second mobile terminal corresponding to the specified title,
Then matched with second mobile terminal.
Fig. 5 shows the specific implementation stream of the data transmission method S104 between mobile terminal provided in an embodiment of the present invention
Cheng Tu, reference picture 5:
Further, if first mobile terminal described in S104 detects second shifting corresponding to the specified title
Dynamic terminal, then include with second mobile terminal pairing:
In S501, setting for the specified radio communication function is had turned in the first mobile scanning terminal pre-determined distance
It is standby.
In S502, if equipment corresponding to first mobile scanning terminal to the specified title, judges the finger
Equipment corresponding to naming is referred to as second mobile terminal.
In S503, first mobile terminal matches with second mobile terminal, to establish and the described second movement
The connection of terminal.
As one embodiment of the present of invention, the first mobile terminal, which automatically turns on, specifies radio communication function and notifies second
After mobile terminal opens specified radio communication function, the equipment for having turned on specified radio communication function in pre-determined distance is scanned.
Herein, pre-determined distance can be in 10 meters of radius, to be not limited thereto.Now, if the first mobile scanning terminal to opened
In the equipment for opening specified radio communication function, including equipment corresponding to specified title, then judge that this specifies equipment corresponding to title
For the second mobile terminal.Automatically request specifies the connection of title corresponding equipment to first mobile terminal with this.
In S105, first mobile terminal transfers data to described second by the specified radio communication function and moved
Dynamic terminal.
As one embodiment of the present of invention, if the second mobile terminal receives the connection request that the first mobile terminal is sent
Afterwards confirm be connected with the first mobile terminal, then connect foundation, and the first mobile terminal begun through with the second mobile terminal it is specified
Radio communication function carries out data transmission.
In embodiments of the present invention, in data transmission procedure between two mobile terminals, for a user, only need
The user of the first mobile terminal is wanted to select data waiting for transmission and specified radio communication function, then by the red of two mobile terminals
Outer sensor is close, can realize the data transfer between two mobile terminals, and data pass between substantially increasing mobile terminal
The convenience that user operates when defeated.
Fig. 6 shows the structured flowchart of the data transmission system between mobile terminal provided in an embodiment of the present invention, reference
Fig. 6, the system include the first mobile terminal 61 and the second mobile terminal 62, and the first mobile terminal 61 and the second mobile terminal 62 are logical
Cross the first infrared transceiver module 611 and after the second infrared transceiver module 621 matched, then pass through the He of the first bluetooth module 612
Second bluetooth module 622, the first Wi-FiDirect modules 613 and the 2nd Wi-FiDirect modules 623 or the first ZigBee
The ZigBee module of module 614 and second carries out data transmission.Wherein, the function of the first infrared transceiver module 611 is red by first
Outer sensor realizes that the function of the second infrared transceiver module 621 is realized by the second infrared sensor.
The embodiment of the present invention makes two when the distance between infrared sensor of two mobile terminals is less than predetermined threshold value
Mobile terminal RNTO, which includes the title of specified prefix and opened, specifies radio communication function, and two mobile terminals pass through finger again
Determine radio communication function and be attached foundation and data transfer, so as to substantially increase between mobile terminal in data transmission procedure
In operating efficiency.
Fig. 7 is the structured flowchart of the data transmission device between mobile terminal provided in an embodiment of the present invention, and the device is used
Data transmission method between the mobile terminal described in service chart 1 to 5, for convenience of description, it illustrate only and the present embodiment
Related part.
Reference picture 7, the device include:
Apart from detection module 71, detect the first mobile terminal the first infrared sensor and the second mobile terminal it is second red
The distance between outer sensor.
Renamer module 72, if the distance between first infrared sensor and second infrared sensor are less than in advance
If threshold value, then first mobile terminal, which is opened, specifies radio communication function.
Notification module 73, first mobile terminal notify second mobile terminal, so that second mobile terminal
RNTO specifies title and opens the specified radio communication function.
Matching module 74, if first mobile terminal detects that second movement is eventually corresponding to the specified title
End, then matched with second mobile terminal.
Data transmission module 75, first mobile terminal are transferred data to described by the specified radio communication function
Second mobile terminal.
Further, described device also includes:
Data to be transmitted chosen module, first mobile terminal select the data waiting for transmission.
Radio communication function chosen module is specified, first mobile terminal selectes the finger for transmitting the data
Determine radio communication function.
Further, it is described to include apart from detection module 71:
Infrared receiver submodule, first infrared sensor receive anti-after first infrared sensor is launched
It is emitted back towards the first infrared signal come and the second infrared signal of second infrared sensor transmitting;
Infrared intensity detection sub-module, first infrared signal and institute that the first infrared sensor detection is received
State the intensity of the second infrared signal;
Apart from calculating sub module, first infrared sensor is according to first infrared signal and the second infrared letter
Number Strength co-mputation described in the distance between the first infrared sensor and second infrared sensor.
Further, the matching module 74 includes:
Device scan submodule, the specified radio communication work(is had turned in the first mobile scanning terminal pre-determined distance
The equipment of energy.
Equipment decision sub-module, if equipment corresponding to first mobile scanning terminal to the specified title, judges
Equipment corresponding to the specified title is second mobile terminal.
Submodule is matched, first mobile terminal matches with second mobile terminal, is moved to establish with described second
The connection of dynamic terminal.
Preferably, it is described to specify the entitled title for including specified prefix.
The embodiment of the present invention makes two when the distance between infrared sensor of two mobile terminals is less than predetermined threshold value
Mobile terminal RNTO, which includes the title of specified prefix and opened, specifies radio communication function, and two mobile terminals pass through finger again
Determine radio communication function and be attached foundation and data transfer, so as to substantially increase between mobile terminal in data transmission procedure
In operating efficiency.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.