Summary of the invention
The embodiment of the present invention provide a kind of handheld terminal and with computer method for information interaction between and system, solve the problem of prior art, make at computer end install driver, need to realize the communication between handheld terminal and computer.
For achieving the above object, following technical scheme is embodiments provided:
An information interacting method for handheld terminal and computer, comprising:
Gather the essential information of handheld terminal, described essential information comprises: at least one in the information of the version number of the operating system of described handheld terminal, brand, type, built-in model, date issued, international mobile subscriber identity IMSI, mounted software, the information of file that stores;
Described essential information be converted to the exchange data of default communications protocol format and be supplied to computer, described default communications protocol format creates based on the operating system of computer end;
Receiving the feedback data that computer sends for described exchange data, when the form of described feedback data is for presetting communications protocol format, after described feedback data is converted to the data message corresponding with the data layout of handheld terminal, reading described data message; When the form of described feedback data is the data layout of handheld terminal, read the information of described feedback data.
Preferably, the form of described default communication protocol is: comprise under root node Root, the child node Software of the child node System of instruction hand terminal system information, the information of the mounted software of instruction handheld terminal and the child node BackupInfo for the information of preserving the file that instruction handheld terminal has stored, wherein, comprise under described System child node:
The child node Version of the version number of instruction handheld terminal operating system;
The child node Brand of the brand of instruction handheld terminal;
The child node Type of the type of instruction handheld terminal;
The child node Intype of the built-in model of instruction handheld terminal;
The child node Releasedate of the date issued of instruction handheld terminal;
The child node IMSI of the IMSI number of instruction handheld terminal;
Comprise under described Software child node, the child node Appinfo of mounted software information in instruction handheld terminal, comprises under described Appinfo child node:
The child node Name of mounted dbase in instruction handheld terminal;
The child node Size of mounted software size in instruction handheld terminal;
The child node Version of mounted software version number in instruction handheld terminal;
Comprise under described BackupInfo child node, the child node Fileinfo of the fileinfo stored in instruction handheld terminal, under described Fileinfo child node, comprise the child node Name of the file name stored in instruction handheld terminal.
Preferably, described default communication protocol is the file of expandable mark language mode XMLS, and the file of described XMLS adopts UTF-8 form.
Preferably, the method also comprises, at least one store described default communication protocol, exchanging data, feedback data and feedback data carried out in the data message after format conversion.
The embodiment of the invention also discloses the information interaction system of a kind of handheld terminal and computer, comprising:
Handheld terminal and computer;
Data collection unit, for gathering the essential information of described handheld terminal, described essential information comprises: at least one in the information of the version number of the operating system of described handheld terminal, brand, type, built-in model, date issued, international mobile subscriber identity IMSI, mounted software, the information of file that stores;
Format conversion unit, for being changed between the data layout and default communications protocol format of handheld terminal by data layout, described default communications protocol format creates based on the operating system of computer end;
Transmit-Receive Unit, for the data interaction between handheld terminal and computer.
Preferably, this system also comprises storage unit, at least one storing described default communication protocol, exchange data, feedback data and feedback data carried out in the data message after format conversion.
Preferably, described Transmit-Receive Unit is data line.
The embodiment of the invention also discloses a kind of handheld terminal, comprising:
Data collection unit, for gathering the essential information of described handheld terminal, described essential information comprises: at least one in the information of the version number of the operating system of described handheld terminal, brand, type, built-in model, date issued, international mobile subscriber identity IMSI, mounted software, the information of file that stores;
Format conversion unit, for being changed between the data layout and default communications protocol format of handheld terminal by data layout, described default communications protocol format creates based on the operating system of computer end;
Data transceiver interface, for carrying out data interaction with external device.
Preferably, this handheld terminal also comprises storage unit, at least one storing described default communication protocol, exchange data, feedback data and feedback data carried out in the data message after format conversion.
Preferably, described handheld terminal is mobile phone, palm PC PDA.
As can be seen from above-mentioned technical scheme, by creating the default communication protocol based on the operating system of computer in the embodiment of the present invention, namely computer can identify the form of this default communication protocol, and after the essential information of handheld terminal being converted to the exchange data of this default communications protocol format, reoffer to computer, the data layout received due to connecting computer is that it can directly read, therefore do not need the driver corresponding with handheld terminal is installed, the identification that BOT holds terminal can be realized, the format conversion of feedback data computer end sent for the essential information of handheld terminal is afterwards the data layout of handheld terminal, make handheld terminal also can read the feedack of computer end, and then the communication realized between handheld terminal and computer.
Embodiment
The embodiment of the invention discloses a kind of handheld terminal and with computer method for information interaction between and system, by creating the default communication protocol based on the operating system of computer end, computer end is enable to identify the data message of this default communications protocol format, therefore by interactive information is changed between the data layout of default communication protocol data form and handheld terminal, and then the communication realized between handheld terminal and computer, and in computer end, the driver corresponding with handheld terminal need be installed.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described further, it should be noted that, in this instructions, each embodiment adopts the mode of going forward one by one to describe, what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Embodiment one
The process flow diagram of the information interacting method of handheld terminal disclosed in the present embodiment and computer as shown in Figure 1, comprises the following steps:
Step S101: gather the essential information of handheld terminal, described essential information comprises: at least one in the information of the version number of the operating system of described handheld terminal, brand, type, built-in model, date issued, international mobile subscriber identity IMSI, mounted software, the information of file that stores;
It should be noted that, realized the collection of the essential information to handheld terminal by the api interface of handheld terminal in the present embodiment, but content disclosed in the present embodiment is included but not limited to the acquisition mode of handheld terminal essential information, as the information of self is initiatively sent to the modes such as information collecting device by handheld terminal, and, the equipment gathering handheld terminal essential information in the present embodiment can be arranged at described handheld terminal inside, also can be the external unit existed independent of handheld terminal, when needs information acquisition, this information collecting device and terminal are established a connection, the foundation of this annexation is by the mode of wired connection, as the connection of data line, also by the mode of wireless connections, as bluetooth, infrared ray etc.
Step S102: described essential information be converted to the exchange data of default communications protocol format and be supplied to computer, described default communications protocol format creates based on the operating system of computer;
Due to the operating system relatively unification of the existing computer commercially used, be mostly windows operating system, therefore based on the communication protocol that windows operating system creates, most of computer all can identify, namely the exchange data after changing according to described default communications protocol format, can directly be read by computer, therefore computer need not install multiple driver to adapt to the different operating system of handheld terminal again.Certainly, the operating system of computer also has the operating systems etc. such as Mac, Unix, Linux, and therefore, the communication protocol in the present embodiment also can create based on other computer operating system, to adapt to more computer.
In order to adapt to the operating system of more computers, the present embodiment can create the communication protocol of multiple format, in actual use, can adopt and the market share of several communication protocol according to computer operating system is sorted, computer the essential information of described handheld terminal is first converted to the form of the communication protocol coming foremost, communicates with computer afterwards, if can not identify, computer is then converted to other communications protocol format again, until can identify handheld terminal; Also can adopt the information of the operating system first gathering computer, select corresponding communication protocol according to the operating system of this computer afterwards, the essential information of described handheld terminal is converted to corresponding communications protocol format, thus realizes the identification that BOT holds terminal.Certainly, also have other implementation, specifically how to select to be determined according to actual conditions by designer, repeat no more here.
Step S103: receive the feedback data that computer sends for described exchange data, when the form of described feedback data is for presetting communications protocol format, after described feedback data is converted to the data message corresponding with the data layout of handheld terminal, read described data message; When the form of described feedback data is the data layout of handheld terminal, read the information of described feedback data.
It will be appreciated by those skilled in the art that, equipment for realizing Data Format Transform can be arranged in handheld terminal, also can be arranged in computer, also can be independent of the external unit outside the two, finally how to select to make a concrete analysis of as the case may be, be not described in detail here.
In addition, the method in the present embodiment also can comprise, at least one store described default communication protocol, exchanging data, feedback data and feedback data carried out in the data message after format conversion.These information can be stored on the storage card of handheld terminal, also can arrange different storage mediums respectively and store separately, concrete facilities according to for information acquisition equipment and carry out Data Format Transform equipment concrete setting and determine.After information is stored, for PC use convenient, user generally can use same handheld terminal and computer within a certain period of time, in this case, when communicating with computer with regard to not needing each handheld terminal, all want the information of Resurvey handheld terminal and identical information carried out to the conversion of data layout, just optionally some can be connected by user the information translates data formats that upgrade with last time, decrease the workload of system, also convenient for users to use.
The present embodiment is by creating the default communication protocol based on the operating system of computer, computer is enable to identify the form of this default communication protocol, and after the essential information of handheld terminal being converted to the exchange data of this default communications protocol format, reoffer to computer, the data layout received due to connecting computer is that it can directly read, therefore do not need the driver corresponding with handheld terminal is installed, the identification that BOT holds terminal can be realized, the format conversion of feedback data computer end sent for the essential information of handheld terminal is afterwards the data layout of handheld terminal, make handheld terminal also can read the feedack of computer end, and then the communication achieved between handheld terminal and computer.
Embodiment two
Information interacting method disclosed in the present embodiment between handheld terminal and computer, the form of communication protocol has been described in detail, the communication protocol only created with the windows operating system used based on most of computer in the present embodiment is described, and the communication protocol based on other operating system only need carry out changing according to the feature of operating system.
As shown in Figure 2, described default communication protocol is the file of expandable mark language mode XMLS to the form of the default communication protocol in the present embodiment, and the file of described XMLS adopts UTF-8 form.The concrete form of described default communication protocol is as follows: comprise a root node Root, comprise under Root root node:
The child node System of instruction hand terminal system information;
The child node Software of the information of the mounted software of instruction handheld terminal;
For preserving the child node BackupInfo of the information of the file that instruction handheld terminal has stored;
Wherein, comprise under described System child node:
The child node Version of the version number of instruction handheld terminal operating system;
The child node Brand of the brand of instruction handheld terminal;
The child node Type of the type of instruction handheld terminal;
The child node Intype of the built-in model of instruction handheld terminal;
The child node Releasedate of the date issued of instruction handheld terminal;
The child node IMSI of the IMSI number of instruction handheld terminal;
Comprise under described Software child node, the child node Appinfo of mounted software information in instruction handheld terminal, every money software information is made up of an Appinfo child node, namely installed how many money software in handheld terminal and will produce how many Appinfo child nodes, effect and the naming rule of each child node under described Appinfo child node are as follows:
The child node Name of mounted dbase in instruction handheld terminal;
The child node Size of mounted software size in instruction handheld terminal;
The child node Version of mounted software version number in instruction handheld terminal;
Described BackupInfo child node needs the fileinfo of backup for preserving, as said handheld terminal be mobile phone time, described fileinfo comprises the information such as cell phone address book, information inbox, outbox, draft, often back up a file, the Fileinfo child node of the fileinfo stored in an instruction handheld terminal is created under BackupInfo child node, need to back up how many parts of files and just create how many Fileinfo child nodes, under described Fileinfo child node, comprise the child node Name of the file name stored in instruction handheld terminal.
Embodiment three
Present embodiment discloses the information interaction system of a kind of handheld terminal and computer, the structural drawing of this system as shown in Figure 3, comprises following ingredient:
Handheld terminal 31 and computer 35;
Data collection unit 32, for gathering the essential information of described handheld terminal, described essential information comprises: at least one in the information of the version number of the operating system of described handheld terminal, brand, type, built-in model, date issued, international mobile subscriber identity IMSI, mounted software, the information of file that stores;
Format conversion unit 33, for being changed between the data layout and default communications protocol format of handheld terminal by data layout, described default communications protocol format creates based on the operating system of computer end;
Transmit-Receive Unit 34, for the data interaction between handheld terminal and computer.
Corresponding with embodiment of the method, the system of the present embodiment also can comprise storage unit 36, at least one storing described default communication protocol, exchange data, feedback data and feedback data carried out in the data message after format conversion.
It should be noted that, each functional unit in the present embodiment can be arranged at handheld terminal, also can be arranged at computer end, also can be arranged in the external unit independent of the two, or be arranged at respectively in different equipment.Illustrate course of work when each functional unit of the present embodiment is arranged at diverse location below.
When each functional unit of the present embodiment is arranged on handheld terminal, data collection unit can be connected with the api interface of handheld terminal, the essential information of handheld terminal is gathered by api interface, the essential information collected is sent to the exchange data that format conversion unit is converted to default communications protocol format afterwards, and through Transmit-Receive Unit, described exchange data are supplied to computer, Transmit-Receive Unit in the present embodiment is data line, computer operates after reading described exchange data accordingly, if relevant feedback data need be sent in computer end operating process to handheld terminal, the feedback data that now handheld terminal receives is default communications protocol format, handheld terminal can not directly read, therefore just need, by format conversion unit, this feedback data is converted to the data message corresponding with the data layout of handheld terminal, this data message is read afterwards by handheld terminal.Can store in the memory unit at the various data messages carrying out producing in data exchange process, storage unit now can be the storage card of handheld terminal.
When each functional unit of the present embodiment is arranged in computer, data collection unit can be connected with associated components such as the CPU of computer, when needs communicate with handheld terminal, be connected with the api interface of handheld terminal by data line, after connecting, carry out the collection of handheld terminal essential information, carry out the format conversion etc. of essential information afterwards, in such cases, computer sends to the feedback data form of handheld terminal to be the data layout of handheld terminal, handheld terminal directly can read the information of feedback data, can be stored in computer at some data message carrying out producing in data exchange process, as default communication protocol, the essential information of handheld terminal, other data messages can be stored in the storage card of handheld terminal, as the feedback data of computer.
Each functional unit in the present embodiment is arranged at the situation in external unit and is separately positioned on the situation of different terminals side, its course of work and foregoing description similar, repeat no more here.
It should be noted that, because bluetooth or infrared ray etc. are wirelessly connected on the interference easily by outer signals in data transmission procedure, cause communication quality and transfer efficiency all poor, and the signal in data transmission has the risk be cracked, easily cause the loss of significant data, and bluetooth and infrored equipment generally only have on notebook computer and just have, then there are not this two kinds of equipment in desktop computer, if user uses desktop computer, data transmission cannot be realized, except non-individual buying bluetooth or infrored equipment, bring unnecessary economic loss to user.Therefore, Transmit-Receive Unit in the present embodiment adopts the form of data line, data transmission is carried out by the physical connection of handheld terminal and computer, there is not the problem of signal disturbing, and data line only have connection after could use, safety coefficient improves greatly, and the cost of data line compared with bluetooth or infrored equipment much lower, and most of handheld terminal is all equipped with data line, reduce the economic input of user.
The information interaction system of handheld terminal disclosed in the present embodiment and computer, conversion between the data message being realized the default communications protocol format that the data message of handheld terminal data layout and computer can read by format conversion unit, and then the communication realized between handheld terminal and computer, and in computer end, the driver corresponding with handheld terminal need be installed.
Embodiment four
Present embodiment discloses a kind of handheld terminal, as described in Figure 4, the handheld terminal in the present embodiment can be mobile phone, palm PC PDA or other hand-held mobile terminals to the structural drawing of this handheld terminal, as MP3, MP4, MP5 etc.
The handheld terminal of the present embodiment comprises following functions unit:
Data collection unit 41, for gathering the essential information of described handheld terminal, described essential information comprises: at least one in the information of the version number of the operating system of described handheld terminal, brand, type, built-in model, date issued, international mobile subscriber identity IMSI, mounted software, the information of file that stores;
Format conversion unit 42, for being changed between the data layout and default communications protocol format of handheld terminal by data layout, described default communications protocol format creates based on the operating system of computer end;
Data transceiver interface 43, for carrying out data interaction with external device.
This handheld terminal also comprises storage unit 44, at least one storing described default communication protocol, exchange data, feedback data and feedback data carried out in the data message after format conversion.
The data collection unit of the handheld terminal in the present embodiment is connected with the api interface of handheld terminal, the essential information of handheld terminal is gathered by api interface, format conversion unit is connected with data collection unit, also can be connected with the baseband chip of handheld terminal, the data line afterwards by being connected with data transceiver interface realizes the communication of handheld terminal and computer.The course of work of the present embodiment, as above described in an embodiment, is not described in detail here.
Handheld terminal in the present embodiment, by built-in data collection unit and format conversion unit, and then the conversion between the data message realizing the default communications protocol format that the data message of handheld terminal data layout and computer can read, to realize the communication between handheld terminal and computer, and in computer end, the driver corresponding with handheld terminal need be installed.
It should be noted that, the Elementary Function that between each embodiment of the present invention, title is identical is also identical, and changes progressive embodiment and can combine with above-mentioned multiple related embodiment respectively, but only illustrates on the basis of a upper embodiment when illustrating.
It will be understood by those skilled in the art that and any one in much different technique and technology can be used to represent information, message and signal.Such as, the message mentioned in above-mentioned explanation, information can be expressed as voltage, electric current, electromagnetic wave, magnetic field or magnetic particle, light field or more combination in any.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.