CN103220822A - Data transmission method, data transmission device and mobile terminal - Google Patents

Data transmission method, data transmission device and mobile terminal Download PDF

Info

Publication number
CN103220822A
CN103220822A CN2013101199145A CN201310119914A CN103220822A CN 103220822 A CN103220822 A CN 103220822A CN 2013101199145 A CN2013101199145 A CN 2013101199145A CN 201310119914 A CN201310119914 A CN 201310119914A CN 103220822 A CN103220822 A CN 103220822A
Authority
CN
China
Prior art keywords
terminal equipment
appointment
handshaking information
specified file
information
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
CN2013101199145A
Other languages
Chinese (zh)
Other versions
CN103220822B (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.)
Beijing Xiaomi Technology Co Ltd
Original Assignee
Beijing Xiaomi Technology 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 Beijing Xiaomi Technology Co Ltd filed Critical Beijing Xiaomi Technology Co Ltd
Priority to CN201310119914.5A priority Critical patent/CN103220822B/en
Publication of CN103220822A publication Critical patent/CN103220822A/en
Application granted granted Critical
Publication of CN103220822B publication Critical patent/CN103220822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data transmission method, a data transmission device and a mobile terminal, belonging to the field of a terminal technology. The method comprises the steps of receiving a data transfer instruction used for transmitting an appointed file through first terminal equipment; detecting a sound state of the first terminal equipment, and generating appointed handshaking information according to the sound state; transmitting the appointed handshaking information through the first terminal equipment according to the appointed file to enable second terminal equipment and the first terminal equipment to establish data connection according to the appointed handshaking information; and transmitting the appointed file to the second terminal equipment through the data connection between the first terminal equipment and the second terminal equipment. According to the data transmission method, the data transmission device and the mobile terminal, operation in the data transmission process can be simplified, establishing speed of the data connection can be improved, and unnecessary time delay can be avoided.

Description

Data transmission method, device and portable terminal
Technical field
The present invention relates to the terminal technology field, particularly a kind of data transmission method, device and portable terminal.
Background technology
Along with the development of terminal technology and the variation of mobile terminal function, increasing portable terminal can carry out transfer of data with other portable terminals, to satisfy the demand that the user shares data.Wherein, the data transfer mode of portable terminal can comprise bluetooth, infrared etc.
When a portable terminal need be to another portable terminal transmission data, can open configuration in Wireless Telecom Equipments such as the bluetooth of portable terminal or infrared interfaces, connect, utilize the connection of setting up to carry out transfer of data.
In realizing process of the present invention, the inventor finds to exist at least following problem:
When using Wireless Telecom Equipments such as bluetooth or infrared interface to transmit data at terminal equipment, need the user manually to select the target device of transmission means and transmission with the connection between the Wireless Telecom Equipment of setting up portable terminal, make complicated operation in the data transmission procedure, specification requirement to the user is higher, and transmission means is single, the speed that connects is slow, length consuming time.
Summary of the invention
In order to solve the problem of carrying out the slow and length consuming time of the speed that connects in the data transmission procedure between the terminal equipment, the embodiment of the invention provides a kind of data transmission method, device and portable terminal.Described technical scheme is as follows:
On the one hand, a kind of data transmission method, described method comprises:
First terminal equipment receives the data transfer instruction that is used to transmit specified file;
Detect the sound status of described first terminal equipment, and generate the appointment handshaking information according to described sound status;
Described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with described first terminal equipment according to described appointment handshaking information and is connected;
Be connected with data between described second terminal equipment by described first terminal equipment, send described specified file to described second terminal equipment.
Detect the sound status of described first terminal equipment, and generate the appointment handshaking information, comprising according to described sound status:
Whether the sound status that detects described first terminal equipment is in mute state;
When the sound status of described first terminal equipment is not in mute state, generate first and specify handshaking information, the described first appointment handshaking information is the audio frequency of assigned frequency;
When the sound status of described first terminal equipment is in mute state,
Generate second and specify handshaking information, the described second appointment handshaking information is the information beyond the audio format.
The described second appointment handshaking information is 2 D code information, ultrasound information or near field communication (NFC) NFC information.
Described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with described first terminal equipment according to described appointment handshaking information and is connected, and comprising:
Described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment return the appointment handshaking information of described second terminal equipment according to described appointment handshaking information;
When receiving the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected.
When receiving the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected, and comprising:
When the appointment handshaking information of described first terminal equipment is carried the first given transmission mode, when the appointment handshaking information of described second terminal equipment is carried the second given transmission mode, described first terminal equipment search hotspot name meets the WiFi focus of designated mode, and the hotspot name of described second terminal equipment is made amendment definite by described second terminal equipment to the WiFi focus of described second terminal equipment;
According to the appointment handshaking information of described second terminal equipment, the described WiFi focus that meets described designated mode is verified;
When the WiFi focus checking that meets described designated mode was passed through, described first terminal equipment was set up data by the described WiFi focus that meets described designated mode with described second terminal equipment and is connected.
Described first terminal equipment sends described appointment handshaking information according to described specified file and comprises:
When described specified file during less than preset value, described first terminal equipment is carried at described specified file in the described appointment handshaking information and sends.
First terminal equipment receives and is used to transmit before the data transfer instruction of specified file,
Described method comprises:
First terminal equipment detects the allocate event to described specified file, triggers the described data transfer instruction that is used to transmit specified file.
On the other hand, a kind of data transmission device, described device comprises:
The command reception module is used to receive the data transfer instruction that is used to transmit specified file;
The handshaking information generation module is used to detect sound status, and generates the appointment handshaking information according to described sound status;
The handshaking information sending module is used for sending described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with the local terminal terminal equipment according to described appointment handshaking information and is connected;
Sending module is used for being connected with data between described second terminal equipment by described local terminal terminal equipment, sends described specified file to described second terminal equipment.
Described handshaking information generation module comprises:
State detection unit, whether the sound status that is used to detect the local terminal terminal equipment is in mute state;
First generation unit is used for when the sound status of described local terminal terminal equipment is not in mute state, generates first and specifies handshaking information, and the described first appointment handshaking information is the audio frequency of assigned frequency;
Second generation unit is used for when the sound status of described local terminal terminal equipment is in mute state, generates second and specifies handshaking information, and the described second appointment handshaking information is the information beyond the audio format.
The described second appointment handshaking information is 2 D code information, ultrasound information or near field communication (NFC) NFC information.
Described handshaking information sending module comprises:
The handshaking information transmitting element is used for sending described appointment handshaking information according to described specified file, makes described second terminal equipment return the appointment handshaking information of described second terminal equipment according to described appointment handshaking information;
Connect and set up the unit, be used for when receiving the appointment handshaking information of described second terminal equipment, set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and be connected.
Described connection is set up the unit and is comprised:
Focus search subelement, be used for carrying the first given transmission mode when the appointment handshaking information of described local terminal terminal equipment, when the appointment handshaking information of described second terminal equipment is carried the second given transmission mode, described local terminal terminal equipment search hotspot name meets the WiFi focus of designated mode, and the hotspot name of described second terminal equipment is made amendment definite by described second terminal equipment to the WiFi focus of described second terminal equipment;
Focus checking subelement is used for the appointment handshaking information according to described second terminal equipment, and the described WiFi focus that meets described designated mode is verified;
Checking is used for when the WiFi focus checking that meets described designated mode is passed through by subelement, and described local terminal terminal equipment is set up data by the described WiFi focus that meets described designated mode with described second terminal equipment and is connected.
Described handshaking information sending module comprises:
Carry transmitting element, be used for when described specified file during less than preset value, described local terminal terminal equipment is carried at described specified file in the described appointment handshaking information and sends.
Described device also comprises:
The instruction triggers module is used for the local terminal terminal equipment and detects allocate event to described specified file, triggers the described data transfer instruction that is used to transmit specified file.
Another aspect, a kind of portable terminal, described portable terminal comprises:
Display screen;
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and wherein, described one or more modules have following function:
Reception is used to transmit the data transfer instruction of specified file;
Detect sound status, and generate the appointment handshaking information according to described sound status;
Send described appointment handshaking information according to described specified file, make described second terminal equipment set up data according to described appointment handshaking information and be connected with the local terminal terminal equipment;
Be connected with data between described second terminal equipment by described local terminal terminal equipment, send described specified file to described second terminal equipment.
A kind of data transmission method, device and portable terminal that the embodiment of the invention provides receive the data transfer instruction that is used to transmit specified file by first terminal equipment; Detect the sound status of described first terminal equipment, and generate the appointment handshaking information according to described sound status; Described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with described first terminal equipment according to described appointment handshaking information and is connected; Be connected with data between described second terminal equipment by described first terminal equipment, send described specified file to described second terminal equipment.The technical scheme that adopts the embodiment of the invention to provide, can make the user when needs carry out file transfer, generation handshaking information that can be spontaneous according to terminal equipment present located sound status, and set up data according to handshaking information and another terminal equipment and be connected to carry out transfer of data, the user only need select the file that will transmit, and its concrete data connect the process of setting up and need not artificial intervention and can realize, simplified the operation in the data transmission procedure, and improved data establishment of connection speed, avoided unnecessary time-delay.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of data transmission method of providing of the embodiment of the invention;
Fig. 2 is the flow chart of a kind of data transmission method of providing of the embodiment of the invention;
Fig. 3 is a kind of data transmission device structural representation that the embodiment of the invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 is the flow chart of a kind of data transmission method of providing of the embodiment of the invention.The executive agent of this inventive embodiments is first terminal equipment, and referring to Fig. 1, described method comprises:
101, first terminal equipment receives the data transfer instruction that is used to transmit specified file;
102, detect the sound status of described first terminal equipment, and generate the appointment handshaking information according to described sound status;
103, described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with described second terminal equipment according to described appointment handshaking information and is connected;
104, be connected with data between described second terminal equipment by described first terminal equipment, send described specified file to described second terminal equipment.
The technical scheme that adopts the embodiment of the invention to provide, can make the user when needs carry out file transfer, generation handshaking information that can be spontaneous according to terminal equipment present located sound status, and set up data according to handshaking information and another terminal equipment and be connected to carry out transfer of data, the user only need select the file that will transmit, and its concrete data connect the process of setting up and need not artificial intervention and can realize, simplified the operation in the data transmission procedure, and improved data establishment of connection speed, avoided unnecessary time-delay.
Preferable, detect the sound status of described first terminal equipment, and, comprising according to described sound status generation appointment handshaking information:
Whether the sound status that detects described first terminal equipment is in mute state;
When the sound status of described first terminal equipment is not in mute state, generate first and specify handshaking information, the described first appointment handshaking information is the audio frequency of assigned frequency;
When the sound status of described first terminal equipment is in mute state,
Generate second and specify handshaking information, the described second appointment handshaking information is the information beyond the audio format.
Preferable, the described second appointment handshaking information is 2 D code information, ultrasound information or near field communication (NFC) NFC information.
Preferable, described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment and described second terminal equipment set up data according to described appointment handshaking information and is connected and comprises:
Described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment return the appointment handshaking information of described second terminal equipment according to described appointment handshaking information;
When receiving the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected.
Preferable, when receiving the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected, and comprising:
When the appointment handshaking information of described first terminal equipment is carried the first given transmission mode, when the appointment handshaking information of described second terminal equipment is carried the second given transmission mode, described first terminal equipment search hotspot name meets the WiFi focus of designated mode, and the hotspot name of described second terminal equipment is made amendment definite by described second terminal equipment to the WiFi focus of described second terminal equipment;
According to the appointment handshaking information of described second terminal equipment, the described WiFi focus that meets described designated mode is verified;
When the WiFi focus checking that meets described designated mode was passed through, described first terminal equipment was set up data by the described WiFi focus that meets described designated mode with described second terminal equipment and is connected.
Preferable, described first terminal equipment sends described appointment handshaking information according to described specified file, comprising:
When described specified file during less than preset value, described first terminal equipment is carried at described specified file in the described appointment handshaking information and sends.
Preferable, first terminal equipment receives and is used to transmit before the data transfer instruction of specified file, and described method comprises:
First terminal equipment detects the allocate event to described specified file, triggers the described data transfer instruction that is used to transmit specified file.Above-mentioned all optional technical schemes can adopt any combination to form optional embodiment of the present invention, give unnecessary details no longer one by one at this.
Fig. 2 is the flow chart of a kind of data transmission method of providing of the embodiment of the invention.The interaction agent of this inventive embodiments is first terminal equipment and second terminal equipment, and wherein first terminal equipment is as transmit leg, and second terminal equipment is as the recipient, and referring to Fig. 2, described method comprises:
201, first terminal equipment detects the allocate event to described specified file, triggers the data transfer instruction that is used to transmit specified file;
In embodiments of the present invention, when the specified file of preserving on the user need be with first terminal equipment sends to second terminal equipment, can be used to transmit the data transfer instruction of specified file with triggering by specified file being carried out allocate event at first terminal equipment.Wherein, this allocate event to specified file can be pressed incident or double-click incident or the like for the length to specified file, and the embodiment of the invention is not done qualification.
The difference of the embodiment of the invention is, can only get final product the trigger data transfer instruction by the simple long allocate events such as incident or double-click incident of pressing, only relate to the selection for the treatment of transfer files, do not send frame or in the data transmission applications that has started, add complex steps such as specified file and do not relate to loaded down with trivial details file is pulled into, simplify the process of trigger data transmission greatly, simplified operation complexity.
202, first terminal equipment receives the data transfer instruction that is used to transmit specified file;
Need to prove, the embodiment of the invention has only been described the triggering and the reception of data transfer instruction with step 201-202, in actual applications, this step 201-202 can be regarded as a log-on data transmission course, can only comprise the process that receives data transfer instruction, and concrete triggering mode is not done qualification.
Alternatively, when first terminal equipment receives this data transfer instruction, the log-on data transport interface, at this moment, need also open data transmission interface as recipient's second terminal equipment, thereby realize the reception and the transmission of follow-up handshaking information, so that carry out transfer of data.
203, whether the sound status of described first terminal equipment of detection is in mute state;
For first terminal equipment, its sound status can have the mute state of being in and not be in two kinds of mute state, and first terminal equipment can be known the sound status that it is current by the detection that sound status is provided with situation.
204, when the sound status of described first terminal equipment is not in mute state, generate first and specify handshaking information, the described first appointment handshaking information is the audio frequency of assigned frequency;
When the sound status of first terminal equipment is not in mute state, can use the send mode of the audio frequency of assigned frequency as the first appointment handshaking information, this first appointment handshaking information is carried information such as the MAC Address of first terminal equipment, the data transfer mode of support, number of files waiting for transmission and file size at least.
205, when the sound status of described first terminal equipment is in mute state, generate second and specify handshaking information, the described second appointment handshaking information is the information beyond the audio format;
Preferably, the described second appointment handshaking information is 2 D code information, ultrasound information or near field communication (NFC) NFC information.
When the sound status of first terminal equipment is in mute state, in order not destroy active user's environment for use, can use the send mode of audio format information in addition as the second appointment handshaking information, this second appointment handshaking information is carried information such as the MAC Address of first terminal equipment, the data transfer mode of support, number of files waiting for transmission and file size at least.
In embodiments of the present invention, first specifies handshaking information and second to specify handshaking information only to be used to distinguish the handshaking information of different-format, and its content of specifically carrying is not done concrete qualification.
Certainly, this step 204 is an optimal way, this step 204 also can following step be replaced: when the sound status of described first terminal equipment is not in mute state, generates second and specify handshaking information, the described second appointment handshaking information is the information beyond the audio format.
Further, before generate specifying handshaking information, this method can also comprise: when described specified file during less than preset value, described first terminal equipment is carried at described specified file in the described appointment handshaking information and sends.When the specified file of user transmission smaller, during such as a telephone number or a note, can connect without log-on data, send to second terminal equipment in the handshaking information but this specified file is carried at by the handshaking information beyond audio format or the audio format, when second terminal equipment received this handshaking information, the file type of the specified file that can carry according to handshaking information was stored or operation such as importing accordingly.
206, described first terminal equipment sends the appointment handshaking information that generates according to described specified file;
The form of the appointment handshaking information that no matter generates is audio frequency or extended formatting, and this appointment handshaking information is all carried information such as the MAC Address of first terminal equipment, the data transfer mode of support, number of files waiting for transmission and file size at least.And if this first terminal equipment is supported WiFi(wireless fidelity, Wireless Fidelity), also need WiFi SSID(Service Set Identifier, service set) is carried to specify in the handshaking information and sends, so that second terminal equipment is receiving laggard line data establishment of connection.
When 207, second terminal equipment receives the appointment handshaking information of first terminal equipment, generate the appointment handshaking information of second terminal equipment, and send this appointment handshaking information to first terminal equipment;
Need to prove, this second terminal equipment is the recipient in embodiments of the present invention, but the content that the appointment handshaking information of its transmission is specifically carried is with similar as first terminal equipment of transmit leg, need carry the MAC Address of second terminal equipment, the data transfer mode of support, if and this second terminal equipment is supported WiFi, need WiFi SSID with this second terminal equipment be carried to specify in the handshaking information and send, so that first terminal equipment is receiving laggard line data establishment of connection.
Particularly, when second terminal equipment receives the appointment handshaking information of first terminal equipment, start the WiFi focus of second terminal equipment, and the WiFi SSID of the MAC Address of second terminal equipment and second terminal equipment is carried in the appointment handshaking information of second terminal equipment and sends to first terminal equipment.
208, when first terminal equipment receives the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected;
When the appointment handshaking information of first terminal equipment is carried the WiFi transmission means, and second terminal equipment is supported the WiFi transmission means, then sets up data with the MAC Address of WiFi SSID and the 21 terminal equipment with WiFi SSID according to the MAC Address of second terminal equipment and is connected.
When the appointment handshaking information of first terminal equipment is carried WiFi p2p transmission means, and second terminal equipment is supported WiFi p2p transmission means, then sets up data with the MAC Address of WiFi SSID and the 21 terminal equipment with WiFi SSID according to the MAC Address of second terminal equipment and is connected.
Further,, can manually be provided with, otherwise carry out transfer of data by first terminal user and second terminal user when not matching.
In another embodiment that the embodiment of the invention provides, at above-mentioned steps 208, this step 208 specifically can may further comprise the steps 2081-2083:
2081, carry the first given transmission mode when the appointment handshaking information of described first terminal equipment, when the appointment handshaking information of described second terminal equipment is carried the second given transmission mode, described first terminal equipment search hotspot name meets the WiFi focus of designated mode, and the hotspot name of described second terminal equipment is made amendment definite by described second terminal equipment to the WiFi focus of described second terminal equipment;
In this first given transmission mode is WiFi p2p, and be that WiFi is that example describes with second transmission means, when the specified data transmission means is the data transfer mode that is associated, second terminal equipment as the recipient starts the WiFi focus, and revise the SSID name of WiFi focus according to the unique identification sign indicating number of second terminal equipment and user profile, the concrete modification mode is: the unique identification sign indicating number and the user profile of second terminal equipment are encoded with specific mode, and meet AD HOC, generate amended SSID name, first terminal equipment search SSID name meets the WiFi focus of this AD HOC, wherein the unique identification sign indicating number is used for unique identification equipment, and user profile can be the self-defining title of second terminal equipment, when searching the WiFi focus that meets AD HOC with convenient first terminal equipment, decoding back shows decoded this user profile on first terminal equipment, with the identity of the WiFi focus further determining to search.
2082, according to the appointment handshaking information of described second terminal equipment, the described WiFi focus that meets described designated mode is verified;
First terminal equipment is verified the WiFi focus that searches according to the MAC Address of second terminal equipment in the appointment handshaking information of second terminal equipment, to determine that this WiFi focus that searches is the focus of the current use of second terminal equipment.
2083, when the WiFi focus checking that meets described designated mode was passed through, described first terminal equipment was set up data by the described WiFi focus that meets described designated mode with described second terminal equipment and is connected.
209, be connected with data between described second terminal equipment by described first terminal equipment, send described specified file to described second terminal equipment.
First terminal equipment connect to send this specified file by data, make that second terminal equipment receives this specified file after, preserve this specified file.Particularly, this preservation can be the File Open mode type according to specified file, and this specified file is saved to corresponding position.
The technical scheme that adopts the embodiment of the invention to provide, can make the user when needs carry out file transfer, generation handshaking information that can be spontaneous according to terminal equipment present located sound status, and set up data according to handshaking information and another terminal equipment and be connected to carry out transfer of data, the user only need select the file that will transmit, and its concrete data connect the process of setting up and need not artificial intervention and can realize, simplified the operation in the data transmission procedure, and improved data establishment of connection speed, avoided unnecessary time-delay.Further, come trigger data transmission, user only need select the file that will transmit by allocate event, under the normal condition, need not the operation that the user does other again, reduce the complexity of data transfer operation, and passed through the coupling voluntarily of handshaking information, can make terminal equipment select a kind of optimization scheme to carry out transfer of data automatically, improved transmission rate, connect if set up data, then need not online, do not produce flow by WiFi.
Fig. 3 is a kind of data transmission device structural representation that the embodiment of the invention provides.Referring to Fig. 3, described device comprises:
Command reception module 31 is used to receive the data transfer instruction that is used to transmit specified file;
Handshaking information generation module 32 is used to detect sound status, and generates the appointment handshaking information according to described sound status;
Handshaking information sending module 33 is used for sending described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with the local terminal terminal equipment according to described appointment handshaking information and is connected;
Sending module 34 is used for being connected with data between described second terminal equipment by described local terminal terminal equipment, sends described specified file to described second terminal equipment.
Preferable, described handshaking information generation module comprises:
State detection unit is used to detect sound status and whether is in mute state;
First generation unit is used for when the sound status of described local terminal terminal equipment is not in mute state, generates first and specifies handshaking information, and the described first appointment handshaking information is the audio frequency of assigned frequency;
Second generation unit is used for when the sound status of described local terminal terminal equipment is in mute state, generates second and specifies handshaking information, and the described second appointment handshaking information is the information beyond the audio format.
Preferable, the described second appointment handshaking information is 2 D code information, ultrasound information or near field communication (NFC) NFC information.
Preferable, described handshaking information sending module comprises:
The handshaking information transmitting element is used for sending described appointment handshaking information according to described specified file, makes described second terminal equipment return the appointment handshaking information of described second terminal equipment according to described appointment handshaking information;
Connect and set up the unit, be used for when receiving the appointment handshaking information of described second terminal equipment, set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and be connected.
Preferable, described connection is set up the unit and is comprised:
Focus search subelement, be used for carrying the first given transmission mode when the appointment handshaking information of described local terminal terminal equipment, when the appointment handshaking information of described second terminal equipment is carried the second given transmission mode, described local terminal terminal equipment search hotspot name meets the WiFi focus of designated mode, and the hotspot name of described second terminal equipment is made amendment definite by described second terminal equipment to the WiFi focus of described second terminal equipment;
Focus checking subelement is used for the appointment handshaking information according to described second terminal equipment, and the described WiFi focus that meets described designated mode is verified;
Checking is used for when the WiFi focus checking that meets described designated mode is passed through by subelement, and described local terminal terminal equipment is set up data by the described WiFi focus that meets described designated mode with described second terminal equipment and is connected.
Preferable, described handshaking information sending module comprises:
Carry transmitting element, be used for when described specified file during less than preset value, described local terminal terminal equipment is carried at described specified file in the described appointment handshaking information and sends.
Preferable, described device also comprises:
The instruction triggers module is used for the local terminal terminal equipment and detects allocate event to described specified file, triggers the described data transfer instruction that is used to transmit specified file.
Need to prove: the data transmission device that the foregoing description provides is when transfer of data, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the internal structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, data transmission device that the foregoing description provides and data transmission method embodiment belong to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
The embodiment of the invention also provides a kind of portable terminal, and described portable terminal comprises:
Display screen;
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and wherein, described one or more modules have following function:
Reception is used to transmit the data transfer instruction of specified file;
Detect sound status, and generate the appointment handshaking information according to described sound status;
Send described appointment handshaking information according to described specified file, make described second terminal equipment set up data according to described appointment handshaking information and be connected with the local terminal terminal equipment;
Be connected with data between described second terminal equipment by described local terminal terminal equipment, send described specified file to described second terminal equipment.
Preferable, detect the sound status of described first terminal equipment, and, comprising according to described sound status generation appointment handshaking information:
Whether the sound status that detects described first terminal equipment is in mute state;
When the sound status of described first terminal equipment is not in mute state, generate first and specify handshaking information, the described first appointment handshaking information is the audio frequency of assigned frequency;
When the sound status of described first terminal equipment is in mute state,
Generate second and specify handshaking information, the described second appointment handshaking information is the information beyond the audio format.
Preferable, the described second appointment handshaking information is 2 D code information, ultrasound information or near field communication (NFC) NFC information.
Preferable, described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment and described first terminal equipment set up data according to described appointment handshaking information and is connected and comprises:
Described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment return the appointment handshaking information of described second terminal equipment according to described appointment handshaking information;
When receiving the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected.
Preferable, when receiving the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected, and comprising:
When the appointment handshaking information of described first terminal equipment is carried the first given transmission mode, when the appointment handshaking information of described second terminal equipment is carried the second given transmission mode, described first terminal equipment search hotspot name meets the WiFi focus of designated mode, and the hotspot name of described second terminal equipment is made amendment definite by described second terminal equipment to the WiFi focus of described second terminal equipment;
According to the appointment handshaking information of described second terminal equipment, the described WiFi focus that meets described designated mode is verified;
When the WiFi focus checking that meets described designated mode was passed through, described first terminal equipment was set up data by the described WiFi focus that meets described designated mode with described second terminal equipment and is connected.
Preferable, described first terminal equipment sends described appointment handshaking information according to described specified file, comprising:
When described specified file during less than preset value, described first terminal equipment is carried at described specified file in the described appointment handshaking information and sends.
Preferable, first terminal equipment receives and is used to transmit before the data transfer instruction of specified file, and described method comprises:
First terminal equipment detects the allocate event to described specified file, triggers the described data transfer instruction that is used to transmit specified file.
The all or part of step that one of ordinary skill in the art will appreciate that realization the foregoing description can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1. a data transmission method is characterized in that, described method comprises:
First terminal equipment receives the data transfer instruction that is used to transmit specified file;
Detect the sound status of described first terminal equipment, and generate the appointment handshaking information according to described sound status;
Described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with described first terminal equipment according to described appointment handshaking information and is connected;
Be connected with data between described second terminal equipment by described first terminal equipment, send described specified file to described second terminal equipment.
2. method according to claim 1 is characterized in that, detects the sound status of described first terminal equipment, and generates the appointment handshaking information according to described sound status, comprising:
Whether the sound status that detects described first terminal equipment is in mute state;
When the sound status of described first terminal equipment is not in mute state, generate first and specify handshaking information, the described first appointment handshaking information is the audio frequency of assigned frequency;
When the sound status of described first terminal equipment is in mute state, generate second and specify handshaking information, described second to specify handshaking information be information beyond the audio format.
3. method according to claim 2 is characterized in that, the described second appointment handshaking information is 2 D code information, ultrasound information or near field communication (NFC) NFC information.
4. method according to claim 1, it is characterized in that, described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with described first terminal equipment according to described appointment handshaking information and is connected, and comprising:
Described first terminal equipment sends described appointment handshaking information according to described specified file, makes described second terminal equipment return the appointment handshaking information of described second terminal equipment according to described appointment handshaking information;
When receiving the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected.
5. method according to claim 4, it is characterized in that, when receiving the appointment handshaking information of described second terminal equipment, described first terminal equipment is set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and is connected, and comprising:
When the appointment handshaking information of described first terminal equipment is carried the first given transmission mode, when the appointment handshaking information of described second terminal equipment is carried the second given transmission mode, described first terminal equipment search hotspot name meets the WiFi focus of designated mode, and the hotspot name of described second terminal equipment is made amendment definite by described second terminal equipment to the WiFi focus of described second terminal equipment;
According to the appointment handshaking information of described second terminal equipment, the described WiFi focus that meets described designated mode is verified;
When the WiFi focus checking that meets described designated mode was passed through, described first terminal equipment was set up data by the described WiFi focus that meets described designated mode with described second terminal equipment and is connected.
6. method according to claim 1 is characterized in that, described first terminal equipment sends described appointment handshaking information according to described specified file and comprises:
When described specified file during less than preset value, described first terminal equipment is carried at described specified file in the described appointment handshaking information and sends.
7. according to each described method of claim 1-6, it is characterized in that first terminal equipment receives and is used to transmit before the data transfer instruction of specified file, described method comprises:
First terminal equipment detects the allocate event to described specified file, triggers the described data transfer instruction that is used to transmit specified file.
8. a data transmission device is characterized in that, described device comprises:
The command reception module is used to receive the data transfer instruction that is used to transmit specified file;
The handshaking information generation module is used to detect sound status, and generates the appointment handshaking information according to described sound status;
The handshaking information sending module is used for sending described appointment handshaking information according to described specified file, makes described second terminal equipment set up data with the local terminal terminal equipment according to described appointment handshaking information and is connected;
Sending module is used for being connected with data between described second terminal equipment by described local terminal terminal equipment, sends described specified file to described second terminal equipment.
9. device according to claim 8 is characterized in that, described handshaking information generation module comprises:
State detection unit is used to detect sound status and whether is in mute state;
First generation unit is used for when the sound status of described local terminal terminal equipment is not in mute state, generates first and specifies handshaking information, and the described first appointment handshaking information is the audio frequency of assigned frequency;
Second generation unit is used for when the sound status of described local terminal terminal equipment is in mute state, generates second and specifies handshaking information, and the described second appointment handshaking information is the information beyond the audio format.
10. device according to claim 9 is characterized in that, the described second appointment handshaking information is 2 D code information, ultrasound information or near field communication (NFC) NFC information.
11. device according to claim 10 is characterized in that, described handshaking information sending module comprises:
The handshaking information transmitting element is used for sending described appointment handshaking information according to described specified file, makes described second terminal equipment return the appointment handshaking information of described second terminal equipment according to described appointment handshaking information;
Connect and set up the unit, be used for when receiving the appointment handshaking information of described second terminal equipment, set up data according to the appointment handshaking information of described second terminal equipment with described second terminal equipment and be connected.
12. device according to claim 11 is characterized in that, described connection is set up the unit and is comprised:
Focus search subelement, be used for carrying the first given transmission mode when the appointment handshaking information of described local terminal terminal equipment, when the appointment handshaking information of described second terminal equipment is carried the second given transmission mode, described local terminal terminal equipment search hotspot name meets the WiFi focus of designated mode, and the hotspot name of described second terminal equipment is made amendment definite by described second terminal equipment to the WiFi focus of described second terminal equipment;
Focus checking subelement is used for the appointment handshaking information according to described second terminal equipment, and the described WiFi focus that meets described designated mode is verified;
Checking is used for when the WiFi focus checking that meets described designated mode is passed through by subelement, and described local terminal terminal equipment is set up data by the described WiFi focus that meets described designated mode with described second terminal equipment and is connected.
13. device according to claim 8 is characterized in that, described handshaking information sending module comprises:
Carry transmitting element, be used for when described specified file during less than preset value, described local terminal terminal equipment is carried at described specified file in the described appointment handshaking information and sends.
14. each described device is characterized in that according to Claim 8-13,
Described device also comprises:
The instruction triggers module is used for the local terminal terminal equipment and detects allocate event to described specified file, triggers the described data transfer instruction that is used to transmit specified file.
15. a portable terminal is characterized in that, described portable terminal comprises:
Display screen;
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and wherein, described one or more modules have following function:
Reception is used to transmit the data transfer instruction of specified file;
Detect sound status, and generate the appointment handshaking information according to described sound status;
Send described appointment handshaking information according to described specified file, make described second terminal equipment set up data according to described appointment handshaking information and be connected with the local terminal terminal equipment;
Be connected with data between described second terminal equipment by described local terminal terminal equipment, send described specified file to described second terminal equipment.
CN201310119914.5A 2013-04-08 2013-04-08 Data transmission method, device and mobile terminal Active CN103220822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310119914.5A CN103220822B (en) 2013-04-08 2013-04-08 Data transmission method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310119914.5A CN103220822B (en) 2013-04-08 2013-04-08 Data transmission method, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN103220822A true CN103220822A (en) 2013-07-24
CN103220822B CN103220822B (en) 2016-03-02

Family

ID=48818117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310119914.5A Active CN103220822B (en) 2013-04-08 2013-04-08 Data transmission method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN103220822B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402275A (en) * 2013-07-26 2013-11-20 北京小米科技有限责任公司 Method, terminal and system of sharing WiFi (Wireless Fidelity) link information
CN103442009A (en) * 2013-08-30 2013-12-11 苏州跨界软件科技有限公司 File transmission method based on NFC
CN103528590A (en) * 2013-10-16 2014-01-22 深圳市凯立德科技股份有限公司 Method for supplying network to navigation equipment, as well as navigation equipment
CN103746975A (en) * 2013-12-26 2014-04-23 小米科技有限责任公司 Method of data transmission, device and mobile terminal
CN104158597A (en) * 2014-07-23 2014-11-19 深圳市揽胜科技有限公司 Method and system for configuring WIFI network product to be connected to router
CN104378807A (en) * 2013-08-15 2015-02-25 联想(北京)有限公司 Method for rapidly establishing connection and electronic devices
CN105188024A (en) * 2015-10-29 2015-12-23 小米科技有限责任公司 Method, apparatus and system for accessing network
US9258834B2 (en) 2013-09-05 2016-02-09 Spreadtrum Communications (Shanghai) Co., Ltd. Method of mobile terminal internal communications
CN107249023A (en) * 2017-05-27 2017-10-13 维沃移动通信有限公司 The processing method and processing device that file is sent
CN107659968A (en) * 2017-10-13 2018-02-02 惠州Tcl移动通信有限公司 Mobile terminal and its data transmission method and storage medium
CN108880696A (en) * 2017-05-12 2018-11-23 中兴通讯股份有限公司 Frequency configuration handshake method and system, terminal and computer readable storage medium
WO2020044084A1 (en) * 2018-08-27 2020-03-05 优视科技新加坡有限公司 Near-field data migration method and apparatus thereof
CN113993224A (en) * 2021-10-25 2022-01-28 无锡小天鹅电器有限公司 Communication method of household appliance and household appliance

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488391B (en) * 2016-09-14 2019-10-25 Oppo广东移动通信有限公司 A kind of data migration method and terminal device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100257239A1 (en) * 2009-04-02 2010-10-07 Qualcomm Incorporated Method and apparatus for establishing a social network through file transfers
CN102315864A (en) * 2011-09-07 2012-01-11 百度在线网络技术(北京)有限公司 Method of point-to-point data transmission for mobile device and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100257239A1 (en) * 2009-04-02 2010-10-07 Qualcomm Incorporated Method and apparatus for establishing a social network through file transfers
CN102315864A (en) * 2011-09-07 2012-01-11 百度在线网络技术(北京)有限公司 Method of point-to-point data transmission for mobile device and device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402275A (en) * 2013-07-26 2013-11-20 北京小米科技有限责任公司 Method, terminal and system of sharing WiFi (Wireless Fidelity) link information
CN104378807B (en) * 2013-08-15 2018-04-27 联想(北京)有限公司 A kind of quick method and electronic equipment for establishing connection
CN104378807A (en) * 2013-08-15 2015-02-25 联想(北京)有限公司 Method for rapidly establishing connection and electronic devices
CN103442009A (en) * 2013-08-30 2013-12-11 苏州跨界软件科技有限公司 File transmission method based on NFC
US9258834B2 (en) 2013-09-05 2016-02-09 Spreadtrum Communications (Shanghai) Co., Ltd. Method of mobile terminal internal communications
CN103528590A (en) * 2013-10-16 2014-01-22 深圳市凯立德科技股份有限公司 Method for supplying network to navigation equipment, as well as navigation equipment
CN103746975A (en) * 2013-12-26 2014-04-23 小米科技有限责任公司 Method of data transmission, device and mobile terminal
CN104158597B (en) * 2014-07-23 2016-07-06 深圳市揽胜科技有限公司 A kind of WIFI network product that configures is connected to the method and system of router
CN104158597A (en) * 2014-07-23 2014-11-19 深圳市揽胜科技有限公司 Method and system for configuring WIFI network product to be connected to router
CN105188024A (en) * 2015-10-29 2015-12-23 小米科技有限责任公司 Method, apparatus and system for accessing network
CN105188024B (en) * 2015-10-29 2019-06-14 小米科技有限责任公司 Access the method, apparatus and system of network
CN108880696A (en) * 2017-05-12 2018-11-23 中兴通讯股份有限公司 Frequency configuration handshake method and system, terminal and computer readable storage medium
CN108880696B (en) * 2017-05-12 2022-04-15 中兴通讯股份有限公司 Frequency configuration handshaking method and system, terminal and computer readable storage medium
CN107249023A (en) * 2017-05-27 2017-10-13 维沃移动通信有限公司 The processing method and processing device that file is sent
CN107659968A (en) * 2017-10-13 2018-02-02 惠州Tcl移动通信有限公司 Mobile terminal and its data transmission method and storage medium
WO2019072255A1 (en) * 2017-10-13 2019-04-18 捷开通讯(深圳)有限公司 Mobile terminal and data transmission method therefor, and storage medium
WO2020044084A1 (en) * 2018-08-27 2020-03-05 优视科技新加坡有限公司 Near-field data migration method and apparatus thereof
CN113993224A (en) * 2021-10-25 2022-01-28 无锡小天鹅电器有限公司 Communication method of household appliance and household appliance

Also Published As

Publication number Publication date
CN103220822B (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN103220822A (en) Data transmission method, data transmission device and mobile terminal
TWI512489B (en) Multi-screen interactive method, center equipment, terminal equipment and systems
JP2015500608A (en) Method for transmitting data between terminals and terminal
WO2019134306A1 (en) Message processing method, device, terminal apparatus, and readable storage medium
EP2941058B1 (en) Near field communication method and device
CN103402275A (en) Method, terminal and system of sharing WiFi (Wireless Fidelity) link information
US10887745B2 (en) Method and device for sharing file between different terminals
CN103813473A (en) Communication method, terminal and system
CN104980215A (en) System and method for achieving WiFi configuration of intelligent equipment based on optical signal transmission
CN104584490A (en) Data transmitting method and device
CN104462033A (en) Method and device for realizing editing operation among devices
CN104202714A (en) Mobile terminal near field communication method and system for heterogeneous operating system
CN114390501A (en) Data transmission method and electronic equipment
CN104410963A (en) WiFi (wireless fidelity) connection method, WiFi agency and system
CN104955168A (en) Audio data transmitting method, receiving method and device
CN101827196A (en) Video communication method, system and device
CN104093049A (en) Multimedia playing control method and system
CN104010086B (en) The processing method of call-information and device, terminal installation between terminal
CN102882565A (en) Data processing and transmitting method and associated equipment
CN104768046A (en) Data transmission method and remote controller
CN104954078A (en) Sound wave communication based control and response method and sound wave communication based control and response device
CN101808160B (en) File processing method applied on mobile terminal and mobile terminal
CN104754514A (en) File push method and device and file receiving method and device
US20160100021A1 (en) Information processing device, destination information updating method, and record medium
WO2016107013A1 (en) Transmission processing and remote processing method and apparatus and computer storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Xiaomi Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant