CN105306565B - Method, system and the mobile device being applicable in of remote transmission data - Google Patents

Method, system and the mobile device being applicable in of remote transmission data Download PDF

Info

Publication number
CN105306565B
CN105306565B CN201510689817.9A CN201510689817A CN105306565B CN 105306565 B CN105306565 B CN 105306565B CN 201510689817 A CN201510689817 A CN 201510689817A CN 105306565 B CN105306565 B CN 105306565B
Authority
CN
China
Prior art keywords
data
remote transmission
transmission
encapsulation
data text
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
CN201510689817.9A
Other languages
Chinese (zh)
Other versions
CN105306565A (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.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510689817.9A priority Critical patent/CN105306565B/en
Publication of CN105306565A publication Critical patent/CN105306565A/en
Application granted granted Critical
Publication of CN105306565B publication Critical patent/CN105306565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method of remote transmission data, system and the mobile device being applicable in.It the described method comprises the following steps:Obtain the data text based on Tag Packaging;Based on current running environment, will be encapsulated in corresponding object from the data that the data text parses;The object is transmitted by remote transmission corridors.The present invention advantageously accounts for the limitation that different platform runs program.

Description

Method, system and the mobile device being applicable in of remote transmission data
Technical field
The present invention relates to a kind of software fields, more particularly to a kind of method of remote transmission data, system and are applicable in Mobile device.
Background technology
Constantly gush out with the various mobile internet devices of intelligence system, carries out remote object invocation and remotely grasped Make, is always one important project of mobile Internet.
The data text of tape label is highly suitable for program configuration data and is handed between mobile device and server-side Change data.In data transmission procedure, resolver and transmission calling interface are limited existing label text by operation platform, are made The different corresponding programs of Platform Designing need to be directed in programming by obtaining technical staff, and overlapping development situation is serious.
Therefore, it is necessary to be improved to the prior art.
Invention content
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of sides of remote transmission data Method, system and the mobile device being applicable in, for solving the restricted problem that different platform runs program in the prior art.
In order to achieve the above objects and other related objects, the present invention provides a kind of method of remote transmission data, including with Lower step:Obtain the data text based on Tag Packaging;Based on current running environment, by what is parsed from the data text Data are encapsulated in corresponding object;The object is transmitted by remote transmission corridors.
Preferably, described based on current running environment, the data parsed from the data text are encapsulated in accordingly Object in mode include:Based on the identification information of acquired present procedure operation platform, selection is run with described program The corresponding analysis program of environment, and the analysis program is run to execute:According to the label of root node in the data text, really Fixed corresponding object;Data corresponding to each label under root node label described in the data text are loaded into and are determined Object in.
Preferably, described to include in such a way that remote transmission corridors are transmitted by object:The object encapsulation is existed Remote transmission client-side interface, the serializing mode supported according to current operation system carry out the object after encapsulation Serializing, and sent by remote transmission corridors;Alternatively, by the object encapsulation in remote transmission services end interface, And when receiving call request by the remote transmission corridors, the serializing mode supported according to current operation platform, The object after encapsulation is serialized, and is sent by remote transmission corridors.
Preferably, the data text is encapsulated based on XML tag.
Based on above-mentioned purpose, the present invention also provides a kind of systems of remote transmission data, including:Acquisition module, for obtaining Take the data text based on Tag Packaging;Package module, for that based on current running environment, will be parsed from the data text The data gone out are encapsulated in corresponding object;Transmission module, for being transmitted the object by remote transmission corridors.
Preferably, the package module be used for the identification information based on acquired present procedure operation platform, selection with The corresponding analysis program of described program running environment, and the analysis program is run to execute:According to root in the data text The label of node determines corresponding object;By the number corresponding to each label under root node label described in the data text According in object determined by being loaded into.
Preferably, the transmission module is used for the object encapsulation in remote transmission client-side interface, according to current behaviour Make the serializing mode that system is supported, the object after encapsulation is serialized, and is given by remote transmission corridors It sends;Alternatively, the transmission module is used for by the object encapsulation in remote transmission services end interface, and when by described remote When journey transmission channel receives call request, the serializing mode supported according to current operation platform, described in after encapsulation Object is serialized, and is sent by remote transmission corridors.
Preferably, the data text is encapsulated based on XML tag.
Based on above-mentioned purpose, the present invention also provides a kind of mobile devices, including:As above any remote transmission data System.
As described above, method, system and the mobile device being applicable in of the remote transmission data of the present invention, have with following Beneficial effect:The object parsed from label text is directly subjected to far call, and parse remote invocation of objects when It waits according to current system environments, switchs to different platform language object, advantageously account for the limitation that different platform runs program; The working efficiency of technical staff is improved simultaneously.
Description of the drawings
Fig. 1 is shown as the flow chart of the method for the remote transmission data of the present invention.
Fig. 2 is shown as the structural schematic diagram of the system of the remote transmission data of the present invention.
Component label instructions
1 Transmission system
11 acquisition modules
12 package modules
13 transmission modules
S1~S3 steps
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the absence of conflict, following embodiment and implementation Feature in example can be combined with each other.
It should be noted that the diagram provided in following embodiment only illustrates the basic structure of the present invention in a schematic way Think, component count, shape and size when only display is with related component in the present invention rather than according to actual implementation in schema then Draw, when actual implementation kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel It is likely more complexity.
Referring to Fig. 1, the present invention provides a kind of method of remote transmission data.The transmission method is mainly by Transmission system To execute.The Transmission system can be applied in server-side, can also be applied in client.Wherein, the server-side is installation There is the electronic equipment of remote transmission service end interface.The visitor end refers to being equipped with the electronics of remote transmission client-side interface to set It is standby.It can be seen that may be server or mobile device as the electronic equipment of server-side and client.For example, in P2P In framework, the mobile device for being equipped with remote transmission service end interface is server-side, is equipped with remote transmission client-side interface Mobile device be client.Either server-side or client, may be by mode transmission data of the present invention, And it is not limited by itself program operation platform and operating system.
In step sl, the Transmission system obtains the data text based on Tag Packaging.
Specifically, when the client where Transmission system described in user's operation is intended to transmit comprising most evidence, even big datas When, each data preparation to be transmitted at the data text based on Tag Packaging and is supplied to the Transmission system.
Alternatively, the server-side where the Transmission system is based on acquired call request, the server-side will be passed Defeated most evidence even big datas are organized into the data text based on Tag Packaging and are supplied to the Transmission system.
Wherein, the data text based on Tag Packaging can be the HTTP texts of HTTP Tag Packagings.Preferably, it is More flexible configuration, the data text based on Tag Packaging are the data text encapsulated based on XML tag.
For example, the data text is as follows:
<Xml version=" 1.0 " encoding=" gb2312 ">
<Flower>
<Vendor>shop1</Vendor>
<Name>iris</Name>
<Price>$4.00</Price>
<Picked>pick up</Picked>
<cut>cut out</cut>
</Flower>
In step s 2, the Transmission system is based on current running environment, the number that will be parsed from the data text According to being encapsulated in corresponding object.
Here, the running environment refers to present procedure operation platform comprising but be not limited to:JAVA platforms, IOS operations System, Android operation system, windows operating systems etc..
Specifically, the Transmission system obtains the identification information of the operating system of present procedure operation, selection and the journey The corresponding analysis program of sort run environment, and the analysis program is run to execute:According to root node in the data text Label determines corresponding object;And by the data corresponding to each label under root node label described in the data text In object determined by being loaded into.
Here, the identification information includes but not limited to the version number etc. of operation platform (or operating system).The transmission Systematic selection corresponds to the analysis program of the identification information, and is run.
For example, described in the Transmission system according to the correspondence between preset each root node label and object, determines The label of root node in data text<Flower>Corresponding Flower objects.XML text resolvers are recycled, described in extraction< Flower>The Vendor in Flower objects, name, price attributes and Picked, the side cut are corresponded under root node in each label Method, and these attributes and method data are loaded into the Flower objects, and execute step S3.
In step s3, the Transmission system is transmitted the object by remote transmission corridors.
Specifically, the Transmission system can be used http protocol etc. and be transmitted obtained object.
Preferably, if electronic equipment is client where the Transmission system, by the object encapsulation in remote transmission Client-side interface, the serializing mode supported according to current operation system serialize the object after encapsulation, and It is sent by remote transmission corridors.
For example, the Transmission system is carried out data transmission using RMI far calls.As client, the Transmission system Stub classes are created, and by obtained Flower object encapsulations in the Stub classes, obtains corresponding Stub object handles and draws Enter Socket remotely to be connected:Specifically, the serializing Processing Interface supported according to current operation platform, by the Stub Object is into row buffer byte read-write operation.By corresponding Sokect attended operations, system bottom establish Transport into Row communication.Wherein, if the operation platform is Android operation system, by inheriting Java.io.Serializable types, By Stub objects by derived types such as inputstream, and outputstream into row buffer byte read-write operation.
If electronic equipment where the Transmission system is server-side, the object encapsulation is serviced in remote transmission and is terminated In mouthful, and when receiving call request by the remote transmission corridors, the serializing supported according to current operation platform The object after encapsulation is serialized, and is sent by remote transmission corridors by mode.
For example, the Transmission system is carried out data transmission using RMI far calls.As server-side, the Transmission system It creates with the Flower objects of skeletons class wrappers in case calling.When the Transmission system receives corresponding Flower objects Call request, then the Transmission system will with the skeletons object handles of skeletons class wrappers introduce Socket carry out Long-range connection.
Here, being introduced into, the mode that Socket is remotely connected is identical with aforementioned exemplary, and this will not be detailed here.
Referring to Fig. 2, the present invention provides a kind of system of remote transmission data.The Transmission system, which can be applied, to be serviced End, can also apply in client.Wherein, the server-side is to be equipped with the electronic equipment of remote transmission service end interface.Institute It refers to the electronic equipment for being equipped with remote transmission client-side interface to state objective end.It can be seen that the electricity as server-side and client Sub- equipment may be server or mobile device.For example, in P2P frameworks, the shifting of remote transmission service end interface is installed Dynamic equipment is server-side, and the mobile device for being equipped with remote transmission client-side interface is client.Either server-side is also It is client, may be by mode transmission data of the present invention and not by itself program operation platform and operating system Limitation.
The Transmission system includes:Acquisition module, package module, transmission module.
The acquisition module is for obtaining the data text based on Tag Packaging.
Specifically, when the client where Transmission system described in user's operation is intended to transmit comprising most evidence, even big datas When, each data preparation to be transmitted at the data text based on Tag Packaging and is supplied to the acquisition module.
Alternatively, the server-side where the Transmission system is based on acquired call request, the server-side will be passed Defeated most evidence even big datas are organized into the data text based on Tag Packaging and are supplied to the acquisition module.
Wherein, the data text based on Tag Packaging can be the HTTP texts of HTTP Tag Packagings.Preferably, it is More flexible configuration, the data text based on Tag Packaging are the data text encapsulated based on XML tag.
For example, the data text is as follows:
<Xml version=" 1.0 " encoding=" gb2312 ">
<Flower>
<Vendor>shop1</Vendor>
<Name>iris</Name>
<Price>$4.00</Price>
<Picked>pick up</Picked>
<cut>cut out</cut>
</Flower>
The package module is used to, based on current running environment, the data parsed from the data text be encapsulated in In corresponding object.
Here, the running environment refers to present procedure operation platform comprising but be not limited to:JAVA platforms, IOS operations System, Android operation system, windows operating systems etc..
Specifically, the package module obtains the identification information of the operating system of present procedure operation, selection and the journey The corresponding analysis program of sort run environment, and the analysis program is run to execute:According to root node in the data text Label determines corresponding object;And by the data corresponding to each label under root node label described in the data text In object determined by being loaded into.
Here, the identification information includes but not limited to the version number etc. of operation platform (or operating system).The encapsulation The analysis program of the corresponding identification information of module selection, and run.
For example, described in the package module according to the correspondence between preset each root node label and object, determines The label of root node in data text<Flower>Corresponding Flower objects.XML text resolvers are recycled, described in extraction< Flower>The Vendor in Flower objects, name, price attributes and Picked, the side cut are corresponded under root node in each label Method, and these attributes and method data are loaded into the Flower objects, and execute transmission module.
The transmission module is for being transmitted the object by remote transmission corridors.
Specifically, the transmission module can be used http protocol etc. and be transmitted obtained object.
Preferably, if electronic equipment is client where the transmission module, by the object encapsulation in remote transmission Client-side interface, the serializing mode supported according to current operation system serialize the object after encapsulation, and It is sent by remote transmission corridors.
For example, the transmission module is carried out data transmission using RMI far calls.As client, the transmission module Stub classes are created, and by obtained Flower object encapsulations in the Stub classes, obtains corresponding Stub object handles and draws Enter Socket remotely to be connected:Specifically, the serializing Processing Interface supported according to current operation platform, by the Stub Object is into row buffer byte read-write operation.By corresponding Sokect attended operations, system bottom establish Transport into Row communication.Wherein, if the operation platform is Android operation system, by inheriting Java.io.Serializable types, By Stub objects by derived types such as inputstream, and outputstream into row buffer byte read-write operation.
If electronic equipment where the transmission module is server-side, the object encapsulation is serviced in remote transmission and is terminated In mouthful, and when receiving call request by the remote transmission corridors, the serializing supported according to current operation platform The object after encapsulation is serialized, and is sent by remote transmission corridors by mode.
For example, the transmission module is carried out data transmission using RMI far calls.As server-side, the transmission module It creates with the Flower objects of skeletons class wrappers in case calling.When the transmission module receives corresponding Flower objects Call request, then the transmission module will with the skeletons object handles of skeletons class wrappers introduce Socket carry out Long-range connection.
Here, being introduced into, the mode that Socket is remotely connected is identical with aforementioned exemplary, and this will not be detailed here.
In conclusion the object that the present invention parses XML directly carries out far call, and parsing far call pair As when according to current system environments, switch to different platform language object, advantageously account for different platform to program run Limitation.So the present invention effectively overcomes various shortcoming in the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology can all carry out modifications and changes to above-described embodiment without violating the spirit and scope of the present invention.Cause This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as At all equivalent modifications or change, should by the present invention claim be covered.

Claims (5)

1. a kind of method of remote transmission data, which is characterized in that include the following steps:
Obtain the data text based on Tag Packaging;
Based on current running environment, will be encapsulated in corresponding object from the data that the data text parses;
The object is transmitted by remote transmission corridors;
It is described based on current running environment, the side that will be encapsulated in from the data that the data text parses in corresponding object Formula includes:
Based on the identification information of acquired present procedure operation platform, the identification information pair of selection and described program operation platform The analysis program answered, and the analysis program is run to execute:
According to the label of root node in the data text, corresponding object is determined;
Data corresponding to each label under root node label described in the data text are loaded into identified object;
It is described to include in such a way that remote transmission corridors are transmitted by object:
By the object encapsulation in remote transmission client-side interface, the serializing mode supported according to current operation system will The object after encapsulation is serialized, and is sent by remote transmission corridors;
Alternatively, by the object encapsulation in remote transmission services end interface, and work as and received by the remote transmission corridors When call request, the serializing mode supported according to current operation system serializes the object after encapsulation, and It is sent by remote transmission corridors.
2. the method for remote transmission data according to claim 1, it is characterised in that:The data text is to be based on XML Tag Packaging.
3. a kind of system of remote transmission data, which is characterized in that including:
Acquisition module, for obtaining the data text based on Tag Packaging;
Package module, for based on current running environment, the data parsed from the data text to be encapsulated in accordingly In object;
Transmission module, for being transmitted the object by remote transmission corridors;
The package module is used for the identification information based on acquired present procedure operation platform, and selection is run with described program Analysis program corresponding to the identification information of platform, and the analysis program is run to execute:According to root section in the data text The label of point, determines corresponding object;By the data corresponding to each label under root node label described in the data text In object determined by being loaded into;
The transmission module is used in remote transmission client-side interface be supported the object encapsulation according to current operation system Serializing mode, the object after encapsulation is serialized, and is sent by remote transmission corridors;
Alternatively, the transmission module is used for by the object encapsulation in remote transmission services end interface, and when by described remote When journey transmission channel receives call request, the serializing mode supported according to current operation system, described in after encapsulation Object is serialized, and is sent by remote transmission corridors.
4. the system of remote transmission data according to claim 3, it is characterised in that:The data text is to be based on XML Tag Packaging.
5. a kind of mobile device, which is characterized in that including:Remote transmission data as described in any in claim 3-4 are System.
CN201510689817.9A 2015-10-22 2015-10-22 Method, system and the mobile device being applicable in of remote transmission data Active CN105306565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510689817.9A CN105306565B (en) 2015-10-22 2015-10-22 Method, system and the mobile device being applicable in of remote transmission data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510689817.9A CN105306565B (en) 2015-10-22 2015-10-22 Method, system and the mobile device being applicable in of remote transmission data

Publications (2)

Publication Number Publication Date
CN105306565A CN105306565A (en) 2016-02-03
CN105306565B true CN105306565B (en) 2018-09-28

Family

ID=55203308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510689817.9A Active CN105306565B (en) 2015-10-22 2015-10-22 Method, system and the mobile device being applicable in of remote transmission data

Country Status (1)

Country Link
CN (1) CN105306565B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7191242B1 (en) * 2000-06-22 2007-03-13 Apple, Inc. Methods and apparatuses for transferring data
CN1738309A (en) * 2004-08-20 2006-02-22 华为技术有限公司 Data exchanging method
CN102495757A (en) * 2011-11-15 2012-06-13 深圳市融创天下科技股份有限公司 Optimization method applicable to JAVA remote invocation object transfer and device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN104461575B (en) The device and method that a kind of across Mobile operating system platform native interface of page script language is called
CN103593173B (en) A kind of integrated development system of application program, method and device
CN105005471A (en) Method, device, server and system for modifying configuration parameters of BIOS
CN105429858A (en) Real-time message transmission method among multiple robots
CN103746959B (en) The implementation method of the communication mechanism of Java modules and C modules under OSGi environment
CN105897652A (en) Standard protocol based heterogeneous terminal dynamic access method
CN103747004A (en) Realizing method of internet of things communication protocol
CN104954894B (en) A kind of video flow bootstrap technique, device and a kind of electronic equipment
CN105183452A (en) Spring AOP based remote protocol service middleware for monitoring power distribution device
CN110049059A (en) A kind of outer net equipment and Intranet communication between devices method and relevant apparatus
Ge et al. Design and implementation of interoperable IoT healthcare system based on international standards
CN104360598B (en) HTML5 based intelligent household movement control method
CN104023020A (en) TypeB message subscription and push system for mobile equipment and corresponding method
CN103294474A (en) Browser operation synchronizing method and device for performing browser operation synchronization
CN103532959A (en) Cross-platform network communication method
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CA2539464A1 (en) System and method for dynamic content processing with extendable provisioning
CN105306565B (en) Method, system and the mobile device being applicable in of remote transmission data
CN102970201A (en) Mobility integrated method for industrial field device
CN105338104B (en) Service request response method, parsing method and system
CN107798067A (en) Suitable for the database normalization storage system and method for polytypic satellite test
CN109086053A (en) A kind of dynamic select, the load APP device control panel UI page and method
CN102594788A (en) Method for achieving object-oriented data communication protocol structure
CN106302432A (en) A kind of communicator based on car networking and control method
CN112631638B (en) Terminal application updating method and device, storage medium and electronic equipment

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
TR01 Transfer of patent right

Effective date of registration: 20201124

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201215

Address after: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee after: Bengbu Lichao Information Technology Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210309

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee before: Bengbu Lichao Information Technology Co.,Ltd.