CN114124659B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN114124659B
CN114124659B CN202111398143.9A CN202111398143A CN114124659B CN 114124659 B CN114124659 B CN 114124659B CN 202111398143 A CN202111398143 A CN 202111398143A CN 114124659 B CN114124659 B CN 114124659B
Authority
CN
China
Prior art keywords
data
group
time interval
equipment
generation time
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
CN202111398143.9A
Other languages
Chinese (zh)
Other versions
CN114124659A (en
Inventor
弓欣茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dragon Resources Ltd
Original Assignee
Beijing Dragon Resources Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dragon Resources Ltd filed Critical Beijing Dragon Resources Ltd
Priority to CN202111398143.9A priority Critical patent/CN114124659B/en
Publication of CN114124659A publication Critical patent/CN114124659A/en
Application granted granted Critical
Publication of CN114124659B publication Critical patent/CN114124659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • H04L41/064Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis involving time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data processing method and device. The method comprises the following steps: under the condition that a communication link between the first equipment and the second equipment is abnormal, the second equipment caches the data which are sent to the first equipment and fail to obtain a plurality of data; under the condition that the communication link is recovered to be normal, the second device group transmits data to the first device until all cached data transmission is completed, wherein the generation time interval of adjacent data in the former group of data is larger than that of adjacent data in the latter group of data, and the generation time interval of the former group of data and the generation time interval of the latter group of data are overlapped; and displaying the data according to the sequence of receiving the data to obtain a data display diagram. According to the method and the device for the communication failure recovery, the problem that after the communication failure recovery between the devices in the related technology, the slave device sends data stored in the communication failure period to the master device according to the time of occurrence of the event, and the master device is difficult to know the overall condition of the data in time is solved.

Description

Data processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data processing method and apparatus.
Background
When data are transmitted between the devices through a communication protocol, the master device and the slave device answer one by one, the master device sends a data request, the slave device returns the data, if the network between the master device and the slave device is disconnected or other communication faults occur, the slave device stores the data to be transmitted, and after the communication faults are recovered, the data are sequentially transmitted to the master device according to the time sequence of occurrence of the events.
When the communication failure occurs for a long time, the slave device stores a large amount of data, and after the communication failure is recovered, the slave device transmits the data according to the time sequence of the occurrence of the event, for example, the slave device transmits the data for 2 hours after the disconnection for 2 hours.
Aiming at the problem that in the related art, after the communication faults between devices are recovered, the slave device sends data stored during the communication faults to the master device according to the occurrence time of the event, and the master device is difficult to know the whole condition of the data in time, no effective solution is proposed at present.
Disclosure of Invention
The application provides a data processing method and device, which are used for solving the problem that in the related art, after communication faults between devices are recovered, a slave device sends data stored in the communication fault period to a master device according to the occurrence time of an event, and the master device is difficult to know the overall condition of the data in time.
According to one aspect of the present application, a data processing method is provided. The method comprises the following steps: under the condition that a communication link between the first equipment and the second equipment is abnormal, the second equipment caches the data which are sent to the first equipment and fail to obtain a plurality of data; under the condition that the communication link is recovered to be normal, the second device group transmits data to the first device until all cached data transmission is completed, wherein the generation time interval of adjacent data in the former group of data is larger than that of adjacent data in the latter group of data, and the generation time interval of the former group of data and the generation time interval of the latter group of data are overlapped; and displaying the data according to the sequence of receiving the data to obtain a data display diagram.
Optionally, in a case where the communication link is restored to normal, the second device grouping transmitting data to the first device until all buffered data transmission is completed includes: acquiring data according to a first time interval in a data generation time interval to obtain a first group of data, respectively acquiring data in the time interval of each data of the first group of data to obtain a second group of data, respectively acquiring data in the time interval of each data of the second group of data to obtain a next group of data until all cached data groups are completed to obtain a plurality of groups of data; and sequentially sending the data of the corresponding group to the first equipment according to the grouping sequence until the sending of the plurality of groups of data is completed.
Optionally, the data is acquired according to a first time interval in a data generation time interval to obtain a first group of data, the data is acquired respectively in a time interval of each data of the first group of data to obtain a second group of data, and the data is acquired respectively in a time interval of each data of the second group of data to obtain a next group of data until all buffered data packets are completed, and the obtaining of the multiple groups of data includes: and taking the mode of the generation time of the plurality of data according to different preset time intervals each time to obtain a plurality of groups of mode taking results, and obtaining data corresponding to each group of mode taking results to obtain a plurality of groups of data, wherein the preset time intervals corresponding to each mode taking are decreased.
Optionally, the data is acquired according to a first time interval in a data generation time interval to obtain a first group of data, the data is acquired respectively in a time interval of each data of the first group of data to obtain a second group of data, and the data is acquired respectively in a time interval of each data of the second group of data to obtain a next group of data until all buffered data packets are completed, and the obtaining of the multiple groups of data includes: acquiring data corresponding to the head time and the tail time of a data generation time interval, acquiring a first group of data, acquiring data corresponding to the median of the time interval of the acquired data, acquiring a second group of data, and acquiring data corresponding to the median of the time interval of the acquired data, acquiring the next group of data until all cached data are grouped, and acquiring multiple groups of data.
Optionally, in the process of sending the data to the first device by the second device group, determining the generation time of each data, obtaining a corresponding time stamp, and sending the data and the corresponding time stamp to the first device.
Optionally, displaying the data in the order of receiving the data, and obtaining the data display diagram includes: and displaying the received data on a time axis by taking the time stamp as a coordinate according to the sequence of receiving the data, so as to obtain a data display diagram.
Optionally, after displaying the data in the order of receiving the data, the method further includes: determining that the second device transmits successful data to the first device under the condition that the communication link between the first device and the second device is abnormal, and determining the generation time of each piece of successfully transmitted data to obtain a corresponding time stamp; and adding the successfully transmitted data into the data display diagram by taking the time stamp as coordinates on a time axis to obtain an updated data display diagram.
According to another aspect of the present application, a data processing apparatus is provided. The device comprises: the buffer unit is used for buffering the data which is failed to be sent to the first equipment by the second equipment under the condition that the communication link between the first equipment and the second equipment is abnormal, so as to obtain a plurality of data; a sending unit, configured to send, by the second device, data to the first device in a packet manner until all buffered data is sent, where a generation time interval of adjacent data in the previous group of data is greater than a generation time interval of adjacent data in the next group of data, and the generation time interval of the previous group of data overlaps with the generation time interval of the next group of data; and the display unit is used for displaying the data according to the sequence of receiving the data to obtain a data display diagram.
According to another aspect of the embodiments of the present invention, there is also provided a nonvolatile storage medium including a stored program, where the program when executed controls a device in which the nonvolatile storage medium is located to execute a data processing method.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device including a processor and a memory; the memory has stored therein computer readable instructions for execution by the processor, wherein the computer readable instructions when executed perform a data processing method.
Through the application, the following steps are adopted: under the condition that a communication link between the first equipment and the second equipment is abnormal, the second equipment caches the data which are sent to the first equipment and fail to obtain a plurality of data; under the condition that the communication link is recovered to be normal, the second device group transmits data to the first device until all cached data transmission is completed, wherein the generation time interval of adjacent data in the former group of data is larger than that of adjacent data in the latter group of data, and the generation time interval of the former group of data and the generation time interval of the latter group of data are overlapped; the data is displayed according to the sequence of receiving the data, and a data display diagram is obtained, so that the problem that the master device is difficult to know the whole condition of the data in time because the slave device sends the data stored during the communication failure to the master device according to the occurrence time of the event after the communication failure between the devices is recovered in the related art is solved. Under the condition that the communication link is recovered to be normal, the second equipment sends data to the first equipment in a grouping mode of decreasing time intervals, the second equipment firstly acquires the data with coarse granularity generated during the communication failure period, and then acquires the data with fine granularity, so that the effect of timely acquiring the whole condition of the data is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a flow chart of a data processing method provided in accordance with an embodiment of the present application;
fig. 2 is a schematic diagram of a data processing apparatus according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the application, a data processing method is provided.
Fig. 1 is a flow chart of a data processing method according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S102, when the communication link between the first device and the second device is abnormal, the second device caches the data which is failed to be sent to the first device, and a plurality of data are obtained.
Specifically, the occurrence of an anomaly in the communication link may cause an interruption to the network between the first device and the second device, or may cause a longer delay to the network between the first device and the second device. When the first device and the second device communicate, the first device sends a response message to the second device after receiving the data sent by the second device, so as to indicate that the data of the second device is successfully received, and when the communication link is abnormal, the second device sends failure data to the first device, which can be the data which does not receive response information after being sent by the second device.
Step S104, under the condition that the communication link is recovered to be normal, the second device group sends data to the first device until all cached data are sent, wherein the generation time interval of adjacent data in the former group of data is larger than the generation time interval of adjacent data in the latter group of data, and the generation time interval of the former group of data and the generation time interval of the latter group of data are overlapped.
Specifically, when the data is grouped, the generation time interval of the previous group of data and the generation time interval of the next group of data overlap, that is, the generation time interval of the previous group of data includes the generation time interval of the next group of data, for example, the generation time interval of the previous group of data and the generation time interval of the next group of data overlap completely.
The generation time interval of the adjacent data in the former group of data is larger than the generation time interval of the adjacent data in the latter group of data, namely, the data acquisition granularity of each group of data transmitted in a grouping way is sequentially decreased, and the data acquisition granularity of the former group of data is larger than the data acquisition granularity of the latter group of data.
And S106, displaying the data according to the sequence of the received data to obtain a data display diagram.
Specifically, since the data acquisition granularity of each group of data sent by the packet is sequentially decreased, the data received by the first device is displayed according to the sequence of the received data, namely, the data with coarse granularity in the generation time interval is displayed first, and then the data with fine granularity in the generation time interval is displayed, so that a user can know the whole condition of the data in the communication failure period in time from a macroscopic view in the data display diagram first, and then know the detail condition of the data in the communication failure period.
According to the data processing method provided by the embodiment of the application, under the condition that the communication link between the first equipment and the second equipment is abnormal, the second equipment caches the data which are failed to be sent to the first equipment, so that a plurality of data are obtained; under the condition that the communication link is recovered to be normal, the second device group transmits data to the first device until all cached data transmission is completed, wherein the generation time interval of adjacent data in the former group of data is larger than that of adjacent data in the latter group of data, and the generation time interval of the former group of data and the generation time interval of the latter group of data are overlapped; the data is displayed according to the sequence of receiving the data, and a data display diagram is obtained, so that the problem that the master device is difficult to know the whole condition of the data in time because the slave device sends the data stored during the communication failure to the master device according to the occurrence time of the event after the communication failure between the devices is recovered in the related art is solved. Under the condition that the communication link is recovered to be normal, the second equipment sends data to the first equipment in a grouping mode of decreasing time intervals, the second equipment firstly acquires the data with coarse granularity generated during the communication failure period, and then acquires the data with fine granularity, so that the effect of timely acquiring the whole condition of the data is achieved.
In order to achieve the effect that the generation time interval of the adjacent data in the previous group of data is greater than the generation time interval of the adjacent data in the next group of data, and the generation time interval of the previous group of data and the generation time interval of the next group of data overlap, optionally, in the data processing method provided in the embodiment of the present application, when the communication link is restored to normal, the second device sends the data to the first device in a grouping manner until all buffered data are sent includes: acquiring data according to a first time interval in a data generation time interval to obtain a first group of data, respectively acquiring data in the time interval of each data of the first group of data to obtain a second group of data, respectively acquiring data in the time interval of each data of the second group of data to obtain a next group of data until all cached data groups are completed to obtain a plurality of groups of data; and sequentially sending the data of the corresponding group to the first equipment according to the grouping sequence until the sending of the plurality of groups of data is completed.
For example, when the data generation time interval is 100 hours, the data may be acquired at time intervals of 20 hours to obtain data corresponding to the 0 th, 20 th, 40 th, 60 th, 80 th and 100 th hours, to obtain a first group of data, then the data is acquired in the 0-20 th, 20-40 th, 40-60 th, 60-80 th and 80 th-100 th-hours respectively to obtain a second group of data, and then the data is acquired in each time interval of the data in the second group of data respectively to obtain a third group of data, and the data is cycled until all buffered data are grouped, so that the purposes that the generation time intervals of the data in each group overlap and the data acquisition intervals are sequentially decreased are achieved.
In the data processing method provided in this embodiment of the present application, optionally, data is acquired according to a first time interval within a data generation time interval to obtain a first set of data, data is acquired respectively in a time interval of each data of the first set of data to obtain a second set of data, and data is acquired respectively in a time interval of each data of the second set of data to obtain a next set of data, until all the buffered data packets are completed, where obtaining multiple sets of data includes: and taking the mode of the generation time of the plurality of data according to different preset time intervals each time to obtain a plurality of groups of mode taking results, and obtaining data corresponding to each group of mode taking results to obtain a plurality of groups of data, wherein the preset time intervals corresponding to each mode taking are decreased.
For example, when the generation time interval of the data is 100 hours, the generation time may be firstly modulo the time interval of 20 hours to obtain the 0 th, 20 th, 40 th, 60 th, 80 th and 100 th hours, and obtain the corresponding data, to obtain the first group of data, then modulo the generation time interval of 5 hours, and further modulo the generation time interval of 0, 5 th, 10 th, 15 th, 20 th, 25 th, 30 th, 35 th, 40 th, 45 th, 50 th, 55 th, 60 th, 65 th, 70 th, 75 th, 80 th, 85 th, 90 th, 95 th and 100 th hours, and obtain the corresponding data, and then modulo the generation time interval of 1 hour to obtain the corresponding data, and repeating circularly until the data of all buffers are completed, thereby achieving the purpose that the generation time intervals of the data of each group have overlapping and the data acquisition interval is sequentially decreasing.
Optionally, in the data processing method provided in the embodiment of the present application, data is acquired according to a first time interval in a generating time interval of data, so as to obtain a first set of data, data is acquired respectively in a time interval of each data of the first set of data, so as to obtain a second set of data, and data is acquired respectively in a time interval of each data of the second set of data, so as to obtain a next set of data, until all the buffered data packets are completed, so as to obtain multiple sets of data including: acquiring data corresponding to the head time and the tail time of a data generation time interval, acquiring a first group of data, acquiring data corresponding to the median of the time interval of the acquired data, acquiring a second group of data, and acquiring data corresponding to the median of the time interval of the acquired data, acquiring the next group of data until all cached data are grouped, and acquiring multiple groups of data.
For example, when the data generation time interval is 100 hours, the data corresponding to the beginning and ending time of the data generation time interval is acquired, so as to obtain the data corresponding to the 0 th hour and the 100 th hour, namely, the first group of data, then the data is acquired according to the median of the acquired data time interval, so as to obtain the data corresponding to the 50 th hour, namely, the second group of data, then the data corresponding to the 25 th and 75 th hours is acquired according to the median of the acquired data time interval, namely, the third group of data, and the data is circularly reciprocated until all the buffered data are grouped, so that the purposes that the data generation time intervals of all groups overlap and the data acquisition interval is sequentially decreased are achieved.
In order to establish a connection between the transmitted data and the generation time, optionally, in the data processing method provided in the embodiment of the present application, in a process of transmitting the data to the first device by the second device packet, the generation time of each data is determined, so as to obtain a corresponding timestamp, and the data and the corresponding timestamp are transmitted to the first device.
Optionally, in the data processing method provided in the embodiment of the present application, displaying the data according to the order of receiving the data, the obtaining the data display diagram includes: and displaying the received data on a time axis by taking the time stamp as a coordinate according to the sequence of receiving the data, so as to obtain a data display diagram.
Specifically, according to the sequence of receiving data, the received data is displayed on a time axis by taking the time stamp as a coordinate, namely, the data with coarse granularity is displayed on the time axis first, and then the data with fine granularity is displayed on the time axis.
In the case that the communication link is unstable, there is a phenomenon that the first device successfully receives part of the data, optionally, in the data processing method provided in the embodiment of the present application, after displaying the data according to the order of receiving the data, the method further includes: determining that the second device transmits successful data to the first device under the condition that the communication link between the first device and the second device is abnormal, and determining the generation time of each piece of successfully transmitted data to obtain a corresponding time stamp; and adding the successfully transmitted data into the data display diagram by taking the time stamp as coordinates on a time axis to obtain an updated data display diagram.
Specifically, if the first device successfully receives part of data under the condition that the communication link is abnormal, the second device does not cache the corresponding data, so that in order to intuitively know the overall condition of the data sent by the second device to the first device and the data to be sent to the first device during the abnormal period of the communication link, the received cached data can be displayed on a time axis by taking a time stamp as a coordinate, and then the data which is successfully sent is added on the time axis by taking the time stamp as the coordinate, so that a user can know the overall condition of all the data sent by the second device during the abnormal period of the communication link.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a data processing device, and it should be noted that the data processing device of the embodiment of the application can be used for executing the data processing method provided by the embodiment of the application. The following describes a data processing apparatus provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of a data processing apparatus according to an embodiment of the present application. As shown in fig. 2, the apparatus includes: buffer unit 10, transmitting unit 20, and presentation unit 30:
specifically, the caching unit 10 is configured to, in a case where an abnormality occurs in a communication link between the first device and the second device, cache data that is failed to be sent to the first device by the second device, and obtain a plurality of data.
And a transmitting unit 20, configured to, when the communication link is restored, send the data to the first device in a packet by the second device until all buffered data is sent, where a generation time interval of adjacent data in the former group of data is greater than a generation time interval of adjacent data in the latter group of data, and the generation time interval of the former group of data overlaps with the generation time interval of the latter group of data.
And a display unit 30 for displaying the data according to the order of receiving the data, and obtaining a data display diagram.
In the data processing apparatus provided in the embodiment of the present application, when an abnormality occurs in a communication link between a first device and a second device through a caching unit 10, the second device caches data that is failed to send to the first device, so as to obtain a plurality of data; the sending unit 20 sends data to the first device in a grouping manner until all buffered data is sent, where a generation time interval of adjacent data in the former group of data is greater than a generation time interval of adjacent data in the latter group of data, and the generation time interval of the former group of data overlaps with the generation time interval of the latter group of data; the display unit 30 displays the data according to the sequence of receiving the data to obtain a data display diagram, which solves the problem that the slave device sends the data stored during the communication failure to the master device according to the time of occurrence of the event after the communication failure between the devices is recovered in the related art, the master device is difficult to know the whole condition of the data in time, and under the condition that the communication link is recovered to be normal, the second device sends the data to the first device according to the grouping mode of decreasing the time interval, the second device obtains the coarse-granularity data generated during the communication failure first, and then obtains the fine-granularity data, thereby achieving the effect of knowing the whole condition of the data in time.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the transmitting unit 20 includes: the acquisition module is used for acquiring data according to a first time interval in a data generation time interval to obtain a first group of data, respectively acquiring data in the time interval of each data of the first group of data to obtain a second group of data, respectively acquiring data in the time interval of each data of the second group of data to obtain a next group of data until all cached data groups are completed to obtain a plurality of groups of data; and the sending module is used for sequentially sending the data of the corresponding group to the first equipment according to the grouping sequence until the sending of the plurality of groups of data is completed.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the obtaining module includes: the first sub-acquisition module is used for taking the mode of the generation time of the plurality of data according to different preset time intervals each time to obtain a plurality of groups of mode taking results, and acquiring the data corresponding to each group of mode taking results to obtain a plurality of groups of data, wherein the preset time intervals corresponding to each mode taking are decreased.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the obtaining module includes: the second sub-acquisition module is used for acquiring data corresponding to the head time and the tail time of the generation time interval of the data to obtain a first group of data, acquiring data corresponding to the median of the time interval of the acquired data to obtain a second group of data, and acquiring data corresponding to the median of the time interval of the acquired data to obtain a next group of data until all the cached data are grouped to obtain a plurality of groups of data.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the sending unit 20 is further configured to determine, in a process of sending data to the first device by the second device packet, a generation time of each data, obtain a corresponding timestamp, and send the data and the corresponding timestamp to the first device.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the display unit 30 includes: and the display module is used for displaying the received data on a time axis by taking the time stamp as a coordinate according to the sequence of receiving the data, so as to obtain a data display diagram.
Optionally, in the data processing apparatus provided in the embodiments of the present application, the apparatus further includes: a determining unit, configured to determine, after displaying data according to the order of receiving the data and obtaining a data display diagram, that the second device sends successful data to the first device when an abnormality occurs in a communication link between the first device and the second device, and determine a generation time of each successfully sent data, so as to obtain a corresponding timestamp; and the display updating unit is used for adding the successfully transmitted data into the data display diagram by taking the time stamp as a coordinate on a time axis to obtain an updated data display diagram.
The data processing device includes a processor and a memory, the buffer unit 10, the transmitting unit 20, the display unit 30, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be set with one or more than one, and the problem that after the communication fault between the devices is recovered in the related art, the slave device sends the data stored during the communication fault to the master device according to the time of occurrence of the event, and the master device is difficult to know the whole condition of the data in time is solved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application also provides a nonvolatile storage medium, which comprises a stored program, wherein the program is used for controlling equipment where the nonvolatile storage medium is located to execute a data processing method when running.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory; the memory has stored therein computer readable instructions for execution by the processor, wherein the computer readable instructions when executed perform a data processing method. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method of data processing, comprising:
under the condition that a communication link between first equipment and second equipment is abnormal, the second equipment caches data which are failed to be sent to the first equipment to obtain a plurality of data, wherein the data which are failed to be sent are data which are sent by the second equipment and do not receive response information sent by the first equipment;
under the condition that the communication link is recovered, the second device group transmits data to the first device until all cached data transmission is completed, wherein the generation time interval of adjacent data in the former group of data is larger than that of adjacent data in the latter group of data, the generation time interval of the former group of data and the generation time interval of the latter group of data are overlapped, the data acquisition granularity of each group of data transmitted by the second device group is sequentially decreased, and the data acquisition granularity of the former group of data is larger than that of the latter group of data;
and displaying the data according to the sequence of receiving the data to obtain a data display diagram, wherein the data received by the first equipment are the groups of data with sequentially decreasing data acquisition granularity, and the data display diagram firstly displays the data with coarse granularity in the generation time interval and then displays the data with fine granularity in the generation time interval.
2. The method of claim 1, wherein, in the event that the communication link is restored to normal, the second device group transmits data to the first device until transmission of all buffered data is completed, comprising:
acquiring data according to a first time interval in a generation time interval of the data to obtain a first group of data, respectively acquiring data in the time interval of each data of the first group of data to obtain a second group of data, respectively acquiring data in the time interval of each data of the second group of data to obtain a next group of data until all cached data groups are completed to obtain a plurality of groups of data;
and sequentially sending the data of the corresponding group to the first equipment according to the grouping sequence until the sending of the plurality of groups of data is completed.
3. The method of claim 2, wherein the data is acquired at first time intervals during the time interval of generation of the data to obtain a first set of data, the data is acquired at each time interval of each data of the first set of data to obtain a second set of data, and the data is acquired at each time interval of each data of the second set of data to obtain a next set of data until the grouping of all buffered data is completed, the obtaining the plurality of sets of data comprising:
and taking the modes of the generation time of the plurality of data according to different preset time intervals each time to obtain a plurality of groups of mode taking results, and obtaining data corresponding to each group of mode taking results to obtain the plurality of groups of data, wherein the preset time intervals corresponding to each mode taking are decreased.
4. The method of claim 2, wherein the data is acquired at first time intervals during the time interval of generation of the data to obtain a first set of data, the data is acquired at each time interval of each data of the first set of data to obtain a second set of data, and the data is acquired at each time interval of each data of the second set of data to obtain a next set of data until the grouping of all buffered data is completed, the obtaining the plurality of sets of data comprising:
acquiring data corresponding to the head time and the tail time of the generation time interval of the data to obtain a first group of data, acquiring data corresponding to the median of the time interval of the acquired data to obtain a second group of data, and acquiring data corresponding to the median of the time interval of the acquired data to obtain a next group of data until all the cached data are grouped to obtain the multiple groups of data.
5. The method of claim 1, wherein the generating time of each data is determined during the process of transmitting the data to the first device by the second device group, the corresponding time stamp is obtained, and the data and the corresponding time stamp are transmitted to the first device.
6. The method of claim 4, wherein presenting the data in the order in which the data was received, the obtaining a data presentation view comprising:
and displaying the received data on a time axis by taking the time stamp as a coordinate according to the sequence of receiving the data, and obtaining the data display diagram.
7. The method of claim 6, wherein after presenting the data in order of receiving the data to obtain a data presentation, the method further comprises:
determining that the second equipment transmits successful data to the first equipment under the condition that a communication link between the first equipment and the second equipment is abnormal, and determining the generation time of each piece of successfully transmitted data to obtain a corresponding time stamp;
and adding the successfully transmitted data into the data display diagram by taking the time stamp as a coordinate on the time axis to obtain an updated data display diagram.
8. A data processing apparatus, comprising:
a buffer unit, configured to buffer, when a communication link between a first device and a second device is abnormal, data that is failed to send to the first device by the second device to obtain a plurality of data, where the data that is failed to send is data that is not received by response information sent by the first device after being sent by the second device;
a sending unit, configured to send, by the second device, data to the first device in a packet manner until sending of all buffered data is completed, where a generation time interval of adjacent data in a previous group of data is greater than a generation time interval of adjacent data in a subsequent group of data, where the generation time interval of the previous group of data overlaps with the generation time interval of the subsequent group of data, and data acquisition granularity of each group of data sent by the second device in a packet manner decreases sequentially, and the data acquisition granularity of the previous group of data is greater than the data acquisition granularity of the subsequent group of data;
the display unit is used for displaying the data according to the sequence of receiving the data to obtain a data display diagram, wherein the data received by the first equipment are the groups of data with sequentially decreasing data acquisition granularity, the data display diagram firstly displays the data with coarse granularity in the generation time interval, and then displays the data with fine granularity in the generation time interval.
9. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the program, when run, controls a device in which the non-volatile storage medium is located to perform the data processing method of any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, the memory having stored therein computer readable instructions for executing the computer readable instructions, wherein the computer readable instructions when executed perform the data processing method of any of claims 1 to 7.
CN202111398143.9A 2021-11-23 2021-11-23 Data processing method and device Active CN114124659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111398143.9A CN114124659B (en) 2021-11-23 2021-11-23 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111398143.9A CN114124659B (en) 2021-11-23 2021-11-23 Data processing method and device

Publications (2)

Publication Number Publication Date
CN114124659A CN114124659A (en) 2022-03-01
CN114124659B true CN114124659B (en) 2024-03-05

Family

ID=80440221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111398143.9A Active CN114124659B (en) 2021-11-23 2021-11-23 Data processing method and device

Country Status (1)

Country Link
CN (1) CN114124659B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1518394A (en) * 2003-01-06 2004-08-04 三菱电机株式会社 Remote factory monitoring system and remote factory monitoring method
CN101699897A (en) * 2009-10-12 2010-04-28 中兴通讯股份有限公司 Method for complementarily reporting data with buffer memory and device thereof
JP2014216663A (en) * 2013-04-22 2014-11-17 三菱電機ビルテクノサービス株式会社 Image data transmission apparatus and image data management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7014906B2 (en) * 2018-06-15 2022-02-01 オリンパス株式会社 Data transmission terminal, data transmission method, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1518394A (en) * 2003-01-06 2004-08-04 三菱电机株式会社 Remote factory monitoring system and remote factory monitoring method
CN101699897A (en) * 2009-10-12 2010-04-28 中兴通讯股份有限公司 Method for complementarily reporting data with buffer memory and device thereof
JP2014216663A (en) * 2013-04-22 2014-11-17 三菱電機ビルテクノサービス株式会社 Image data transmission apparatus and image data management system

Also Published As

Publication number Publication date
CN114124659A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US10999367B2 (en) Communication apparatus, control device, and communication method
CN110825420A (en) Configuration parameter updating method, device, equipment and storage medium for distributed cluster
CN111090699A (en) Service data synchronization method and device, storage medium and electronic device
CN105338078A (en) Data storage method and device used for storing system
CN110138876B (en) Task deployment method, device, equipment and platform
CN112597249B (en) Synchronous distribution storage method and system for service data
CN105162879B (en) Realize the method, apparatus and system of multimachine room data consistency
CN104065526A (en) Server fault alarming method and device thereof
CN103281356B (en) File distribution method and system
CN105208058A (en) Information exchange system based on web session sharing
CN110196780B (en) Method, device, storage medium and electronic device for determining server state
CN108804515A (en) A kind of webpage loading method, webpage loading system and server
CN109582479B (en) OpenDDS distributed communication method based on reflective memory card
CN114124659B (en) Data processing method and device
US10432490B2 (en) Monitoring single content page application transitions
CN117714532A (en) Data information pushing method based on Timeline model, gateway and related equipment
CN106294033B (en) A kind of test method and device of multimachine room cache synchronization function
CN103051722B (en) A kind ofly determine the method whether page is held as a hostage and relevant device
US10152490B2 (en) Sequential replication with limited number of objects
CN107528703B (en) Method and equipment for managing node equipment in distributed system
US20200280512A1 (en) Optimized reconciliation in a controller-switch network
CN104468505A (en) Safety audit log playing method and device
CN114500036A (en) Method, device and medium for transmitting data
CN106131129B (en) The method and apparatus of management data synchronization time of global load balancing
CN113918436A (en) Log processing method and 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
GR01 Patent grant
GR01 Patent grant