CN116170429A - Data acquisition method, device, industrial equipment and computer storage medium - Google Patents

Data acquisition method, device, industrial equipment and computer storage medium Download PDF

Info

Publication number
CN116170429A
CN116170429A CN202111413958.XA CN202111413958A CN116170429A CN 116170429 A CN116170429 A CN 116170429A CN 202111413958 A CN202111413958 A CN 202111413958A CN 116170429 A CN116170429 A CN 116170429A
Authority
CN
China
Prior art keywords
data
data acquisition
protocol
server
industrial
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
CN202111413958.XA
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.)
Hongfujin Precision Electronics Chengdu Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Electronics Chengdu Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Electronics Chengdu Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Electronics Chengdu Co Ltd
Priority to CN202111413958.XA priority Critical patent/CN116170429A/en
Priority to US17/714,437 priority patent/US20230161303A1/en
Publication of CN116170429A publication Critical patent/CN116170429A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Computer And Data Communications (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The embodiment of the application provides a data acquisition method, which is applied to industrial equipment and comprises the following steps: generating a first operation parameter according to a data acquisition protocol; performing data processing on the first operation parameters to obtain second operation parameters; uploading the second operation parameters to a server; and receiving a control instruction from the server, wherein the control instruction is generated by the server according to the second operation parameter and is used for controlling the operation state of the industrial equipment. The embodiment of the application also provides a data acquisition device, industrial equipment and a computer storage medium. Therefore, the data acquisition method, the device, the industrial equipment and the computer storage medium can solve the problems that equipment manufacturers and server systems are high in coupling, equipment operation parameters of the equipment manufacturers are not output fully and unified standards are not available, and data quality is improved.

Description

Data acquisition method, device, industrial equipment and computer storage medium
Technical Field
The application relates to the technical field of data acquisition, in particular to a data acquisition method, a data acquisition device, industrial equipment and a computer storage medium.
Background
With the development of big data technology, manufacturing factories realize important decisions in industrial manufacturing and realize intelligent control of equipment through big data analysis. At present, the existing data acquisition mode requires an enterprise system to carry out data butt joint with equipment of different manufacturers, and has the problems of long butt joint time consumption, high coupling degree, long repeated development and development period, low efficiency and the like.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a data acquisition method, apparatus, industrial device, and computer storage medium, which can solve the problems of high coupling between equipment manufacturers and server systems, incomplete output dimensions of equipment operation parameters of the equipment manufacturers, and no unified standard, and can also shorten the software development period of the equipment manufacturers for interfacing with the server systems, and improve the data quality.
An embodiment of the present application provides a data acquisition method, applied to industrial equipment, including:
generating a first operation parameter according to a data acquisition protocol;
performing data processing on the first operation parameters to obtain second operation parameters;
uploading the second operation parameters to a server;
and receiving a control instruction from the server, wherein the control instruction is generated by the server according to the second operation parameter and is used for controlling the operation state of the industrial equipment.
In some possible implementations, the data acquisition method further includes:
detecting an operating state of the industrial equipment, and suspending or restarting the industrial equipment when the operating state of the industrial equipment is abnormal.
In some possible implementations, the data acquisition protocol includes a device access sub-protocol and a data format sub-protocol:
the industrial equipment is initialized according to the equipment access sub-protocol, and communication with the server side is established;
the data format sub-protocol is used to indicate the format of the first operating parameter.
In some possible implementations, the data format sub-protocol is further used for indicating a format of the control instruction, and the server outputs the control instruction according to the data format sub-protocol.
In some possible implementations, the data acquisition method further includes:
checking the first operation parameter according to the data format sub-protocol, and determining whether the format of the first operation parameter is consistent with the format indicated by the data format sub-protocol;
analyzing the first operation parameters according to the data format sub-protocol, and extracting data elements in the first operation parameters;
compressing or encoding the data element.
In some possible implementations, the data acquisition method further includes:
data encapsulation is carried out on the compressed or encoded data elements according to a network protocol;
and detecting a communication state between the industrial equipment and the server, if the communication state is unstable, caching the data element after data encapsulation into a local database of the industrial equipment, and when the communication state is stable, uploading the data element after data encapsulation to the server address.
A second aspect of embodiments of the present application provides a data acquisition device, the data acquisition device comprising:
the acquisition module is used for acquiring a first operation parameter of the industrial equipment according to a data acquisition protocol;
the processing module is used for carrying out data processing on the first operation parameters to obtain second operation parameters;
and the transmission module is used for uploading the second operation parameters to a server and receiving control instructions from the server, wherein the control instructions are used for controlling the operation state of the industrial equipment.
In some possible implementations, the data acquisition device further includes:
and the monitoring module is used for detecting the operation state of the industrial equipment and suspending or restarting the data acquisition device when the operation state of the industrial equipment is abnormal.
A third aspect of embodiments of the present application provides an industrial apparatus comprising:
a memory for storing a computer program;
a processor for invoking the computer program in the memory to cause the industrial device to perform the data collection method as described in any of the above.
A fourth aspect of the present embodiments provides a computer storage medium comprising computer instructions which, when run on an industrial device, cause the industrial device to perform a data acquisition method as described in any one of the preceding claims.
Therefore, the data acquisition method, the device, the industrial equipment and the computer storage medium can solve the problems that equipment manufacturers and server systems are high in coupling, equipment operation parameter output dimensions of the equipment manufacturers are not complete and unified standards are not available, and can shorten the software development period of the equipment manufacturers for docking the server systems and improve data quality.
Drawings
Fig. 1 is a schematic view of an application scenario of an industrial device according to an embodiment of the present application.
Fig. 2 is a flowchart of a data acquisition method according to an embodiment of the present application.
Fig. 3 is a functional block diagram of a data acquisition device according to an embodiment of the present application.
Fig. 4 is a hardware configuration diagram of an industrial device according to an embodiment of the present application.
Description of the main reference signs
Industrial plant 10
Service end 11
Data acquisition device 100
Acquisition module 101
Processing module 102
Transmission module 103
Monitoring module 104
Memory 401
Processor 402
Communication bus 403
Communication interface 404
The invention will be further described in the following detailed description in conjunction with the above-described figures.
Detailed Description
In the embodiments of the present application, the terms "first," "second," and the like are used merely for distinguishing between different objects, and are not to be construed as indicating or implying a relative importance or order. For example, a first application, a second application, etc. are intended to distinguish between different applications, rather than to describe a particular order of application, and features defining "first", "second", etc. may explicitly or implicitly include one or more such features.
Referring to fig. 1, fig. 1 is a diagram illustrating an application scenario of an industrial device 10 according to an embodiment of the present application. As shown in fig. 1, the industrial device 10 may be a production device performing production tasks in a factory, for example, the industrial device 10 may be a chip mounter, a reflow oven, or the like, the industrial device 10 may be connected to the service end 11 through a network, for example, the industrial device 10 may be connected to the service end 11 through a wired connection (for example, ethernet, RS-232, RS-485, or the like) or a wireless connection (Wi-Fi, bluetooth, zigbee, or the like), the service end 11 may be a computer or a system for managing the industrial device 10, for example, the service end 11 may be an enterprise manufacturing execution system (Manufacturing Execution System, MES), or the like.
In some embodiments, the industrial equipment 10 may generate a first operating parameter associated with its operating state during its production, e.g., the industrial equipment 10 may generate a first operating parameter comprising a plurality of dimensions including equipment state data, equipment setup data, equipment real-time data, equipment manufacturing process data, etc., and obtain a second operating parameter by data processing the first operating parameter. The industrial device 10 may transmit the second operating parameter to the server 11 via a network. Wherein the device state data indicates a state of the device at runtime; the equipment sets working parameters of the data indicating equipment in running; the device real-time data indicates real-time data of the device at runtime (e.g., device temperature, device operating speed, etc.); the equipment production process data indicates data of production yield, production class and the like of equipment.
When the server 11 receives the second operation parameter transmitted by the industrial device 10, the server 11 performs data analysis on the second operation parameter, and generates a control instruction according to the second operation parameter, where the control instruction is used to control an operation state of the industrial device 10 (for example, control the industrial device 10 to pause or alarm, optimize device setting data of the industrial device 10, etc.).
In some embodiments, the server 11 may utilize a big data algorithm model to perform modeling analysis on the second operation parameter, and determine whether the industrial device 10 has a health and safety problem according to the analysis result. If the industrial equipment 10 has the health and safety problem, the server 11 will issue a control command to the industrial equipment 10 to control the industrial equipment 10 to adjust and optimize the first operation parameter or control the industrial equipment 10 to alarm and stop operation.
It should be noted that different industrial devices 10 may generate the first operation parameters having the same format according to a specific data acquisition protocol, and communicate with the server 11 according to the protocol.
In some embodiments, the industrial device 10 may perform data processing on the first operation parameter before transmitting the first operation parameter to the server 11, for example, the industrial device 10 may check whether the first operation parameter meets a format standard of the data collection protocol, extract a data element in the first operation parameter, and upload the data element as a second operation parameter to the server 11.
In some embodiments, the industrial device 10 may detect its own operating state during its operation, and when the operating state is abnormal, the industrial device 10 may restart to restore to a normal operating state.
Referring to fig. 2, fig. 2 is a flowchart of a data acquisition method according to an embodiment of the present application. As shown in fig. 2, the data acquisition method is applied to the industrial equipment 10, and includes the steps of:
step S1: a first operating parameter is generated in accordance with a data acquisition protocol.
In this embodiment, the data acquisition protocol includes a data format sub-protocol, where the data format sub-protocol is used to define a first operation parameter format of the industrial device 10, and the industrial device 10 may generate the first operation parameter according to the data format sub-protocol.
Specifically, the data format sub-protocol defines the format of the first operating parameter of the industrial device 10 as a specific JSON format based on a representational state transfer (Representational State Transfer, REST) architecture compatible with most industrial devices 10, with a wide applicability, a simple syntax structure, and can be used to efficiently transmit data.
The specific JSON format includes three fields of data type (DataType), data type (DataLabel) and data content (Datas), wherein the data type field content is the type of data, and the format is a character string, for example: file (File) category or String (String) category.
The data type field content is information related to the industrial device 10 in the form of a string, for example: machine state information (MachineStatusData), process data (ProducData), machine basic parameter information (MachineInfo).
In some embodiments, the data type field may be configured in advance, and different data type fields may be configured for different industrial devices 10 to apply to different industrial devices 10.
The content of the data content field is detailed data corresponding to the data type field, and the format is a character string, for example: the machine state information data types include data content fields such as state (Status), event code (EventCode), event message (EventMsg), event detail information (EventOutData), and the like.
In this embodiment, when the content of the data type field is a file, the content of the data content field is a path address of the file, and when the content of the data type field is a character string, the content of the data content field is a character string representing detailed data.
In this embodiment, the data format sub-protocols include a general data format sub-protocol and other data format sub-protocols, where the general data format sub-protocol is used to specify general data generated by the industrial equipment 10 and types of control instructions output by the server 11, the general data includes first operation parameters such as an operation state of the industrial equipment 10, real-time data, and production process data, and the control instructions include instructions for controlling the operation state of the industrial equipment 10, such as shutdown, alarm, etc. By way of example, the following are first operating parameters generated by the industrial device 10 according to the generic data format sub-protocol:
{"DataType":"String","DataLabel":"MachineStatusData","Datas":{"Status":"R","StatusTime":"2019-10-11 14:28:57.232","EventCode":"001","EventMsg":"PCBSNScan","EventOutData":{"Site1":"XXX000054","Site2":"XXX000055"}}}
the data indicates that the data type is a character string, the data type is machine state information, and the data content comprises:
a machine state, the value of which indicates that a Red light (Red, R) of the industrial equipment 10 is on, the industrial equipment 10 being in an alarm state;
status time (status time), which is 28 minutes 57.232 seconds at 2019, 10, 11, 14;
event code, the value of which is 001;
an event message having a value of Serial Number (SN) of a Scan (Scan) printed circuit board (Printed Circuit Board, PCB);
the event details include a position 1 and a position 2, the position 1 having a value XXX000054 and the position 2 having a value XXX000055.
In this embodiment, other data format sub-protocols may define the variety of other first operating parameters of the industrial device 10. It will be appreciated that the other first operating parameters are not of the type defined in the generic data format sub-protocol, such as data on steel mesh up and down, frequency of wipe changes, solder paste height, area, volume, etc., detected by the solder paste detector.
For example, when the industrial equipment 10 is a reflow oven, other data format sub-protocols may define settings, real-time data, manufacturing process data, etc. for the industrial equipment 10 that are not defined in the generic data format sub-protocol. The specific format of the setting parameters of the reflow oven is as follows: dataType is String, dataLabel is sonic reflow settingdata, and Datas contains data such as the type of reflow oven, program name, set point of temperature of each temperature zone, set point of oxygen concentration, set speed of motor, set state of motor, etc. The specific format of the working real-time parameters of the reflow oven is as follows: the DataType is String, the dataLabel is sonic reflow data, and the Datas data elements comprise the actual value of the temperature of each temperature zone, the actual value of the oxygen concentration, the actual speed of the motor, the actual state of the motor, the number of the current printed circuit boards in the furnace, the output time and other data.
It will be appreciated that the data format sub-protocol solves the problem of incomplete and non-uniform standards of data dimension generated by different industrial devices 10 and improves data quality.
In this embodiment, a complete data includes three fields, namely, a data type, and a data content, and after generating a complete data according to the data format sub-protocol, the industrial device 10 may write a < FXEOF > statement after the data content field to indicate the end of the complete data.
It can be understood that the server 11 can determine whether the complete data is finished by detecting the < FXEOF > statement, so as to prevent the error of the first operation parameter read by the server 11 caused by the packet sticking or packet loss in the network transmission process of the data packet, and improve the data stability of the first operation parameter and the fault tolerance of the data read by the server 11.
It can be understood that the data protocol defines the types, formats, etc. of the first operation parameters of the industrial devices 10, and different industrial devices 10 can obtain the first operation parameters with different types and the same format according to the data acquisition protocol, so that the complexity of the first operation parameters of different industrial devices 10 can be reduced, meanwhile, the efficiency of the server 11 in data processing and analysis is convenient, the problem that the data dimension of the first operation parameters of different industrial devices 10 is not complete and has no unified standard is solved, in addition, the server 11 does not need to adapt to different industrial devices 10 respectively, the development difficulty of the server 11 is effectively reduced, and the software development period of the server 11 and the industrial devices 10 is shortened.
Step S2: and accessing the server according to the data acquisition protocol.
In this embodiment, the data acquisition protocol further includes a device access sub-protocol, where the device access sub-protocol includes a module calling sub-protocol, an instruction transmission sub-protocol, and a data output sub-protocol, where the module calling sub-protocol is used to define a manner in which the industrial device 10 calls a software development kit (Software Development Kit, SDK) to transmit a first operating parameter of the industrial device 10.
In some embodiments, the software development kit may include one or more functional programs, each of which may correspond to a function. The software development kit may further include interface configuration information for an external program to call and execute the one or more functional programs to implement one or more functions. Any functional program can be used as a corresponding module form for an external program to call according to corresponding interface configuration information.
In some embodiments, the software development kit may create a collection of application software development tools for a software package, software framework, hardware platform, operating system, etc. provided by a third party developer.
In this embodiment, the device manufacturer of the industrial device 10 may store the software development kit in the software running directory of the industrial device 10, so that the industrial device 10 may implement the related functions in the software development kit through an external call. For example, the industrial device 10 can output a first operating parameter of the industrial device 10 by invoking a software development kit.
In this embodiment, the industrial device 10 may call an Intent (string stationtype, string machine ID) function in the software development kit to initialize parameters of the software development kit, where the parameter line is a product line name where the industrial device 10 is located, the parameter statiotype is a process name, and the parameter machine ID is a machine number. For example, the industrial equipment 10 may initialize a software development kit using an Intent ("PCB", "reflow", "A03") function, the industrial equipment 10 being on a production line that is printed circuit board (Printed Circuit Board, PCB), the process being called reflow, and the machine being designated A03.
It should be noted that the software development kit may provide a configuration interface or a configuration file in a preset JSON format, and the production engineer may adjust parameters of the industrial device 10 by configuring the configuration interface or by editing the preset configuration file. For example, a production engineer may adjust the machine number, line name, etc. of the industrial equipment 10 by configuring the configuration interface, or by editing a preset configuration file.
After the industrial device 10 invokes an Intent (running line, string stationtype, running machineID) function to initialize parameters of the software development kit, the industrial device 10 may create a port for communicating with the server 11. The ports may have preset port numbers, and different industrial devices 10 may create ports having different port numbers, and the service terminal 11 may distinguish different industrial devices 10 through the preset port numbers, so that the industrial devices 10 may establish a communication connection of the service terminal 11 through the device access sub-protocol.
In this embodiment, the command transmission sub-protocol is used to define a manner in which the industrial device 10 receives the control command output by the server 11, and the industrial device 10 may perform corresponding operations on the control command according to the command transmission sub-protocol. The format and type of the control instructions are defined in a generic data format sub-protocol. For example, the industrial device 10 may issue an alarm when the industrial device 10 receives a control instruction to control the alarm.
The data output sub-protocol is used to define a method by which the industrial device 10 outputs a first operating parameter. In this embodiment, the industrial device 10 may call the universal data collection func function provided by the software development kit to output the first operating parameter having the specific JSON format.
It can be understood that the device access sub-protocol can solve the problem of high coupling between the industrial device 10 and the server 11, improve the working independence and expansibility of the industrial device 10 and the server 11, and when the industrial device 10 and the server 11 perform data interaction, the industrial device 10 and the server 11 are easy to identify each other, so that the delay of identity confirmation between the industrial device 10 and the server 11 is effectively reduced, and the data transmission efficiency and the stability of data transmission are improved.
Step S3: and carrying out data processing on the first operation parameters.
In this embodiment, the industrial device 10 may perform data processing on the first operation parameter to ensure that the first operation parameter is in a correct format and is concise and necessary. The data processing may include data verification, data parsing, and other data processing operations.
The data verification includes: the industrial equipment 10 judges whether the output data accords with a specific JSON format defined by a data format sub-protocol according to a preset logic expression, if not, the data check fails, and the industrial equipment 10 needs to regenerate a first operation parameter which accords with the specific JSON format; if so, the data verification is successful.
The data parsing includes: the industrial device 10 reads the data content field based on the data type field and the data type field in the first operating parameter and extracts the data elements in the data content field.
The other data processing operations may include data filtering, identifier binding, compression, and encoding operations, where data filtering refers to selecting data to be transmitted to the server 11;
identifier binding refers to associating a first operating parameter of the industrial device 10 with the industrial device 10 for the server 11 to confirm the type and model of the industrial device 10;
compression refers to reducing the size of the first operation parameter by a specific algorithm to more efficiently transmit data to the server 11;
the coding means that the first operation parameters are subjected to character conversion according to a specific rule so as to ensure the confidentiality, anti-interference performance and other performances of the first operation parameters;
it will be appreciated that, after the industrial device 10 performs data processing on the first operation parameter, a second operation parameter is obtained, and when the server 11 receives the second operation parameter, operations such as decoding, decompressing, etc. need to be performed on the second operation parameter.
It can be understood that, by performing data processing on the first operation parameter, the format of the first operation parameter can be ensured to be correct, the data size of the first operation parameter of the industrial equipment 10 is reduced, the data transmission efficiency is improved, the type of the first operation parameter that needs to be subjected to subsequent data processing by the server 11 is screened, and the working efficiency of the server 11 is improved.
Step S4: uploading a second operation parameter and receiving a control instruction.
In this embodiment, after the industrial device 10 performs data processing on the first operation parameter, a second operation parameter is obtained, and the industrial device 10 may upload the second operation parameter to the server 11.
The uploading the second operation parameter includes: and packaging the second operation parameters according to a specific transmission protocol, and uploading the second operation parameters to the server. The encapsulation refers to filling the second operation parameter with a packet header, so as to form a data packet, and it can be understood that the data packet may be transmitted to the server 11 through a specific network transmission protocol.
In some embodiments, the network transport protocol may be a message queue telemetry transport (Message Queuing Telemetry Transport, MQTT) protocol or a hypertext transport protocol (Hyper Text Transfer Protocol, HTTP).
In some embodiments, the uploading the second operating parameter further comprises: automatically detecting the network environment, caching the second operation parameters in an SQLite database local to the industrial equipment 10 when the network is unstable, and retransmitting the data after the network connection is restored. The SQLite is an embedded database and is used for storing data and managing the stored data. For example, the industrial device 10 may store output data in SQLite when the network environment is poor or the network connection is interrupted, and take out the output data from the SQLite after the network connection is restored, and transmit it to the server 11.
In this embodiment, the server 11 may transmit a control instruction to the industrial device 10 according to the second operation parameter of the industrial device 10 to control the state of the industrial device 10, for example, the server 11 may transmit a control instruction to the industrial device 10 to control the industrial device 10 to restart the industrial device 10. The industrial device 10 may receive the control instructions from the server 11 and perform corresponding operations on the control instructions according to the instruction transmission sub-protocol.
It can be appreciated that the control instruction may enable the server 11 to remotely control the industrial device 10 according to the second operation parameter of the industrial device 10, so that no line engineer is required to perform additional operations on the industrial device 10, and the manual workload is reduced.
Step S5: the operating environment is monitored.
In this embodiment, the industrial device 10 may detect its own operation state during its operation, and when the operation state is abnormal, the industrial device 10 may be restarted to restore to a normal operation state.
It will be appreciated that the industrial equipment 10 has the ability to self-repair abnormal operating conditions, thereby reducing the workload of maintenance engineers, improving the operating efficiency of the industrial equipment 10, and reducing the failure maintenance rate of the industrial equipment 10. Referring to fig. 3, fig. 3 is a functional block diagram of a data acquisition device 100 according to an embodiment of the present application. As shown in fig. 3, the data acquisition device 100 may include a plurality of functional modules that are comprised of program code segments. Program code for each program segment in the data acquisition device 100 may be stored in a memory of the industrial device 10 and executed by a processor of the industrial device 10 to perform data acquisition functions. The data acquisition device 100 may also include interface configuration information for an external program to call and execute the one or more functional programs to implement one or more functions. Any functional program can be used as a corresponding module form for an external program to call according to corresponding interface configuration information.
In this embodiment, the data acquisition device 100 may be divided into a plurality of functional modules according to the functions performed by the data acquisition device. The functional module includes: the device comprises an acquisition module 101, a processing module 102 and a transmission module 103.
The acquisition module 101 is configured to acquire a first operating parameter of the industrial device 10 according to a data acquisition protocol.
In this embodiment, the data acquisition protocol includes a data format sub-protocol, where the data format sub-protocol is used to define a first operation parameter format of the industrial device 10, and the acquisition module 101 may generate the first operation parameter of the industrial device 10 according to the data format sub-protocol.
The acquisition module 101 is further configured to access the server according to a data acquisition protocol.
In this embodiment, the data acquisition protocol further includes a device access sub-protocol, where the data acquisition protocol includes a module calling sub-protocol, an instruction transmission sub-protocol, and a data output sub-protocol, and the acquisition module 101 may generate a port with a specific port number according to the device access sub-protocol, so as to establish network communication with the server 11.
In this embodiment, after establishing network communication with the server 11, the acquisition module 101 may derive the first operation parameter according to the data output sub-protocol.
The processing module 102 is configured to perform data processing on the first operation parameter.
In this embodiment, the processing module 102 may perform data processing on the first operation parameter to ensure that the first operation parameter is in a correct format and is concise and necessary. The data processing may include data verification, data parsing, and other data processing operations.
The data verification includes: the processing module 102 judges whether the output data accords with a specific JSON format defined by the data format sub-protocol according to a preset logic expression, if not, the data verification fails, and the acquisition module 101 needs to regenerate a first operation parameter which accords with the specific JSON format; if so, the data verification is successful.
The data parsing includes: the processing module 102 reads the data content field according to the data type field and the data type field in the first operation parameter, and extracts the data element in the data content field.
The other data processing operations may include data filtering, identifier binding, compression, and encoding operations, where data filtering refers to selecting data to be transmitted to the server 11;
identifier binding refers to associating a first operating parameter of the industrial device 10 with the industrial device 10 for the server 11 to confirm the type and model of the industrial device 10;
compression refers to reducing the size of the first operation parameter by a specific algorithm to more efficiently transmit data to the server 11;
the coding means that the first operation parameters are subjected to character conversion according to a specific rule so as to ensure the confidentiality, anti-interference performance and other performances of the first operation parameters;
it can be understood that, after the processing module 102 performs data processing on the first operation parameter, a second operation parameter is obtained, and when the server 11 receives the second operation parameter, operations such as decoding, decompressing, etc. need to be performed on the second operation parameter.
The transmission module 103 is configured to upload the second operation parameter and receive the control instruction.
In this embodiment, after the processing module 102 performs data processing on the second operation parameter, the transmission module 103 may upload the second operation parameter to the server 11.
The uploading the second operation parameter includes: the transmission module 103 encapsulates the second operation parameter according to a specific transmission protocol, and uploads the second operation parameter to the server. The encapsulation refers to filling the second operation parameter with a packet header, so as to form a data packet, and it can be understood that the data packet may be transmitted to the server 11 through a specific network transmission protocol.
In some embodiments, the network transport protocol may be a message queue telemetry transport (Message Queuing Telemetry Transport, MQTT) protocol or a hypertext transport protocol (Hyper Text Transfer Protocol, HTTP).
In some embodiments, the uploading the second operating parameter further comprises: the transmission module 103 automatically detects the network environment, and when the network is unstable, the second operation parameter is cached in the SQLite database local to the industrial equipment 10, and when the network connection is restored, the data retransmission is performed. The SQLite is an embedded database and is used for storing data and managing the stored data. For example, the transmission module 103 may store the output data into the SQLite when the network environment is poor or the network connection is interrupted, and take the output data out of the SQLite after the network connection is restored, and transmit it to the server 11.
In this embodiment, the server 11 may transmit a control instruction to the transmission module 103 according to the second operation parameter, the transmission module 103 may transmit the control instruction to the processing module 102, and the processing module 102 may control the state of the industrial device 10 according to the control instruction, for example, the server 11 may transmit a control instruction for controlling an alarm of the industrial device 10 to the transmission module 103, so that the industrial device 10 may issue an alarm. The transmission module 103 may receive the control instruction from the service end 11 and transmit the control instruction to the processing module 102, and the processing module 102 may perform a corresponding operation on the control instruction according to an instruction transmission sub-protocol, for example, the service end 11 may transmit a control instruction for controlling the industrial device 10 to alarm to the transmission module 103, and the processing module 102 may control the industrial device 10 to issue an alarm according to the control instruction.
In this embodiment, the data acquisition device 100 may further include a monitoring module 104, where the monitoring module 104 is configured to monitor an operating environment of the data acquisition device 100.
In this embodiment, the monitoring module 104 may detect the operation state of the data acquisition device 100 during the operation process of the data acquisition device 100, and when the operation state is abnormal, the monitoring module 104 may control the data acquisition device 100 to restart to restore to the normal operation state.
Referring to fig. 4, fig. 4 illustrates an industrial apparatus 10 provided in one embodiment of the present application.
In the preferred embodiment of the present application, the industrial device 10 includes a memory 401, at least one processor 402, at least one communication bus 403, and a communication interface 404.
It should be appreciated by those skilled in the art that the configuration of the industrial device 10 shown in fig. 4 is not limiting of the embodiments of the present application, and that either a bus-type configuration or a star-type configuration is possible, and that the industrial device 10 may include more or less other hardware or software than that shown, or a different arrangement of components.
In some embodiments, the industrial device 10 is an electronic device capable of automatically performing numerical calculations and/or information processing according to predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits, programmable gate arrays, digital processors, embedded devices, and the like. The industrial device 10 may also include a client device including, but not limited to, any electronic product that can interact with a client by way of a keyboard, mouse, remote control, touch pad, or voice-controlled device, such as a personal computer, tablet, smart phone, digital camera, etc.
It should be noted that the industrial device 10 is only used as an example, and other electronic products that may be present in the present application or may be present in the future are also included in the scope of the present application and are incorporated herein by reference.
In some embodiments, the memory 401 is used to store program code and various data and to enable high-speed, automated access to programs or data during operation of the industrial device 10. The Memory 401 includes Read-Only Memory (ROM), programmable Read-Only Memory (PROM), erasable programmable Read-Only Memory (EPROM), one-time programmable Read-Only Memory (One-time Programmable Read-Only Memory, OTPROM), electrically erasable rewritable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
In some embodiments, the at least one processor 402 may be comprised of an integrated circuit, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The at least one processor 402 is a Control Unit (Control Unit) of the industrial equipment 10, connects various components of the entire industrial equipment 10 using various interfaces and lines, and performs various functions of the industrial equipment 10 and processes data by running or executing programs or units stored in the memory 401, and calling data stored in the memory 401.
In some embodiments, the at least one communication bus 403 is arranged to enable a connected communication between the memory 401 and the at least one processor 402 etc.
In some embodiments, the communication interface 404 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio Access Network (RAN), wireless local area network (Wireless Local Area Networks, WLAN), etc.
Although not shown, the industrial device 10 can also include a power source (e.g., a battery) for powering the various components, and optionally the power source can be logically coupled to the at least one processor 402 via a power management device to perform functions such as managing charging, discharging, and power consumption via the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The industrial device 10 may also include various sensors, bluetooth units, etc., and will not be described in detail herein.
It is to be understood that the examples are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional units described above are stored in a storage medium, and include instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device, etc.) or a processor (processor) to perform portions of the methods described in the embodiments of the present application.
In further embodiments, in connection with FIG. 3, the at least one processor 402 may execute the operating devices of the industrial equipment 10 as well as various types of applications installed (such as the data acquisition device 100), program code, etc., such as the various elements described above.
The memory 401 has stored therein program code, and the at least one processor 402 can call the program code stored in the memory 401 to perform related functions. For example, each of the units described in fig. 2 is a program code stored in the memory 401 and executed by the at least one processor 402, thereby realizing the functions of each of the units for the purpose of oscillator calibration.
In one embodiment of the present application, the memory 401 stores a plurality of instructions that are executed by the at least one processor 402 to perform the functions of data acquisition.
Specifically, the specific implementation method of the above instruction by the at least one processor 402 may refer to the description of the relevant steps in the corresponding embodiment of fig. 2, which is not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is merely a logical function division, and there may be other manners of division when actually implemented.
Further, the computer-readable storage medium may be nonvolatile or may be volatile.
Further, the computer-readable storage medium mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
It will be appreciated by persons skilled in the art that the above embodiments have been provided for the purpose of illustration only and not as a definition of the limits of the present application, and that appropriate modifications and variations of the above embodiments are within the scope of the invention as claimed.

Claims (10)

1. A data acquisition method applied to industrial equipment, characterized in that the data acquisition method comprises the following steps:
generating a first operation parameter according to a data acquisition protocol;
performing data processing on the first operation parameters to obtain second operation parameters;
uploading the second operation parameters to a server;
and receiving a control instruction from the server, wherein the control instruction is generated by the server according to the second operation parameter and is used for controlling the operation state of the industrial equipment.
2. The data acquisition method of claim 1, wherein the data acquisition method further comprises:
detecting an operating state of the industrial equipment, and suspending or restarting the industrial equipment when the operating state of the industrial equipment is abnormal.
3. The data acquisition method of claim 1, wherein the data acquisition protocol comprises a device access sub-protocol and a data format sub-protocol:
the industrial equipment is initialized according to the equipment access sub-protocol, and communication with the server side is established;
the data format sub-protocol is used to indicate the format of the first operating parameter.
4. The data acquisition method of claim 2, wherein:
the data format sub-protocol is also used for indicating the format of the control instruction, and the server outputs the control instruction according to the data format sub-protocol.
5. The data acquisition method of claim 3, wherein the data acquisition method further comprises:
checking the first operation parameter according to the data format sub-protocol, and determining whether the format of the first operation parameter is consistent with the format indicated by the data format sub-protocol;
analyzing the first operation parameters according to the data format sub-protocol, and extracting data elements in the first operation parameters;
compressing or encoding the data element.
6. The data acquisition method of claim 4, wherein the data acquisition method further comprises:
data encapsulation is carried out on the compressed or encoded data elements according to a network protocol;
and detecting a communication state between the industrial equipment and the server, if the communication state is unstable, caching the data element after data encapsulation into a local database of the industrial equipment, and when the communication state is stable, uploading the data element after data encapsulation to the server address.
7. A data acquisition device, the data acquisition device comprising:
the acquisition module is used for acquiring a first operation parameter of the industrial equipment according to a data acquisition protocol;
the processing module is used for carrying out data processing on the first operation parameters to obtain second operation parameters;
and the transmission module is used for uploading the second operation parameters to a server and receiving control instructions from the server, wherein the control instructions are used for controlling the operation state of the industrial equipment.
8. The data acquisition device of claim 7, wherein the data acquisition device further comprises:
and the monitoring module is used for detecting the operation state of the industrial equipment and suspending or restarting the data acquisition device when the operation state of the industrial equipment is abnormal.
9. An industrial device, comprising:
a memory for storing a computer program;
a processor for invoking the computer program in the memory to cause the industrial device to perform the data collection method of any of claims 1-6.
10. A computer storage medium comprising computer instructions which, when run on an industrial device, cause the industrial device to perform the data acquisition method of any one of claims 1-6.
CN202111413958.XA 2021-11-25 2021-11-25 Data acquisition method, device, industrial equipment and computer storage medium Pending CN116170429A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111413958.XA CN116170429A (en) 2021-11-25 2021-11-25 Data acquisition method, device, industrial equipment and computer storage medium
US17/714,437 US20230161303A1 (en) 2021-11-25 2022-04-06 Data acquisition method and industrial device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111413958.XA CN116170429A (en) 2021-11-25 2021-11-25 Data acquisition method, device, industrial equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN116170429A true CN116170429A (en) 2023-05-26

Family

ID=86383739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111413958.XA Pending CN116170429A (en) 2021-11-25 2021-11-25 Data acquisition method, device, industrial equipment and computer storage medium

Country Status (2)

Country Link
US (1) US20230161303A1 (en)
CN (1) CN116170429A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160323392A1 (en) * 2002-06-04 2016-11-03 Rockwell Automation Technologies, Inc. Transformation of industrial data into useful cloud information
KR20180058189A (en) * 2016-11-23 2018-05-31 동아대학교 산학협력단 System, apparatus, method for monitoring industrial equipment and computer program
CN110535965A (en) * 2019-09-03 2019-12-03 北京元安物联技术有限公司 A kind of data processing method and device, storage medium
CN112468488A (en) * 2020-11-25 2021-03-09 杭州安恒信息技术股份有限公司 Industrial anomaly monitoring method and device, computer equipment and readable storage medium
CN112565015A (en) * 2020-12-03 2021-03-26 深圳华制智能制造技术有限公司 Internet of things communication method and device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7467018B1 (en) * 2002-11-18 2008-12-16 Rockwell Automation Technologies, Inc. Embedded database systems and methods in an industrial controller environment
JP4384093B2 (en) * 2004-09-03 2009-12-16 株式会社東芝 Process state management system, management server, process state management method, and process state management program
US8649909B1 (en) * 2012-12-07 2014-02-11 Amplisine Labs, LLC Remote control of fluid-handling devices
EP4070509A1 (en) * 2019-12-04 2022-10-12 Electrolux Appliances Aktiebolag Method of controlling a home appliance and control system
US11604699B2 (en) * 2020-12-23 2023-03-14 EMC IP Holding Company LLC Resume support for cloud storage operations
CN112788015B (en) * 2020-12-31 2022-08-09 天津大学 Industrial control protocol identification and analysis method based on industrial gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160323392A1 (en) * 2002-06-04 2016-11-03 Rockwell Automation Technologies, Inc. Transformation of industrial data into useful cloud information
KR20180058189A (en) * 2016-11-23 2018-05-31 동아대학교 산학협력단 System, apparatus, method for monitoring industrial equipment and computer program
CN110535965A (en) * 2019-09-03 2019-12-03 北京元安物联技术有限公司 A kind of data processing method and device, storage medium
CN112468488A (en) * 2020-11-25 2021-03-09 杭州安恒信息技术股份有限公司 Industrial anomaly monitoring method and device, computer equipment and readable storage medium
CN112565015A (en) * 2020-12-03 2021-03-26 深圳华制智能制造技术有限公司 Internet of things communication method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
US20230161303A1 (en) 2023-05-25

Similar Documents

Publication Publication Date Title
CN111767039B (en) Industrial acquisition gateway and data acquisition method based on script file
CN110456725A (en) A kind of monitoring method of PLC device, device and intelligent terminal
CN112653738A (en) Internet of things network debugging system and method
CN113419920B (en) Real-time monitoring method for joint debugging and testing process of IOT management platform simulation test system
CN118509471A (en) A method for connecting a device with an Internet of Things platform using a large language model
CN102986151B (en) Surveillance and data transmission device and method
CN104076792A (en) Frequency converter remote monitoring system based on internet
CN113821390B (en) Switch debugging method and device, server and computer readable storage medium
CN116170429A (en) Data acquisition method, device, industrial equipment and computer storage medium
CN118869443A (en) A distributed IO bus expansion system and device
CN117579296A (en) Method and device for accessing equipment to Internet of things platform, electronic equipment and storage medium
CN112565041B (en) Hardware information configuration method, device and medium of FF field bus system
CN115396523A (en) Internet of things data processing method, device, equipment, medium and internet of things soft gateway
CN113691953A (en) A self-identification system of intelligent sensor network interface based on wireless communication technology
CN115412601B (en) Data acquisition method and device, electronic equipment and nonvolatile storage medium
CN111030924B (en) A gateway device, configuration method and working method
CN112671895A (en) Device control method, device, terminal and computer readable storage medium
CN105610595B (en) A fault data acquisition system and remote equipment control system and corresponding method
KR20200098282A (en) Gateway System for Heterogeneous Fieldbus Network
CN117376441B (en) WIA-FA wireless access equipment and method supporting multi-protocol conversion in production manufacturing workshop
CN115134211B (en) Power equipment information processing method, intelligent terminal and server equipment
CN101877874B (en) The transmission of performance data and output intent, system and equipment
CN118827599A (en) Data retransmission method and system for MQTT communication interruption
CN119766646A (en) Communication method, communication system, electronic device, storage medium, and program product
CN119382341A (en) A CMS protocol-based intelligent substation simulation debugging system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
OSZAR »