CN112381348A - Production data real-time clock synchronization method and system based on API gateway - Google Patents

Production data real-time clock synchronization method and system based on API gateway Download PDF

Info

Publication number
CN112381348A
CN112381348A CN202011088814.7A CN202011088814A CN112381348A CN 112381348 A CN112381348 A CN 112381348A CN 202011088814 A CN202011088814 A CN 202011088814A CN 112381348 A CN112381348 A CN 112381348A
Authority
CN
China
Prior art keywords
clock synchronization
production data
real
data
service node
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.)
Pending
Application number
CN202011088814.7A
Other languages
Chinese (zh)
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.)
Sie Consulting Co ltd
Original Assignee
Sie Consulting 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 Sie Consulting Co ltd filed Critical Sie Consulting Co ltd
Priority to CN202011088814.7A priority Critical patent/CN112381348A/en
Publication of CN112381348A publication Critical patent/CN112381348A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • G06Q10/063114Status monitoring or status determination for a person or group
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • 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/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Manufacturing & Machinery (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Primary Health Care (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention belongs to the technical field of production scheduling, and particularly relates to a production data real-time clock synchronization method, a system, a platform and a storage medium based on an API gateway. Obtaining product production data of production equipment; performing clock synchronization processing on the product production data in real time through a service node of the production equipment; and the API gateway forwards the production data subjected to clock synchronization processing in real time according to the production data identification. Clock synchronization processing can be carried out on the product production data in real time through a service node of the production equipment; and generating a production data timestamp, realizing the consistency of the timestamp standards of different equipment and different service node data, and tracing the production data in real time.

Description

Production data real-time clock synchronization method and system based on API gateway
Technical Field
The invention belongs to the technical field of production scheduling, and particularly relates to a production data real-time clock synchronization method, a system, a platform and a storage medium based on an API gateway.
Background
The basic idea of the IT/OT integrated support platform is that an open type data acquisition and parameter issuing platform is 'equipment interconnection and data intercommunication', and in the current IT/OT integrated support platform, the IT/OT integrated support platform is generally connected with equipment through Ethernet, serial port bus or wireless network modes such as industrial AP and 5G, and the data acquisition and parameter issuing with the equipment are realized through corresponding protocol analysis.
Because the traditional platform generally communicates with a plurality of devices in a polling scheduling mode, when the number of the devices is large and the positions of the devices are scattered, the real-time performance of data interaction with the devices is greatly reduced due to polling delay and long communication distance, a production device service node cannot be simultaneously connected with all the devices, but a plurality of production device service nodes are respectively connected with different regional devices, the real-time performance of device communication is improved through distributed deployment, the devices are divided into different regions for collection and control, and the risk that faults in other regions are caused by faults in a single region and faults in the other regions are caused is effectively reduced.
The distributed deployment is typically characterized in that each node is relatively independent, functions are complete, and the nodes do not affect each other, equipment in different areas is monitored by different service nodes, so that data and interfaces of the equipment are dispersed, unified portals and dispatching are not needed, when the equipment is cooperated with three-party systems such as MES and QMS, more interfaces of the three-party systems are needed for dispatching, the integration difficulty of the three-party systems is high, and the implementation cost is high.
Secondly, transferring the data in a database mode, storing the data in the database, inquiring and taking the data out of the database, increasing data delay time, and repeatedly reading and writing the hard disk at the same time, so that the service life of the hard disk is reduced, and the IT operation and maintenance cost is reduced; similarly, data transfer interaction is carried out through an Enterprise Service Bus (ESB), the production equipment service point data still need to be transferred and temporarily stored in an ESB server, bottleneck is easily generated on ESB service nodes aiming at mass equipment data, professional ESB service nodes are introduced, the overall operation and maintenance difficulty and cost of the system are increased, and intermediate layer routing is needed between the production equipment service nodes, so that the real-time performance of the reduced system data is improved.
Based on the above problem defect, at present, in the production scheduling process, because many production equipment controllers, service node system time error, lead to different equipment, the timestamp standard of different service node data is inconsistent, the data timestamp of back production is earlier than the data timestamp of production earlier, data association error appears in the process of traceing back, lead to traceing back the mistake, that is to say, in the current production scheduling, do not realize the time real-time synchronization to production data, lead to the timestamp of generating inconsistent, and then lead to the mistake of traceing back. Therefore, it is necessary to provide a method, a system, a platform and a storage medium for synchronizing a real-time clock of production data based on an API gateway to solve the technical problem of the defect that the real-time synchronization of the production data results in inconsistent generated timestamps and further results in mistracing.
Disclosure of Invention
The technical problem and the defect that the timestamp standards of different equipment and different service node data are inconsistent at present are solved. The invention provides a production data real-time clock synchronization method, a system, a platform and a storage medium based on an API gateway, namely:
the first object of the present invention is to: providing a production data real-time clock synchronization method based on an API gateway;
the second object of the present invention is to: providing a production data real-time clock synchronization system based on an API gateway;
the third object of the present invention is to: providing a production data real-time clock synchronization platform based on an API gateway;
a fourth object of the present invention is to: providing a computer-readable storage medium;
the first object of the present invention is achieved by: the method specifically comprises the following steps:
acquiring product production data of production equipment;
performing clock synchronization processing on the product production data in real time through a service node of the production equipment;
and the API gateway forwards the production data subjected to clock synchronization processing in real time according to the production data identification.
Further, the product production data includes: the product work order number, the process parameters, the processing equipment data, the auxiliary equipment data, the processing duration, the operator information, the material information, the fault information, the product torsion time and the product retention time.
Further, the number of the service nodes of the production equipment is at least two;
in the step of performing clock synchronization processing on the product production data in real time through the service node of the production equipment, the method further comprises the following steps:
generating a service node clock synchronization service source according to the product production data, and carrying out real-time clock synchronization on the production data of the clock synchronization service source;
and according to the service node clock synchronization service source information, carrying out real-time clock synchronization on the production data of the service node of the non-clock synchronization service source in real time.
Further, in the step of real-time clock synchronization of data production by the service node of the non-service node clock synchronization service source according to the service node clock synchronization service source information, the method further comprises the following steps:
judging whether a service node clock synchronization service source is online or not, and if so, carrying out real-time clock synchronization on the data produced by the service node of the non-clock synchronization service source in real time; otherwise, executing the next step;
and generating a second service node clock synchronization service source, and carrying out real-time clock synchronization on the production data of the service node which is not the second clock synchronization service source.
Further, in the clock synchronization, the method further comprises the following steps:
a production data timestamp is generated.
Further, after the step of generating the production data timestamp, the method further comprises the following steps:
and tracing the production data in real time according to the production data timestamp.
The second object of the present invention is achieved by: the system specifically comprises:
the acquisition unit is used for acquiring product production data of the production equipment;
the synchronous processing unit is used for carrying out clock synchronous processing on the product production data in real time through a service node of the production equipment;
and the forwarding unit is used for forwarding the production data subjected to clock synchronization processing in real time by the API gateway according to the production data identification.
Further, the synchronous processing unit further includes:
the first synchronization module is used for generating a service node clock synchronization service source according to the product production data and carrying out real-time clock synchronization on the production data of the clock synchronization service source;
the second synchronization module is used for carrying out real-time clock synchronization on the service node production data of the non-clock synchronization service source in real time according to the service node clock synchronization service source information;
the second synchronization module further comprises:
the judging module is used for judging whether the service node clock synchronization service source is on line or not;
the third synchronization module is used for generating a second service node clock synchronization service source and carrying out real-time clock synchronization on the production data of the service node which is not the second clock synchronization service source;
the system further comprises:
the generation module is used for generating a production data timestamp;
and the source tracing module is used for tracing the production data in real time according to the production data timestamp.
The third object of the present invention is achieved by: the method comprises the following steps: the system comprises a processor, a memory and a platform control program for real-time clock synchronization of production data based on an API gateway;
wherein the platform control program for API gateway based production data real time clock synchronization is executed at the processor, the platform control program for API gateway based production data real time clock synchronization is stored in the memory, the platform control program for API gateway based production data real time clock synchronization implements the method steps for API gateway based production data real time clock synchronization.
The fourth object of the present invention is achieved by: the computer readable storage medium stores a platform control program for real-time clock synchronization of production data based on the API gateway, and the platform control program for real-time clock synchronization of production data based on the API gateway realizes the steps of the method for real-time clock synchronization of production data based on the API gateway.
Compared with the prior art, the invention has the following beneficial effects:
according to the production data real-time clock synchronization method, system, platform and storage medium based on the API gateway, clock synchronization processing can be performed on the production data of the product in real time through the service node of the production equipment; and generating a production data timestamp, realizing the consistency of the timestamp standards of different equipment and different service node data, and tracing the production data in real time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a process architecture of a production data real-time clock synchronization method based on an API gateway according to the present invention;
FIG. 2 is a schematic diagram of a preferred embodiment of a production data real-time clock synchronization method architecture based on an API gateway according to the present invention;
FIG. 3 is a schematic diagram of a second preferred embodiment of the architecture of the production data real-time clock synchronization method based on the API gateway according to the present invention;
FIG. 4 is a schematic diagram of a third preferred embodiment of a production data real-time clock synchronization method architecture based on an API gateway according to the present invention;
FIG. 5 is a schematic diagram of a production data real-time clock synchronization system architecture based on an API gateway according to the present invention;
FIG. 6 is a schematic diagram of a production data real-time clock synchronization platform architecture based on an API gateway according to the present invention;
FIG. 7 is a block diagram of a computer-readable storage medium according to an embodiment of the present invention;
the objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
For better understanding of the objects, aspects and advantages of the present invention, reference will now be made to the following detailed description taken in conjunction with the accompanying drawings, and other advantages and capabilities of the present invention will become apparent to those skilled in the art from the description.
The invention is capable of other and different embodiments and its several details are capable of modification in various other respects, all without departing from the spirit and scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Secondly, the technical solutions in the embodiments can be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not be within the protection scope of the present invention.
Preferably, the production data real-time clock synchronization method based on the API gateway is applied to one or more terminals or servers. The terminal is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The terminal can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The terminal can be in man-machine interaction with a client in a keyboard mode, a mouse mode, a remote controller mode, a touch panel mode or a voice control device mode.
The invention discloses a production data real-time clock synchronization method, a system, a platform and a storage medium based on an API gateway.
Fig. 1 is a flowchart of a method for synchronizing a real-time clock of production data based on an API gateway according to an embodiment of the present invention.
In this embodiment, the method for synchronizing the production data real-time clock based on the API gateway may be applied to a terminal or a fixed terminal having a display function, where the terminal is not limited to a personal computer, a smart phone, a tablet computer, a desktop or all-in-one machine with a camera, and the like.
The production data real-time clock synchronization method based on the API gateway can also be applied to a hardware environment formed by a terminal and a server connected with the terminal through a network. Networks include, but are not limited to: a wide area network, a metropolitan area network, or a local area network. The production data real-time clock synchronization method based on the API gateway can be executed by a server, can also be executed by a terminal, and can also be executed by the server and the terminal together.
For example, for a terminal that needs to perform production data real-time clock synchronization based on the API gateway, the production data real-time clock synchronization function based on the API gateway provided by the method of the present invention may be directly integrated on the terminal, or a client for implementing the method of the present invention may be installed. For another example, the method provided by the present invention may further run on a device such as a server in the form of a Software Development Kit (SDK), and an interface of the real-time clock synchronization function of the production data based on the API gateway is provided in the form of the SDK, so that the terminal or other devices can implement the real-time clock synchronization function of the production data based on the API gateway through the provided interface.
The invention is further elucidated with reference to the drawing.
As shown in fig. 1, the present invention provides a production data real-time clock synchronization method based on API gateway, and the method specifically includes the following steps:
s1, acquiring product production data of the production equipment;
s2, performing clock synchronization processing on the product production data in real time through a service node of the production equipment;
and S3, the API gateway forwards the production data subjected to clock synchronization processing in real time according to the production data identification.
Preferably, said product production data comprises: the product work order number, the process parameters, the processing equipment data, the auxiliary equipment data, the processing duration, the operator information, the material information, the fault information, the product torsion time and the product retention time.
Furthermore, the number of the service nodes of the production equipment is at least two;
in the step of performing clock synchronization processing on the product production data in real time through the service node of the production equipment, the method further comprises the following steps:
s21, generating a service node clock synchronization service source according to the product production data, and carrying out real-time clock synchronization on the production data of the clock synchronization service source;
and S22, according to the service node clock synchronization service source information, carrying out real-time clock synchronization on the production data of the service node of the non-clock synchronization service source.
Preferably, in the step of synchronizing the real-time clock of the data produced by the service node of the non-service node clock synchronization service source in real time according to the service node clock synchronization service source information, the method further comprises the following steps:
s221, judging whether a service node clock synchronization service source is online or not, and if so, carrying out real-time clock synchronization on the production data of the service node of the non-clock synchronization service source in real time; otherwise, executing the next step;
s222, generating a second service node clock synchronization service source, and carrying out real-time clock synchronization on the production data of the service node which is not the second clock synchronization service source.
Further, in the clock synchronization, the method further comprises the following steps:
and S40, generating the production data time stamp.
Further, after the step of generating the production data timestamp, the method further comprises the following steps:
and S41, tracing the production data in real time according to the production data time stamp.
In particular, in embodiments of the present invention,
as shown in fig. 2, for the problem of high difficulty in service collaboration among systems due to dispersion of distributed deployment interfaces and data dispersion, the present invention provides the following solutions to solve the problems of system decoupling and data real-time pushing:
1. the API gateway service provides a uniform API interface portal, decoupling IT system and equipment interconnection, and the data intercommunication system has a one-to-many relationship, so that the upper-layer IT system does not need to care about equipment interconnection, the node address and the number of the data intercommunication system, and the coupling degree between the systems is reduced.
The specific working principle is as follows:
and equipment interconnection, wherein an API gateway service IP and a port are configured before the data intercommunication system edge service node is accessed.
Equipment interconnection, after the service node of the data intercommunication system is started, the unique identifier of the node, the unique identifier of equipment connection and the information of API interface table are automatically uploaded
The equipment is interconnected, and when the service node of the data intercommunication system exits, the API gateway is informed to delete all cache information of the node;
when the IT system calls the API, a unique service node identifier or a unique equipment identifier needs to be added into a request packet header, an API gateway carries out API request routing according to the unique identifier and forwards the API request routing to corresponding equipment for interconnection, an edge service node of a data intercommunication system and returns a return result to the IT system, and therefore automatic API calling routing is achieved;
when the equipment is interconnected and the edge service node of the data intercommunication system is abnormal, the API gateway returns a default abnormal message to the IT system according to a fault tolerance mechanism, so that abnormal isolation among services is realized, and the service fault of the IT system is avoided;
when the IT system executes illegal requests or frequent malicious requests, the API gateway can execute interception actions according to safety rules, so that equipment interconnection caused by external violent access is avoided, and the performance of an edge service node of the data intercommunication system is reduced;
the API gateway only screens, filters and routes the request data, the equipment is interconnected, the service node of the data intercommunication system and the IT system data are transmitted in time in a routing way, and data access action is not performed in the middle, so that the system data are ensured to interact in time, and the data real-time performance is provided;
in a safe and controllable internal network, interaction can be carried out through the gRPCs, the gRPCs adopt a protobuf protocol to carry out binary coding and support stream transmission, the data transmission amount can be effectively reduced, and the overall performance among systems is improved.
The API gateway carries out log recording and filing storage on API calling parameters, frequency, response time and abnormal information among the systems, so that subsequent abnormal tracing and system problem troubleshooting are facilitated;
the upper-layer IT system can directly issue the process parameters to the equipment according to the unique equipment identifier, and when the API gateway receives the request of the IT system, the equipment interconnection and data intercommunication system service node corresponding to the equipment is automatically identified according to the unique equipment identifier, and the issued parameters are forwarded to the equipment interconnection and data intercommunication system service node. When the identification fails, the API automatically fails to download, and the unique identifier of the returned equipment does not find abnormal information;
2. the equipment is interconnected, the real-time data of the data intercommunication system is published in an MQTT or RabbitMQ message queue mode, the IT system subscribes consumption data to an MQTT Broker or a RabbitMQ Server, real-time pushing and consumption of the equipment data are realized, and the real-time performance of the data is improved.
The working principle is as follows:
the equipment interconnection, the data intercommunication system service node configures the data push mode in advance, can select MQTT or RabbitMQ, and configures MQTT Broker or RabbitMQ Server parameter information;
the method comprises the steps that equipment is interconnected, and a service node of a data interconnection system is pre-configured with equipment data, a subject format, a push message field and a message format which need to be pushed in real time, and a Json format is defaulted;
the equipment interconnection, the data intercommunication system service node configures the data push strategy in advance, and can configure the push at a regular interval or the push of data value change;
the equipment interconnection is carried out after the service node of the data intercommunication system is started, and real-time data release is carried out according to the configuration information
The IT system subscribes a theme to the MQTT Broker or the Rabbit MQ Server according to the service requirement of the IT system;
the IT system is interconnected according to the subscription subject consumption equipment, and the data intercommunication system pushes data;
and canceling the subscription when the IT system is quitted or the consumption is finished.
3. The equipment interconnection, the point-to-point communication is realized between the service nodes of the data intercommunication system through peer-to-peer network service, a TCP data channel is established between each service node for point-to-point transmission, and the real-time transmission of OT service node data is realized without bridging by three parties such as an API gateway, an MQTTbroker, a RabbitMQ and the like.
The equipment interconnection, the data intercommunication system service node provides TCP service for other node connection, and the service node is used as a client to connect other service nodes to perform data interaction according to the requirement, thereby realizing point-to-point communication between the nodes, and the working principle is as follows:
the method comprises the following steps that equipment interconnection, other equipment interconnection needing data interaction, an IP (Internet protocol) and a port of a service node of a data intercommunication system are configured in advance by the service node of the data intercommunication system;
the equipment interconnection, the data intercommunication system service node pre-configures the equipment data to be interacted;
the equipment interconnection, after the data intercommunication system service is started, the data interaction is automatically carried out with the IP and port configuration resume TCP connecting channel;
equipment interconnection, when the service of the data intercommunication system exits, the TCP connection is disconnected, and data interaction is stopped;
preferably, as shown in fig. 3, the devices are interconnected, and the service nodes of the data interworking system and the centralized monitoring server implement point-to-point TCP communication through peer-to-peer network service, thereby implementing efficient communication between the nodes;
the interconnection of API gateway service providing equipment is provided, the service nodes of the data intercommunication system unify API inlets, the integration difficulty of a three-party system is simplified, and the implementation delivery cost is reduced;
the API gateway service provides flow monitoring, performance monitoring and log recording functions, realizes calling monitoring, interface parameter monitoring and interface performance monitoring of an API interface between systems, can provide original data for interactive abnormal data between systems, interface performance data and interface concurrent data, and ensures subsequent operation and maintenance, performance optimization and abnormal tracing of the system;
providing an API fault tolerance mechanism which comprises service fault tolerance, service degradation and fault tolerance elaboration, ensuring the interconnection of equipment and the influence of abnormal service of a data intercommunication system on a three-party system, and ensuring the stability of the three-party system;
providing RPC routing scheduling and authority control functions, improving the internal calling efficiency of equipment interconnection and data intercommunication system service nodes through grpc, and automatically intercepting illegal requests and abnormal requests through authority control
The automatic distribution mechanism for the equipment process parameter issuing is realized, the unique code of the equipment can be automatically routed to the service node corresponding to the equipment, and the seamless butt joint of the MES and the equipment service and data is realized.
That is to say, the devices are interconnected, the service nodes of the data intercommunication system connect the production devices through serial ports or ethernet, and uniformly acquire data such as the state, production information, fault information, process parameters, program file names, quality inspection, energy consumption and the like of the production devices through a device protocol, the visual billboard platform acquires device data and system data thereof through API gateway service, and displays the device data and the system data to users through charts, reports, animations and the like, so that transparent production is realized, namely, the device state data is monitored, and transparent production is realized.
The equipment interconnection system analyzes the collected equipment running state and fault state data through a protocol, calculates the running time, the downtime, the fault time, the maintenance time and the like of the current equipment through the state switching timestamp, further calculates the indexes of the equipment such as OEE, the time utilization rate and the like, helps a user to improve the equipment utilization rate and reasonably arrange the equipment maintenance time.
In the embodiment of the invention, equipment is interconnected, a data intercommunication system collects product production full-flow parameters such as product work order number, process parameters, processing equipment data, auxiliary equipment data, processing duration, operator information, material information, fault information, product torsion time, product in-process retention time and the like produced by field equipment through a protocol to realize comprehensive monitoring of product production data, when equipment fault or parameter abnormity occurs in the production process, the equipment is interconnected, the data intercommunication system informs relevant production personnel to process in time through short messages, mails, voice and the like, so that the production abnormity response speed is improved, the efficiency is improved, the quantity of defective products caused by equipment fault can be effectively controlled, in addition, the real-time product in-process tracing, product quality abnormity tracing, production time delay, product quality abnormity tracing and the like can be effectively realized through the monitoring of, And (4) carrying out reduction and tracing on the product after sale.
In the whole process of product tracing, the production data of the equipment end is provided with a time stamp and is traced according to the time stamp.
Preferably, as shown in fig. 4, when the device interconnection, the edge service nodes 1 to n of the data interworking system, and the system time of the device nodes 1 to n are inconsistent, the timestamp of the data generated by each node is inconsistent, and for this, the device interconnection, and the data interworking system provides a clock synchronization scheme to effectively solve the above problem, and the specific scheme is as follows:
1. the equipment interconnection, each node of the data intercommunication system edge service node provides clock synchronization service, which can be used as a clock synchronization server or a clock synchronization client;
2. the equipment interconnection, when the data intercommunication system edge service node 1 is started online, the clock synchronization server function is automatically started, and a clock synchronization service source is provided for the subsequent online SMDC node;
3. the equipment interconnection, after the data intercommunication system edge service nodes 2-n are started up, the service node 1 is automatically used as a clock synchronization service source to carry out clock synchronization;
4. when equipment interconnection and a data intercommunication system edge service node 1 quits, when judging that the node is a clock synchronization server, informing the rest nodes to select an online equipment interconnection, wherein the data intercommunication system service node is used as a new clock synchronization server, such as an equipment interconnection and a data intercommunication system edge service node 2;
5. equipment interconnection, namely after the data intercommunication system edge service node 2 receives the election, starting clock synchronization service for other nodes to synchronize;
6. equipment interconnection, wherein the data intercommunication system edge service nodes 3-n automatically switch clock synchronization sources to the equipment interconnection, and the data intercommunication system edge service node 2;
7. equipment interconnection, namely after the data intercommunication system edge service node 1 is on-line again, automatically switching a clock synchronization source to the equipment interconnection, and then switching the data intercommunication system edge service node 2;
8. if the equipment data acquired by the edge service node of the data intercommunication system has the equipment system time stamp, the equipment is interconnected, the data intercommunication system can automatically reset the data to be equipment interconnection, the service node time of the data intercommunication system and the equipment data time stamp are ensured to be all interconnected by adopting the equipment, and the edge service node time stamp of the data intercommunication system is adopted; if the equipment system time stamp is not carried, the equipment is interconnected, the data intercommunication system automatically adopts the equipment interconnection, and the current time of the edge service node of the data intercommunication system is used as the time stamp.
In order to achieve the above object, the present invention further provides a production data real-time clock synchronization system based on API gateway, as shown in fig. 5, the system specifically includes:
the acquisition unit is used for acquiring product production data of the production equipment;
the synchronous processing unit is used for carrying out clock synchronous processing on the product production data in real time through a service node of the production equipment;
and the forwarding unit is used for forwarding the production data subjected to clock synchronization processing in real time by the API gateway according to the production data identification.
Further, the synchronous processing unit further includes:
the first synchronization module is used for generating a service node clock synchronization service source according to the product production data and carrying out real-time clock synchronization on the production data of the clock synchronization service source;
the second synchronization module is used for carrying out real-time clock synchronization on the service node production data of the non-clock synchronization service source in real time according to the service node clock synchronization service source information;
the second synchronization module further comprises:
the judging module is used for judging whether the service node clock synchronization service source is on line or not;
the third synchronization module is used for generating a second service node clock synchronization service source and carrying out real-time clock synchronization on the production data of the service node which is not the second clock synchronization service source;
the system further comprises:
the generation module is used for generating a production data timestamp;
and the source tracing module is used for tracing the production data in real time according to the production data timestamp.
In the embodiment of the system scheme of the present invention, specific details of the method steps involved in the production data real-time clock synchronization system based on the API gateway have been set forth above, and are not described herein again.
In order to achieve the above object, the present invention further provides a production data real-time clock synchronization platform based on API gateway, as shown in fig. 6, including:
the system comprises a processor, a memory and a production data real-time clock synchronization platform control program based on an API gateway;
wherein the processor executes the API gateway-based production data real-time clock synchronization platform control program, the API gateway-based production data real-time clock synchronization platform control program is stored in the memory, and the API gateway-based production data real-time clock synchronization platform control program implements the API gateway-based production data real-time clock synchronization method steps, such as:
s1, acquiring product production data of the production equipment;
s2, performing clock synchronization processing on the product production data in real time through a service node of the production equipment;
and S3, the API gateway forwards the production data subjected to clock synchronization processing in real time according to the production data identification.
The details of the steps have been set forth above and will not be described herein.
In an embodiment of the present invention, the API gateway-based processor built in the real-time clock synchronization platform for production data may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and include one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, and a combination of various control chips. The processor acquires each component by using various interfaces and line connections, and executes various functions and processes data by running or executing programs or units stored in the memory and calling data stored in the memory so as to execute the real-time clock synchronization of the production data based on the API gateway;
the memory is used for storing program codes and various data, is installed in the production data real-time clock synchronization platform based on the API gateway and realizes high-speed and automatic access to the program or the data in the running process.
The Memory includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable rewritable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical Disc Memory, magnetic disk Memory, tape Memory, or any other medium readable by a computer that can be used to carry or store data.
In order to achieve the above object, the present invention further provides a computer readable storage medium, as shown in fig. 7, where the computer readable storage medium stores a production data real-time clock synchronization platform control program based on an API gateway, and the production data real-time clock synchronization platform control program based on the API gateway implements the steps of the production data real-time clock synchronization method based on the API gateway, for example:
s1, acquiring product production data of the production equipment;
s2, performing clock synchronization processing on the product production data in real time through a service node of the production equipment;
and S3, the API gateway forwards the production data subjected to clock synchronization processing in real time according to the production data identification.
The details of the steps have been set forth above and will not be described herein.
In describing embodiments of the present invention, it should be noted that any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and that the scope of the preferred embodiments of the present invention includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM).
Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
In an embodiment of the present invention, to achieve the above object, the present invention further provides a chip system, where the chip system includes at least one processor, and when a program instruction is executed in the at least one processor, the chip system is caused to perform the steps of the API gateway-based production data real-time clock synchronization method, for example:
s1, acquiring product production data of the production equipment;
s2, performing clock synchronization processing on the product production data in real time through a service node of the production equipment;
and S3, the API gateway forwards the production data subjected to clock synchronization processing in real time according to the production data identification.
The details of the steps have been set forth above and will not be described herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Through the steps, the system, the platform and the storage medium of the method, the clock synchronization processing can be carried out on the product production data in real time through the service node of the production equipment; and generating a production data timestamp, realizing the consistency of the timestamp standards of different equipment and different service node data, and tracing the production data in real time.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A production data real-time clock synchronization method based on an API gateway is characterized by specifically comprising the following steps:
acquiring product production data of production equipment;
performing clock synchronization processing on the product production data in real time through a service node of the production equipment;
and the API gateway forwards the production data subjected to clock synchronization processing in real time according to the production data identification.
2. The method of claim 1, wherein the product production data comprises: the product work order number, the process parameters, the processing equipment data, the auxiliary equipment data, the processing duration, the operator information, the material information, the fault information, the product torsion time and the product retention time.
3. The method of claim 1, wherein the number of service nodes of the production equipment is at least two;
in the step of performing clock synchronization processing on the product production data in real time through the service node of the production equipment, the method further comprises the following steps:
generating a service node clock synchronization service source according to the product production data, and carrying out real-time clock synchronization on the production data of the clock synchronization service source;
and according to the service node clock synchronization service source information, carrying out real-time clock synchronization on the production data of the service node of the non-clock synchronization service source in real time.
4. The method for real-time clock synchronization of production data based on API gateway as claimed in claim 3, wherein the step of real-time clock synchronization of production data to the service node of the non-service node clock synchronization service source according to the service node clock synchronization service source information further comprises the steps of:
judging whether a service node clock synchronization service source is online or not, and if so, carrying out real-time clock synchronization on the data produced by the service node of the non-clock synchronization service source in real time; otherwise, executing the next step;
and generating a second service node clock synchronization service source, and carrying out real-time clock synchronization on the production data of the service node which is not the second clock synchronization service source.
5. The method for real-time clock synchronization of production data based on API gateway as recited in claim 1, 3 or 4, wherein the clock synchronization further comprises the following steps:
a production data timestamp is generated.
6. The method for real-time clock synchronization of production data based on API gateway as claimed in claim 5, further comprising the following steps after the step of generating the production data timestamp:
and tracing the production data in real time according to the production data timestamp.
7. A production data real-time clock synchronization system based on an API gateway is characterized by specifically comprising:
the acquisition unit is used for acquiring product production data of the production equipment;
the synchronous processing unit is used for carrying out clock synchronous processing on the product production data in real time through a service node of the production equipment;
and the forwarding unit is used for forwarding the production data subjected to clock synchronization processing in real time by the API gateway according to the production data identification.
8. The API gateway-based production data real-time clock synchronization system of claim 7,
the synchronous processing unit further comprises:
the first synchronization module is used for generating a service node clock synchronization service source according to the product production data and carrying out real-time clock synchronization on the production data of the clock synchronization service source;
the second synchronization module is used for carrying out real-time clock synchronization on the service node production data of the non-clock synchronization service source in real time according to the service node clock synchronization service source information;
the second synchronization module further comprises:
the judging module is used for judging whether the service node clock synchronization service source is on line or not;
the third synchronization module is used for generating a second service node clock synchronization service source and carrying out real-time clock synchronization on the production data of the service node which is not the second clock synchronization service source;
the system further comprises:
the generation module is used for generating a production data timestamp;
and the source tracing module is used for tracing the production data in real time according to the production data timestamp.
9. A production data real-time clock synchronization platform based on an API gateway is characterized by comprising:
the system comprises a processor, a memory and a platform control program for real-time clock synchronization of production data based on an API gateway;
wherein the platform control program for API gateway based production data real time clock synchronization is executed on the processor, the platform control program for API gateway based production data real time clock synchronization being stored in the memory, the platform control program for API gateway based production data real time clock synchronization implementing the method steps for API gateway based production data real time clock synchronization as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a platform control program for API gateway-based real-time clock synchronization of production data, the platform control program implementing the method steps of any one of claims 1 to 6 for API gateway-based real-time clock synchronization of production data.
CN202011088814.7A 2020-10-13 2020-10-13 Production data real-time clock synchronization method and system based on API gateway Pending CN112381348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011088814.7A CN112381348A (en) 2020-10-13 2020-10-13 Production data real-time clock synchronization method and system based on API gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011088814.7A CN112381348A (en) 2020-10-13 2020-10-13 Production data real-time clock synchronization method and system based on API gateway

Publications (1)

Publication Number Publication Date
CN112381348A true CN112381348A (en) 2021-02-19

Family

ID=74581315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011088814.7A Pending CN112381348A (en) 2020-10-13 2020-10-13 Production data real-time clock synchronization method and system based on API gateway

Country Status (1)

Country Link
CN (1) CN112381348A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039173A (en) * 2007-04-29 2007-09-19 山东大学 Apparatus and method for realizing synchronization between Ethernet chain-like network nodes
US20100205323A1 (en) * 2009-02-10 2010-08-12 International Business Machines Corporation Timestamp Synchronization for Queries to Database Portions in Nodes That Have Independent Clocks in a Parallel Computer System
KR20100127988A (en) * 2009-05-27 2010-12-07 주식회사 쿠오핀 Establishing method for network synchronization and time synchronization in ethernet system
CN110619114A (en) * 2019-09-26 2019-12-27 北京明略软件系统有限公司 Serial number generation method and system
CN111309747A (en) * 2020-02-18 2020-06-19 京东数字科技控股有限公司 Data synchronization method, system and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039173A (en) * 2007-04-29 2007-09-19 山东大学 Apparatus and method for realizing synchronization between Ethernet chain-like network nodes
US20100205323A1 (en) * 2009-02-10 2010-08-12 International Business Machines Corporation Timestamp Synchronization for Queries to Database Portions in Nodes That Have Independent Clocks in a Parallel Computer System
KR20100127988A (en) * 2009-05-27 2010-12-07 주식회사 쿠오핀 Establishing method for network synchronization and time synchronization in ethernet system
CN110619114A (en) * 2019-09-26 2019-12-27 北京明略软件系统有限公司 Serial number generation method and system
CN111309747A (en) * 2020-02-18 2020-06-19 京东数字科技控股有限公司 Data synchronization method, system and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姚光强;陈立平;: "SNTP时间同步技术在农产品质量安全追溯系统中的应用", 农业工程学报, vol. 24, no. 2, 30 September 2008 (2008-09-30), pages 182 - 185 *
谢洁锐;胡月明;刘才兴;刘兰;: "无线传感器网络的时间同步技术", 计算机工程与设计, 16 January 2007 (2007-01-16) *

Similar Documents

Publication Publication Date Title
CN112381347A (en) Production equipment state data real-time monitoring method and system based on API gateway
EP3072260B1 (en) Methods, systems, and computer readable media for a network function virtualization information concentrator
CN108847979B (en) Self-adaptive configuration system and method based on SCADA
CN110445856B (en) Internet of things communication assembly management and control system and method supporting multi-protocol access
EP2378741B1 (en) Systems and Methods for Conducting Communications Among Components of Multidomain Industrial Automation System
CN114143203B (en) Method and system for collecting network data packet indexes of Kubernetes container based on dynamic service topology mapping
CN109960634B (en) Application program monitoring method, device and system
CN109379217B (en) A kind of different producer's arranging service device of Metropolitan Area Network (MAN)
EP2378716B1 (en) Systems for conducting communications among components of multidomain industrial automation system
EP2378740A1 (en) Method for conducting communications among components of multidomain industrial automation system
CN112235130A (en) Method and device for realizing operation and maintenance automation based on SDN network
CN109391516A (en) Realize the cloud third party NMS system of more producer UTN equipment centralized maintenance management
CN112381346A (en) Product process formula parameter issuing and checking method and system based on API gateway
US9280426B2 (en) System and method for server redundancy
CN109428745B (en) JMS message forwarding method, device, electronic equipment and storage medium
CN108880866A (en) A kind of network service system
CN105071986A (en) Method for monitoring operation state of system
CN112381348A (en) Production data real-time clock synchronization method and system based on API gateway
CN104378231A (en) Control system and control method for enterprise wireless router
CN109547334B (en) Service system for machine networking message communication and implementation method thereof
CN115208905A (en) Device information synchronization method, device, system, electronic device and storage medium
CN104412545A (en) Communication method, information processing apparatus, communication system, program, node, and communication terminal
Aziz et al. Data integration models for heterogeneous industrial systems: A conceptual analysis
CN116915669B (en) Message management method, device, related equipment, chip and storage medium
CN116915837B (en) Communication method and communication system based on software defined network

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