CN109308224A - The method, apparatus and system of cross-platform data communication, cross-platform data processing - Google Patents

The method, apparatus and system of cross-platform data communication, cross-platform data processing Download PDF

Info

Publication number
CN109308224A
CN109308224A CN201710620876.XA CN201710620876A CN109308224A CN 109308224 A CN109308224 A CN 109308224A CN 201710620876 A CN201710620876 A CN 201710620876A CN 109308224 A CN109308224 A CN 109308224A
Authority
CN
China
Prior art keywords
data
intermediate file
cross
platform
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710620876.XA
Other languages
Chinese (zh)
Other versions
CN109308224B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710620876.XA priority Critical patent/CN109308224B/en
Publication of CN109308224A publication Critical patent/CN109308224A/en
Application granted granted Critical
Publication of CN109308224B publication Critical patent/CN109308224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application discloses the method, apparatus and electronic equipment of a kind of communication of cross-platform data, processing.Wherein, the method for the cross-platform data communication, comprising: obtain data information;The data information is instantiated with preset data format, generates the intermediate file for carrying the data object of the corresponding data information;The intermediate file is sent to the receiving end of data information described in demand.The technical solution can be carried out interactive intermediate file by the client for generating server end and different platform with open source protocol and wscript.exe, realize cross-platform network communication, promote development efficiency;And since Java and object-c can be interacted with C language and C Plus Plus, so the unified encapsulation using c++ as network interface, realize that network layer interface is cross-platform, while a degree of optimization function is played in response to network data and transmission.

Description

The method, apparatus and system of cross-platform data communication, cross-platform data processing
Technical field
This application involves computer communication fields, and in particular to a kind of method, one kind of cross-platform data communication are cross-platform The method of data processing and a kind of system of cross-platform data communication.The application is related to a kind of communication of cross-platform data simultaneously Device, electronic equipment, a kind of device of cross-platform data processing and another kind electronic equipment.
Background technique
Current mobile terminal communications platform is varied, and network communication is mostly transmitted in a manner of xml or json. When different mobile terminal communications platforms is communicated, need object to be converted into xml or json.And different mobile terminal communication is flat The standard that object is converted into xml or json by platform is inconsistent.The communication standard of different platform interiors is different, can not directly into Row communication.Such as there are two big Mainstream Platforms, ios and android in current mobile terminal, due to the platform dependency of upper layer application exploitation And different programming languages is used, the object constructed in Java language directly can not allow object-c to use.
It can be seen that can not achieve cross-platform communication when carrying out network communication in a manner of xml or json, So current each company requires Liang Ge special team and maintain the same product, server-side needs and multiple platforms or language Speech debugging;And different platform needs to realize a set of network layer interface respectively, it, need to be using raw manually if interface data needs to model At corresponding model class, development cost is higher;In addition, time overhead of the xml in parsing is larger, xml format is preferable in order to have Readability, can also introduce the text information occupied space of some redundancies, space is opened also big.
Summary of the invention
The application provide a kind of method of cross-platform data communication, a kind of method of cross-platform data processing and it is a kind of across The system of platform data communication, to solve the above problem in the prior art.The application is additionally provided with a kind of cross-platform data Device, electronic equipment, a kind of device of cross-platform data processing and the another kind electronic equipment of communication.
This application provides a kind of method of cross-platform data communication, the method for the cross-platform data communication, comprising:
Obtain data information;
The data information is instantiated with preset data format, generates the number for carrying the corresponding data information According to the intermediate file of object;
The intermediate file is sent to the receiving end of data information described in demand.
Optionally, the intermediate file, comprising: proto file;The proto file is the definition of Protobuf data File.
Optionally, the data information, comprising: the value of field name and field.
Optionally, described that the data information is instantiated with preset data format, it generates and carries described in correspondence The intermediate file of the data object of data information, comprising:
It obtains pre-set for storing the class of the data information;
The value of field in the data information is stored in the class;
Using the class after instantiation as the intermediate file.
It is optionally, described to send the intermediate file to the receiving end of data information described in demand, comprising:
Based on the network layer interface that C or C++ is realized, the intermediate text is sent to the receiving end of data information described in demand Part.
Optionally, before described the step of sending the intermediate file to the receiving end of data information described in demand, packet It includes:
Serializing operation is executed to the intermediate file according to the library Protobuf, obtains binary data string;
Correspondingly, described send the intermediate file to the receiving end of data information described in demand, comprising:
The binary data string after the intermediate file serializing is sent to the receiving end of data information described in demand.
Optionally, the receiving end, comprising: android client, ios client or window client.
Optionally, before the acquisition data information the step of, comprising:
Based on the network layer interface that C or C++ is realized, the request for the acquisition data information that the receiving end is sent is received.
Correspondingly, present invention also provides a kind of device of cross-platform data communication, the dress of the cross-platform data communication It sets, comprising:
Data capture unit, for obtaining data information;
Intermediate file generation unit, for being instantiated to the data information with preset data format, generation is taken The intermediate file of data object with the corresponding data information;
Intermediate file transmission unit, for sending the intermediate file to the receiving end of data information described in demand.
In addition, present invention also provides a kind of electronic equipment, the electronic equipment, comprising:
Processor;
Memory is used for data communication program, and described program executes following behaviour when reading execution by the processor Make: obtaining data information;The data information is instantiated with preset data format, generates and carries the corresponding data The intermediate file of the data object of information;The intermediate file is sent to the receiving end of data information described in demand.
In addition, present invention also provides a kind of method of cross-platform data processing, the method for the cross-platform data processing, Include:
Obtain intermediate file;The intermediate file carries the data object of preset data form;
The intermediate file is parsed, the data object that the intermediate file is carried is converted to data lattice Formula data object corresponding with current system;
The data object after conversion is matched with preset data model;
Instantiate the data object being matched in the preset data model.
Optionally, the intermediate file, comprising: proto file;The proto file is the definition of Protobuf data File.
Optionally, the system, comprising: Android system, ios system or Windows system.
Optionally, the data object described to parse to the intermediate file, that the intermediate file is carried turns It is changed to data format data object corresponding with current system, comprising:
The intermediate file is parsed, the data object for the preset data form that the intermediate file carries is obtained;
According to the preset Data Format Transform agreement of the correspondence intermediate file, the data object is converted to should The data object of preceding system.
Optionally, the acquisition intermediate file, comprising:
Receive binary data string;
According to the application programming interface provided in the language library of Protobuf, the binary data string is executed anti- Serializing operation, obtains the intermediate file.
Optionally, the reception binary data string, comprising:
Based on the network layer interface that C or C++ is realized, binary data string is received.
Optionally, it is described instantiation be matched to the data object in the preset data model the step of it Afterwards, comprising:
The data object is generated to the data of specified chart format, and is shown;Or
By data object storage into specified data library table.
Correspondingly, present invention also provides a kind of device of cross-platform data processing, the dress of the cross-platform data processing It sets, comprising:
Acquiring unit, for obtaining intermediate file;The intermediate file carries the data object of preset data form;
Data object acquiring unit, for being parsed to the intermediate file, the intermediate file is carried described in Data object is converted to data format data object corresponding with current system;
Matching unit, for matching the data object after conversion with preset data model;
Instantiating unit, for instantiating the data object being matched in the preset data model.
In addition, present invention also provides another electronic equipment, the electronic equipment, comprising:
Processor;
Memory is used for data communication program, and described program executes following behaviour when reading execution by the processor Make: obtaining intermediate file;The intermediate file carries the data object of preset data form;The intermediate file is solved Analysis, the data object that the intermediate file is carried are converted to data format data object corresponding with current system; The data object after conversion is matched with preset data model;Instantiation is matched to the preset data model In the data object.
In addition, present invention also provides a kind of system of cross-platform data communication, the system of the cross-platform data communication, Include:
The device of the cross-platform data communication;And
The device of the cross-platform data processing.
Compared with prior art, the application has the following advantages:
The method, apparatus and electronic equipment of a kind of cross-platform data communication provided by the present application, by obtaining data letter Breath;The data information is instantiated, intermediate file is formed;It is sent in described to the receiving end of data information described in demand Between file.
It is intermediate by obtaining present invention also provides the method, apparatus and electronic equipment of a kind of processing of cross-platform data File;The intermediate file is parsed, data object corresponding with current system is obtained;By the data object and in advance If data model matched;Instantiate the data object being matched in the preset data model.
The method of the cross-platform data communication and the method for cross-platform data processing are used in conjunction with each other, and are passed through It can be carried out interactive intermediate file with the client that open source protocol and wscript.exe generate server end and different platform, it is real Existing cross-platform network communication, promotes development efficiency;And since Java and object-c can be with C language and C Plus Plus It interacts, so the unified encapsulation using c++ as network interface, it is cross-platform to realize network layer interface, while to network data Response and transmission play a degree of optimization function.
In addition to this, since wscript.exe support automatically generates the model class of oc/Java, oneself of data model layer is realized Dynamic metaplasia at;Due to having carried out serializing and unserializing operation to intermediate file by open source protocol, by the data of transmission Be converted into binary data string, compared with original xml and json, in the response speed of net request faster, volume of transmitted data It is smaller, increase efficiency of transmission.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application can also be obtained according to these attached drawings other for those of ordinary skill in the art Attached drawing.
Fig. 1 shows the flow chart of the method for the cross-platform data communication provided according to an embodiment of the present application;
Fig. 2 shows the schematic diagrames of the device of the cross-platform data provided according to an embodiment of the present application communication;
Fig. 3 shows the schematic diagram of the electronic equipment provided according to an embodiment of the present application;
Fig. 4 shows the flow chart of the method for the cross-platform data processing provided according to an embodiment of the present application;
Fig. 5 shows the schematic diagram of the device of the cross-platform data processing provided according to an embodiment of the present application;
Fig. 6 shows the schematic diagram of another electronic equipment provided according to an embodiment of the present application;
Fig. 7 shows the schematic diagram of the system of the cross-platform data communication provided according to an embodiment of the present application.
Specific embodiment
It is with reference to the accompanying drawing and specific real in order to be more clearly understood that the above objects, features, and advantages of the application Mode is applied the application is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
Many details are explained in the following description in order to fully understand the application.But the application can Implemented with being much different from other way described herein, those skilled in the art can be in the feelings without prejudice to the application intension Similar popularization is done under condition, therefore, the application is not limited by following public specific implementation.
Embodiments herein provides a kind of method of cross-platform data communication, a kind of method of cross-platform data processing And a kind of system of cross-platform data communication;Embodiments herein provides a kind of dress of cross-platform data communication simultaneously It sets, the device and another electronic equipment of the processing of electronic equipment, a kind of cross-platform data.In the following embodiments one by one into Row is described in detail.
There are two big Mainstream Platforms, ios and android in mobile terminal at present, due to upper layer application exploitation platform dependency and Using different programming languages, the object constructed in Java language is logical carrying out network in a manner of xml or json When letter, directly object-c can not be allowed to use.It can be seen that when carrying out network communication in a manner of xml or json, it cannot Cross-platform communication is realized, so current each company requires Liang Ge special team and maintain the same product, server-side It needs to debug with multiple platforms or language;And different platform needs to realize a set of network layer interface respectively, if interface data needs It models, need to be using corresponding model class be manually generated, development cost is higher;In addition, xml parsing when time overhead compared with Greatly, xml format can also introduce the text information occupied space of some redundancies, space is opened also big to there is preferable readability.Needle To this problem, in the embodiment of the present application, by generating server end and different platform with open source protocol and wscript.exe Client can be carried out interactive intermediate file, to realize cross-platform network communication.
Before the specific steps of detailed description the present embodiment, first the open source projects that the technical program is related to are made briefly It is bright.
Curl is the open source file transfer conveyance to be worked under command line mode using URL syntax.It is widely used in In Unix, a variety of Linux releases, and there is the transplanting version under DOS and Win32, Win64.In the embodiment of the present application, base The unified encapsulation of c++ interface is done in open source projects curl, since Java and object-c can be interacted with C++, so logical Crossing open source projects curl realizes that network layer interface is cross-platform, at the same response to network data and transmission play it is a degree of Optimization.
Protocolbuffer is a kind of format of data exchange of google, it is independently of language, independently of platform. Google provides the realization of multilingual: Java, c#, c++, go and python, each realization all contains corresponding language Compiler and library file.Since it is a kind of binary format, permitted fastly than using xml or json to carry out data exchange It is more.Can be it for the data exchange under the data communication or isomerous environment between Distributed Application, it can be by structuring Data Serialization can be used for data storage, communication protocol etc..The binary system all very outstanding as a kind of efficiency and compatibility Data transmission format can be used for the numerous areas such as network transmission, configuration file, data storage.
Embodiments herein provides a kind of method of cross-platform data communication, the method for the cross-platform data communication Can implement in android, ios or window client or server end, meanwhile, can be adapted for C language, C++, The programming languages environment such as Java, is not limited thereto certainly.It is understood that in order to be suitable for a certain operating system or certain One language environment realizes that the program code of the method for the communication of cross-platform data provided by the present embodiment can be according to the operation system The characteristics of system or the language environment, is write.The embodiment of the method for the cross-platform data communication is as follows:
Referring to FIG. 1, it illustrates the processes of the method for the cross-platform data provided according to an embodiment of the present application communication Figure.
The method of the cross-platform data communication, comprising:
Step S101 obtains data information.
In the present embodiment, the acquisition data information, can realize in the following way: server end is from database Obtain the data information.
It should be noted that the data information be in the database stored in the form of database table, if with A record is described in dry field, so the data information obtained in this step is deposited by the data information The value of field name and field in the database table of storage forms, and the data information furthermore obtained in this step can be with It is the combination of a record or several records.
It should be understood that needing to access corresponding number according to the demand of user when accessing database acquisition data information According to Ku Biao to obtain corresponding data information, need first to determine the type and inquiry ginseng of the required data information of user Number, so including the following steps: before executing the step of step S101 obtains data information
Based on the network layer interface that C or C++ is realized, the request for the acquisition data information that the receiving end is sent is received.
It should be noted that since the method for cross-platform data provided by the present application communication realizes cross-platform network Communication, by taking there are two big Mainstream Platform ios and android in current mobile terminal as an example: due to the programming language Java of Android system It can be interacted with C language and C Plus Plus with the programming language object-c of ios, so the net realized based on C or C++ When network layers interface, it can also be communicated by the network layer interface between different two platforms of system.The receiving end is One end for receiving the information of the server end feedback includes at least following 3 according to the difference of the operating system of receiving end Kind client: android client, ios client or window client.
In the present embodiment, the network layer interface realized based on C or C++ is: being c++ based on open source projects curl and connects The unified encapsulation of mouth.Wherein, encapsulation refers to: the attribute and realization details of hidden object, only external disclosure interface, controls in program The access level of reading and the modification of middle attribute;The data abstract obtained and behavior (or function) are combined, that is, by data It is organically combined, is formed " class ", wherein data and function are all the members of class with the source code of operation data.
Specifically, being to pass through when the request for the acquisition data information that receiving end described in the received server-side is sent HTTP transmits the request for obtaining data information.Wherein, HTTP is used to obtain data from server end, is that a kind of build exists Simple protocol on TCP/IP.HTTP allows to send data from client.HTTP is some ASCII texts Row, these ASCII texts are sent to server end from client to request a special operation.Then, server end is being sent out Some literal lines are responded before giving the actual request content of client.Such as: client (curl) sends a HTTP and asks Ask, the request include operating method (such as: GET), server end is based on HTTP request and responds a statusline (showing to grasp Make whether result succeeds) and response message body, the message body portion is exactly that (server end is based on for the real data requested Obtain the corresponding data information that the request of data information is inquired from database table).
The acquisition process for obtaining data information is described in detail below by a specific example.
There are 2 database tables in the database, one is film information table, and one is personnel's information table, wherein described Film information table includes following field:
Number Movie name Director Show the date
1 ABC Aa 1.10
2 QWE Bb 1.20
The personal information table includes following field:
Work number Name Gender The length of service
1 aa Male 1
2 bb Female 2
If the network layer interface that the server end is realized based on C or C++, the acquisition number of the received receiving end transmission It is believed that the query argument for including is director Aa in the request of breath, then it is to direct when executing step S101 acquisition data information Aa determines film information table as the database table in parameter query database, according to director's field, determines and corresponds to further according to Aa Record.
Step S103 instantiates the data information with preset data format, generates and carries the corresponding number It is believed that the intermediate file of the data object of breath.
In the present embodiment, described that the data information is instantiated with preset data format, generate carrying pair The intermediate file of the data object of the data information is answered, can be realized in the following way: with institute in pre-set class Data information is stated as parameter and creates data object, and the class of data object will have been created as intermediate file.
It should be noted that the instantiation refers to: in the programming of object-oriented, usually the mistake with class creation object Journey is known as instantiating, the process of instantiation be exactly for the process in object storage allocation space, with keyword new create one it is new right As format is as follows:
Class name object name=new class name ([parameter list]);
Such as Date date=new Date ();As soon as exactly creating the object for showing the date with date class, cry pair The instantiation of elephant.
It is described that the data information is instantiated with preset data format, it generates and carries the corresponding data information Data object intermediate file, specifically comprise the following steps:
It obtains pre-set for storing the class of the data information;
The value of field in the data information is stored in the class;
Using the class after instantiation as the intermediate file.
It should be noted that it is described pre-set for storing the class of the data information, it is to be given birth to by .proto file At class.Object only is stated in the class, does not distribute it complete memory headroom.The statement object is Refer to: when a computer program needs to call memory headroom, the occupy-place that memory issues being instructed.Statement is only by object name (user identifier) tells compiler for information about, but does not cause the distribution of memory, only by variable representated by object name It regards a reference to variable as, and distributes required memory headroom for it, its occupied space is far smaller than the object of a class Required space, but the object stated cannot use at once, it is also necessary to it is instantiated.
It should be understood that the class only notifies compiler to need to prepare great memory headroom, its unpromising distribution Memory headroom.It, just can real committed memory space after only creating object with class.
It is according in step when executing the step for obtaining the pre-set class for storing the data information The data information obtained in S101 obtains the corresponding pre-set class for being used to store the data information, specifically, It can be obtained according to the field name in the data information corresponding pre-set for storing the class of the data information.
Above-mentioned example is continued to use below the class for storing the data information of setting is described in detail.
By pre-set for for storing the class of the data information to film information table:
Film information includes as properties:
Number: number (uses integer representation)
Movie name: name (uses string representation)
Director: director (uses string representation)
Duration: time (is indicated) with the date
It is realized using Protobuf and class is generated with .proto file (movie.proto), add one in .proto file The message structure of a entitled Movie, for describing the structural data in communications protocol.The content of this document approximately as:
Movie message format has 4 fields, and the data information carried in the message corresponds respectively to each field.Its In each field have a name and a seed type.
In the above example, all fields are all scalar types: an integer (number), a date (date), Two string types (name and director).
As above-mentioned file format, in message definition, each field has a unique identifier.These identifiers It is that cannot change again for identifying each field in the message once using.[1,15] identification number within exists A byte can be occupied when coding.
Specified message field modifier includes one of following:
Required: the field that not can increase or delete is indicated;
Optional: the field can have 0 or 1 value (being no more than 1) in message format.
Repeated: in the good message of format, this field may be repeated any multiple of times (including 0 time).Weight The sequence of multiple value can be retained.Indicate the List that the value can repeat, and be equivalent in Java.
Each above-mentioned message can respectively correspond a .proto file.
It should be noted that the class is just preset before executing the step of step S101 obtains data information , the above-mentioned example provided is only schematical, in specific implementation, can preset correspondence with the combination of part field Class, it is same for being that other database tables in database are also required to preset corresponding class, due in setting Only field type and field name difference, so details are not described herein.
Due to only stating object in the class of acquisition, there is no distribute it complete memory headroom, institute To need to instantiate the object in the class, so executing the value by field in the data information, storage It is that the value of field in the data information is assigned to the field that the value is corresponded in the class when step in the class The object of title completes instantiation process.Specifically, GET method can be used, field is obtained from the data information Value, carries out assignment in the class.
It is shown since what is got in the acquisition data information is that record has the record for directing Aa when carrying out assignment The value that field will be obtained from the data information is that number 1 is assigned to number, is incited somebody to action when carrying out assignment in the class Movie name ABC is assigned to name, director Aa is assigned to director and duration 1.10 is assigned to date.
In the present embodiment, the intermediate file includes: proto file;The proto file is Protobuf data Define file.
Step S105 sends the intermediate file to the receiving end of data information described in demand.
In the present embodiment, described to send the intermediate file to the receiving end of data information described in demand, it can use Under type is realized: server end is formed in step s 103 by the receiving end transmission of data information as described in HTTP to demand The intermediate file.
Specifically, described send the intermediate file to the receiving end of data information described in demand, it is real based on C or C++ Existing network layer interface sends the intermediate file to the receiving end of data information described in demand.
It should be noted that the receiving end is one end for receiving the intermediate file that the server end is sent, root According to the difference of the operating system of receiving end, include at least following 3 kinds of clients: android client, ios client or Window client.
When execution step S105 sends the intermediate file to the receiving end of data information described in demand, in order to improve number According to efficiency of transmission, reduce the transmission quantity of data, the technical solution of the present embodiment provides a kind of preferred embodiment, is executing Before step S105 sends the intermediate file to the receiving end of data information described in demand, the intermediate file is pressed Contracting.
It is described that the intermediate file is compressed, it can realize in the following way:
Serializing operation is executed to the intermediate file according to the library Protobuf, obtains binary data string.
It should be noted that the serializing operation refers to: object serialization (Serialization) technology, being will be right Image data is converted into the technology of another perdurable data form, i.e., being converted to the status information of object can store or transmit Form process.During serializing, its current state is written to interim or persistent storage area by object, can by from The state of reading or unserializing object in memory block, re-creates the object.In order to enable the data energy after storing and transmitting Enough objects become again in memory again, such conversion must be reversible.Sequencing method and unserializing method are extensive Using in inter-network data is transmitted and is applied, it usually needs convert the information into data flow, realize data transmission and application.Class As, unserializing extracts data from the representation of serializing, and Obj State is directly arranged.
Above-mentioned example is continued to use below intermediate file execution serializing operation is described in detail.
For carrying out the intermediate file after assignment:
Using protoc compiler, the intermediate file is compiled, (Protobuf agreement also supports Java language by taking C++ as an example Speech, Python, can change corresponding type into) .h and .cc text can be generated after being compiled to the intermediate file Part .h are that the statement .cc of class is to realize.
Due to having many fields, the format of each field in the message of Protobuf are as follows: modifier field type field Name=domain number;The intermediate file is executed by the library Protobuf again when serializing, according to TLV, (T is Protobuf consultation Key, V are the corresponding value value of field, and L is the length of Value) binary format serialize each field, after serializing Value be to save as it is, Key is saved according to certain switch condition, and the result after serializing is exactly KeyValueKeyValue….The serialization format of Key is turned according to the subsequent domain number of field in message and field type It changes.
Message structure in traverse object, and serialize each field in Message, method approximately as:
Movie movie;
movie.set_number("1");
movie.set_name("ABC");
movie.set_director("Aa");
movie.set_time("1.10");
movie.SerializeToOstream();
The serialization process of the intermediate file is briefly described by taking Java language as an example below.
By calling wirteTo () method in the raw class GenerateMessage of compiling to start the byte after serializing It is written in output stream.Wherein, GenerateMessage inherits AbstractMessage class, and serializing finally exists It is completed in AbstractMesssage, the realization process of serializing is as follows:
Call writeTo () method in AbstractMessage class, the Message structure () in traverse object;
Call writeMessageSetExtension () method in CodeOutputStream class, serializing Each field in Message.
It should be understood that generating compressed to the intermediate file two due to serializing the intermediate file Binary data string, so being when execution step S105 sends the intermediate file to the receiving end of data information described in demand The binary data string after the intermediate file serializing is sent to the receiving end of data information described in demand.
In the above-described embodiment, a kind of method of cross-platform data communication is provided, is communicated with above-mentioned cross-platform data Method it is corresponding, present invention also provides a kind of cross-platform data communication device.Due to the basic phase of the embodiment of device It is similar to the embodiment of method, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.It is following The Installation practice of description is only schematical.The Installation practice of the cross-platform data communication is as follows:
Referring to FIG. 2, it illustrates the signals of the device of the cross-platform data provided according to an embodiment of the present application communication Figure.
The device of cross-platform data communication, comprising: data capture unit 201, intermediate file generation unit 203 and Intermediate file transmission unit 205;
The data capture unit 201, for obtaining data information;
The intermediate file generation unit 203, for being instantiated to the data information with preset data format, Generate the intermediate file for carrying the data object of the corresponding data information;
The intermediate file transmission unit 205, for sending the intermediate text to the receiving end of data information described in demand Part.
Optionally, the intermediate file generation unit 203 is formed specifically for instantiating to the data information Proto file;The proto file is the definition file of Protobuf data.
Optionally, the data capture unit 201, specifically for obtaining the value of field name and field.
Optionally, the device of cross-platform data communication, the intermediate file generation unit 203, comprising: class obtains Subelement, storing sub-units and intermediate file generate subelement;
The class obtains subelement, pre-set for storing the class of the data information for obtaining;
The storing sub-units, for being stored in the value of field in the data information in the class;
The intermediate file generates subelement, for the class after instantiating as the intermediate file.
Optionally, the intermediate file transmission unit 205, specifically for based on C or C++ realization network layer interface, to The receiving end of data information described in demand sends the intermediate file.
Optionally, the device of cross-platform data communication, further includes: serialization unit;
The serialization unit, for sending the intermediate file in the receiving end to data information described in demand Before, serializing operation is executed to the intermediate file according to the library Protobuf, obtains binary data string.
Correspondingly, the intermediate file transmission unit 205, specifically for being sent to the receiving end of data information described in demand Binary data string after the intermediate file serializing.
Optionally, the intermediate file transmission unit 205, specifically for based on C or C++ realization network layer interface, to Android client, ios client or the window client of data information described in demand send the intermediate file.
Optionally, the device of cross-platform data communication, further includes: request reception unit;
The request reception unit, for being connect based on the C or C++ network layer realized before the acquisition data information Mouthful, receive the request for the acquisition data information that the receiving end is sent.
In the above-described embodiment, the method and a kind of communication of cross-platform data of a kind of cross-platform data communication are provided Device, in addition, present invention also provides a kind of electronic equipment;The electronic equipment embodiment is as follows:
Referring to FIG. 3, it illustrates the schematic diagrames of the electronic equipment provided according to an embodiment of the present application.
The electronic equipment, comprising: processor 301;Memory 303;
The memory 303 is used for data communication program, and described program is executed when reading execution by the processor Following operation: data information is obtained;The data information is instantiated with preset data format, generates and carries corresponding institute State the intermediate file of the data object of data information;The intermediate file is sent to the receiving end of data information described in demand.
For example, the electronic equipment is server end, the server end and client carry out network linking, the service Device end obtains corresponding data information according to the data information of the client demand;And to the data information with preset number It is instantiated according to format, generates the intermediate file for carrying the data object of the corresponding data information;Finally to described in demand The receiving end of data information sends the intermediate file.Due to the method that this electronic equipment is communicated using above-mentioned cross-platform data, Related place refers to the embodiment explanation of the method for above-mentioned cross-platform data communication, and details are not described herein again.
In the above-described embodiment, a kind of method of cross-platform data communication is provided, a kind of cross-platform data communicates Device and a kind of electronic equipment, in addition, present invention also provides a kind of methods of cross-platform data processing;The cross-platform number It is as follows according to the embodiment of the method for processing:
Referring to FIG. 4, it illustrates the processes of the method for the cross-platform data provided according to an embodiment of the present application processing Figure.
The method of the cross-platform data processing, comprising:
Step S401 obtains intermediate file;The intermediate file carries the data object of preset data form.
In the present embodiment, the acquisition intermediate file;The intermediate file carries the data object of preset data form, Can realize in the following way: the network layer interface realized based on C or C++ is received the server end and is sent by HTTP The intermediate file.The network layer interface realized based on C or C++ is: the system of c++ interface is done based on open source projects curl One encapsulation.
It should be noted that since the method for cross-platform data provided by the present application processing realizes cross-platform network Communication, by taking there are two big Mainstream Platform ios and android in current mobile terminal as an example: due to the programming language Java of Android system It can be interacted with C language and C Plus Plus with the programming language object-c of ios, so the net realized based on C or C++ When network layers interface, it can also be communicated by the network layer interface between different two platforms of system.
Specifically, receiving end (curl) is to receive the acquisition intermediate file based on HTTP.Such as: the receiving end is logical It crosses network layer interface (curl) and first sends a HTTP request (comprising obtaining asking for data information in request to the server end Ask), server end is based on HTTP request and responds a statusline (showing whether operating result succeeds) and response message body, The message body portion is exactly real data (intermediate text of the server end based on the request feedback for obtaining data information requested Part), the receiving end receives the intermediate file by network layer interface (curl).
In the present embodiment, the intermediate file, comprising: proto file;The proto file is Protobuf data Definition file.
Except above-mentioned directly in addition to the mode of intermediate file described in the received server-side, obtained executing step S401 When intermediate file, in order to improve the efficiency of transmission of data, the transmission quantity of data is reduced, the technical solution of the present embodiment provides one Kind preferred embodiment is the institute from the received server-side through overcompression when executing step S401 acquisition intermediate file Intermediate file is stated, and obtains the intermediate file from the compressed intermediate file, is specifically comprised the following steps:
Receive binary data string;
According to the application programming interface provided in the language library of Protobuf, the binary data string is executed anti- Serializing operation, obtains the intermediate file.
In the present embodiment, the reception binary data string, can realize in the following way: be realized based on C or C++ Network layer interface, receive the binary data string that the server end is sent by HTTP.It is described real based on C or C++ Existing network layer interface is: the unified encapsulation of c++ interface is done based on open source projects curl.
It should be noted that the language library of Protobuf includes but is not limited to the language library of the language such as C, C++, Java;This What is provided in the language library (such as the library Java) that the method for the cross-platform data processing of embodiment passes through Protobuf answers accordingly The binary data string is solved with Program Interfaces (Application Programming Interface, API) Analysis, is deserialized as corresponding intermediate file for the binary data string;.proto file in the present embodiment is to pass through Protobuf language defines the file of type of message generation, and proto file can define multiple type of messages.
Unserializing operation is executed to the binary data string with a specific example below to be described in detail.
When using the unserializing of Protobuf with Java:
It is described by calling parserFrom (byte [] data) to start to carry out unserializing to the binary data string ParserFrom () method is realized in com.google.protobuf.AbstractParser class, is finally existed Unserializing is completed in com.google.protobuf.CodedInputStream class, obtains the intermediate file.
Using C++stream unserializing API when: be by ParseFromIstream () method, to described two into Serial data processed carries out unserializing, obtains the intermediate file.
Step S403 parses the intermediate file, the data object that the intermediate file is carried, conversion For data format data object corresponding with current system.
In the present embodiment, the data described that the intermediate file is parsed, that the intermediate file is carried Object is converted to data format data object corresponding with current system, can realize in the following way: to the centre File (.proto) is parsed, and the data object that the intermediate file carries is obtained from the intermediate file, and will The data object is converted to the data structure that the programming language of current system can parse.
The data object described to parse to the intermediate file, that the intermediate file is carried, is converted to number According to format data object corresponding with current system, specifically comprise the following steps:
The intermediate file is parsed, the data object for the preset data form that the intermediate file carries is obtained;
According to the preset Data Format Transform agreement of the correspondence intermediate file, the data object is converted to should The data object of preceding system.
It in the present embodiment, is the application programming interface provided in the language library by Protobuf, in described Between file parsed, can be by the data of the intermediate file and according to Data Format Transform agreement Protocolbuffer The data structure that structure elucidation can be parsed at current language.
It should be noted that when running .proto file with protocolbuffer compiler, it will be selected by generation The code of language, these codes may operate in type of message defined in .proto file, including obtain, field value is arranged, Message is parsed from an inlet flow.For C++, compiler can be one .h file of each .proto file generated and one A .cc file, each of .proto file message have a corresponding class;For Java, compiler disappears for each Breath type generates a .Java file.
In the present embodiment, the current system, includes at least: Android system, ios system or Windows system. When current system is Android system, the data object of acquisition is Java object;Same reason, when current system is ios When system, the data object of acquisition is oc object.
Step S405 matches the data object after conversion with preset data model.
In the present embodiment, the data object by after conversion is matched with preset data model, can be with It realizes in the following way: the data object after conversion is matched with the object in preset data model.
It should be noted that the preset data model is: according in the server end being attached with the client, Database table in corresponding database and the data model formed, the client can obtain more out of described server end Kind data information, and the data information may be respectively stored in different database tables, the word in the database table Section is different, thus also different according to the data model that field different in database table is formed, it is therefore desirable in advance For Various types of data information and data information combination formed to data model.
Corresponding object only is stated in the data model, does not distribute it complete memory headroom, and When executing this step, after the data object is matched with preset data model, S407 can be entered step to matching The object stated in successful data model is instantiated.
Step S407 instantiates the data object being matched in the preset data model.
In the present embodiment, described to instantiate the data object that is matched in the preset data model, it can be with It realizes in the following way: creating data pair using the data information as parameter in being matched to the preset data model As.
It should be noted that due to only stating object in the data model, it is complete there is no distributing it one Whole memory headroom is by the ginseng in the data object so needing to instantiate the object in the data model Numerical value is assigned to the object that the field name of the value is corresponded in the data model, completes instantiation process.Specifically, institute Stating and carrying out instantiation in preset data model is by keyword new instance object, and format is as follows:
Class name object name=new class name ();
Such as: Movie movie=new Movie ();
movie.setNumber("1");
movie.setName("ABC");
movie.setDirector("Aa");
movie.setDate("1.10")
As a preferred embodiment, in the method for cross-platform data provided by the embodiments of the present application processing, from institute State after obtaining corresponding parameter value in data object, need to also in active client according to the parameter value in display interface In shown.
Such as: after obtaining corresponding parameter value in the data object, by the data in active client The data that object generates specified chart format (generate specified hypertext markup language HyperText Mark-up Language, HTML etc.), and the parameter value of the data object is shown;Or
By data object storage into specified data library table.
In the above-described embodiment, a kind of method of cross-platform data processing is provided, with the processing of above-mentioned cross-platform data Method it is corresponding, present invention also provides a kind of cross-platform data processing device.Due to the basic phase of the embodiment of device It is similar to the embodiment of method, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.It is following The Installation practice of description is only schematical.The Installation practice of the cross-platform data processing is as follows:
Referring to FIG. 5, it illustrates the signals of the device of the cross-platform data provided according to an embodiment of the present application processing Figure.
The device of the cross-platform data processing, comprising: acquiring unit 501, data object acquiring unit 503, matching are single Member 505 and instantiating unit 507;
The acquiring unit 501, for obtaining intermediate file;The intermediate file carries the data pair of preset data form As;
The data object acquiring unit 503 carries the intermediate file for parsing to the intermediate file The data object, be converted to data format data object corresponding with current system;
The matching unit 505, for matching the data object after conversion with preset data model;
The instantiating unit 507, for instantiating the data object being matched in the preset data model.
Optionally, the acquiring unit 501 is specifically used for obtaining proto file;The proto file is Protobuf The definition file of data.
Optionally, the data object acquiring unit 503, specifically for obtaining for being parsed to the intermediate file Take the data object of corresponding Android system, ios system or Windows system.
Optionally, the data object acquiring unit 503, comprising: parsing subunit and conversion subunit;
The parsing subunit obtains the default of the intermediate file carrying for parsing to the intermediate file The data object of data format;
The conversion subunit is used for according to the preset Data Format Transform agreement of the correspondence intermediate file, will be described Data object is converted to the data object of corresponding current system.
Optionally, the device of the described cross-platform data processing, the acquiring unit, comprising: serial data receiving unit with And unserializing unit;
The serial data receiving unit, for obtaining binary data string;
The unserializing unit, the application programming interface for providing in the language library according to Protobuf are right The binary data string executes unserializing operation, obtains the intermediate file.
Optionally, the device of cross-platform data processing, the serial data receiving unit are specifically used for being based on C or C ++ the network layer interface of realization receives binary data string.
Optionally, the device of cross-platform data processing, further includes: storage and display unit;
The storage and display unit, for instantiating the data being matched in the preset data model described After object, the data object is generated to the data of specified chart format, and is shown;Or
By data object storage into specified data library table.
In the above-described embodiment, a kind of method of cross-platform data communication is provided, a kind of cross-platform data communicates Device, a kind of electronic equipment, a kind of method of cross-platform data processing and a kind of device of cross-platform data processing, in addition, Present invention also provides another electronic equipments;The electronic equipment embodiment is as follows:
Referring to FIG. 6, it illustrates the schematic diagrames of another electronic equipment provided according to an embodiment of the present application.
The electronic equipment, comprising: processor 601;Memory 603;
The memory 603 is used for data communication program, and described program is executed when reading execution by the processor Following operation: intermediate file is obtained;The intermediate file carries the data object of preset data form;To the intermediate file into Row parsing, the data object that the intermediate file is carried are converted to data format data corresponding with current system Object;The data object after conversion is matched with preset data model;Instantiation is matched to the preset number According to the data object in model.
For example, the electronic equipment is client, the client and server carries out network linking, the client Receive the intermediate file that the server end is sent;And the intermediate file is parsed, it obtains corresponding with current system Data object;The data object is matched with preset data model again;Finally instantiation is matched to described default Data model in the data object.Due to the method that this electronic equipment is handled using above-mentioned cross-platform data, correlation Place refers to the embodiment explanation of the method for above-mentioned cross-platform data processing, and details are not described herein again.
In the above-described embodiment, a kind of method of cross-platform data communication is provided, a kind of cross-platform data communicates The device and another kind that device, a kind of electronic equipment, a kind of method of cross-platform data processing, a kind of cross-platform data are handled Electronic equipment, in addition, present invention also provides a kind of systems of cross-platform data communication;The system of the cross-platform data communication Embodiment is as follows:
Referring to FIG. 7, it illustrates the signals of the system of the cross-platform data provided according to an embodiment of the present application communication Figure.
The system of the cross-platform data communication, comprising: at the device 701 and cross-platform data of cross-platform data communication The device 703 of reason;
The device 701 of the cross-platform data communication, for obtaining data information;To the data information with preset number It is instantiated according to format, generates the intermediate file for carrying the data object of the corresponding data information;To data described in demand The receiving end of information sends the intermediate file;
The device 703 of the cross-platform data processing, for obtaining intermediate file;The intermediate file carries preset data The data object of format;The intermediate file is parsed, the data object that the intermediate file is carried is converted to Data format data object corresponding with current system;The data object after conversion is carried out with preset data model Matching;Instantiate the data object being matched in the preset data model.
Wherein, the device 701 of cross-platform data communication can arrange on computer, according to the cross-platform data The specific effect of the device 701 of communication in systems, can implement on server end and client respectively.Such as: in visitor When family end is to server end submission form or registration information, the device 701 of cross-platform data communication can be client;It is taking When being engaged in device end to client push information or feedback information, the device 701 of cross-platform data communication can be server end;Together The reason of sample, the device 703 of cross-platform data processing can also arrange on computer, at the cross-platform data The specific effect of the device 703 of reason in systems, can also implement on server end and client respectively.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
1, computer-readable medium can be by any side including permanent and non-permanent, removable and non-removable media Method or technology realize that information stores.Information can be computer readable instructions, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or Other magnetic storage devices or any other non-transmission medium, can be used for storage can be accessed by a computing device information.According to Herein defines, and computer-readable medium does not include non-temporary computer readable media (transitory media), such as modulates Data-signal and carrier wave.
2, it will be understood by those skilled in the art that embodiments herein can provide as the production of method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It can be used moreover, the application can be used in the computer that one or more wherein includes computer usable program code The computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Form.
Although the application is disclosed as above with preferred embodiment, it is not for limiting the application, any this field skill Art personnel are not departing from spirit and scope, can make possible variation and modification, therefore the guarantor of the application Shield range should be subject to the range that the claim of this application defined.

Claims (20)

1. a kind of method of cross-platform data communication characterized by comprising
Obtain data information;
The data information is instantiated with preset data format, generates the data pair for carrying the corresponding data information The intermediate file of elephant;
The intermediate file is sent to the receiving end of data information described in demand.
2. the method for cross-platform data communication according to claim 1, which is characterized in that the intermediate file, comprising: Proto file;The proto file is the definition file of Protobuf data.
3. the method for cross-platform data communication according to claim 2, which is characterized in that the data information, comprising: word The value of name section and field.
4. the method for cross-platform data according to claim 3 communication, which is characterized in that it is described to the data information with Preset data format is instantiated, and the intermediate file for carrying the data object of the corresponding data information is generated, comprising:
It obtains pre-set for storing the class of the data information;
The value of field in the data information is stored in the class;
Using the class after instantiation as the intermediate file.
5. the method for cross-platform data communication according to any one of claims 1-4, which is characterized in that described to demand The receiving end of the data information sends the intermediate file, comprising:
Based on the network layer interface that C or C++ is realized, the intermediate file is sent to the receiving end of data information described in demand.
6. the method for cross-platform data communication according to claim 5, which is characterized in that described to data described in demand The receiving end of information was sent before the step of intermediate file, comprising:
Serializing operation is executed to the intermediate file according to the library Protobuf, obtains binary data string;
Correspondingly, described send the intermediate file to the receiving end of data information described in demand, comprising:
The binary data string after the intermediate file serializing is sent to the receiving end of data information described in demand.
7. the method for cross-platform data communication according to claim 6, which is characterized in that the receiving end, comprising: Android client, ios client or window client.
8. the method for cross-platform data communication according to claim 7, which is characterized in that in the acquisition data information Before step, comprising:
Based on the network layer interface that C or C++ is realized, the request for the acquisition data information that the receiving end is sent is received.
9. a kind of device of cross-platform data communication characterized by comprising
Data capture unit, for obtaining data information;
Intermediate file generation unit generates carrying pair for instantiating to the data information with preset data format Answer the intermediate file of the data object of the data information;
Intermediate file transmission unit, for sending the intermediate file to the receiving end of data information described in demand.
10. a kind of electronic equipment characterized by comprising
Processor;
Memory, is used for data communication program, and described program is performed the following operations: being obtained when reading execution by the processor Take data information;The data information is instantiated with preset data format, generates and carries the corresponding data information Data object intermediate file;The intermediate file is sent to the receiving end of data information described in demand.
11. a kind of method of cross-platform data processing characterized by comprising
Obtain intermediate file;The intermediate file carries the data object of preset data form;
The intermediate file is parsed, the data object that the intermediate file is carried, be converted to data format with The corresponding data object of current system;
The data object after conversion is matched with preset data model;
Instantiate the data object being matched in the preset data model.
12. the method for cross-platform data processing according to claim 11, which is characterized in that the intermediate file, comprising: Proto file;The proto file is the definition file of Protobuf data.
13. the method for cross-platform data processing according to claim 12, which is characterized in that the system, comprising: Android system, ios system or Windows system.
14. the method for cross-platform data processing according to claim 13, which is characterized in that described to the intermediate file It is parsed, the data object that the intermediate file is carried, is converted to data format number corresponding with current system According to object, comprising:
The intermediate file is parsed, the data object for the preset data form that the intermediate file carries is obtained;
According to the preset Data Format Transform agreement of the correspondence intermediate file, the data object is converted into corresponding current system The data object of system.
15. the method for the processing of cross-platform data described in 1-14 any one according to claim 1, which is characterized in that described to obtain Take intermediate file, comprising:
Receive binary data string;
According to the application programming interface provided in the language library of Protobuf, antitone sequence is executed to the binary data string Change operation, obtains the intermediate file.
16. the method for cross-platform data processing according to claim 15, which is characterized in that the reception binary data String, comprising:
Based on the network layer interface that C or C++ is realized, binary data string is received.
17. the method for cross-platform data processing according to claim 16, which is characterized in that be matched in the instantiation After the step of data object in the preset data model, comprising:
The data object is generated to the data of specified chart format, and is shown;Or
By data object storage into specified data library table.
18. a kind of device of cross-platform data processing characterized by comprising
Acquiring unit, for obtaining intermediate file;The intermediate file carries the data object of preset data form;
Data object acquiring unit, for being parsed to the intermediate file, data that the intermediate file is carried Object is converted to data format data object corresponding with current system;
Matching unit, for matching the data object after conversion with preset data model;
Instantiating unit, for instantiating the data object being matched in the preset data model.
19. a kind of electronic equipment characterized by comprising
Processor;
Memory, is used for data communication program, and described program is performed the following operations: being obtained when reading execution by the processor Take intermediate file;The intermediate file carries the data object of preset data form;The intermediate file is parsed, by institute The data object for stating intermediate file carrying, is converted to data format data object corresponding with current system;It will conversion The data object afterwards is matched with preset data model;Instantiate the institute being matched in the preset data model State data object.
20. a kind of system of cross-platform data communication characterized by comprising
The device of cross-platform data communication according to claim 9;And
The device of cross-platform data processing according to claim 18.
CN201710620876.XA 2017-07-27 2017-07-27 Cross-platform data communication and cross-platform data processing method, device and system Active CN109308224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710620876.XA CN109308224B (en) 2017-07-27 2017-07-27 Cross-platform data communication and cross-platform data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710620876.XA CN109308224B (en) 2017-07-27 2017-07-27 Cross-platform data communication and cross-platform data processing method, device and system

Publications (2)

Publication Number Publication Date
CN109308224A true CN109308224A (en) 2019-02-05
CN109308224B CN109308224B (en) 2022-07-08

Family

ID=65202723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710620876.XA Active CN109308224B (en) 2017-07-27 2017-07-27 Cross-platform data communication and cross-platform data processing method, device and system

Country Status (1)

Country Link
CN (1) CN109308224B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110136251A (en) * 2019-05-21 2019-08-16 北京光启元数字科技有限公司 A kind of cross-platform data visualisation system
CN110677827A (en) * 2019-08-23 2020-01-10 珠海格力电器股份有限公司 Network distribution method, device, system, electronic equipment and storage medium
CN110728118A (en) * 2019-09-10 2020-01-24 中国平安人寿保险股份有限公司 Cross-data-platform data processing method, device, equipment and storage medium
CN110751997A (en) * 2019-12-03 2020-02-04 上海正雅齿科科技股份有限公司 Production system and production method of shell-shaped tooth appliance
CN111092947A (en) * 2019-12-19 2020-05-01 北京金山云网络技术有限公司 Data transmission method, client, intermediate server, node and electronic equipment
CN111460020A (en) * 2020-04-02 2020-07-28 北京字节跳动网络技术有限公司 Method, apparatus, electronic device and medium for parsing message
CN111866047A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Data decoding method and device, computer equipment and storage medium
CN112068818A (en) * 2020-09-04 2020-12-11 中国平安财产保险股份有限公司 Service interaction method and device, computer equipment and storage medium
CN112148349A (en) * 2020-07-03 2020-12-29 上海金融期货信息技术有限公司 System for cross-platform instruction and configuration unified interface
CN113204683A (en) * 2021-06-04 2021-08-03 腾讯科技(成都)有限公司 Information reconstruction method and device, storage medium and electronic equipment
CN113268304A (en) * 2021-05-28 2021-08-17 稿定(厦门)科技有限公司 Cross-platform application special effect production method
CN113507530A (en) * 2021-09-09 2021-10-15 深圳市安软慧视科技有限公司 Data forwarding method, related system and device and storage medium
CN113779658A (en) * 2021-08-23 2021-12-10 中冶集团武汉勘察研究院有限公司 Method for automatically generating editable survey map based on B/S and C/S terminals
CN114519026A (en) * 2022-02-17 2022-05-20 深圳集智数字科技有限公司 Serial port communication method and device
CN115883658A (en) * 2022-12-07 2023-03-31 长安大学 Cross-platform image information transmission method, system, equipment and readable storage medium
CN112068818B (en) * 2020-09-04 2024-06-11 中国平安财产保险股份有限公司 Service interaction method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7165253B1 (en) * 2004-01-20 2007-01-16 The Mathworks, Inc. Common programming interface for hardware components
CN102571939A (en) * 2011-12-26 2012-07-11 广州市玄武无线科技有限公司 Cross-platform communication method and system
CN103294652A (en) * 2012-02-27 2013-09-11 腾讯科技(深圳)有限公司 Data conversion method and system
CN104199879A (en) * 2014-08-21 2014-12-10 广州华多网络科技有限公司 Data processing method and device
CN105117378A (en) * 2015-08-05 2015-12-02 联动优势电子商务有限公司 Method and apparatus for converting JSON file into EXCEL file
CN106452879A (en) * 2016-10-20 2017-02-22 国网青海省电力公司电力科学研究院 PB-based SCD cross-platform analysis method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7165253B1 (en) * 2004-01-20 2007-01-16 The Mathworks, Inc. Common programming interface for hardware components
CN102571939A (en) * 2011-12-26 2012-07-11 广州市玄武无线科技有限公司 Cross-platform communication method and system
CN103294652A (en) * 2012-02-27 2013-09-11 腾讯科技(深圳)有限公司 Data conversion method and system
CN104199879A (en) * 2014-08-21 2014-12-10 广州华多网络科技有限公司 Data processing method and device
CN105117378A (en) * 2015-08-05 2015-12-02 联动优势电子商务有限公司 Method and apparatus for converting JSON file into EXCEL file
CN106452879A (en) * 2016-10-20 2017-02-22 国网青海省电力公司电力科学研究院 PB-based SCD cross-platform analysis method

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866047B (en) * 2019-04-30 2023-07-07 北京达佳互联信息技术有限公司 Data decoding method, device, computer equipment and storage medium
CN111866047A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Data decoding method and device, computer equipment and storage medium
CN110136251A (en) * 2019-05-21 2019-08-16 北京光启元数字科技有限公司 A kind of cross-platform data visualisation system
CN110136251B (en) * 2019-05-21 2023-04-14 腾讯云计算(北京)有限责任公司 Cross-platform data visualization system
CN110677827B (en) * 2019-08-23 2020-09-22 珠海格力电器股份有限公司 Network distribution method, device, system, electronic equipment and storage medium
CN110677827A (en) * 2019-08-23 2020-01-10 珠海格力电器股份有限公司 Network distribution method, device, system, electronic equipment and storage medium
CN110728118A (en) * 2019-09-10 2020-01-24 中国平安人寿保险股份有限公司 Cross-data-platform data processing method, device, equipment and storage medium
CN110728118B (en) * 2019-09-10 2023-07-25 中国平安人寿保险股份有限公司 Cross-data-platform data processing method, device, equipment and storage medium
CN110751997A (en) * 2019-12-03 2020-02-04 上海正雅齿科科技股份有限公司 Production system and production method of shell-shaped tooth appliance
CN111092947A (en) * 2019-12-19 2020-05-01 北京金山云网络技术有限公司 Data transmission method, client, intermediate server, node and electronic equipment
CN111092947B (en) * 2019-12-19 2022-05-10 北京金山云网络技术有限公司 Data transmission method, client, intermediate server, node and electronic equipment
CN111460020B (en) * 2020-04-02 2023-09-08 抖音视界有限公司 Method, device, electronic equipment and medium for resolving message
CN111460020A (en) * 2020-04-02 2020-07-28 北京字节跳动网络技术有限公司 Method, apparatus, electronic device and medium for parsing message
CN112148349A (en) * 2020-07-03 2020-12-29 上海金融期货信息技术有限公司 System for cross-platform instruction and configuration unified interface
CN112148349B (en) * 2020-07-03 2024-03-15 上海金融期货信息技术有限公司 Cross-platform instruction and system for configuring unified interface
CN112068818A (en) * 2020-09-04 2020-12-11 中国平安财产保险股份有限公司 Service interaction method and device, computer equipment and storage medium
CN112068818B (en) * 2020-09-04 2024-06-11 中国平安财产保险股份有限公司 Service interaction method, device, computer equipment and storage medium
CN113268304A (en) * 2021-05-28 2021-08-17 稿定(厦门)科技有限公司 Cross-platform application special effect production method
CN113204683A (en) * 2021-06-04 2021-08-03 腾讯科技(成都)有限公司 Information reconstruction method and device, storage medium and electronic equipment
CN113204683B (en) * 2021-06-04 2022-07-01 腾讯科技(成都)有限公司 Information reconstruction method and device, storage medium and electronic equipment
CN113779658B (en) * 2021-08-23 2023-11-21 中冶集团武汉勘察研究院有限公司 Method for automatically generating editable investigation drawing based on B/S and C/S ends
CN113779658A (en) * 2021-08-23 2021-12-10 中冶集团武汉勘察研究院有限公司 Method for automatically generating editable survey map based on B/S and C/S terminals
CN113507530A (en) * 2021-09-09 2021-10-15 深圳市安软慧视科技有限公司 Data forwarding method, related system and device and storage medium
CN114519026A (en) * 2022-02-17 2022-05-20 深圳集智数字科技有限公司 Serial port communication method and device
CN115883658A (en) * 2022-12-07 2023-03-31 长安大学 Cross-platform image information transmission method, system, equipment and readable storage medium

Also Published As

Publication number Publication date
CN109308224B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN109308224A (en) The method, apparatus and system of cross-platform data communication, cross-platform data processing
CN104683386B (en) The stake service implementing method and device of customizable response
CN110032575A (en) Data query method, apparatus, equipment and storage medium
US20030018832A1 (en) Metadata-aware enterprise application integration framework for application server environment
US9602329B1 (en) Dynamic remote procedure call
CN109194762B (en) SSH-based soil information network publishing system and method
US20120089931A1 (en) Lightweight operation automation based on gui
CN112860260B (en) Web-based cross-platform application construction tool and method in college scene
CN102985922A (en) Method and apparatus for managing distributed computations within a computation space
TW201707416A (en) System, method, and device for remotely operating a server
CN109670081A (en) The method and device of service request processing
EP3610375B1 (en) Platform selection for performing requested actions in audio-based computing environments
CN110019835A (en) Resource method of combination, device and electronic equipment
CN109831466A (en) Micro services method for processing business and nginx server
CN108763323B (en) Meteorological grid point file application method based on resource set and big data technology
US20230352017A1 (en) Platform selection for performing requested actions in audio-based computing environments
CN110297637A (en) The applicable resource file thermogravimetric of full platform client software carries tool and method of development
CN104750468B (en) A kind of server-side topological data conversion method and conversion equipment
CN109491802A (en) A kind of method and adapter of the RESTFul network request based on Unity
CN109144950A (en) The storage method and device of business datum
CN113434175B (en) Data processing method, device, storage medium and equipment
Sredojević et al. ALAS: agent-oriented domain-specific language for the development of intelligent distributed non-axiomatic reasoning agents
EP2395468A1 (en) Semantic user interface data assembling
CN110633162B (en) Remote call implementation method and device, computer equipment and storage medium
CN110209699A (en) A kind of data-interface dynamic generation based on openEHR Composition template and execution method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant