Summary of the invention
The embodiment of the present invention provides data manipulation method and mobile terminal, conveniently mobile terminal is carried out to Function Extension.
The embodiment of the present invention provides a kind of data transmission method for uplink, comprising:
Mobile terminal receives the operational order for data; Described mobile terminal, according to described operational order, judges whether self can carry out the operation that described operational order is corresponding; If can not carry out, described mobile terminal is determined the device that can carry out described operation; Described mobile terminal is connected the information of described operational order and described data is sent to described device by radio communication, so that described device is carried out described operation according to the information pointer of described operational order to described data.
Preferably, described mobile terminal is determined the device that can carry out described operation, specifically comprises:
Search and described mobile terminal have the device of the same wireless communication technology, and in the described device searching, select to carry out the device of described operation by default condition, describedly send to described device specifically to comprise the information of described operational order and described data: the device that can carry out described operation that the information of described operational order and described data is sent to described selection by described wireless communication technology.
Preferably, if there are at least two devices can carry out described operation in the described device searching, the described definite device that can carry out described operation also comprises: the user interface of selecting the device of carrying out described operation in described at least two devices is provided; Receive from described user interface the device information of the described operation of execution that user selects; Describedly send to described device specifically to comprise the information of described operational order and described data: will be described in the information of described operational order and described data to send to the device corresponding to device information of the described operation of execution that the user who receives from described user interface selects by wireless communication technology.
Preferably, described mobile terminal is connected the information of described operational order and described data is sent to described device by radio communication, specifically comprises: described mobile terminal sends with described device and sets up the request of radio communication establishment of connection; Described mobile terminal receives the connection that described device returns and sets up information, and the information of described operational order and described data are connected and sent to device by the radio communication of setting up; Described radio communication connection comprises one or more in following communication connection: Bluetooth communication connects, Wireless Fidelity Wi-Fi communicates to connect, wireless near field communication NFC connects and is connected with infrared communication.
Preferably, described operational order is following arbitrary instruction: to the print command of file, and the instruction that the picture of at least one form is shown, the instruction that the audio or video of at least one form is play.
The embodiment of the present invention also provides a kind of mobile terminal, comprising:
Command reception unit, for receiving the operational order for data; Judging unit, for according to described operational order, judges whether described mobile terminal can carry out the operation that described operational order is corresponding; Device determining unit, can not carry out described operation if be judged as described mobile terminal for described judging unit, determines the device that can carry out described operation; Instruction sending unit, sends to described device for connecting by radio communication by the information of described operational order and described data, so that described device is carried out described operation according to the information of described operational order and for described data.
Preferably, described device determining unit specifically comprises:
Search unit, for searching for the device with described mobile terminal with same communication technology;
Selected cell, selects to carry out the device of described operation at the described device that searches for the condition by default;
Described instruction sending unit, for the device that can carry out described operation that sends to described selected cell to select the information of described operational order and described data.
Preferably, described device determining unit also comprises:
Interface provides unit, for having at least two devices can carry out described operation when the device searching, provides the user interface of selecting the device of carrying out described operation in described at least two devices;
Receiving element, for providing user interface that unit provides to receive the device information of the described operation of execution that user selects from described interface;
Described instruction sending unit, also for sending to by the information of described operational order and described data device corresponding to device information receiving from described user interface.
Preferably, described instruction sending unit specifically comprises:
Request transmitting unit, sets up the request of radio communication establishment of connection for sending with described device; Described radio communication connects one or more that comprise following communication connection: Bluetooth communication connects, Wireless Fidelity Wi-Fi communicates to connect, wireless near field communication NFC connects and is connected with infrared communication;
Return to unit, set up information for receiving the connection that described device returns;
Transmitting element, for connecting the information of described operational order and described data to send to described device by the radio communication of setting up.
Preferably, the operational order that described command reception unit receives is following arbitrary instruction: to the print command of file, and the instruction that the picture of at least one form is shown, the instruction that the audio or video of at least one form is play.
In the data transmission method for uplink of the present embodiment, when mobile terminal receives the operational order for data, if mobile terminal can not be carried out the operation that this operational order is corresponding, determine the device that can carry out this operation; And send to described device to carry out the data of the information of operational order and needs operation.Like this in the time that mobile terminal does not have a certain function or do not have enough resources to carry out a certain function, information that can transmit operation instruction carries out corresponding operating to the data that store in mobile terminal to the device that can carry out this function, and can expand by the improvement of the hardware to mobile terminal and/or software the function of mobile terminal, facilitate mobile terminal has been carried out to Function Extension.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of data transmission method for uplink, mainly such as mobile phone, panel computer or PDA etc. send the data to other device by mobile terminal, device by other is processed the data that store on mobile terminal, the method of the present embodiment is the performed method of mobile terminal, flow chart as shown in Figure 1, comprising:
Step 101, mobile terminal receives the operational order for data.
Here operational order refers to that the data to storing in mobile terminal carry out the indication information of certain application operating, such as the print command to file, or the instruction that the picture of at least one form is shown, or the instruction that the audio or video of at least one form is play etc.And user can, by mobile terminal is operated, initiate the operation to data, thus the data transmission flow of triggering the present embodiment.
Step 102, mobile terminal is according to operational order, judge whether this mobile terminal can carry out the operation that this operational order is corresponding, wherein whether can carry out this operational order respective operations comprises: whether mobile terminal has the operating function that this operational order is corresponding, or whether mobile terminal is current have enough resources to carry out this operation, or whether the current load of mobile terminal exceed certain threshold value etc., if can not carry out, perform step 103; If can carry out, mobile terminal carries out certain operation according to this operational order to corresponding data.
Step 103, mobile terminal is determined can carry out the device of described operation, and the device that wherein can carry out described operation refers to have that the device of this operating function is current has enough resources to carry out described operation.
When mobile terminal is receiving after operational order, can first judge whether this mobile terminal can carry out the operation that this operational order is corresponding, if mobile terminal is operating function corresponding to this operational order not, such as mobile terminal does not show the function of fig format picture, or mobile terminal is not play the function of mp3 format video etc., or mobile terminal is current does not have enough resources to carry out this operation, or the current load of mobile terminal is while exceeding certain threshold value, carry out corresponding operation by another device outside this mobile terminal, therefore which device mobile terminal need to first be determined by and carry out.
Particularly, mobile terminal can be determined the device with aforesaid operations function, can active searching and this mobile terminal there is the device of same communication technology (such as Bluetooth communication etc.), and in the device searching, select to carry out the device of aforesaid operations by default condition.Default condition can be such as the stability of the speed of transfer of data, connection or other, even that certain radio communication connection or certain table apparatus are preferential, default condition can be automatically to adjust or provide the approach of artificial adjustment according to user habit, also can in the time that mobile phone dispatches from the factory, just be fixed.Further, can carry out described operation if there are at least two devices in the device searching, mobile terminal can also provide the user interface of selecting to carry out the device of described operation in these at least two devices to user, and receive from user interface the device information of the described operation of execution that user selects, such as information such as the marks of device.
Step 104, mobile terminal is by the information of operational order and need the data of operation to send to device definite in step 103, carry out corresponding operation to make this device according to the information of operational order and for the data of needs operation, wherein, the information of operational order is the information that is used to refer to the data execution corresponding operating being operated for needs by this device, can obtain according to the operational order receiving in above-mentioned steps 101, and the device of carrying out described operation can be the equipment that sound equipment, computer, projecting apparatus, digital photo frame or printer etc. are carried out certain application function.
The device that can carry out described operation that mobile terminal need to arrive such as direct search according to device definite in step 103, or device corresponding to the device information of the described operation of execution receiving from user interface etc., first with definite device is set up radio communication and is connected, and then the data of the information of operational order and needs operation are connected and sent to described device by the radio communication of setting up.
Above-mentioned radio communication connects one or more that can comprise following communication connection: Bluetooth communication connects, Wireless Fidelity (wireless fidelity, Wi-Fi) communication connection, wireless near field communication (Near Field Communication, NFC) connection and infrared communication connection etc.Particularly, mobile terminal can send with described device and set up the request of radio communication establishment of connection, set up information such as agreeing to the information such as connection when receiving the connection that this device returns, between mobile terminal and described device, set up radio communication and be connected thereby realized.It should be noted that, if can set up being connected of the multiple communication technology between mobile terminal and device, be connected with Bluetooth communication such as carry out Wi-Fi communication connection simultaneously, like this mobile terminal with device communication process in, can adopt the different communication technologys to communicate, send such as adopting Bluetooth communication to connect in the time that mobile terminal sends information to described device, in the time receiving the information of described device transmission, can adopt Wi-Fi communication link to fetch reception.Certainly can be also first to utilize NFC to set up NFC between being connected to mobile terminal and installing to be connected specifically setting up in the realization that radio communication connects, connect by NFC again, set up that Wi-Fi communication connection, bluetooth connect and/or other the radio communication such as infrared connection connects.Specific to reality scene, in the time that user need to print the data on the mobile terminal can NFC connecting, the instruction that needs can be printed is given to mobile terminal, then mobile terminal near the printer can NFC connecting, making both set up NFC connects, connect by NFC again, between printer and mobile terminal, set up Wi-Fi communication connection, and utilize Wi-Fi communication connection transmission to need the data of printing to print to printer.
When described device receives the information of operational order and needs after the data of operation, operation according to the information instruction of operational order operates the data of needs operation, such as the printing to file, or the demonstration of picture to certain form, or the broadcasting of video to certain form.
Visible, in the data transmission method for uplink of the present embodiment, when mobile terminal receives the operational order for data, if mobile terminal can not be carried out the operation that this operational order is corresponding, determine the device that can carry out this operation; And send to described device to carry out described operation the data of the information of operational order and needs operation.Like this in the time that mobile terminal does not have a certain function or do not have enough resources to carry out a certain function, information that can transmit operation instruction carries out corresponding operating to the data that store in mobile terminal to the device that can carry out this function, and can expand by the improvement of the hardware to mobile terminal and/or software the function of mobile terminal, facilitate mobile terminal has been carried out to Function Extension.
The embodiment of the present invention also provides a kind of mobile terminal, can be mobile phone, panel computer or PDA etc., and structural representation as shown in Figure 2, comprising:
Command reception unit 10, for receiving the operational order for data;
Judging unit 11, for the operational order receiving according to described command reception unit 10, judges whether described mobile terminal can carry out the operation that described operational order is corresponding;
Device determining unit 12, can not carry out if be judged as mobile terminal for described judging unit 11 operation corresponding to data manipulation instruction that described command reception unit 10 receives, and determines the device that can carry out described operation;
Instruction sending unit 13, for connecting the information of described operational order and described data sent to the definite device of described device determining unit 12 by radio communication, so that described device is carried out described operation according to the information of described operational order and for described data.
In the mobile terminal of the present embodiment, command reception unit 10 receives after the operational order of data, if when judging unit 11 judges can not the executable operations instruction corresponding operation of this mobile terminal, understand first and determine by device determining unit 12 device that can carry out this operation, and send to described device to carry out described operation the data of operation instruction information and needs operation by instruction sending unit 13.Like this in the time that mobile terminal does not have a certain function or do not have enough resources to carry out a certain function, information that can transmit operation instruction carries out corresponding operating to the data that store in mobile terminal to the device that can carry out this function, and can expand by the improvement of the hardware to mobile terminal and/or software the function of mobile terminal, facilitate mobile terminal has been carried out to Function Extension.
Reference as shown in Figure 3, in a specific embodiment, mobile terminal is except comprising structure as shown in Figure 2, device determining unit 12 wherein can provide unit 122 and receiving element 123 to realize by search unit 120, selected cell 121, interface, and instruction sending unit 13 can be by request transmitting unit 130, return to unit 131 and transmitting element 132 is realized, particularly:
Search unit 120, for searching for the device with described mobile terminal with same communication technology;
Selected cell 121, the device searching at described search unit 120 for the condition by default selects to carry out the device of described operation;
Interface provides unit 122, for selecting the device searching to have at least two devices can carry out described operation when described selected cell 121, provides the user interface of selecting the device of carrying out described operation in described at least two devices;
Receiving element 123, receives for the user interface that provides unit 122 to provide from described interface the device information of the described operation of execution that user selects;
Request transmitting unit 130, sets up for sending with described device the device that the request of radio communication establishment of connection is selected to the selected cell 121 of device determining unit 12, or device corresponding to device information of receiving to receiving element 123; Described radio communication connects one or more that comprise following communication connection: Bluetooth communication connection, Wireless Fidelity Wi-Fi communication connection, wireless near field communication NFC connection and infrared communication connection etc.;
Return to unit 131, set up information for receiving the connection that described device returns, such as the information of agreeing to connect;
Transmitting element 132, for connecting the data of the information of described operational order and needs operation to send to device by the radio communication of setting up.
In the mobile terminal of the present embodiment, when command reception unit 10 receives after data manipulation instruction, if judging unit 11 judges mobile terminal and can not carry out the operation that this operational order is corresponding, the search unit 120 installing in determining unit 12 just starts to search for the device with this mobile terminal with same communication technology, and selected to carry out the device of described operation by selected cell 121, and instruction sending unit 13 just can be by the information of operational order and the device that can carry out described operation that needs the data that operate send to selected cell 121 to select; In another case, if the device that selected cell 121 is selected comprises at least two, can provide unit 122 that user interface is provided by interface, receiving element 123, after user interface receives the device information of carrying out described operation, sends to by the data of the information of operational order and needs operation device corresponding to device information that can carry out described operation receiving from user interface by instruction sending unit 13.
And in the mobile terminal of the present embodiment, specifically first send the request of radio communication establishment of connection by request transmitting unit 130, receive the connection that instruction executing device returns and set up information when returning to unit 131, the radio communication that can realize between mobile terminal and described device is connected, and finally by transmitting element 132, the information of operational order is connected and is sent to said apparatus by the radio communication of setting up with the data that need operation.
It should be noted that, between the unit in mobile terminal, the method described in embodiment is carried out data processing according to the method described above, does not repeat at this.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer-readable recording medium, and storage medium can comprise: read-only memory (ROM), random access memory (RAM), disk or CD etc.
The data transmission method for uplink above embodiment of the present invention being provided and mobile terminal, be described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.