CN103023910B - Data transmission method between mobile device and computing device - Google Patents

Data transmission method between mobile device and computing device Download PDF

Info

Publication number
CN103023910B
CN103023910B CN201210567859.1A CN201210567859A CN103023910B CN 103023910 B CN103023910 B CN 103023910B CN 201210567859 A CN201210567859 A CN 201210567859A CN 103023910 B CN103023910 B CN 103023910B
Authority
CN
China
Prior art keywords
mobile device
computing device
data
server
web page
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.)
Active
Application number
CN201210567859.1A
Other languages
Chinese (zh)
Other versions
CN103023910A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210567859.1A priority Critical patent/CN103023910B/en
Publication of CN103023910A publication Critical patent/CN103023910A/en
Application granted granted Critical
Publication of CN103023910B publication Critical patent/CN103023910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to data processing technique, and in particular to the data transmission method between a kind of mobile device and computing device, the incidence relation between mobile device and computing device is set up at server, and the method includes:Detect that the data transfer to mobile device is triggered;When data transfer triggering is detected, mobile device asks to ask web page contents currently displaying in computing device to the server transmission content;The file request of computing device the reception server, file request are that server is generated according to the content requests of the mobile device for being possessed incidence relation with computing device;Computing device obtains its currently displaying web page contents according to file request;Currently displaying web page contents are sent to server by computing device, so that currently displaying web page contents are transferred to mobile device via server;When mobile device receives the file acquisition message of server transmission, web page contents currently displaying in computing device are obtained from server.

Description

Data transmission method between mobile device and computing device
Technical field
The present invention relates to data processing technique, and in particular to the transmission side data between a kind of mobile device and computing device Method.
Background technology
With the continuous progress of technology, the function of mobile device has been not only limited to connect, has made a phone call and sending and receiving note, Can also realize surfing the Net, listen music, process file and play the functions such as game, such as same small-sized computing device.
As the function of mobile device is more and more various, therefore it is accomplished by being connected with computing device, carries out data transmission.Example Such as, the office document in computing device is transferred in mobile device, it is convenient to check at any time, and for example, by the photograph in mobile device Piece etc. is transferred in computing device, carries out the operation such as image procossing, preservation.
Generally, mobile device can adopt data wire and computing device to be attached, at this point it is possible to mobile device is regarded as A movable storage device in computing device, can make mobile device and computing device realize that data are passed so as to pass through data wire It is defeated.
But, when being attached using said method, the process of data transfer be by mobile device (computing device) The data such as the file of preservation, replicate or move in computing device (mobile device).Therefore in data transfer, it is necessary to find The root of file to be transmitted can just be replicated, namely need to know the store path of this document, and according to the path by Layer finds the root and can just find file, is then replicated or is moved.
In said method, during data transfer, want locating file to be transmitted again, method is very loaded down with trivial details, and perform above-mentioned Process is relatively lost time.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State the data transmission method between a kind of mobile device of problem and computing device.
According to the present invention, there is provided the data transmission method between a kind of mobile device and computing device, the mobile device Incidence relation and computing device between is set up at server, and the method includes:
Detect that the data transfer to mobile device is triggered;
When the data transfer triggering is detected, the mobile device asks to ask to the server transmission content Currently displaying web page contents in the computing device;
The file request of computing device the reception server, the file request are that server foundation is had with the computing device What the content requests of the mobile device of standby incidence relation were generated;
Computing device obtains its currently displaying web page contents according to the file request;
Currently displaying web page contents are sent to server by computing device, with via server described currently displaying Web page contents are transferred to the mobile device;
When the mobile device receives the file acquisition message that the server sends, obtain from the server Currently displaying web page contents in the computing device.
Alternatively, the currently displaying web page contents are constituted using the data of preset form, the file acquisition The storage address of the data comprising the preset form in message;
It is described that web page contents currently displaying in the computing device are obtained from the server, including:
Mobile device obtains the storage address of the data of the preset form from file acquisition message;
Mobile device conducts interviews to the storage address, and the data of the preset form are downloaded from the server.
Alternatively, it is described web page contents currently displaying in the computing device are obtained from the server after, should Method also includes:Mobile device is changed to the data of the preset form, to generate the display number shown for mobile device According to;Mobile device is shown to the video data.
Alternatively, the data transfer triggering includes:Click on the send button of the mobile device or shake the movement Equipment.
Alternatively, the preset form is Json forms, then character string of the data of the preset form for Json forms.
Alternatively, the data of the preset form are made up of the description information of the target selected in the webpage, institute State preset form data include it is following at least one:The title of the target, the storage address of the target, the target The thumbnail of size of data and the target.
Alternatively, the computing device obtains its currently displaying web page contents according to the file request and includes:Calculate Equipment is parsed to currently displaying web page contents, the target selected in detecting the web page contents;Obtain described selected The description information of target;The description information of the selected target is packaged into computing device the data of preset form.
Embodiments in accordance with the present invention, as the incidence relation between mobile device and computing device is set up in server Place, thus detect the data transfer of mobile device is triggered when, mobile device can to server transmission content ask with Web page contents currently displaying in the computing device are asked, then computing device just obtains its currently displaying web page contents simultaneously Server is sent to, so as to mobile device can obtain the currently displaying web page contents from server.The present invention is implemented Example need not be using data wire connection in data transfer, it is only necessary to triggers mobile device and just can obtain in computing device and currently shows The web page contents for showing, therefore data transfer is more convenient, it is easy to operate, time-consuming.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various other advantages and benefit are common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for the purpose for illustrating preferred implementation, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows the data transmission method flow process between according to embodiments of the present invention one mobile device and computing device Figure;
Fig. 2 shows the data transmission method flow process between according to embodiments of the present invention two mobile device and computing device Figure;
Fig. 3 shows that according to embodiments of the present invention two web page contents are obtained and method for packing flow chart;
Fig. 4 shows the data transmission method flow process between according to embodiments of the present invention three mobile device and computing device Figure;
Fig. 5 shows according to embodiments of the present invention three data transmission method schematic diagram;
Fig. 6 shows the schematic diagram of currently displaying web page contents according to embodiments of the present invention three computing device;
Fig. 7 shows the first schematic diagram that content shows according to embodiments of the present invention three mobile device;
Fig. 8 shows second schematic diagram that content shows according to embodiments of the present invention three mobile device;
Fig. 9 shows according to embodiments of the present invention four mobile device structure chart;
Figure 10 shows according to embodiments of the present invention four computing device structure chart;
Figure 11 shows according to embodiments of the present invention five data transmission system structure chart.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
In the embodiment of the present invention, the computing device is that one kind can be run according to program, automatic, high speed processing magnanimity number According to intelligent electronic device, such as desktop computer, notebook computer etc..The mobile device be it is a kind of can be used in movement Computing device, such as mobile phone.
The data transmission method between a kind of mobile device and computing device is embodiments provided, wherein, the shifting Incidence relation between dynamic equipment and computing device is set up at server.
Specifically, server can obtain the device identification of computing device and the terminal data of mobile device.Then determine After mobile device certification passes through, server can build the mapping relations of the device identification and the terminal data, so as to build Found the incidence relation of the computing device and the mobile device.
Wherein, the device identification be used for identify a computing device, e.g., the IP address of computing device, NIC address and MID values etc..Wherein, MID (Mobile Internet Device, mobile internet device) value is the hardware by mobile device Unique eigenvalue for calculating of numbering.
The terminal data is the related data of mobile device, such as the title of mobile device, and the world of mobile device is mobile Device identity (International Mobile Equipment Identity, IMEI), model of mobile device etc., this Outward, if mobile device is mobile phone, corresponding terminal data can also include the phone number of the mobile phone.Wherein, the IMEI Can be with one mobile device of unique mark.
In the embodiment of the present invention, the mapping relations can be stored in related information table, the related information table bag Include:Device identification, International Mobile Equipment Identity code, phone number and connection creation time etc..
Wherein, a kind of exemplary construction of related information table can be:
CREATE TABLE`client`(
`id`INT (10) UNSIGNED NOT NULLAUTO_INCREMENT,
`clientid`VARCHAR (64) NOT NULL DEFAULT " COMMENT ' client ids ',
`mid`VARCHAR (32) NOT NULL DEFAULT " COMMENT ' machine IDs ',
0 ' COMMENT ' device ids ' of `toid`INT (10) NOT NULL DEFAULT ',
0 ' COMMENT ' device types ' of `appid`INT (10) NOT NULL DEFAULT ',
`createtime`DATETIME NOT NULL COMMENT ' creation times ',
The `updatetime`DATETIME NOT NULL COMMENT ' final updating times ',
PRIMARY KEY (`id`),
UNIQUE INDEX`clientid` (`clientid`),
INDEX`toid`(`toid`)
)
COMMENT=' client device contingency tables '
COLLATE=' utf8_general_ci '
ENGINE=InnoDB.
Wherein, " client id " refers to computing device, and " device id " refers to mobile device.
Computing device and mobile device before and after connection establishment, during the message such as transmitting request, response, the related data of message Can also be stored in the data base of server, corresponding database table can be:
CREATE TABLE`msg`(
`msgid`INT (10) UNSIGNED NOT NULL AUTO_INCREMENT,
The initial express deliveries number of 0 ' COMMENT ' of `toid`INT (10) UNSIGNED NOT NULL DEFAULT '【Divide table KEY】',
`title`CHAR (255) NOT NULL DEFAULT " COMMENT ' message headers ',
`content`TEXT NOT NULL,
Whether `isupload`TINYINT (4) UNSIGNED NOT NULL COMMENT ' locally upload ',
`signature`CHAR (255) NOT NULL DEFAULT " COMMENT ' senders signature '
`fileurl`VARCHAR (2800) NOT NULL DEFAULT " COMMENT ' file download url ',
`filename`VARCHAR (1200) NOT NULL DEFAULT " COMMENT ' filenames ',
0 ' COMMENT ' files classes models ' of `filetyPe`TINYINT (3) UNSIGNED NOT NULL DEFAULT ',
`filehash`CHAR (32) NOT NULL DEFAULT " COMMENT ' file md5 ',
`filethumb`CHAR (255) NOT NULL DEFAULT " COMMENT ' thumbnail url ',
0 ' COMMENT ' short chains of `fileshorturl`CHAR (64) NOT NULL DEFAULT ' connect ',
0 ' COMMENT ' file sizes ' of `filesize`INT (10) UNSIGNED NOT NULL DEFAULT ',
`status`TINYINT (4) NOT NULL DEFAULT ' 0 ',
`createtime`DATETIME NOT NULL COMMENT ' creation times ',
`updatetime`DATETIME NOT NULL COMMENT ' update the time ',
`flag`TINYINT (3) UNSIGNED NOT NULL DEFAULT ' 0 ',
`fromid`INT (10) UNSIGNED NOT NULL DEFAULT ' 0 ',
0 ' COMMENT ' of `appid`SMALLINT (5) UNSIGNED NOT NULL DEFAULT ' apply ID ',
`batchid`INT (10) UNSIGNED NULL DEFAULT ' 0 ',
`_batchid`VARCHAR (200) NULL DEFAULT ",
PRIMARY KEY (`msgid`),
INDEX`idx_toid_flag_status_msgid` (`toid`, `flag`, `status`, `msgid`)
)
COMMENT=' message tables '
COLLATE=' utf8_general_ci '
ENGINE=InnoDB;
Above-mentioned is only a kind of specific embodiment of the embodiment of the present invention, can be due to demand, data base in actual treatment Deng it is different and different, should not be understood as limitation of the present invention.
Additionally, server can also perform authentication operation to mobile device, the authentication operation can be server active It is execution, or being performed by mobile device request.
Then authentication operation includes:Server sends authenticate-acknowledge and asks to mobile device, and it is true to receive the certification of feedback Recognize response, so as to be authenticated to mobile device according to the authenticate-acknowledge response.
In being embodied as, including in the following manner:
1) authentication code mode
If phone number of the terminal data comprising mobile device, authenticate-acknowledge request is for short message, described short to disappear Authentication code is carried in breath, the authenticate-acknowledge response is authentication code.Mobile device is recognized such that it is able to pass through the authentication code Card.
2) authentication url mode
The terminal data includes the phone number of mobile device, then authenticate-acknowledge is asked as short message, the short message In carry authentication url.Mobile device links the authentication data of feedback by activating and authenticating, makes server carry out mobile device Certification.
After server completes the foundation of the incidence relation between mobile device and computing device, data biography can be carried out It is defeated.Specifically, mobile device can be triggered to server transmission content according to data transfer and be asked, and then make server obtain meter The currently displaying web page contents of calculation equipment, so as to mobile device can get the currently displaying net of computing device from server Page content.
Embodiment one
Fig. 1 shows the data transmission method flow process between according to embodiments of the present invention one mobile device and computing device Figure, this embodiment are mainly described in the processing procedure at mobile device.
Wherein, the incidence relation between the mobile device and computing device is set up at server.
In the embodiment of the present invention, it is mainly when data are transmitted complete by mobile device, computing device and three end of server Into, wherein, the incidence relation between mobile device and computing device is established at server, can be with so as to pass through server Realization possesses the data transfer between the mobile device of incidence relation and computing device.
Wherein, the incidence relation is used to identify the annexation between mobile device and computing device, i.e., by movement Equipment (or computing device) may be coupled to corresponding computing device (or mobile device).
Step 101, detects that the data transfer to mobile device is triggered;
The transmission of trigger data can be carried out in the embodiment of the present invention by mobile device, specifically, can detect right in real time The data transfer triggering of the mobile device.
In the embodiment of the present invention, the data transfer triggering includes:Click on send button or the shake of the mobile device The mobile device.
In actual treatment, the data transfer triggering can have various ways, such as click on the send button in mobile device, To realize that the data transfer to the mobile device is triggered.
And for example, if gravity sensing device is provided with mobile device, gravity-feed tank can be triggered by shaking mobile device Device is answered, and then realizes that the data transfer to the mobile device is triggered.In the embodiment of the present invention, the shake can be understood as Any operation of gravity sensing device can be triggered, mobile device etc., the embodiment of the present invention pair as described in upper and lower or double swerve Specific operation is not limited.
Step 102, when the data transfer triggering is detected, the mobile device please to the server transmission content Ask to ask web page contents currently displaying in the computing device;
When detection is triggered to the data transfer of the mobile device, after the mobile device receives triggering, can generate Content requests simultaneously send the content requests to the server.
Wherein, the content requests obtain the calculating for possessing incidence relation with the mobile device for request server and set Standby currently displaying web page contents.I.e. server receives the content requests, can search and possess pass with the mobile device The computing device of connection relation, then sends related message to the computing device, is worked as so which is obtained from the computing device The web page contents of front display, and store in the server so that mobile device subsequently can obtain described current from server The web page contents of display.
Step 103, when the mobile device receives the file acquisition message that the server sends, from the service Web page contents currently displaying in the computing device are obtained in device.
Server after the currently displaying web page contents are stored can generate file acquisition message, and send institute File acquisition message is stated to the mobile device, is obtained in the currently displaying webpage with notifying that the mobile device carrys out server Hold.
Then mobile device can access the server, according to association after the file acquisition message for receiving server Information table finds the currently displaying web page contents of that computing device and computing device deposit position in the server, from Web page contents currently displaying in the computing device are obtained in the server.
In the embodiment of the present invention, the currently displaying web page contents are constituted using the data of preset form.
As the data of distinct device there may be difference, therefore in order that transmit in computing device and mobile device Data can be used interchangeably, i.e., currently displaying in computing device web page contents can be used in a mobile device, and the present invention is real Also the currently displaying web page contents are constituted using the data of preset form in applying example.
A set of general coding and decoding method is configured in computing device and mobile device, so as to pass through the coding (or Decoding) method constitutes the data of (or parsing) preset form so that and the data of computing device and mobile device transmission are set at two Can use in standby.
Specifically, the preset form is Json forms, then character string of the data of the preset form for Json forms.
Wherein, the English spelling of Json is JavaScript Object Notation, Chinese JavaScript pair As symbol, Json forms are a kind of data interchange formats of lightweight.It is based on JavaScript (Standard ECMA- 2623rd Edition-December a subsets 1999).Json forms adopt the text formatting for being totally independent of language, But also using similar to C language family custom (including C, C++, C#, Java, JavaScript, Perl, Python Deng).These characteristics make Json forms become preferable data interchange language.It is easy to people to read and write, while being also easy to machine Device is parsed and is generated.
Certainly, the preset form can also be the data of extended formatting, such as adopt extensible markup language (Extensible Markup Language, XML) form etc., the application is not limited to this.
In the embodiment of the present invention, the data of the preset form are by the description information structure of the target selected in the webpage Into, the data of the preset form include it is following at least one:The title of the target, the storage address of the target, institute State the thumbnail of the size of data and the target of target.Referring specifically to narrated later.
Data to the preset form is obtained from server, i.e., in the currently displaying webpage of described computing device Hold, it is necessary to recognize the storage address of the data of the preset form.Then comprising described preset in the file acquisition message The storage address of the data of form.The storage address refers to the position that the data of the preset form are stored in the server Put.
It is described that web page contents currently displaying in the computing device are obtained from the server, including:
Mobile device obtains the storage address of the data of the preset form from file acquisition message;Mobile device is to institute State storage address to conduct interviews, the data of the preset form are downloaded from the server.
Mobile device can obtain the storage address of the data of the preset form from file acquisition message, that is, get The data of preset form storage location in the server.Then the storage address can be conducted interviews, such as to described Storage address sends access request, after server receives the access request, it is possible to the number that will be stored in the storage address Feed back to the mobile device according to (data of i.e. preset form) so that mobile device can download to from server it is described The data of preset form.
Optionally, it is described web page contents currently displaying in the computing device are obtained from the server after, also Including:
Mobile device is changed to the data of the preset form, to generate the video data shown for mobile device; Mobile device is shown to the video data.
After mobile device downloads to the data of the preset form from server, can be to the data of the preset form Changed, to generate the video data for being available for that the mobile device shows, so as in the mobile device to the display Data are shown.
Specifically, as a result of the data of preset form, therefore the mobile device will be seen that the preset form Analytic method of data, such as decoding process etc., therefore the data of the preset form can be parsed, it is parsed into and is available for moving The data that dynamic equipment is understood, now can directly be parsed into displayable video data, it is also possible to be first parsed into a kind of middle layout The data of formula, are then converted into the video data for being available for the mobile device to show.Then just can be right in the mobile device Video data is shown, so as to computing device currently displaying web page contents have been shown in mobile device.
In sum, in the embodiment of the present invention when the data transfer triggering to mobile device is detected, mobile device can Asked to the server transmission content to ask web page contents currently displaying in the computing device, then computing device Just obtain its currently displaying web page contents and be sent to server, so as to mobile device can obtain described working as from server The web page contents of front display.The present embodiment is in data transfer without the need for being connected using data wire, it is only necessary to just trigger mobile device Web page contents currently displaying in computing device can be obtained, data transfer is more convenient, it is easy to operate, time-consuming.
Secondly, in the embodiment of the present invention, the data transfer triggering includes:Click on the mobile device send button or Shake the mobile device.Therefore send button is clicked on, or shake mobile phone can just realizes data-triggered, operate very easy.
Embodiment two
Fig. 2 shows the data transmission method flow process between according to embodiments of the present invention two mobile device and computing device Figure, this embodiment are mainly described in the processing procedure at computing device.
When carrying out data transmission between mobile device and computing device, when mobile device, to request computing device currently displaying Web page contents after, due between the mobile device and computing device incidence relation set up at server, therefore service Device can connect the computing device for possessing incidence relation with the mobile device, and obtain its currently displaying web page contents, then exist In data transfer, the operational approach of computing device is as follows.
Step 201, the file request of computing device the reception server.
After server receives the content requests of mobile device, the meter for possessing incidence relation with the mobile device can be searched Calculation equipment, and the web page contents for generating file request to ask which currently displaying to the computing device.The then file request It is that server is generated according to the content requests of the mobile device for being possessed incidence relation with the computing device.
Then computing device can receive the file request.
Step 202, computing device obtain its currently displaying web page contents according to the file request.
Computing device can be parsed to the file request, be that the computing device currently shows so as to recognize request The web page contents for showing.Then, computing device can obtain its currently displaying web page contents.Specifically include following steps:
Fig. 3 shows that web page contents described according to embodiments of the present invention two are obtained and method for packing flow chart.
In the embodiment of the present invention, described its currently displaying web page contents of acquisition, including:
Step 301, computing device are parsed to currently displaying web page contents, are selected in detecting the web page contents Target.
Computing device first can be currently displaying to which web page contents parse, can specifically parse currently displaying The DOM Document Object Model (Document Object Model, DOM) of webpage.
Wherein, the DOM can be by it is a kind of independently of platform and language in the way of, access and change a document it is interior Hold and structure.Wherein, HTML DOM are the DOM Document Object Models of XTML/XHTML.The HTML DOM can be interpreted as webpage Application programming interface (ApplicationProgramming Interface, API), such that it is able to obtain in webpage Data.
Wherein, content currently displaying in webpage can include various application contents, such as game, application program, music and Page of wallpaper etc., or a website etc..
In the embodiment of the present invention, in order to meet the demand of user, data traffic is saved, can select in webpage in advance will The target being transmitted, for example, selectes a few moneys and plays, or certain wallpaper etc., for selected target can be marked, from And when parsing to currently displaying web page contents, whether there is the target (tape label selected during the webpage can be detected Target), if exist select target, obtain the selected content.If any target is not selected in detecting webpage, this When can consider that the content in whole webpage is all selected target, so as to transmit the content in whole webpage.
Step 302, obtains the description information of the selected target.
After detecting selected target, it is possible to obtain the description information of the selected target.
The description information can include it is following at least one:The title of the target, the storage address of the target, institute State the thumbnail of the size of data and the target of target.
The title is the title of selected target, such as game name, web page title etc..
The storage address is the storage address of the related data of selected target, and the target such as selected is game, described Storage address can be the download address of single-play game, or the reference address of online game etc..
The size of data is the data volume of the related data of selected target, and the target such as selected is single-play game, then The size of data can be the data volume of the installation procedure of the single-play game, such as 2M;And for example selected target is wallpaper, then institute State the size that size of data is exactly the wallpaper.
The thumbnail can be the picture of the content of the target for showing selected, when the target such as selected is webpage, institute The Logo that thumbnail can be the webpage place website is stated, and for example, selected target is game, then the thumbnail can be this Poster picture of game etc..
Then one or more in foregoing description information can be obtained according to selected target in the embodiment of the present invention.
The description information of the selected target is packaged into the data of preset form for step 303, computing device.
After getting the description information of the selected target, the description information can be packaged into preset by computing device The data of form.Then according to the above-mentioned discussion to description information, the data of the preset form include it is following at least one:It is described The thumbnail of the title of target, the storage address of the target, the size of data of the target and the target.
Wherein, preset form is configurable to Json forms, then the data of preset form can be the character of Json forms String.
Currently displaying web page contents are sent to server by step 203, computing device, to work as described via server The web page contents of front display are transferred to the mobile device.
By the above, computing device obtains currently displaying web page contents and has been encapsulated into preset form Then the data is activation of the preset form just can be given the server by data.
So that server is after the data for receiving preset form, the data of preset form can be stored, and File acquisition message is generated, information mobile device obtains the data of the preset form.
In sum, in the embodiment of the present invention, in mobile device to after the request of server transmission content, server is according to this Content requests generate file request and this document request are sent to computing device, and computing device receives the file of server please Its currently displaying web page contents is obtained after asking and server is sent to.The embodiment of the present invention without the need for step by step locating file again Replicate, but directly transmit currently displaying web page contents, operation is very simple, time-consuming.
Secondly, the description information of the target selected in currently displaying web page contents can be packaged into by the embodiment of the present invention The data of preset form, wherein, the preset form is Json forms, then word of the data of the preset form for Json forms Symbol string;The data of the preset form include it is following at least one:The title of the target, the storage address of the target, institute State the thumbnail of the size of data and the target of target.Data because of preset form etc comparison is more, therefore mobile device can The data class of reception also compares many, meets all kinds of demands of user.
Embodiment three
The above-mentioned processing method for being discussed at mobile device and computing device respectively, is passed from overall data of discussing below Transmission method.
Fig. 4 shows the data transmission method flow process between according to embodiments of the present invention three mobile device and computing device Figure.
Wherein, the incidence relation between the mobile device and computing device is set up at server.
Step 401, detects that the data transfer to mobile device is triggered;
Step 402, when the data transfer triggering is detected, the mobile device please to the server transmission content Ask to ask web page contents currently displaying in the computing device;
Step 403, the file request of computing device the reception server, the file request are server foundation and the meter Calculation equipment possesses what the content requests of the mobile device of incidence relation were generated;
Step 404, computing device obtain its currently displaying web page contents according to the file request;
Currently displaying web page contents are sent to server by step 405, computing device, to work as described via server The web page contents of front display are transferred to the mobile device;
Step 406, when the mobile device receives the file acquisition message that the server sends, from the service Web page contents currently displaying in the computing device are obtained in device.
By the discussion of the above-mentioned data transmission method between mobile device and computing device, discussed with overall angle below The data transmission method.
Fig. 5 shows according to embodiments of the present invention three data transmission method schematic diagram.
5.1 detections are triggered to the data transfer of mobile device.
5.2 when the data transfer triggering is detected, and the mobile device is asked to the server transmission content.
5.3 whois lookups possess the computing device of incidence relation with the mobile device, and generate file request.
5.4 servers send the file request to computing device.
Correspondence computing device can be with the file request of the reception server.
5.5 computing devices obtain its currently displaying web page contents according to the file request.
Fig. 6 shows the schematic diagram of the currently displaying web page contents of computing device, currently displaying web page contents bag Various types of applications are included, game, dress software is such as played, audition is happy sees video etc..
Wherein, also including specific application, such as " Dungeon with brave ... ", " lamb general mobilization " and " forgetting celestial being " etc..Wherein, The full name of " Dungeon with brave ... " is " DNF official is legal ", as the position in webpage is limited, therefore is only shown Division name.
It is assumed that now selected target is " DNF official is legal ", then computing device can obtain " Dungeon with The description information of warrier official legal copy " constitutes the character string of Json forms.Wherein, a kind of example shape of the character string of Json forms Formula is as follows:
[{″attach″:[{″Market_name″:" ", " apkid ":" com.Nexon.DunfightENGF360 ", " filedispname″:" DNF official formal version 1.01 ", " filename ":" the formal version of DNF official 1.01.apk″.″filesize″:″28899475″.″filethumb″:″http:// p3.qhimg.com617c9165b3dae3eb.png″″filetype″:" app ", " fileurl ":″http:// shouji.360safe.com/360sj/adm/apk/20121215/com.Nexon.DunfightENGF360_2_ 94130.apk ", " format ":" apk ", " mid ":″ 12fcd727fc624ed180de17e94ff72c67ca1089050c376ba8a499618b ea589322 ", " msgsource″:" mobile phone assistant
The description information of " DNF official is legal ", such as storage are identified in the character string of above-mentioned Json forms Location (fileurl), and for example size of data (filesize), also including the type of " DNF official is legal " (filetype) etc..
Currently displaying web page contents are sent to server by 5.6 computing devices.
The character string of the upper Json forms can be sent to server by computing device.
5.7 servers are stored to the currently displaying web page contents, and generate file acquisition message.
Server is stored and is generated file acquisition message to the character string of the Json forms, wherein, file acquisition disappears Storage address comprising the character string of the Json forms in server in breath.
5.8 servers send the file acquisition message to mobile device.
5.9 mobile devices obtain web page contents currently displaying in the computing device from server.
Mobile device can conduct interviews to the storage address of the character string of the Json forms in server, so as to obtain this The character string of Json forms.
5.10 mobile devices are parsed and are shown to currently displaying web page contents in the computing device.
Mobile device is parsed to the character string of Json forms, and is displayed it on the screen of mobile device.
In the embodiment of the present invention, the storage address of description information can be in the form of chained address, and and thumbnail Or the description information such as title is associated.Specifically, such as after the character string that mobile device gets Json forms, which is carried out When parsing, being converted into video data, the chained address can be shown, the choosing can be obtained so as to pass through the chained address The related data of fixed target.When the description informations such as the chained address and thumbnail or title are associated, point can be passed through Thumbnail or title are hit, the chained address is triggered, the related data of the selected target is obtained.
The description information of the target selected in therefore, it can show computing device in a mobile device, such as thumbnail, name Title, size of data etc..Also, the thumbnail is associated with storage address, such that it is able to access storage by thumbnail triggering Location, obtains the related data of the selected target.Such as obtain installation procedure, obtain picture itself etc..
Fig. 7 shows the first schematic diagram that content shows according to embodiments of the present invention three mobile device.Wherein, move In the character string of the Json forms that dynamic equipment is received, the storage address of " DNF official is legal " is with chained address In the form of, therefore the chained address can be triggered, so as to obtain the installation file of " DNF official is legal ". As in Fig. 7, the size of data of " DNF official is legal " is 27.56M, has downloaded 9.88M.
Fig. 8 shows second schematic diagram that content shows according to embodiments of the present invention three mobile device.Wherein, The installation file of " DNF official is legal " has been downloaded and has been completed, and can be installed.
In the present embodiment, this target for receiving can be not only shown in the screen of mobile device, " is downloaded and is appointed in such as Fig. 7 " DNF official is legal " of business ", can also show the target downloaded before, " the 360 of " history download " in such as Fig. 7 Power saving king 1.9.0.0024 ".Also, after the completion of target is downloaded, just automatically target is moved in " history download ", as Fig. 8 " Lower city and warrier official legal copy " and " 360 power saving king 1.9.0.0024 " are all located in " history download ", consequently facilitating to biography every time Defeated data are managed.
In sum, in the embodiment of the present invention, as the incidence relation between mobile device and computing device is set up in clothes At business device, therefore when the data transfer triggering to mobile device is detected, mobile device can be asked to server transmission content Ask to ask web page contents currently displaying in the computing device, then computing device is just obtained in its currently displaying webpage Hold and be sent to server, so as to mobile device can obtain the currently displaying web page contents from server.The present invention Embodiment need not be connected using data wire in data transfer, it is only necessary to which triggering mobile device, can just to obtain computing device fooled The web page contents of front display, therefore data transfer is more convenient, and it is easy to operate, time-consuming.
Example IV
Fig. 9 shows according to embodiments of the present invention four mobile device structure chart.
Wherein, carry out data transmission between the mobile device 1 and computing device 2, the mobile device 1 and the calculating set Incidence relation between standby 2 is set up at server.
The mobile device 1 includes:
Trigger 11, is adapted to detect for the data transfer to mobile device and triggers, and trigger communication interface;
Communication interface 12, is suitable to the triggering according to trigger 11, asks to ask to calculate to the server transmission content Currently displaying web page contents on equipment 2, and the file acquisition message that the reception server sends;
Resolver 13, is suitable to, according to the file acquisition message, obtain from the server by the communication interface 11 Take web page contents currently displaying in computing device 2.
In the embodiment of the present invention, the currently displaying web page contents are constituted using the data of preset form;
The resolver 13, the storage of the data for being particularly adapted to from file acquisition message to obtain the preset form Location, and trigger communication interface 11;
The communication interface 11, is further adapted for conducting interviews the storage address, downloads described pre- from the server Put the data of form.
In the embodiment of the present invention, mobile device 1 also includes:Display 14;
The display 14, is suitable to show the video data that the data conversion by the preset form is generated;
The resolver 13, is further adapted for changing the data of the preset form, is shown for mobile device with generating Video data.
In the embodiment of the present invention, the data transfer triggering includes:Click on send button or the shake movement of mobile device 1 Equipment 1.
In the embodiment of the present invention, the preset form is Json forms, then the data of the preset form are Json forms Character string.
In the embodiment of the present invention, the data of the preset form are by the description information structure of the target selected in the webpage Into, the data of the preset form include it is following at least one:The title of the target, the storage address of the target, institute State the thumbnail of the size of data and the target of target.
Figure 10 shows according to embodiments of the present invention four computing device structure chart.
Wherein, carry out data transmission between the computing device 2 and mobile device 1, between computing device 2 and mobile device 1 Incidence relation set up at server.
The computing device 2 includes:
Communication interface 21, is suitable to the file request of the reception server, and currently displaying web page contents is sent to clothes Business device, so that the currently displaying web page contents are transferred to mobile device 1 via server, wherein, the file request is Server is generated according to the content requests of the mobile device 1 for being possessed incidence relation with computing device 2;
Display content processor 22, is suitable to obtain the currently displaying web page contents of computing device 2 according to the file request.
In the embodiment of the present invention, the computing device 2 also includes:Wrapper 23;
The wrapper 23, the description information for being particularly adapted to target that will be selected in the currently displaying web page contents are sealed Dress up the data of preset form;
Then the display content processor 22, is particularly adapted to parse currently displaying web page contents, and detection is described The target selected in web page contents;Obtain the description information of the selected target.
In the embodiment of the present invention, the preset form is Json forms, then the data of the preset form are Json forms Character string;The data of the preset form include it is following at least one:The storage of the title of the target, the target The thumbnail of location, the size of data of the target and the target.
Embodiment five
Figure 11 shows according to embodiments of the present invention five data transmission system structure chart.
Accordingly, the embodiment of the present invention additionally provides a kind of data transmission system, including mobile device 4,5 and of computing device Server 6.
Wherein, carry out data transmission between computing device 5 and mobile device 4, between mobile device 4 and computing device 5 Incidence relation is set up at server 6.
The mobile device 4, including:
Trigger, is adapted to detect for the data transfer to mobile device 4 and triggers, and trigger communication interface;
Communication interface, is suitable to the triggering according to trigger, asks to ask in computing device 5 to 6 transmission content of server Currently displaying web page contents, and the file acquisition message that the reception server 6 sends;
Resolver, is suitable to according to the file acquisition message, obtains meter by the communication interface from the server 6 Currently displaying web page contents on calculation equipment 5;
The computing device 5, including:
Communication interface, is suitable to the file request of the reception server, and currently displaying web page contents is sent to service Device, so that the currently displaying web page contents are transferred to mobile device 4 via server 6, wherein, the file request is clothes Business device 6 is generated according to the content requests of the mobile device 4 for being possessed incidence relation with computing device 5;
Display content processor, is suitable to obtain the currently displaying web page contents of computing device 5 according to the file request;
The server 6 includes:
Communication interface, is suitable to receive the content requests of mobile device 4, sends file request to computing device 5, receive and calculate The currently displaying web page contents that equipment 5 sends, and file acquisition message is sent to mobile device 4;
Memory module, is suitable to store the incidence relation between mobile device 4 and computing device 5, and stores in computing device 5 Currently displaying web page contents.
In the embodiment of the present invention, the currently displaying web page contents are constituted using the data of preset form;It is described Resolver, the storage address of the data for being particularly adapted to from file acquisition message to obtain the preset form, and trigger communication and connect Mouthful;The communication interface, is further adapted for conducting interviews the storage address, the preset form is downloaded from the server Data.
In the embodiment of the present invention, mobile device 4 also includes:Display;The display, is suitable to by the preset form Data conversion generate video data shown;Then the resolver, is further adapted for carrying out the data of the preset form Conversion, to generate the video data shown for mobile device 4.
In the embodiment of the present invention, the data transfer triggering includes:Click on send button or the shake movement of mobile device 4 Equipment 4.
In the embodiment of the present invention, computing device 5 also includes:Wrapper;The wrapper, being particularly adapted to will be described current aobvious The description information of the target selected in the web page contents for showing is packaged into the data of preset form;The then display content processor, It is particularly adapted to parse currently displaying web page contents, the target selected in detecting the web page contents;Obtain the choosing The description information of fixed target.
In the embodiment of the present invention, the preset form is Json forms, then the data of the preset form are Json forms Character string.
In the embodiment of the present invention, the data of the preset form are by the description information structure of the target selected in the webpage Into, the data of the preset form include it is following at least one:The title of the target, the storage address of the target, institute State the thumbnail of the size of data and the target of target.
In sum, in the embodiment of the present invention, as the incidence relation between mobile device and computing device is set up in clothes At business device, therefore when the data transfer triggering to mobile device is detected, mobile device can be asked to server transmission content Ask to ask web page contents currently displaying in the computing device, then computing device is just obtained in its currently displaying webpage Hold and be sent to server, so as to mobile device can obtain the currently displaying web page contents from server.The present invention Embodiment need not be connected using data wire in data transfer, it is only necessary to which triggering mobile device, can just to obtain computing device fooled The web page contents of front display, therefore data transfer is more convenient, it is easy to operate, time-consuming.
Secondly, in the embodiment of the present invention, the data transfer triggering includes:Click on the mobile device send button or Shake the mobile device.Therefore send button is clicked on, or shake mobile phone can just realizes data-triggered, operate very easy.
Again, the description information of the target selected in currently displaying web page contents can be packaged into by the embodiment of the present invention The data of preset form, wherein, the preset form is Json forms, then word of the data of the preset form for Json forms Symbol string;The data of the preset form include it is following at least one:The title of the target, the storage address of the target, institute State the thumbnail of the size of data and the target of target.Data because of preset form etc comparison is more, therefore mobile device can The data class of reception also compares many, meets all kinds of demands of user.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case where not having these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist Above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, should the method for the disclosure be construed to reflect following intention:I.e. required guarantor The more features of feature is expressly recited in each claim by the application claims ratio of shield.More precisely, such as following Claims it is reflected as, inventive aspect is less than all features of single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more different from embodiment equipment.Can be the module or list in embodiment Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In some included features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are realizing in computing device according to embodiments of the present invention and mobile device Some or all parts some or all functions.The present invention is also implemented as performing side as described herein Some or all equipment of method or program of device (for example, computer program and computer program).It is such Realize that the program of the present invention can be stored on a computer-readable medium, or there can be the shape of one or more signal Formula.Such signal can be downloaded from internet website and be obtained, or provide on carrier signal, or with any other shape Formula is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.

Claims (6)

1. the data transmission method between a kind of mobile device and computing device, the association between the mobile device and computing device Relation is set up at server, and methods described includes:
Detect that the data transfer to mobile device is triggered;
When the data transfer triggering is detected, the mobile device is asked described to ask to the server transmission content Currently displaying web page contents in computing device, wherein, the content requests are used for request server acquisition and are set with the movement Currently displaying web page contents in the computing device of standby incidence relation of getting everything ready;
The file request of computing device the reception server, the file request are that server foundation possesses pass with the computing device What the content requests of the mobile device of connection relation were generated;
Computing device obtains its currently displaying web page contents according to the file request;
Currently displaying web page contents are sent to server by computing device, with via server the currently displaying webpage Content transmission gives the mobile device;
When the mobile device receives the file acquisition message that the server sends, obtain described from the server Currently displaying web page contents in computing device, wherein, the storage of the data comprising preset form in the file acquisition message Address, the data of the preset form are made up of the description information of the target selected in the webpage, the preset form Data include it is following at least one:The title of the target, the storage address of the target, the size of data of the target and The thumbnail of the target.
2. the method for claim 1, wherein the currently displaying web page contents are the data structures using preset form Into;
It is described that web page contents currently displaying in the computing device are obtained from the server, including:
Mobile device obtains the storage address of the data of the preset form from file acquisition message;
Mobile device conducts interviews to the storage address, and the data of the preset form are downloaded from the server.
3. method as claimed in claim 2, described that net currently displaying in the computing device is obtained from the server After page content, also include:
Mobile device is changed to the data of the preset form, to generate the video data shown for mobile device;
Mobile device is shown to the video data.
4. the method for claim 1, the data transfer triggering include:Click on the mobile device send button or Shake the mobile device.
5. the method as described in Claims 2 or 3 is arbitrary, the preset form are Json forms, then the number of the preset form According to the character string for Json forms.
6. the method as any one of Claims 1-4, it is current that the computing device obtains which according to the file request The web page contents of display, including:
Computing device is parsed to currently displaying web page contents, the target selected in detecting the web page contents;
Obtain the description information of the selected target;
The description information of the selected target is packaged into computing device the data of preset form.
CN201210567859.1A 2012-12-24 2012-12-24 Data transmission method between mobile device and computing device Active CN103023910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210567859.1A CN103023910B (en) 2012-12-24 2012-12-24 Data transmission method between mobile device and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210567859.1A CN103023910B (en) 2012-12-24 2012-12-24 Data transmission method between mobile device and computing device

Publications (2)

Publication Number Publication Date
CN103023910A CN103023910A (en) 2013-04-03
CN103023910B true CN103023910B (en) 2017-04-05

Family

ID=47972041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210567859.1A Active CN103023910B (en) 2012-12-24 2012-12-24 Data transmission method between mobile device and computing device

Country Status (1)

Country Link
CN (1) CN103023910B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168670A (en) * 2014-09-05 2014-11-26 北京奇虎科技有限公司 Data obtaining method, device and system
CN111935214A (en) * 2020-06-29 2020-11-13 中铁第一勘察设计院集团有限公司 Data transmission method based on field mobile equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299931A (en) * 2011-09-19 2011-12-28 莫雅静 Webpage content sending method and agent server
CN102650990A (en) * 2011-02-24 2012-08-29 中兴通讯股份有限公司 Terminal webpage display method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7865571B2 (en) * 2007-01-08 2011-01-04 Mspot, Inc. Method and apparatus for transferring digital content from a personal computer to a mobile handset
US7837466B2 (en) * 2007-04-08 2010-11-23 Griffith Richard J Orthodontic apparatus and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102650990A (en) * 2011-02-24 2012-08-29 中兴通讯股份有限公司 Terminal webpage display method and system
CN102299931A (en) * 2011-09-19 2011-12-28 莫雅静 Webpage content sending method and agent server

Also Published As

Publication number Publication date
CN103023910A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN104428765B (en) It reduces and redirects
CN105027121B (en) The five application page of the machine application is indexed
US7783723B2 (en) Systems and methods for submitting data from a WML-based browser
CN108605049A (en) The message sharing method based on application state and card for user equipment
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN103777967B (en) Page returning method, page generation method and device
CN106528432A (en) Construction method and apparatus for test scene data, and buried point test method
CN103020160B (en) The using method of the shopping at network information of browser client, device and browser
CN103605739A (en) Method and device for displaying thermodynamic diagrams
CN104427627A (en) Test data obtaining method, client and server
CN106598673A (en) Application program upgrading method and system
US20140019517A1 (en) Web-hosted shipping system and method of use thereof
CN107924413A (en) Bifurcated is searched for
CN108416021A (en) A kind of browsing device net page content processing method, device, electronic equipment and readable medium
CN103631619A (en) Software mounting method and terminal
CN106464723B (en) Method and system for the verifying of the machine application content
GB2581634A (en) Providing reporting and analysis for campaign-driven messages and websites
CN107391182A (en) Generation method, device, server and storage medium of theme installation package
CN103617043B (en) A kind of method and system uploaded with picture web data
US10873643B2 (en) Unified content posting
CN103067481B (en) Data transmission method, equipment and system
US20150120650A1 (en) Methods and Systems for Utilizing Global Entities In Software Applications
CN103023910B (en) Data transmission method between mobile device and computing device
CN104361004A (en) Browser favorite data processing method and browser
CN104158862B (en) The startup method and client terminal device of online interaction webpage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220715

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right