CN109213102A - More order monitoring methods, device, computer equipment and storage medium - Google Patents

More order monitoring methods, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109213102A
CN109213102A CN201811057396.8A CN201811057396A CN109213102A CN 109213102 A CN109213102 A CN 109213102A CN 201811057396 A CN201811057396 A CN 201811057396A CN 109213102 A CN109213102 A CN 109213102A
Authority
CN
China
Prior art keywords
data
frame
initial data
intermediate data
order monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811057396.8A
Other languages
Chinese (zh)
Other versions
CN109213102B (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.)
Shenzhen Micctech Co Ltd
Original Assignee
Shenzhen Micctech 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 Shenzhen Micctech Co Ltd filed Critical Shenzhen Micctech Co Ltd
Priority to CN201811057396.8A priority Critical patent/CN109213102B/en
Publication of CN109213102A publication Critical patent/CN109213102A/en
Application granted granted Critical
Publication of CN109213102B publication Critical patent/CN109213102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/31From computer integrated manufacturing till monitoring
    • G05B2219/31088Network communication between supervisor and cell, machine group
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to more order monitoring methods, device, computer equipment and storage medium, this method includes obtaining input data and demand;Array assembling is carried out to the data of input, forms initial data;Judge whether initial data meets the first preset condition;If so, carrying out intercepting process to initial data;Intercepting process is divided as a result, forming intermediate data;Judge whether intermediate data meets the second preset condition;If so, processing is formatted according to intermediate data, to form target data;Feedback target data.The present invention passes through input data and demand, array assembling, intercepting process, division and formatting processing are carried out to data, to obtain target data, it is divided by the way of responsibility chain, so that the decoupling of each processing links of data, enhances in stability and maintainable, robustness is higher, since input data can be multiple business function monitor data, multiple business function monitor is realized, and more accurately learn the position that failure occurs.

Description

More order monitoring methods, device, computer equipment and storage medium
Technical field
The present invention relates to order monitoring methods, more specifically refer to more order monitoring methods, device, computer equipment and Storage medium.
Background technique
Industry control refers to industrial automatic control, is mainly realized using electronics, machinery, machinery, combination of software.It is industry Control (Factory control) or factory automation control (Factory Automation control).Mainly Refer to use computer technology, microelectric technique, electrical means, automate the production of factory and manufacturing process more, efficient activity, Precision, and there is controllability and visuality.A variety of lives that host computer supports slave computer generally can be all carried out in industry control The real time monitoring of mode is enabled, to realize accurately control.Current monitoring process is usually in UI (interface, User Interface), the division between the functional blocks such as communication, data storage area is unobvious, if communication is broken down, usually may Cause UI seemingly-dead;And a kind of command mode is usually only supported to the monitoring of slave computer, cannot accomplish it is multi-functional be used in combination, also or Support function decoupling that is multi-functional but not accomplishing inter-module well, maintenance inconvenient.
Therefore, it is necessary to design a kind of new method, multiple business function monitor is realized, it is easier to safeguard, robustness is more It is high.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, more order monitoring methods, device, computer equipment are provided And storage medium.
To achieve the above object, the invention adopts the following technical scheme: more order monitoring methods, comprising:
Obtain input data and demand;
Array assembling is carried out to the data of input, forms initial data;
Judge whether initial data meets the first preset condition;
If so, carrying out intercepting process to initial data;
Intercepting process is divided as a result, forming intermediate data;
Judge whether intermediate data meets the second preset condition;
If so, processing is formatted according to intermediate data, to form target data;
Feedback target data.
Its further technical solution are as follows: it is described judge whether initial data meets the first preset condition after, further includes:
If it is not, then output abnormality is reported.
Its further technical solution are as follows: described that intercepting process is carried out to initial data, comprising:
Initial data is stored with the mode of Circular buffer;
Subpackage processing is carried out to the initial data after storage.
Its further technical solution are as follows: the initial data after described pair of storage carries out subpackage processing, comprising:
The length that some byte in frame head is frame is defined, using frame header position plus the length of frame as frame end position;
Whether the length of the initial data after judging storage is less than the length of integral multiple frame;
It is waited if so, hanging up thread, and returns to whether the length for judging the initial data after storage is less than integer The length of times frame;
If it is not, then using the starting and ending position of frame to the initial data data intercept frame after storage, to obtain at interception Manage result.
Its further technical solution are as follows: the division intercepting process is as a result, form intermediate data, comprising:
To intercepting process result in such a way that some byte in frame head divides the type of data frame as object type Type division is carried out, to obtain different types of data frame, to form intermediate data.
Its further technical solution are as follows: it is described judge whether intermediate data meets the second preset condition after, further includes:
If it is not, then output abnormality is reported.
Its further technical solution are as follows: it is described that processing is formatted according to intermediate data, to form target data, packet It includes:
Collect intermediate data;
Corresponding format conversion is carried out to intermediate data according to business demand;
Transformed intermediate data is stored, to obtain target data.
The present invention also provides more order monitoring devices, comprising:
Data capture unit, for obtaining input data and demand;
Assembling unit forms initial data for carrying out array assembling to the data of input;
First judging unit, for judging whether initial data meets the first preset condition;
Intercepting process unit is used for if so, carrying out intercepting process to initial data;
Division unit, for dividing intercepting process as a result, forming intermediate data;
Second judgment unit, for judging whether intermediate data meets the second preset condition;
Formatting unit, for if so, processing is formatted according to intermediate data, to form target data;
Feedback unit is used for feedback target data.
The present invention also provides a kind of computer equipment, the computer equipment includes memory and processor, described to deposit Computer program is stored on reservoir, the processor realizes above-mentioned method when executing the computer program.
The present invention also provides a kind of storage mediums, which is characterized in that the storage medium is stored with computer program, institute Above-mentioned method can be realized by stating when computer program is executed by processor.
Compared with the prior art, the invention has the advantages that: the present invention carries out data by input data and demand Array assembling, intercepting process, division and formatting processing, to obtain target data, are divided by the way of responsibility chain, So that the decoupling of each processing links of data, enhance in stability and maintainable, robustness is higher, since input data can To be multiple business function monitor data, multiple business function monitor is realized, and more accurately learn the position that failure occurs.
The invention will be further described in the following with reference to the drawings and specific embodiments.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of more order monitoring methods provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of more order monitoring methods provided in an embodiment of the present invention;
Fig. 3 is the sub-process schematic diagram of more order monitoring methods provided in an embodiment of the present invention;
Fig. 4 is the sub-process schematic diagram of more order monitoring methods provided in an embodiment of the present invention;
Fig. 5 is the sub-process schematic diagram of more order monitoring methods provided in an embodiment of the present invention;
Fig. 6 is that the mode of Circular buffer provided in an embodiment of the present invention stores the schematic diagram of initial data;
Fig. 7 is the schematic diagram of responsibility chain provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of more order monitoring devices provided in an embodiment of the present invention;
Fig. 9 is the schematic block diagram of the intercepting process unit of more order monitoring devices provided in an embodiment of the present invention;
Figure 10 is the schematic block diagram of the subpackage subelement of more order monitoring devices provided in an embodiment of the present invention;
Figure 11 is the schematic block diagram of the formatting unit of more order monitoring devices provided in an embodiment of the present invention;
Figure 12 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Fig. 1 and Fig. 2 are please referred to, Fig. 1 is the application scenarios schematic diagram of more order monitoring methods provided in an embodiment of the present invention. Fig. 2 is the schematic flow chart of more order monitoring methods provided in an embodiment of the present invention.More order monitoring methods are applied to clothes It is engaged in device.The server 20 can be a server in Distributed Services platform, and more order prisons are deployed in the server Platform is surveyed, summed data is needed by user terminal input, is monitored by server, and feedback result is to user terminal, wherein The user of user terminal can be the equipment such as the monitoring of tools personnel, such as PLC, frequency converter, HMI of industrial automation Monitoring personnel.
Fig. 2 is the flow diagram of more order monitoring methods provided in an embodiment of the present invention.As shown in Fig. 2, this method packet Include following steps S110 to S190.
S110, the data and demand for obtaining input.
In the present embodiment, the data of input can such as parameter, fault waveform, oscilloscope data;Mainly user couple The interface of the monitoring program of user terminal carries out operating interactive, with obtained data.Above-mentioned demand, which refers to, feeds back which kind Target data.
S120, array assembling is carried out to the data of input, forms initial data.
In the present embodiment, the interface of more order monitoring platforms first can carry out array assembling to the data of input, specifically Classify to the data of these inputs, such as according to device model, to the parameter of the model, fault waveform and oscilloscope data An array is formed, initial data is formed.
S130, judge whether initial data meets the first preset condition.
In the present embodiment, the first preset condition is whether the type of initial data is parameter, fault waveform and oscillograph Data.
S140, if it is not, then output abnormality report;
If it is not, then output abnormality report is to user terminal, to remind user to input correct data.
S150, if so, to initial data carry out intercepting process.
In the present embodiment, initial data is transmitted to corresponding unit by a variety of communication task interfaces and processes, this is logical Interrogate task interface such as serial communication (Serial Task) interface, TCP IP communication (Socket Task) interface etc.
In one embodiment, as shown in figure 3, above-mentioned steps S150 may include step S151~S152.
S151, initial data is stored with the mode of Circular buffer;
As shown in fig. 6, several initial data are stored according to the form of annular with the movement of read pointer, write pointer. By mobile read pointer (i.e. iget), write pointer (i.e. iput) by the array design of fixed size at a flexible annular Buffer area solves a kind of typical Communication: such as in communication process, if frame length size is not fixed, needing Frequent dynamic application meets the demand that receives of variable frame data with releasing memory, and it is many to be likely to result in system generation at this time Memory fragmentation, finally may cause software operation run quickly burst.
S152, subpackage processing is carried out to the initial data after storage.
For the ease of being monitored and improving efficiency, the accuracy rate of monitoring, initial data is subjected to subpackage processing, it can needle Each complete data frame is individually handled, and several complete data frames can be analyzed simultaneously.
In one embodiment, as shown in figure 4, above-mentioned step S152 may include step S1521~S1524.
S1521, the length that some byte in frame head is frame is defined, using frame header position plus the length of frame as frame end Position;
S1522, judge whether the length of the initial data after storage is less than the length of integral multiple frame;
S1523, it is waited if so, hanging up thread, and whether return to the length for judging the initial data after storage small In the length of integral multiple frame;
S1524, if it is not, then using frame starting and ending position to the initial data data intercept frame after storage, to obtain Intercepting process result.
By defining the length of some byte frame thus in frame head, the end position of frame is then frame header position plus this frame Length, finally can pass through the starting and ending position of frame intercept a complete data frame;The initial data of storage is carried out Several complete data frames are intercepted into, if the length of not whole enough the frame of the initial data in loop buffer, hangs up thread etc. To continue the data for obtaining input by interface, then stored with ring buffer mode, cut again until length is met the requirements It takes, requirement herein refers to that the length of the initial data after storage is not less than the length of integral multiple frame, avoids the occurrence of original number The problem of according to being unable to monitor.
S160, intercepting process is divided as a result, forming intermediate data.
In the present embodiment, the mode of the type of frame is divided as object type particular by some byte in frame head Type division is carried out to intercepting process result, to obtain different types of data frame, to form intermediate data.
Receive processing result, and by flowing to each node in object chain when does the matching analysis processing, handling principle is The type of data frame is divided as object type by some byte in frame head, for example the object type of oscillograph frame is The object type of 0x01, fault diagnosis frame are 0x02, at this time can be separated fault diagnosis frame and other data frames, in order to rear The continuous formatting processing for carrying out data, and feed back to user.
Specifically, which uses the design pattern of responsibility chain, as shown in fig. 7, the command frame in figure refers to Be intercepting process as a result, i.e. complete data frame, that is, meet software while supporting multiple business function, and realize data Decoupling between sender/requestor (intercepting process unit 304) of frame and recipient's (division unit 305), to allow software Framework is apparent, maintainable higher.
S170, judge whether intermediate data meets the second preset condition.
In the present embodiment, the second preset condition refers to whether all data frames divide and finishes, and whether occur can not The data frame of division.
If it is not, then returning to S140;
S180, if so, processing is formatted according to intermediate data, to form target data.
In the present embodiment, different format conversions is carried out according to different types of data frame, is wanted so that it meets output It asks, such as the monitoring of driver functions code parameter, parameter type is more, attribute definition is abundant, needs to carry out tree structure The data of formula store;And oscilloscope data needs support multichannel, i.e. Multidimensional numerical stores.
Formatting unit 307 is set specifically in server, to be formatted processing
In one embodiment, as shown in figure 5, above-mentioned step S180 may include step S181~S183.
S181, intermediate data is collected;
S182, corresponding format conversion is carried out to intermediate data according to demand;
S183, transformed intermediate data is stored, to obtain target data.
Intermediate data to be collected, and does specific format conversion, this format conversion needs according to demand to determine, such as The monitoring of driver functions code parameter, parameter type is more, attribute definition is abundant, and the data for carrying out tree structure formula is needed to deposit Storage;And oscilloscope data needs support multichannel, i.e. Multidimensional numerical stores.And requirement source is in the monitoring program of user terminal Interface input.
S190, feedback target data.
It in the present embodiment, is the interface that target data is fed back to user terminal monitoring program,
In addition, timer (Timer) and message is supported to adjust back between above-mentioned interface and formatting unit 307 simultaneously The both of which of (Call Back), any one of them mode can be selected according to user demand to call in design, i.e., non-reality When can choose Timer mode, in real time refresh can choose Call Back mode.
Above-mentioned more order monitoring methods, by input data and demand, to data carry out array assembling, intercepting process, It divides and formatting is handled, to obtain target data, divided by the way of responsibility chain, so that each processing ring of data The decoupling of section enhances in stability and maintainable, and robustness is higher, since input data can be multiple business function prison Data are controlled, realize multiple business function monitor, and more accurately learn the position that failure occurs.
Fig. 8 is a kind of schematic block diagram of more order monitoring devices 300 provided in an embodiment of the present invention.As shown in figure 8, right The more order monitoring methods of Ying Yu or more, the present invention also provides a kind of more order monitoring devices 300.More order monitoring devices 300 Including the unit for executing above-mentioned more order monitoring methods, which can be configured in server.Specifically, it please refers to Fig. 8, more order monitoring devices 300 include:
Data capture unit 301, for obtaining input data and demand;
Assembling unit 302 forms initial data for carrying out array assembling to the data of input;
First judging unit 303, for judging whether initial data meets the first preset condition;
Intercepting process unit 304 is used for if so, carrying out intercepting process to initial data;
Division unit 305, for dividing intercepting process as a result, forming intermediate data;
Second judgment unit 306, for judging whether intermediate data meets the second preset condition;
Formatting unit 307, for if so, processing is formatted according to intermediate data, to form target data;
Feedback unit 308 is used for feedback target data.
In the present embodiment, made low as far as possible between each unit based on WINDOWS platform using loose modular construction Coupling, weak rigidity, thus the easy extension of realization device and characteristic easy to maintain.
In an embodiment, above-mentioned device further include:
Report an error unit 309, is used for if it is not, then output abnormality is reported.
In one embodiment, as shown in figure 9, above-mentioned intercepting process unit 304 includes:
Storing sub-units 3041, for storing initial data with the mode of Circular buffer;
Subpackage subelement 3042, for carrying out subpackage processing to the initial data after storage.
In one embodiment, as shown in Figure 10, above-mentioned subpackage subelement 3042 includes:
Definition module 30421, for defining the length that some byte in frame head is frame, by frame header position plus the length of frame As frame end position;
Length judgment module 30422, for judging whether the length of the initial data after storing is less than the length of integral multiple frame Degree;
Suspension module 30423 is used to wait if so, hanging up thread, and returns to the initial data after the judgement storage Length whether be less than the length of integral multiple frame;
Interception module 30424, for if it is not, then intercepting number to the initial data after storage using the starting and ending position of frame According to frame, to obtain intercepting process result.
In an embodiment, as shown in figure 11, above-mentioned formatting unit 307 includes:
Subelement 3071 is collected, for collecting intermediate data;
Subelement 3072 is converted, for carrying out corresponding format conversion to intermediate data according to business demand;
Target data obtains subelement 3073, for storing to transformed intermediate data, to obtain target data.
It should be noted that it is apparent to those skilled in the art that, above-mentioned more order monitoring devices 300 It, can be for convenience of description and simple with reference to the corresponding description in preceding method embodiment with the specific implementation process of each unit Clean, details are not described herein.
Above-mentioned more order monitoring devices 300 can be implemented as a kind of form of computer program, which can be with It is run in computer equipment as shown in figure 12.
Figure 12 is please referred to, Figure 12 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The calculating Machine equipment 500 is server.
Refering to fig. 12, which includes processor 502, memory and the net connected by system bus 501 Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.
The non-volatile memory medium 503 can storage program area 5031 and computer program 5032.The computer program 5032 include program instruction, which is performed, and processor 502 may make to execute a kind of more order monitoring methods.
The processor 502 is for providing calculating and control ability, to support the operation of entire computer equipment 500.
The built-in storage 504 provides environment for the operation of the computer program 5032 in non-volatile memory medium 503, should When computer program 5032 is executed by processor 502, processor 502 may make to execute a kind of more order monitoring methods.
The network interface 505 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Figure 12 The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme The restriction of computer equipment 500 thereon, specific computer equipment 500 may include more more or fewer than as shown in the figure Component perhaps combines certain components or with different component layouts.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following step It is rapid:
Obtain input data and demand;
Array assembling is carried out to the data of input, forms initial data;
Judge whether initial data meets the first preset condition;
If so, carrying out intercepting process to initial data;
Intercepting process is divided as a result, forming intermediate data;
Judge whether intermediate data meets the second preset condition;
If so, processing is formatted according to intermediate data, to form target data;
Feedback target data.
In one embodiment, processor 502 described judges whether initial data meets the first preset condition step realizing Later, following steps are also realized:
If it is not, then output abnormality is reported.
In one embodiment, processor 502 is when realizing the progress intercepting process step to initial data, specific implementation Following steps:
Initial data is stored with the mode of Circular buffer;
Subpackage processing is carried out to the initial data after storage.
In one embodiment, when initial data of the processor 502 after described pair of storage of realization carries out subpackage processing step, It is implemented as follows step:
The length that some byte in frame head is frame is defined, using frame header position plus the length of frame as frame end position;
Whether the length of the initial data after judging storage is less than the length of integral multiple frame;
It is waited if so, hanging up thread, and returns to whether the length for judging the initial data after storage is less than integer The length of times frame;
If it is not, then using the starting and ending position of frame to the initial data data intercept frame after storage, to obtain at interception Manage result.
In one embodiment, processor 502 is realizing the divisions intercepting process as a result, when formation intermediate data step, It is implemented as follows step:
To intercepting process result in such a way that some byte in frame head divides the type of data frame as object type Type division is carried out, to obtain different types of data frame, to form intermediate data.
In one embodiment, processor 502 described judges whether intermediate data meets the second preset condition step realizing Later, following steps are also realized:
If it is not, then output abnormality is reported.
In one embodiment, processor 502 realize it is described processing is formatted according to intermediate data, to form target When data step, it is implemented as follows step:
Collect intermediate data;
Corresponding format conversion is carried out to intermediate data according to business demand;
Transformed intermediate data is stored, to obtain target data.
It should be appreciated that in the embodiment of the present application, processor 502 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that relevant hardware can be instructed to complete by computer program.The computer program includes program instruction, computer journey Sequence can be stored in a storage medium, which is computer readable storage medium.The program instruction is by the department of computer science At least one processor in system executes, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium.This is deposited Storage media is stored with computer program, and processor is made to execute following steps when wherein the computer program is executed by processor:
Obtain input data and demand;
Array assembling is carried out to the data of input, forms initial data;
Judge whether initial data meets the first preset condition;
If so, carrying out intercepting process to initial data;
Intercepting process is divided as a result, forming intermediate data;
Judge whether intermediate data meets the second preset condition;
If so, processing is formatted according to intermediate data, to form target data;
Feedback target data.
In one embodiment, the processor realizes described whether judge initial data executing the computer program After meeting the first preset condition step, following steps are also realized:
If it is not, then output abnormality is reported.
In one embodiment, the processor is realized and described is cut to initial data executing the computer program When taking processing step, it is implemented as follows step:
Initial data is stored with the mode of Circular buffer;
Subpackage processing is carried out to the initial data after storage.
In one embodiment, original number of the processor after the execution computer program realizes described pair of storage When according to carrying out subpackage processing step, it is implemented as follows step:
The length that some byte in frame head is frame is defined, using frame header position plus the length of frame as frame end position;
Whether the length of the initial data after judging storage is less than the length of integral multiple frame;
It is waited if so, hanging up thread, and returns to whether the length for judging the initial data after storage is less than integer The length of times frame;
If it is not, then using the starting and ending position of frame to the initial data data intercept frame after storage, to obtain at interception Manage result.
In one embodiment, the processor realizes the division intercepting process knot executing the computer program Fruit is implemented as follows step when forming intermediate data step:
To intercepting process result in such a way that some byte in frame head divides the type of data frame as object type Type division is carried out, to obtain different types of data frame, to form intermediate data.
In one embodiment, the processor realizes described whether judge intermediate data executing the computer program After meeting the second preset condition step, following steps are also realized:
If it is not, then output abnormality is reported.
In one embodiment, the processor is realized and described is carried out according to intermediate data executing the computer program Formatting processing, when forming target data step, is implemented as follows step:
Collect intermediate data;
Corresponding format conversion is carried out to intermediate data according to business demand;
Transformed intermediate data is stored, to obtain target data.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk Or the various computer readable storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

  1. Order monitoring method more than 1. characterized by comprising
    Obtain input data and demand;
    Array assembling is carried out to the data of input, forms initial data;
    Judge whether initial data meets the first preset condition;
    If so, carrying out intercepting process to initial data;
    Intercepting process is divided as a result, forming intermediate data;
    Judge whether intermediate data meets the second preset condition;
    If so, processing is formatted according to intermediate data, to form target data;
    Feedback target data.
  2. 2. more order monitoring methods according to claim 1, which is characterized in that described to judge whether initial data meets After one preset condition, further includes:
    If it is not, then output abnormality is reported.
  3. 3. more order monitoring methods according to claim 2, which is characterized in that described to be carried out at interception to initial data Reason, comprising:
    Initial data is stored with the mode of Circular buffer;
    Subpackage processing is carried out to the initial data after storage.
  4. 4. more order monitoring methods according to claim 3, which is characterized in that the initial data after described pair of storage carries out Subpackage processing, comprising:
    The length that some byte in frame head is frame is defined, using frame header position plus the length of frame as frame end position;
    Whether the length of the initial data after judging storage is less than the length of integral multiple frame;
    It is waited if so, hanging up thread, and returns to whether the length for judging the initial data after storage is less than integral multiple frame Length;
    If it is not, then using the starting and ending position of frame to the initial data data intercept frame after storage, to obtain intercepting process knot Fruit.
  5. 5. more order monitoring methods according to claim 4, which is characterized in that the division intercepting process is as a result, form Intermediate data, comprising:
    Intercepting process result is carried out in such a way that some byte in frame head divides the type of data frame as object type Type division, to obtain different types of data frame, to form intermediate data.
  6. 6. more order monitoring methods according to claim 1, which is characterized in that described to judge whether intermediate data meets After two preset conditions, further includes:
    If it is not, then output abnormality is reported.
  7. 7. more order monitoring methods according to claim 5, which is characterized in that described to be formatted according to intermediate data Processing, to form target data, comprising:
    Collect intermediate data;
    Corresponding format conversion is carried out to intermediate data according to business demand;
    Transformed intermediate data is stored, to obtain target data.
  8. Order monitoring device more than 8. characterized by comprising
    Data capture unit, for obtaining input data and demand;
    Assembling unit forms initial data for carrying out array assembling to the data of input;
    First judging unit, for judging whether initial data meets the first preset condition;
    Intercepting process unit is used for if so, carrying out intercepting process to initial data;
    Division unit, for dividing intercepting process as a result, forming intermediate data;
    Second judgment unit, for judging whether intermediate data meets the second preset condition;
    Formatting unit, for if so, processing is formatted according to intermediate data, to form target data;
    Feedback unit is used for feedback target data.
  9. 9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and processor, on the memory It is stored with computer program, the processor is realized as described in any one of claims 1 to 7 when executing the computer program Method.
  10. 10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program quilt Processor can realize the method as described in any one of claims 1 to 7 when executing.
CN201811057396.8A 2018-09-11 2018-09-11 Multi-command monitoring method and device, computer equipment and storage medium Active CN109213102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811057396.8A CN109213102B (en) 2018-09-11 2018-09-11 Multi-command monitoring method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811057396.8A CN109213102B (en) 2018-09-11 2018-09-11 Multi-command monitoring method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109213102A true CN109213102A (en) 2019-01-15
CN109213102B CN109213102B (en) 2022-01-18

Family

ID=64987641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811057396.8A Active CN109213102B (en) 2018-09-11 2018-09-11 Multi-command monitoring method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109213102B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110879805A (en) * 2019-11-22 2020-03-13 北京锐安科技有限公司 Data anomaly discovery method and device, server and storage medium
CN111245935A (en) * 2020-01-10 2020-06-05 深圳前海环融联易信息科技服务有限公司 Timeout request processing method and device, computer equipment and storage medium
CN111459568A (en) * 2020-03-26 2020-07-28 深圳市元征科技股份有限公司 Vehicle data processing method and device
CN114704438A (en) * 2022-06-02 2022-07-05 深圳众城卓越科技有限公司 Wind turbine generator set fault monitoring method and device
CN115291967A (en) * 2022-08-01 2022-11-04 中国人民解放军32039部队 Space data analysis method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070116066A1 (en) * 2005-10-13 2007-05-24 Via Technologies, Inc. Method and apparatus for packet error detection
CN103020024A (en) * 2012-12-27 2013-04-03 北京经纬恒润科技有限公司 File format converting method
CN103186608A (en) * 2011-12-30 2013-07-03 北京谊安医疗系统股份有限公司 Method and device for processing data in queue serialization way
CN103488617A (en) * 2012-06-11 2014-01-01 北京新媒传信科技有限公司 Data interception method and device
CN104156673A (en) * 2014-08-06 2014-11-19 深圳市中兴移动通信有限公司 File processing method and device
CN106254172A (en) * 2016-07-14 2016-12-21 东软集团股份有限公司 Heterogeneous applications collecting method and device
CN106817205A (en) * 2015-11-27 2017-06-09 中兴通讯股份有限公司 Data in special physical data channel dispatching method and device
CN108334895A (en) * 2017-12-29 2018-07-27 腾讯科技(深圳)有限公司 Sorting technique, device, storage medium and the electronic device of target data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070116066A1 (en) * 2005-10-13 2007-05-24 Via Technologies, Inc. Method and apparatus for packet error detection
CN103186608A (en) * 2011-12-30 2013-07-03 北京谊安医疗系统股份有限公司 Method and device for processing data in queue serialization way
CN103488617A (en) * 2012-06-11 2014-01-01 北京新媒传信科技有限公司 Data interception method and device
CN103020024A (en) * 2012-12-27 2013-04-03 北京经纬恒润科技有限公司 File format converting method
CN104156673A (en) * 2014-08-06 2014-11-19 深圳市中兴移动通信有限公司 File processing method and device
CN106817205A (en) * 2015-11-27 2017-06-09 中兴通讯股份有限公司 Data in special physical data channel dispatching method and device
CN106254172A (en) * 2016-07-14 2016-12-21 东软集团股份有限公司 Heterogeneous applications collecting method and device
CN108334895A (en) * 2017-12-29 2018-07-27 腾讯科技(深圳)有限公司 Sorting technique, device, storage medium and the electronic device of target data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110879805A (en) * 2019-11-22 2020-03-13 北京锐安科技有限公司 Data anomaly discovery method and device, server and storage medium
CN110879805B (en) * 2019-11-22 2022-04-05 北京锐安科技有限公司 Data anomaly discovery method and device, server and storage medium
CN111245935A (en) * 2020-01-10 2020-06-05 深圳前海环融联易信息科技服务有限公司 Timeout request processing method and device, computer equipment and storage medium
CN111459568A (en) * 2020-03-26 2020-07-28 深圳市元征科技股份有限公司 Vehicle data processing method and device
CN114704438A (en) * 2022-06-02 2022-07-05 深圳众城卓越科技有限公司 Wind turbine generator set fault monitoring method and device
CN114704438B (en) * 2022-06-02 2022-09-20 深圳众城卓越科技有限公司 Wind turbine generator set fault monitoring method and device
CN115291967A (en) * 2022-08-01 2022-11-04 中国人民解放军32039部队 Space data analysis method and device and electronic equipment

Also Published As

Publication number Publication date
CN109213102B (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN109213102A (en) More order monitoring methods, device, computer equipment and storage medium
CN104317843B (en) A kind of data syn-chronization ETL system
CN104407977B (en) Based on the automatization uniting and adjustment testing method of the task system stage by stage of model inspection
CN109684053B (en) Task scheduling method and system for big data
CN110635938B (en) Monitoring method, system, equipment and medium
Jain et al. Cloud to edge: distributed deployment of process-aware IoT applications
CN105159964B (en) A kind of log monitoring method and system
CN108572919A (en) Automated testing method, device, computer equipment and storage medium
US7574690B2 (en) Graphical program which executes a timed loop
CN110647387B (en) Education cloud big data task scheduling method and system
JP5886712B2 (en) Efficient collection of transaction-specific metrics in a distributed environment
CN111125444A (en) Big data task scheduling management method, device, equipment and storage medium
US7779053B2 (en) Diagnosis of an automation system
CN101673100B (en) Acquisition method and system of parameters of technique process
WO2005079386A2 (en) Radio frequency identification (rfid) network system and method
WO2007085832A1 (en) Methods and apparatus for monitoring software systems
EP3690561A1 (en) Method and system for 3d visually monitoring a building, and memorizer
CN109783315A (en) A kind of database platform automation method for inspecting and system
US20060004767A1 (en) Systems and methods for collecting, representing, transmitting, and interpreting usage and state data for software
CN107360035A (en) A kind of data processing method and system
CN111104181A (en) Webpage data filling system for visually editing task flow
CN105511442B (en) Man-machine interactive system and method and fire fighting truck
CN113919813A (en) Production line dynamic value flow analysis method and system based on production line dynamic value flow graph
CN109871321A (en) A kind of method and test case management platform of test case Code automatic build
US20050015158A1 (en) Data acquisition system and method for process control and recording medium with recorded data acquisition program

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