CN106651066B - Data processing method and data processing platform - Google Patents

Data processing method and data processing platform Download PDF

Info

Publication number
CN106651066B
CN106651066B CN201510719252.4A CN201510719252A CN106651066B CN 106651066 B CN106651066 B CN 106651066B CN 201510719252 A CN201510719252 A CN 201510719252A CN 106651066 B CN106651066 B CN 106651066B
Authority
CN
China
Prior art keywords
application system
terminal
operation mode
information
request
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
CN201510719252.4A
Other languages
Chinese (zh)
Other versions
CN106651066A (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.)
Singularity Xinyuan International Technology Development Beijing Co ltd
Original Assignee
Singularity Xinyuan International Technology Development Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Singularity Xinyuan International Technology Development Beijing Co ltd filed Critical Singularity Xinyuan International Technology Development Beijing Co ltd
Priority to CN201510719252.4A priority Critical patent/CN106651066B/en
Publication of CN106651066A publication Critical patent/CN106651066A/en
Application granted granted Critical
Publication of CN106651066B publication Critical patent/CN106651066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data processing method and a data processing platform, wherein the method comprises the following steps: the data processing platform receives a resource query request message sent by an application system and returns a resource query response message to the application system; the application system sends an operation mode query request according to the operation mode information in the resource query response message and the corresponding input parameters; and the data processing platform inquires corresponding information according to the operation mode information in the operation mode inquiry request and corresponding filtering conditions, carries the information in an operation mode inquiry request response, and returns the operation mode inquiry request response to the application system. Compared with the prior art, the technical scheme of the embodiment of the invention uniformly manages the data information of the mutually independent terminals or application systems by arranging the data processing platform, thereby not only being beneficial to the management of the information, but also being convenient for the saving and the reasonable distribution of resources.

Description

Data processing method and data processing platform
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method and a data processing platform.
Background
With the development of society and the advancement of science and technology, people pay more and more attention to the prevention of accidents and the normal operation of production in production and operation activities, and meanwhile, control measures for ensuring safe production are more and more perfect, especially for large-scale production and operation activities, such as mining production, oil exploitation and the like.
Taking mine safety production as an example, the safety production process of a mine relates to a plurality of different production projects, each production project manages production environment data such as methane, carbon monoxide, temperature, humidity and the like in different degrees, and manages production process data such as power supply, dust prevention, positioning, wind speed and the like, so that each production project needs to monitor and manage data of different types in order to ensure the safety production of the mine. In addition, the mine safety production system has a complex environment, and the locations of the production projects are differently set according to the different specific structures of the mine, so that the locations of the production projects are distributed disorderly, so that terminals or application systems are usually respectively set corresponding to the production projects, and each set of terminal or application system correspondingly monitors and manages the production data of the corresponding production project.
However, each production project corresponds to an independent terminal or application system, so that the states of the production projects are independent from each other, thereby being not beneficial to the unified management of mine safety production and further being not beneficial to the saving and reasonable distribution of resources.
Disclosure of Invention
In view of this, the data processing method and the data processing platform provided in the embodiments of the present invention can uniformly manage each terminal and application system that are independent of each other, so as to solve the problem that the prior art is not favorable for uniform management of mine safety production, and is further not favorable for resource saving and reasonable allocation.
In a first aspect, an embodiment of the present invention provides a data processing method, including: the data processing platform receives a resource query request message sent by an application system, and returns a resource query response message to the application system, wherein the resource query response message carries a data resource list which can be provided by the data processing platform, the data resource list is formed by interface interactive operation formats of data resources, and the interface interactive operation formats of the data resources comprise: operation mode information and corresponding input parameters thereof; the application system sends an operation mode query request according to the operation mode information and the corresponding input parameters in the resource query response message, wherein the operation mode query request comprises filter conditions generated according to the operation mode information and the corresponding input parameters; and the data processing platform inquires corresponding information according to the operation mode information in the operation mode inquiry request and corresponding filtering conditions, carries the information in an operation mode inquiry request response, and returns the operation mode inquiry request response to the application system.
Preferably, the operation mode information includes: querying historical file data, subscribing to service data and/or subscribing to real-time multimedia data; the input parameter is used for indicating a parameter supported by an operation mode, and the operation mode query request is one of the following requests; querying a historical file data request, wherein the corresponding filtering conditions comprise: one or more items of terminal ID, time, service type, terminal manufacturer code and terminal equipment model; subscribing/inquiring service data request, the corresponding filtering condition includes: one or more of TID, time, service type, terminal manufacturer code and terminal equipment model; and subscribing the real-time multimedia data request, wherein the corresponding filtering condition comprises TID.
Preferably, if the operation mode query request is a request for querying historical file data, correspondingly, the information carried in the operation mode query request response includes: the FTP server configuration information, after returning the operation mode query request response to the application system, further includes: the application system queries information carried in the request response according to the operation mode, and requests historical file data to be queried from the data processing platform;
if the operation mode query request is a service data subscription/query request, correspondingly, the information carried in the operation mode query request response includes: the TCP server configuration information and the service data subscription/query request determine to subscribe real-time service data or query historical service data according to the time in the input parameters; after the operation mode query request response is returned to the application system, the method further includes: the application system subscribes/inquires service data from the data processing platform according to the information carried in the operation mode inquiry request response;
if the operation mode query request is a request for subscribing real-time multimedia data, correspondingly, the information carried in the operation mode query request response comprises: SIP server configuration information; after the operation mode query request response is returned to the application system, the method further includes: the application system queries information carried in the request response according to the operation mode and subscribes real-time multimedia data from the data processing platform;
preferably, before the data processing platform receives a resource query request message sent by an application system, the method further includes: the application system sends a system login request to the data processing platform, wherein the system login request carries: one or more items of system service type and application system authentication information; the data processing platform executes system login according to the system login request and returns a system login request response to the application system, wherein the system login response comprises an SID (security identification) assigned to the application system which successfully logs in; the method further comprises the following steps: the application system sends a system logout request to the data processing platform, wherein the system logout request comprises the SID of the application system; and the processing platform executes logout of the application system according to the system logout request and returns a logout execution result.
Preferably, the method further comprises:
the application system sends a terminal management interface query request to the data processing platform; the data processing platform returns a terminal interface query response to the application system, and the terminal interface query response carries terminal interface configuration information; and the application system inquires terminal information, downloads and updates terminal software and/or controls the on-off of the terminal through the terminal interface.
Preferably, the method further comprises: when the resources are insufficient or the fault occurs, the data processing platform sends an event notification message to the application system, and the event notification message comprises the following steps: one or more items of event numbers, event names and event reasons; and/or; the method further comprises the following steps: and sending heartbeat messages between the data processing platform and the application system.
In a second aspect, an embodiment of the present invention provides a data processing platform, including: the receiving module is used for receiving a resource query request message sent by an application system; a sending module, configured to return a resource query response message to the application system, where the resource query response message carries a data resource list that can be provided by the data processing platform, and the data resource list is formed by interface interactive operation formats of data resources, where the interface interactive operation formats of the data resources include: operation mode information and corresponding input parameters thereof; the receiving module is further configured to receive an operation mode query request sent by the application system; the query module is used for querying corresponding information according to the operation mode information in the operation mode query request and the corresponding filtering condition and carrying the corresponding information in the operation mode query request response; the sending module is further configured to return the operation mode query request response to the application system.
Preferably, the method further comprises the following steps: the system comprises a login module and a logout module, wherein the receiving module is also used for receiving a system login request sent by the application system; the login module is used for executing system login according to the system login request and returning a system login request response to the application system, wherein the system login response comprises an SID (security identification) assigned to the application system which is successfully logged in; the receiving module is further configured to receive a system logout request sent by the application system, where the system logout request includes a SID of the application system; and the logout module is used for executing logout of the application system according to the system logout request and returning a logout execution result.
Preferably, the receiving module is further configured to receive a terminal information query request sent by the application system, where the terminal information query request includes a query filter condition, and the query filter condition includes one or more of a TID, a terminal manufacturer code, and a terminal device model; the sending module is further configured to return a terminal information query request response according to a query filtering condition in the terminal information query request, where the terminal information query response includes terminal information meeting the query filtering condition, and the terminal information includes a software version number and a hardware version number of the terminal.
As can be seen from the above description, in the data processing method and the data processing platform provided in the embodiments of the present invention, first, the data processing platform receives a resource query request message sent by an application system, and returns a resource query response message to the application system, where the resource query response message carries a data resource list that can be provided by the data processing platform, the data resource list is formed by an interface interactive operation format of a data resource, and the interface interactive operation format of the data resource includes: operating mode information, and its corresponding input parameters. That is to say, the data processing platform stores resource information used by the application system for operation, after receiving a resource response message, the application system sends an operation mode query request according to operation mode information and corresponding input parameters in the resource query response message, wherein the operation mode query request includes filter conditions generated according to the operation mode information and the corresponding input parameters, and after receiving the operation mode query request, the data processing platform queries corresponding information and is carried in an operation mode query request response according to the operation mode information and the corresponding filter conditions in the operation mode query request, and returns the operation mode query request response to the application system. Therefore, the unified management of the data processing platform to the discrete application systems can be realized. Compared with the prior art, the technical scheme of the embodiment of the invention uniformly manages the data information of the mutually independent terminals or application systems by arranging the data processing platform, thereby not only being beneficial to the management of the information, but also being convenient for the saving and the reasonable distribution of resources.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The above and other objects, features and advantages of the present invention will become more apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention.
Fig. 1 is a schematic information interaction diagram of a data processing method according to an embodiment of the present invention;
fig. 2 is a schematic information interaction diagram of another data processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing platform according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to uniformly manage mutually independent application systems, the technical scheme of the embodiment of the invention is provided with the data processing platform, and communication connection is established between each application system and the data processing platform, so that data information of each application system is uniformly managed and coordinated through the data processing platform, further, the mine safety production can be uniformly managed, resources are saved, and reasonable allocation of the resources can be realized.
Referring to fig. 1, fig. 1 is an information interaction schematic diagram of a data processing method according to an embodiment of the present invention, where after an application system establishes a communication connection with a data processing platform, the data processing platform creates a data resource list according to data information processed by the application system, where the data resource list includes: the application system can inquire and/or read the data information type from the data processing platform and the parameters which should be input when inquiring and/or reading each data information. Therefore, before the application system queries and/or reads data from the data processing platform, firstly, a resource query request message is sent to the data processing platform, and after the data processing platform receives the resource query request message, the data resource list is sent to the application system through a resource query response message, so that the application system can input a corresponding operation mode query request as required.
It should be noted that the data resource list is formed by an interface interactive operation format of the data resource, and the interface interactive operation format of the data resource includes: operating mode information, and its corresponding input parameters. For example, the operation mode information corresponding to the history file data is a query, and the input parameter is a time parameter. Of course, the operation mode information and the input parameters of other data information are set according to the nature of the data information and the empirical operation mode, and the embodiment of the present invention is not described in detail herein.
After receiving the resource query response message, the application system reads the operation mode information and the corresponding input parameters in the resource query response message according to the operation requirement, generates operation mode information and filtering conditions, and sends the operation mode information and the filtering conditions to the data processing platform through an operation mode query request. And after the data processing platform queries corresponding information according to the operation mode information in the operation mode query request and the corresponding filtering condition, carrying the queried information in the operation mode query request response and sending the operation mode query request response to the application system, thereby completing the process of querying data from the data processing platform by the application system.
In the application, the interaction between the application system and the data processing platform is introduced by taking one application system as an example, in the practical application, the application system interacting with the data processing platform comprises a plurality of application systems respectively corresponding to different services, and the application system is mainly used for receiving monitoring signals, correcting, processing data, storing a magnetic disk, displaying, giving an audible and visual alarm and controlling output, and is provided with equipment with the functions of man-machine conversation, controlling printing output, connecting with a management network and the like. In addition, the interaction process and principle between the application system and the application system are the same as the interaction process and principle between the application system and the data processing platform in the present application, and therefore, in the present application, the data processing platform may also be an application system equivalent to the application system, and details are not described here.
And when the total request time exceeds 30 seconds, the application system continuously sends the resource query request message by taking 30 seconds as a period.
It should be noted that the operation mode information includes: querying historical file data, subscribing to business data, and/or subscribing to real-time multimedia data, and the input parameter is used to indicate a parameter supported by the operation mode. Specifically, when the operation mode query request is a request for querying data of a history file, the corresponding filtering condition may include: the terminal ID, namely TID, is also called one or more of terminal number, time, service type, terminal manufacturer code and terminal equipment model; when the operation mode query request is a service data subscription/query request, the corresponding filtering condition may include: one or more of TID, time, service type, terminal manufacturer code and terminal equipment model; when the operation mode query request is a request for subscribing to the real-time multimedia data, the corresponding filter condition may include the TID.
In addition, when the operation mode query request is a request for querying the historical file data, the information returned by the data processing platform may include: the FTP server configuration information may be, for example, one or more of an address, an FTP server port number, a username/password corresponding to the FTP server, a pathname, and a file name, and the application system may request the historical file data to be queried from the data processing platform according to the information.
Or, when the operation mode query request is a service data subscription/query request, the information returned by the data processing platform may include: the TCP server configuration information comprises one or more items of TCP server addresses, TCP server port numbers, maximum data receiving buffer byte numbers, maximum data sending buffer byte numbers, data message types, data request identifications, content formats of returned data and descriptions of the returned data; the data message type indicates that the connection mode is short connection or long connection, the service data subscription/query request determines to subscribe real-time service data or query historical service data according to the time in the input parameters, and the application system can subscribe/query service data from the data processing platform according to the information.
Or, when the operation mode query request is a request for subscribing to real-time multimedia data, the information returned by the data processing platform may include: the SIP server configuration information comprises one or more items of SIP server addresses, SIP server ports and user names and passwords of the SIP servers, and the application system can subscribe the real-time multimedia data from the data processing platform according to the information.
It should be noted that the above operation manner query request information is a preferred embodiment of the present invention, and the technical solution of the present invention may also set other operation manner query request information according to the actual production requirement, where the query manner is one of the above query manners, and details of the embodiment of the present invention are not described here.
In summary, in the data processing method provided in the embodiment of the present invention, first, a data processing platform receives a resource query request message sent by an application system, and returns a resource query response message to the application system, where the resource query response message carries a data resource list that can be provided by the data processing platform, the data resource list is formed by an interface interactive operation format of a data resource, and the interface interactive operation format of the data resource includes: operating mode information, and its corresponding input parameters. That is to say, the data processing platform stores resource information used by the application system for operation, after receiving the resource response message, the application system sends an operation mode query request according to the operation mode information and corresponding input parameters in the resource query response message, wherein the operation mode query request includes filter conditions generated according to the operation mode information and corresponding input parameters, after receiving the operation mode query request, the data processing platform queries corresponding information and is carried in the operation mode query request response according to the operation mode information and corresponding filter conditions in the operation mode query request, and returns the operation mode query request response to the application system. Therefore, the unified management of the data processing platform to the discrete application systems can be realized. Compared with the prior art, the technical scheme of the embodiment of the invention uniformly manages the data information of the mutually independent terminals or application systems by arranging the data processing platform, thereby not only being beneficial to the management of the information, but also being convenient for the saving and the reasonable distribution of resources.
On the basis of the above embodiments, in order to enable those skilled in the art to more accurately and specifically understand the technical solution of the present invention, the following supplementary description will be made on the basis of the above embodiments.
Please refer to fig. 2, fig. 2 is an information interaction schematic diagram of another data processing method according to an embodiment of the present invention, it should be noted that, since this embodiment is a supplement to the above embodiment, the same parts in this embodiment as those in the above embodiment are described in detail in the above embodiment, and this embodiment is not repeated herein.
Referring to fig. 2, the messages involved in the figure are all management type messages, and the management type messages include a message header and a message body, where the message header and the message body of the management type messages have the following structures:
Figure BDA0000833676500000071
the definition of the fields is as follows:
(1) len: length, not including itself, including: the lengths of Reserved, BODY and CRC range from 0 to 65535 bytes;
(2) CRC: checking bits, wherein the checking contents are Reserved and BODY, and the checking bits conform to a CCITT CRC-16 algorithm;
(3) reserved: reserved, equal to 0;
(4) BODY: and the message body content adopt a JSON data format of UTF-8 binary coding and conform to the format requirements of ECMA-404 and 2013.
The BODY format is summarized as follows:
sequence: the sequence identification of the message is generated by the requester, the sequence identification generated by the requester is filled when the responder returns, the identification range is 0-65535, and the cycle counting is started from 0 after the identification exceeds 65535;
a Method: the Method mainly comprises message description of message interaction, all of which are English and capital letters, all message descriptions of methods must be globally unique, and the message descriptions are not defined in the standard and should be added with a prefix "ext.";
content: the content of message interaction, wherein the returned message comprises Result and Reason, the Result is equal to 0 to indicate success, other information indicates failure, and the Reason indicates the Reason of failure;
when the Content includes filer, the filer represents a filter condition of data interaction, and an operator of a parameter of the filter condition includes: the results of >! Is as follows; the condition operators between the parameters and the parameters adopt & & and | to represent the logical relationship of ' AND ' OR ', the expression using the condition operators is separated by brackets ' () ', the parameter values in the filtering condition represent null values, and the time format is as follows: yyyyMMddHHmmss, in left-to-right order, yyy for year, MM for month, dd for day, HH for hour, in 24h format, MM for minute, ss for second.
The format of the message body in the resource query request message is as follows:
Figure BDA0000833676500000081
Figure BDA0000833676500000091
Figure BDA0000833676500000101
correspondingly, the message body format content of the resource query response message is as follows:
Figure BDA0000833676500000102
Figure BDA0000833676500000111
Figure BDA0000833676500000121
Figure BDA0000833676500000131
the operation list is a data resource list in the present application, and the format of the operation list includes operation mode information and corresponding input parameters (inputnames).
Wherein, the terminal management in fig. 2 includes terminal information query and terminal management interface query, and the application system sends a terminal information query request message to the data processing platform, and is suitable for carrying the filtering condition; after receiving the terminal information query request message, the data processing platform returns a terminal information query response message to the application system according to the filtering condition, and the data processing platform should carry a query request result indication, and the method includes: success and failure, and terminal information at the time of success or a reason for failure at the time of failure, wherein the filtering conditions are as follows: terminal TID range, terminal manufacturer, etc.; the terminal information should include: a terminal software version number and a hardware version number; when the filtering condition is empty, the data processing platform returns all terminal information to the application system, and at this time, the terminal information should include: terminal TID, terminal manufacturer code, terminal equipment model, terminal software version number, hardware version number and the like.
The BODY, i.e., the content and format of the message BODY of the terminal information query request message are as follows:
Figure BDA0000833676500000141
Figure BDA0000833676500000151
BODY of the terminal information inquiry response message is shown as the following table:
Figure BDA0000833676500000152
Figure BDA0000833676500000161
Figure BDA0000833676500000171
when the application system sends a terminal management interface query request to the data processing platform; wherein the filtration conditions are preferably carried, and the filtration conditions are as follows: terminal TID Range, terminal vendor, etc
The data processing platform returns a terminal interface query response to the application system, and the terminal interface query response carries terminal interface configuration information;
the management interface query response message, which should carry the query request result indication, should include: success and failure, and the configuration information of the management interface of the terminal inquired at the time of success or the reason of failure at the time of failure, the content of the configuration information may be TCP configuration parameter information, including: TCP server address, TCP server port number, maximum number of received data buffer bytes, maximum number of sent data buffer bytes, read data timeout, write data timeout, heartbeat cycle, etc.; and when the filter condition in the query request is empty, the data processing platform returns the configuration information of the management interfaces of all the terminals to the application system.
And the application system performs terminal hardware alarm, terminal software downloading and updating and/or on-off restarting control on the terminal through the terminal interface according to the terminal interface configuration information.
The management interface is adapted to support remote terminal upgrade, terminal hardware alarm and terminal control, which may include power on, power off, restart, etc.
The structure of the management interface query request message body is as follows:
Figure BDA0000833676500000172
Figure BDA0000833676500000181
the message body structure of the management interface query response message is as follows:
Figure BDA0000833676500000182
Figure BDA0000833676500000191
Figure BDA0000833676500000201
when the total request time exceeds the appointed time, the default is 30 seconds, and the management interface query request message can be continuously sent in a period of 30 seconds; the terminal information query request message can be retransmitted after the correction according to the failure reason.
Similarly, in order to improve the efficiency of request validation, all requests in the present application, for example, all requests such as resource query request, terminal information query request, historical data query request, and the like, all adopt the above manner, that is, when there is no response or the total request time exceeds the first predetermined response time (e.g., 10 seconds), the request is resent, and when the total request time exceeds the second predetermined time (e.g., 30 seconds), the request message may be continuously sent in a certain time period (e.g., 30 seconds), or the modified request message may be sent according to the reason of failure.
Before the data processing platform receives a resource query request message sent by an application system, the application system firstly logs in the data processing platform by using a pre-registered user name and password so that the data processing platform can distribute SID to the corresponding application system. Specifically, the application system sends a system login request to the data processing platform, wherein the system login request carries: and after the data processing platform receives the system login request, executing system login according to the system login request, and returning a system login request response to the application system, wherein the system login response comprises an application system ID (identification) which is allocated to the successfully logged-in application system, namely SID (security identification) so as to facilitate the application system to query resources. After the login is successful, the application system may query the message from the data processing platform, and the specific query manner is described in detail in the above embodiments, which is not described herein again.
Correspondingly, when the application system finishes the query, the login can be logged out. Specifically, the application system may send a system logout request to the data processing platform, where the system logout request includes a SID of the application system, and the data processing platform logs out the logged-in application system according to the SID and returns a logout result to the application system after the logout is successful.
It should be noted that, because the operation mode messages of the application system are managed uniformly by the data processing platform, when the application system performs data interaction with the terminal, the messages need to be transferred by the data processing platform. That is, the application system may first query the terminal information from the data processing platform, and then send the operation message to the corresponding terminal through the data processing platform according to the queried terminal information.
Similar to the above operation process, when the application system queries the terminal information, it first sends a terminal information query request to the data processing platform, where the terminal information query request includes a query filter condition, where the query filter condition includes one or more of TID, terminal manufacturer code, and terminal device model, the data processing platform searches according to the query filter condition and returns a terminal information query request response, where the terminal information query response includes terminal information such as software version number, hardware version number, and the like of the terminal. Taking the terminal downloading update as an example, the application system sends a downloading update notification request to the data processing platform, wherein the downloading update notification request comprises: and the terminal filtering condition and the download address of the software to be updated are used for indicating the request terminal to update the software. And the data processing platform inquires the terminal of the software to be updated according to the terminal filtering condition of the software to be updated and sends the download address to the corresponding terminal so that the terminal can download and update the software according to the download address. And after the software downloading and updating of the terminal are finished, the data processing platform can also return a downloading and updating notification response to the application system according to the downloading and updating result of the terminal.
In addition, in order to ensure normal interaction between the application system and the data processing platform, after the application system successfully logs in, both the application system and the data processing platform should send heartbeat notification to the other side. When the resources are insufficient or the fault occurs, the data processing platform sends an event notification message to the application system, wherein the event notification message comprises the following steps: one or more of an event number, an event name, and an event reason.
The message types and corresponding english descriptions referred to above are as follows:
Figure BDA0000833676500000221
Figure BDA0000833676500000231
in the above message, the content format of each message body is specifically as follows:
heartbeat notification message BODY description
Figure BDA0000833676500000232
Figure BDA0000833676500000241
BODY of event notification messages
Figure BDA0000833676500000242
Figure BDA0000833676500000251
BODY of historical data query request message
Figure BDA0000833676500000252
Figure BDA0000833676500000261
Example (c):
data with terminal TID of 1 during 1/2014 to 31/2015 needs to be queried, and the message body is as follows:
Figure BDA0000833676500000262
BODY of historical data inquiry response message
Figure BDA0000833676500000263
Figure BDA0000833676500000271
Figure BDA0000833676500000281
Figure BDA0000833676500000291
Historical data query response message BODY description
Figure BDA0000833676500000292
Figure BDA0000833676500000301
Figure BDA0000833676500000311
BODY of real-time multimedia data subscription request message
Figure BDA0000833676500000312
Figure BDA0000833676500000321
BODY of real-time multimedia data subscription response message
Figure BDA0000833676500000322
Figure BDA0000833676500000331
Figure BDA0000833676500000341
BODY of real-time service data subscription request message
Figure BDA0000833676500000342
Figure BDA0000833676500000351
Example (c):
real-time data with TID 1 and TID 2 of the subscribing terminal are needed, and the message body is as follows:
Figure BDA0000833676500000352
Figure BDA0000833676500000361
BODY of real-time service data subscription response message
Figure BDA0000833676500000362
Figure BDA0000833676500000371
Figure BDA0000833676500000381
BODY of real-time service data subscription cancellation request message
Figure BDA0000833676500000382
Figure BDA0000833676500000391
BODY of real-time service data subscription cancellation response message
Figure BDA0000833676500000392
Figure BDA0000833676500000401
BODY for subscribing information inquiry request message
Figure BDA0000833676500000402
BODY for subscribing information inquiry response message
Figure BDA0000833676500000403
Figure BDA0000833676500000411
It should be noted that the above description of the message bodies of the resource query request message and the resource query response message is only an exemplary description of the present solution, and the message bodies of other management messages are similar to the message bodies of the resource query request message and the resource query response message, which is not described herein again in this embodiment of the present invention.
Besides, in addition to the messages shown in fig. 2, service data interaction messages are also interacted between the application system and the data processing platform, and the properties of the service data interaction messages are different from those of the management messages, the service data interaction messages are used for transmitting service data such as historical file data, subscribed or queried service numbers, real-time multimedia data and the like, a request is queried according to a specific operation mode, and file data between the data processing platform and the application system should adopt an FTP mode; the real-time multimedia data is preferably in an SIP mode; the service data should be transmitted in a TCP manner. Thus, the format followed at the time of transmission is also different from that of the management class message. The message header format of the service data interaction message is shown in the following table:
Figure BDA0000833676500000421
the definition of the fields is as follows:
(1) len: length, not including itself, including: the lengths of the DataReqID, the BODY and the CRC range from 0 to 65500 bytes;
(2) CRC: the check bits comprise DataReqID and BODY and conform to a CCITT CRC-16 algorithm;
(3) DataReqID: the data request identification is used for identification of input parameters of the data request, the data request identification is reserved from 0 to 1024, 1025 and 40000 are used for subscription, the data request identification is used for real-time interaction and subscription, and 40001 and 65535 are temporary data request identification and are generally used for data query and request-response modes;
(4) BODY: the message body and the content of the message body are binary-coded by UTF-8 and conform to the format requirements of ECMA-404 and 2013.
The format of the content of the message body is the content format of the return data in the relevant response message, and the embodiment of the invention is not described herein again.
As can be seen from the above description, the embodiments of the present invention provide a data processing method, which provides a data processing platform to perform unified management on separate application systems, and when performing data interaction, a preset message format is adopted, so that the data processing platform can perform unified management on different data conveniently.
Corresponding to the foregoing implementation method, an embodiment of the present invention further provides a data processing platform, referring to fig. 3, where fig. 3 is a schematic structural diagram of the data processing platform provided in the embodiment of the present invention, where the data processing platform includes: the system comprises a receiving module 11, a sending module 12 and an inquiring module 13, wherein the receiving module 11 is used for receiving a resource inquiring request message sent by an application system; a sending module 12, configured to return a resource query response message to the application system, where the resource query response message carries a data resource list that can be provided by the data processing platform, and the data resource list is formed by interface interactive operation formats of data resources, where the interface interactive operation formats of the data resources include: operation mode information and corresponding input parameters thereof; in this embodiment, the receiving module 11 is further configured to receive an operation mode query request sent by the application system; the query module 13 is configured to query corresponding information according to the operation mode information in the operation mode query request and the corresponding filtering condition, and the corresponding information is carried in an operation mode query request response; the sending module 12 is further configured to return the operation mode query request response to the application system.
In this embodiment, the method further includes: a login module and a logout module, wherein, in this embodiment, the receiving module 11 is further configured to receive a system login request sent by the application system; the login module is used for executing system login according to the system login request and returning a system login request response to the application system, wherein the system login response comprises an SID (security identification) assigned to the application system which is successfully logged in; the receiving module 12 is further configured to receive a system logout request sent by the application system, where the system logout request includes a SID of the application system; and the logout module is used for executing logout of the application system according to the system logout request and returning a logout execution result.
On the basis of the foregoing embodiment, in another embodiment, the receiving module 11 is further configured to receive a terminal information query request sent by the application system, where the terminal information query request includes a query filter condition, and the query filter condition includes one or more of a TID, a terminal manufacturer code, and a terminal device model; the sending module 12 is further configured to return a terminal information query request response according to a query filtering condition in the terminal information query request, where the terminal information query response includes terminal information that meets the query filtering condition, and the terminal information includes a software version number and a hardware version number of the terminal; the receiving module 11 is further configured to receive a download update notification request sent by the application system to instruct a requesting terminal to perform software update; the download update notification request includes: terminal filtering conditions and downloading addresses of software to be updated; the sending module 12 is further configured to query a terminal of the software to be updated according to the terminal filtering condition of the software to be updated, and send the download address to the corresponding terminal, so that the terminal performs download update of the software according to the download address; and returning a download update notification response to the application system according to the terminal download update result.
In addition, in another embodiment, the sending module 12 is further configured to send an event notification message to the application system when the resource is insufficient or fails, including: one or more items of event numbers, event names and event reasons; or, the application system is further configured to send a heartbeat message to the application system; in this embodiment, the receiving module 12 is further configured to receive a heartbeat message sent by the application system.
The implementation processes of the functions and actions of the modules in the device are described in detail in the corresponding implementation processes in the above method, and are not described again here.
To sum up, in the data processing method and the data processing platform provided in the embodiments of the present invention, first, the data processing platform receives a resource query request message sent by an application system, and returns a resource query response message to the application system, where the resource query response message carries a data resource list that can be provided by the data processing platform, the data resource list is formed by an interface interactive operation format of a data resource, and the interface interactive operation format of the data resource includes: operating mode information, and its corresponding input parameters. That is to say, the data processing platform stores resource information used by the application system for operation, after receiving a resource response message, the application system sends an operation mode query request according to operation mode information and corresponding input parameters in the resource query response message, wherein the operation mode query request includes filter conditions generated according to the operation mode information and the corresponding input parameters, and after receiving the operation mode query request, the data processing platform queries corresponding information and is carried in an operation mode query request response according to the operation mode information and the corresponding filter conditions in the operation mode query request, and returns the operation mode query request response to the application system. Therefore, the unified management of the data processing platform to the discrete application systems can be realized. Compared with the prior art, the technical scheme of the embodiment of the invention uniformly manages the data information of the mutually independent terminals or application systems by arranging the data processing platform, thereby not only being beneficial to the management of the information, but also being convenient for the saving and the reasonable distribution of resources.
The foregoing is directed to embodiments of the present invention, and it is understood that various modifications and improvements can be made by those skilled in the art without departing from the spirit of the invention.

Claims (9)

1. A data processing method, comprising:
the data processing platform receives a resource query request message sent by an application system, and returns a resource query response message to the application system, the data processing platform is in communication connection with a plurality of application systems, different application systems correspond to different production projects, the resource query response message carries a data resource list which can be provided by the data processing platform, the data resource list is composed of interface interactive operation formats of data resources, and the interface interactive operation formats of the data resources include: operation mode information and corresponding input parameters thereof;
the application system sends an operation mode query request according to the operation mode information and the corresponding input parameters in the resource query response message, wherein the operation mode query request comprises filter conditions generated according to the operation mode information and the corresponding input parameters;
the data processing platform inquires corresponding information according to the operation mode information in the operation mode inquiry request and corresponding filtering conditions, carries the information in an operation mode inquiry request response, and returns the operation mode inquiry request response to the application system;
the method further comprises the following steps:
the application system sends a terminal management interface query request to the data processing platform; the data processing platform returns a terminal interface query response to the application system, and the terminal interface query response carries terminal interface configuration information;
and the application system performs terminal hardware alarm, terminal software downloading and updating and/or on-off restarting control on the terminal through the terminal interface according to the terminal interface configuration information.
2. The method of claim 1, wherein the operation mode information comprises: querying historical file data, subscribing to service data and/or subscribing to real-time multimedia data; the input parameter is used for indicating a parameter supported by an operation mode, and the operation mode query request is one of the following requests;
querying a historical file data request, wherein the corresponding filtering conditions comprise: one or more items of terminal ID, time, service type, terminal manufacturer code and terminal equipment model;
subscribing/inquiring service data request, the corresponding filtering condition includes: one or more items of terminal ID, time, service type, terminal manufacturer code and terminal equipment model;
and subscribing the real-time multimedia data request, wherein the corresponding filtering condition comprises a terminal ID.
3. The method of claim 2,
if the operation mode query request is a historical file data query request, correspondingly, the information carried in the operation mode query request response comprises: the FTP server configuration information, after returning the operation mode query request response to the application system, further includes:
the application system queries information carried in the request response according to the operation mode, and requests historical file data to be queried from the data processing platform;
if the operation mode query request is a service data subscription/query request, correspondingly, the information carried in the operation mode query request response includes: the TCP server configures information, and the service data subscribing/inquiring request determines to subscribe real-time service data or inquire historical service data according to time in the input parameters; after the operation mode query request response is returned to the application system, the method further includes:
the application system subscribes/inquires service data from the data processing platform according to the information carried in the operation mode inquiry request response;
if the operation mode query request is a request for subscribing real-time multimedia data, correspondingly, the information carried in the operation mode query request response comprises: configuration information of the SIP server; after the operation mode query request response is returned to the application system, the method further includes:
and the application system queries the information carried in the request response according to the operation mode and subscribes real-time multimedia data from the data processing platform.
4. The method of claim 1, wherein before the data processing platform receives the resource query request message sent by the application system, the method further comprises:
the application system sends a system login request to the data processing platform, wherein the system login request carries: one or more items of system service type and application system authentication information;
the data processing platform executes system login according to the system login request and returns a system login request response to the application system, wherein the system login response comprises an application system ID (identity) distributed for the application system which successfully logs in;
the method further comprises the following steps:
the application system sends a system logout request to the data processing platform, wherein the system logout request comprises an application system ID of the application system;
and the processing platform executes logout of the application system according to the system logout request and returns a logout execution result.
5. The method of claim 1, further comprising:
the application system sends a terminal information query request to the data processing platform, wherein the terminal information query request comprises query filtering conditions, and the query filtering conditions comprise one or more of a terminal ID, a terminal manufacturer code and a terminal equipment model;
and the data processing platform returns a terminal information query request response according to the query filtering condition in the terminal information query request, wherein the terminal information query response comprises the terminal information meeting the query filtering condition, and the terminal information comprises a software version number and a hardware version number of the terminal.
6. The method of claim 1, further comprising:
when the resources are insufficient or the fault occurs, the data processing platform sends an event notification message to the application system, and the event notification message comprises the following steps: one or more items of event numbers, event names and event reasons;
and/or;
the method further comprises the following steps:
and sending heartbeat messages between the data processing platform and the application system.
7. A data processing platform, comprising:
the receiving module is used for receiving a resource query request message sent by an application system;
a sending module, configured to return a resource query response message to the application system, where the resource query response message carries a data resource list that can be provided by the data processing platform, and the data resource list is formed by interface interactive operation formats of data resources, where the interface interactive operation formats of the data resources include: operation mode information and corresponding input parameters thereof;
the receiving module is further configured to receive an operation mode query request sent by the application system;
the query module is used for querying corresponding information according to the operation mode information in the operation mode query request and the corresponding filtering condition and carrying the corresponding information in the operation mode query request response;
the sending module is further configured to return the operation mode query request response to the application system;
the receiving module is further configured to receive a terminal management interface query request sent by the application system;
the sending module is further configured to return a terminal interface query response to the application system, where the terminal interface query response carries terminal interface configuration information.
8. The data processing platform of claim 7, further comprising: a login module and a logout module, wherein,
the receiving module is further configured to receive a system login request sent by the application system;
the login module is used for executing system login according to the system login request and returning a system login request response to the application system, wherein the system login response comprises an application system ID (identity) distributed for the application system which successfully logs in;
the receiving module is further configured to receive a system logout request sent by the application system, where the system logout request includes the application system ID;
and the logout module is used for executing logout of the application system according to the system logout request and returning a logout execution result.
9. The data processing platform of claim 7,
the receiving module is further configured to receive a terminal information query request sent by the application system, where the terminal information query request includes a query filtering condition, and the query filtering condition includes one or more of a terminal ID, a terminal manufacturer code, and a terminal device model;
the sending module is further configured to return a terminal information query request response according to a query filtering condition in the terminal information query request, where the terminal information query response includes terminal information meeting the query filtering condition, and the terminal information includes a software version number and a hardware version number of the terminal.
CN201510719252.4A 2015-10-29 2015-10-29 Data processing method and data processing platform Active CN106651066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510719252.4A CN106651066B (en) 2015-10-29 2015-10-29 Data processing method and data processing platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510719252.4A CN106651066B (en) 2015-10-29 2015-10-29 Data processing method and data processing platform

Publications (2)

Publication Number Publication Date
CN106651066A CN106651066A (en) 2017-05-10
CN106651066B true CN106651066B (en) 2021-04-30

Family

ID=58830117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510719252.4A Active CN106651066B (en) 2015-10-29 2015-10-29 Data processing method and data processing platform

Country Status (1)

Country Link
CN (1) CN106651066B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679116A (en) * 2017-09-18 2018-02-09 阿里巴巴集团控股有限公司 Data processing method and device and electronic equipment
CN109379353A (en) * 2018-10-08 2019-02-22 北京科东电力控制系统有限责任公司 Collecting method and device
US10915418B1 (en) * 2019-08-29 2021-02-09 Snowflake Inc. Automated query retry in a database environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420681A (en) * 2008-09-18 2009-04-29 中兴通讯股份有限公司 A kind of Business Management Platform is handled the method and apparatus that request is by all kinds of means ordered down
JP2009253309A (en) * 2008-04-01 2009-10-29 Yokogawa Electric Corp Field communication apparatus
CN103533521A (en) * 2013-09-30 2014-01-22 重庆梅安森科技股份有限公司 Coal mine safety monitoring data remote inquiry system and inquiry and early warning method
CN103874189A (en) * 2012-12-14 2014-06-18 北京新媒传信科技有限公司 Logout method and system for IMS (IP (internet protocol) multimedia subsystem) client
CN104967652A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Event subscription method, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287764A1 (en) * 2008-05-15 2009-11-19 Motorola, Inc. Media access control server for radio access network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009253309A (en) * 2008-04-01 2009-10-29 Yokogawa Electric Corp Field communication apparatus
CN101420681A (en) * 2008-09-18 2009-04-29 中兴通讯股份有限公司 A kind of Business Management Platform is handled the method and apparatus that request is by all kinds of means ordered down
CN103874189A (en) * 2012-12-14 2014-06-18 北京新媒传信科技有限公司 Logout method and system for IMS (IP (internet protocol) multimedia subsystem) client
CN103533521A (en) * 2013-09-30 2014-01-22 重庆梅安森科技股份有限公司 Coal mine safety monitoring data remote inquiry system and inquiry and early warning method
CN104967652A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Event subscription method, apparatus and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
e矿山智能管理系统的研究及实现;邓妙婷;《中国优秀硕士学位论文全文数据库》;20120430(第08期);全文 *
邓妙婷.e矿山智能管理系统的研究及实现.《中国优秀硕士学位论文全文数据库》.2012,(第08期),全文. *

Also Published As

Publication number Publication date
CN106651066A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN109889551B (en) Method for accessing intelligent hardware to Internet of things cloud platform
CN102790781B (en) The M2M system of a kind of middleware, band sector application middleware and application process thereof
CN106993043B (en) Data communication system and method based on agency
CN106651066B (en) Data processing method and data processing platform
CN112565439B (en) Internet of things communication method and system
CN112804249B (en) Data communication method and system for remotely calling automatic driving platform
CN109495433A (en) Data download method and device, storage medium and electronic device
US10495336B2 (en) Energy operations across domains
CN105100021A (en) Method, device and system for triggering device management sessions
CN111866063A (en) Online updating system, method and device for industrial Internet of things AI algorithm
EP3171552A1 (en) Energy operations across domains
CN114513762B (en) Service processing method, device, electronic equipment and computer readable medium
CN112733062A (en) Internet of things application management system and method
CN104486330A (en) Two-way communication system based on remote procedure calls (RPCs)
WO2022213095A1 (en) Systems and methods for simulating control panel state and control panel responses
CN114338082A (en) Method and system for safely connecting intelligent gateway to cloud platform
CN103870307A (en) Data source synchronization and alarm device and method
CN103023668B (en) A kind of find and control method, the Apparatus and system of embedded log equipment
CN113347195A (en) Dynamic mounting system and method for communication protocol packet of Internet of things equipment
CN113965571B (en) Management method, device, equipment and medium of distributed embedded equipment
CN110113430B (en) Communication method between mobile phone and raspberry pie based on cloud database
CN111935323A (en) Remote LXC container application dynamic management system and method
CN118250324A (en) Internet of things equipment interaction management method, device and system
KR20180039980A (en) Apparatus and method for synchronizing background data in a mobile device
CN114679472A (en) Communication system, method, apparatus, storage medium, and electronic device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100176 room 502-1, floor 5, building 2, courtyard 10, keguyi street, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 614

Applicant before: NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant