WO2024008212A1 - Pcb device alert data pushing method and apparatus, computer device, and storage medium - Google Patents

Pcb device alert data pushing method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2024008212A1
WO2024008212A1 PCT/CN2023/115212 CN2023115212W WO2024008212A1 WO 2024008212 A1 WO2024008212 A1 WO 2024008212A1 CN 2023115212 W CN2023115212 W CN 2023115212W WO 2024008212 A1 WO2024008212 A1 WO 2024008212A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm
pcb
report
push
push time
Prior art date
Application number
PCT/CN2023/115212
Other languages
French (fr)
Chinese (zh)
Inventor
王寿桥
陈振康
翟学涛
杨朝辉
Original Assignee
深圳市大族数控科技股份有限公司
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 深圳市大族数控科技股份有限公司 filed Critical 深圳市大族数控科技股份有限公司
Publication of WO2024008212A1 publication Critical patent/WO2024008212A1/en

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the present application relates to the field of PCB equipment communication, and in particular to a PCB equipment alarm data push method, device, computer equipment and storage medium.
  • a method for pushing PCB equipment alarm data including:
  • a PCB equipment alarm data push device including:
  • An alarm message receiving module is configured to receive an alarm message with an alarm number pushed by the PCB device;
  • An alarm parameter extraction module is used to extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
  • a push time determination module is used to determine the push time based on the alarm parameter information
  • a push report module is used to push the target alarm report to the designated terminal at the push time.
  • a computer device including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor.
  • the processor executes the computer-readable instructions, the following steps are implemented:
  • the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter
  • One or more readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps:
  • the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter
  • the above-mentioned PCB equipment alarm data pushing method, device, computer equipment and storage medium receive alarm messages with alarm numbers pushed by the PCB equipment; here, the alarm messages can only carry the alarm number, thus greatly reducing the number of alarm messages.
  • the amount of data ensures the timeliness and completeness of alarm message transmission.
  • the remote control device pre-stores the associated data between the alarm number and the target alarm report, and can match the corresponding target alarm report through the alarm number.
  • This application can improve the transmission efficiency of alarm messages and ensure the timeliness and completeness of alarm message transmission.
  • Figure 1 is a schematic diagram of an application environment of the method for pushing PCB equipment alarm data in an embodiment of the present application
  • Figure 2 is a schematic diagram of the association between the information model and the PCB device in an embodiment of the present application
  • Figure 3 is a schematic flow chart of a method for pushing PCB equipment alarm data in an embodiment of the present application
  • Figure 4 is a schematic structural diagram of a PCB equipment alarm data push device in an embodiment of the present application.
  • Figure 5 is a schematic diagram of a computer device in an embodiment of the present application.
  • the PCB device alarm data pushing method provided by this embodiment can be applied in the application environment as shown in Figure 1, in which the client communicates with the server.
  • the client can be various PCB processing equipment.
  • the server can be implemented as an independent server or a server cluster composed of multiple servers.
  • Communication data between remote control equipment such as equipment automation management systems
  • PCB equipment such as laser drilling equipment, laser cutting equipment, laser imaging equipment, etc.
  • This information model is used to describe the basic data structure and information characteristics of PCB equipment.
  • the information model provides a model format for data interaction agreed between the device and the remote end, or between the device and the device.
  • the information model can be expressed as a tree structure model of the remote control device (remote) building equipment, methods, and data items to speed up the communication efficiency between the PCB device and the remote control device.
  • the information model is used to describe the basic data structure and information characteristics of different devices.
  • the model uses basic nodes to design and model the device, and defines the basic relationship between data and device structure.
  • the combined layout of each component of the PCB drilling equipment, components, sensors, etc. of each component forms a logical correspondence with the information model.
  • Different equipment can design different component units according to their equipment characteristics to meet the needs of PCB equipment. Design requirements for each process section during the processing process.
  • the PCB equipment structure information includes components such as PCB boards, processing programs, sensors, basic equipment information, moving parts, current parameter set information, and control interfaces.
  • Components can be virtual function modules or the structure of the device itself. The outside is represented by a box with rounded chamfers as method.
  • Methods are instance expressions that control device actions.
  • the outer ellipse box represents the data item.
  • Data items can be represented as parameters of components. Regardless of whether it is a PCB device, data item, method or component, there is a corresponding address, so when the remote control device calls the corresponding target object, it can be called through the address.
  • the address of the defined PCB device is 123
  • the address of the control interface is 1234
  • the address of the loaded parameter set is 1344
  • the corresponding parameter address of the loaded parameter set is 1600.
  • the remote control device needs to call the parameters of the loaded parameter set, it can find the corresponding parameters by a method similar to accessing the directory.
  • the parameter address corresponding to the loaded parameter set can be obtained through the following address: 123/1234/1344/1600.
  • a method for pushing PCB equipment alarm data is provided. This method is explained by taking the method applied to the server in Figure 1 as an example, including the following steps S10-S50.
  • the PCB device sends an alarm message to the remote control device.
  • the alarm message contains the alarm number. It should be noted that the messages transmitted between the remote control device and the PCB device conform to the information model defined above.
  • an alarm when an alarm occurs on the PCB device, a corresponding alarm number will be generated, and then an alarm message of type C5F5 will be sent to the remote control device.
  • the alarm message includes a header and a message body, and the alarm number is stored in the message body.
  • the remote control device pre-stores the associated data between the alarm number and the target alarm report, and each alarm number is uniquely associated with one target alarm report. Therefore, you can use the alarm number to query in the associated data to obtain the matching target alarm report.
  • the target alarm report may be predefined.
  • the target alarm report includes the report number and alarm parameter information.
  • Alarm parameter information includes but is not limited to alarm category and alarm level. Alarm categories and alarm levels can be defined according to actual needs.
  • the push time of the target alarm report can be set according to the alarm category and/or alarm level in the alarm parameter information.
  • the push time can include three types, one is immediate, one is delayed, and one is not pushed.
  • the designated terminal can be designated according to actual needs, for example, it can be a device operated by staff (including but not limited to personal computers, mobile phones, PCB equipment, etc.).
  • staff including but not limited to personal computers, mobile phones, PCB equipment, etc.
  • the push time determined by the alarm level or alarm category avoids the problem of staff always needing to stay next to the PCB equipment.
  • quick judgment and response can be made, which greatly improves the processing efficiency of alarm messages. .
  • steps S10-S50 receive the alarm message with the alarm number pushed by the PCB device; here, the alarm message can only carry the alarm number, thereby greatly reducing the data size of the alarm message and ensuring the timeliness of the alarm message transmission. and completeness (if the amount of data in the alarm message is large, it may be affected by PCB equipment failure, causing the alarm message to fail to be sent or the message sent to be incomplete).
  • the remote control device pre-stores the associated data between the alarm number and the target alarm report, and can match the corresponding target alarm report through the alarm number.
  • This embodiment can improve the transmission efficiency of alarm messages and ensure the timeliness and completeness of alarm message transmission.
  • step S10 that is, before receiving the alarm message with an alarm number pushed by the PCB device, the following is also included:
  • the remote control device may send an alarm subscription request with an alarm number or the alarm parameter information to the PCB device.
  • the alarm subscription request can carry one or more alarm numbers.
  • the PCB device After the PCB device receives the alarm subscription request, it can enable the alarm subscription push of the alarm number. After the activation of alarm subscription push is completed, the corresponding subscription confirmation result can be sent to the remote control device.
  • the message identifier of the alarm subscription request may be C5F3.
  • an unsubscription request with an alarm number can also be sent to the PCB device to cancel the subscription to the alarm number.
  • the message identifier for the unsubscribe request can be C5F4.
  • This embodiment can realize subscription of alarm messages in a specific range.
  • the alarm subscription request includes a subscription period and/or triggering conditions
  • Step S10 that is, receiving an alarm message with an alarm number pushed by the PCB device, includes:
  • the alarm subscription request may include a subscription period and/or triggering conditions.
  • the subscription cycle can be set according to actual needs, for example, it can be once every minute or once every day.
  • the PCB device pushes alarm messages to the remote control device according to the subscription period.
  • Trigger conditions can be set according to actual needs, such as the alarm level is greater than the preset level, the alarm category is within the push range, etc. After setting the trigger conditions, if the alarm level and/or alarm category detected by the PCB device meets the trigger conditions, the alarm message can be pushed to the remote control device.
  • This embodiment provides two push methods, one is pushed according to the subscription cycle, and the other is pushed when the trigger conditions are met, which meets the push requirements of alarm messages.
  • step S10 that is, before receiving the alarm message with an alarm number pushed by the PCB device, the following is also included:
  • the remote control device can send an association request to the PCB device.
  • Association requests contain association relationship data.
  • the PCB After the PCB receives the correlation data, it can use the correlation data to set the correlation between the alarm number and the report number.
  • each target alarm report has an alarm number. By setting the correlation between the alarm number and the report number, you can establish the correlation between the alarm number and the target alarm report.
  • the PCB device when the PCB device generates a target alarm report, it can automatically match the alarm number, and then generate an alarm message based on the alarm number.
  • the PCB device side can generate an association response message based on the setting result, and send the association response message to the remote control device.
  • the association response message contains the alarm code and report code of successful association.
  • the message identifier of the association response message may be C5F2.
  • the PCB device sends association error response information to the remote control device.
  • the message identifier associated with the error message is C5F2
  • the "ACK" data item in the message body is set to "NO ACK”
  • the cause of the error is noted in the prompt message.
  • step S10 that is, before receiving the alarm message with an alarm number pushed by the PCB device, the following is also included:
  • the remote control device may send a report definition request to the PCB device, requesting the definition of a target alarm report.
  • the report definition request includes report definition parameters.
  • Report definition parameters include report number, parameter encoding, etc.
  • the parameter coding includes the data item address group, data item address, etc. contained in the target alarm report.
  • the PCB device After the PCB device receives the report definition request, it can complete the setting of the target alarm report according to the report definition parameters and generate the definition result. Then, the PCB device generates a definition response message based on the definition result and returns it to the remote control device.
  • the message identifier of the report definition request may be C5F1.
  • step S40 that is, determining the push time based on the alarm parameter information, includes:
  • the alarm level when an abnormality occurs in the PCB equipment can be set according to actual needs.
  • the alarm level for abnormal X-axis and Y-axis motion accuracy in PCB equipment components is level 1
  • the alarm level for abnormal Z-axis upper and lower sensors is level 2
  • the alarm level for abnormal distance sensor sensing is level 3
  • the alarm level is level 4.
  • the higher the alarm level the greater the urgency of the alarm.
  • the preset level can be set according to actual needs. If it can be level 1. When the alarm level is higher than level 1, it will seriously affect actual production. Therefore, when the alarm level is higher than level 1, the alarm is pushed immediately.
  • the first push time can be set according to actual needs, such as 0 ⁇ 5s.
  • the second push time can be set according to actual needs, such as 30s ⁇ + ⁇ s. + ⁇ s here means no push.
  • This embodiment classifies the severity of the alarm and determines the push time of the target alarm report based on the alarm level. This avoids the problem that staff need to stay next to the device all the time. At the same time, when a more serious alarm occurs, quick judgment can be made and response, greatly improving the processing efficiency of target alarm reports.
  • step S40 that is, determining the push time based on the alarm parameter information, includes: 7
  • the alarm category when an abnormality occurs in the PCB equipment can be set according to actual needs. For example, if an operator's hand is pressed by a component in the PCB equipment, the alarm category at this time is accident alarm, and the corresponding alarm category number is 7; the abnormal movement of the Z-axis up and down belongs to the fault alarm category, and the corresponding alarm category is 7.
  • the category code is 6.
  • the push range can be set according to actual needs. For example, it can be ⁇ 6, 7 ⁇ .
  • the risk is greater. Therefore, when the alarm category is within the push range, the alarm is pushed immediately.
  • the first push time can be set according to actual needs, such as 0 ⁇ 5s.
  • the second push time can be set according to actual needs, such as 30s ⁇ + ⁇ s. + ⁇ s here means no push.
  • This embodiment classifies the severity of the alarm and determines the push time of the target alarm report based on the alarm category. This avoids the problem of staff needing to stay next to the device all the time. At the same time, when a more serious alarm occurs, quick judgment can be made and response, greatly improving the processing efficiency of target alarm reports.
  • step S40 that is, determining the push time based on the alarm parameter information, includes:
  • S408 Receive the push time returned by the parsing server.
  • a parsing server specifically used to parse alarm parameter information may be provided.
  • Mathematical models used to parse alarm parameter information are deployed on the parsing server, such as integrated models (for example, GBDT (Gradient Boosting Decision Tree), XgBoost (an scalable end-to-end boosting tree model), LightGBM classifier (Light Gradient Boosting Machine, lightweight gradient boosting machine learning) are integrated to vote, and then the final classification result is determined by a minority obeying the majority), and the alarm push time can be manually judged based on the alarm category and alarm level.
  • integrated models for example, GBDT (Gradient Boosting Decision Tree), XgBoost (an scalable end-to-end boosting tree model), LightGBM classifier (Light Gradient Boosting Machine, lightweight gradient boosting machine learning) are integrated to vote, and then the final classification result is determined by a minority obeying the majority), and the alarm push time can be manually judged based on the alarm category and alarm level.
  • the results are used as training data and added to various classifiers (such as GBDT, XgBoost, LightGBM) for training, so that an integrated model judged based on alarm categories and alarm levels can be obtained.
  • classifiers such as GBDT, XgBoost, LightGBM
  • the parsing server can also receive environmental parameters of the environment where the PCB device is located, such as temperature, humidity, etc., as well as device attributes of the PCB device itself, such as the origin of spare parts, performance, usage time, etc. Combining alarm parameter information, environmental parameters and device attributes, a more accurate PCB device status can be analyzed and the corresponding push time can be determined.
  • This embodiment sets up a parsing server specifically for parsing alarm parameter information, which greatly reduces the occupation of computing resources of the remote control device and is conducive to improving the response speed of the remote control device. Moreover, the parsing server can provide efficient and accurate computing services. , reduce the calculation time of push time.
  • a PCB equipment alarm data pushing device is provided.
  • the PCB equipment alarm data pushing device corresponds to the PCB equipment alarm data pushing method in the above embodiment.
  • the PCB equipment alarm data push device includes an alarm message receiving module 10, an alarm report obtaining module 20, an alarm parameter extracting module 30, a push time determining module 40 and a push report module 50.
  • the detailed description of each functional module is as follows:
  • the alarm message receiving module 10 is used to receive an alarm message with an alarm number pushed by the PCB device;
  • Obtain alarm report module 20 used to obtain a target alarm report matching the alarm number
  • the alarm parameter extraction module 30 is used to extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
  • the push time determination module 40 is used to determine the push time according to the alarm parameter information
  • the push report module 50 is configured to push the target alarm report to the designated terminal at the push time.
  • the PCB equipment alarm data push device also includes a subscription module, and the subscription module includes:
  • a subscription request unit configured to send an alarm subscription request with the alarm number to the PCB device
  • a subscription determining unit configured to receive subscription confirmation information returned by the PCB device in response to the alarm subscription request.
  • the alarm subscription request includes a subscription period and/or triggering conditions
  • the alarm message receiving module 10 includes:
  • a timing receiving unit configured to receive the alarm message pushed by the PCB device according to the subscription cycle; and/or,
  • a conditional receiving unit configured to receive the alarm message pushed when the PCB device meets the triggering condition.
  • the PCB equipment alarm data push device also includes a correlation module, and the correlation module includes:
  • An association request unit configured to send an association request to the PCB device, so that the PCB device sets the association relationship between the alarm number and the report number according to the association relationship data in the association request, and generates a setting result; wherein, One alarm number is associated with one or more report numbers, and one said report number is associated with one said target alarm report;
  • An association response unit configured to receive an association response message generated based on the setting result returned by the PCB device.
  • the PCB equipment alarm data push device also includes a report definition module, and the report definition module includes:
  • a definition request unit configured to send a report definition request to the PCB device, so that the PCB device sets the target alarm report according to the report definition parameters in the report definition request, and generates a definition result
  • the push time determination module 40 includes:
  • a level comparison unit used to determine whether the alarm level is greater than a preset level
  • the first push time unit is used to set the push time to the first push time if the alarm level is greater than the preset level
  • the second push time unit is used to set the push time to a second push time if the alarm level is less than or equal to the preset level; the first push time is less than the second push time.
  • the push time determination module 40 includes:
  • a range judgment unit used to judge whether the alarm category is within the push range
  • the first time unit is used to set the push time to the first push time if the alarm category is within the push range;
  • the second time unit is used to set the push time to the second push time if the alarm category is not within the push range; the first push time is less than the second push time.
  • Each module in the above-mentioned PCB equipment alarm data push device can be realized in whole or in part by software, hardware and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be shown in Figure 5 .
  • the computer equipment includes a processor, memory, network interface, display screen and input device connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes readable storage media and internal memory.
  • the non-volatile storage medium stores an operating system and computer-readable instructions.
  • the internal memory provides an environment for the execution of an operating system and computer-readable instructions in a readable storage medium. Should The network interface of a computer device is used to communicate with external servers over a network connection. When the computer readable instructions are executed by the processor, a PCB device alarm data pushing method is implemented.
  • the readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media.
  • a computer device including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor.
  • the processor executes the computer-readable instructions, the following steps are implemented:
  • the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter
  • one or more computer-readable storage media storing computer-readable instructions are provided.
  • the readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media. storage media.
  • Computer-readable instructions are stored on the readable storage medium. When executed by one or more processors, the computer-readable instructions implement the following steps:
  • the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM random access memory
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Synchlink DRAM
  • RDRAM direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM
  • Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Emergency Management (AREA)
  • Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Alarm Systems (AREA)

Abstract

The present application relates to the field of PCB device communication and discloses a PCB device alert data pushing method and apparatus, a computer device, and a storage medium. The method comprises: receiving an alert message carrying an alert code that was pushed by a PCB device; obtaining a target alert report that matches the alert code; extracting alert parameter information from the target alert report, the alert parameter information comprising an alert grade and/or an alert type of the alert parameter; determining a push time according to the alert parameter information; and pushing the target alert report to a specified terminal at the push time. The transmission efficiency of alert messages can be improved, and the timeliness and integrity of alert message transmission are ensured.

Description

PCB设备报警数据推送方法、装置、计算机设备及存储介质PCB equipment alarm data push method, device, computer equipment and storage medium
本申请要求于2022年7月7日提交中国专利局、申请号为202210795420.8,发明名称为“PCB设备报警数据推送方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requests the priority of the Chinese patent application submitted to the China Patent Office on July 7, 2022, with the application number 202210795420.8, and the invention name is "PCB equipment alarm data push method, device, computer equipment and storage medium", and its entire content incorporated herein by reference.
技术领域Technical field
本申请涉及PCB设备通信领域,尤其涉及一种PCB设备报警数据推送方法、装置、计算机设备及存储介质。The present application relates to the field of PCB equipment communication, and in particular to a PCB equipment alarm data push method, device, computer equipment and storage medium.
背景技术Background technique
现有技术中,PCB(Printed Circuit Board,印刷电路板)设备与远程控制设备的通信过程中,只要PCB设备发生故障,操作人员都需要第一时间在现场,由于一个操作人员需要操作多台设备,导致操作人员可能无法及时快速的响应报警信息,从而会影响设备的加工。In the existing technology, during the communication process between PCB (Printed Circuit Board, printed circuit board) equipment and remote control equipment, as long as the PCB equipment fails, the operator needs to be on site as soon as possible, because one operator needs to operate multiple devices. , causing the operator to be unable to respond to the alarm information promptly and quickly, which will affect the processing of the equipment.
申请内容Application content
基于此,有必要针对上述技术问题,提供一种PCB设备报警数据推送方法、装置、计算机设备及存储介质,以提高报警消息的传送效率,确保报警消息传达的及时性和完整性。Based on this, it is necessary to provide a PCB equipment alarm data push method, device, computer equipment and storage medium in response to the above technical problems, so as to improve the transmission efficiency of alarm messages and ensure the timeliness and completeness of alarm message transmission.
一种PCB设备报警数据推送方法,包括:A method for pushing PCB equipment alarm data, including:
接收所述PCB设备推送的带有报警编号的报警消息;Receive an alarm message with an alarm number pushed by the PCB device;
获取与所述报警编号匹配的目标报警报告;Obtain the target alarm report matching the alarm number;
从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
根据所述报警参数信息,确定推送时间;Determine the push time according to the alarm parameter information;
在所述推送时间向指定终端推送所述目标报警报告。Push the target alarm report to the designated terminal at the push time.
一种PCB设备报警数据推送装置,包括:A PCB equipment alarm data push device, including:
接收报警消息模块,用于接收所述PCB设备推送的带有报警编号的报警消息;An alarm message receiving module is configured to receive an alarm message with an alarm number pushed by the PCB device;
获取报警报告模块,用于获取与所述报警编号匹配的目标报警报告;Obtain an alarm report module, used to obtain a target alarm report matching the alarm number;
提取报警参数模块,用于从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;An alarm parameter extraction module is used to extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
确定推送时间模块,用于根据所述报警参数信息,确定推送时间;A push time determination module is used to determine the push time based on the alarm parameter information;
推送报告模块,用于在所述推送时间向指定终端推送所述目标报警报告。A push report module is used to push the target alarm report to the designated terminal at the push time.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the following steps are implemented:
接收所述PCB设备推送的带有报警编号的报警消息;Receive an alarm message with an alarm number pushed by the PCB device;
获取与所述报警编号匹配的目标报警报告;Obtain the target alarm report matching the alarm number;
从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
根据所述报警参数信息,确定推送时间;Determine the push time based on the alarm parameter information;
在所述推送时间向指定终端推送所述目标报警报告。Push the target alarm report to the designated terminal at the push time.
一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤: One or more readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps:
接收所述PCB设备推送的带有报警编号的报警消息;Receive an alarm message with an alarm number pushed by the PCB device;
获取与所述报警编号匹配的目标报警报告;Obtain the target alarm report matching the alarm number;
从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
根据所述报警参数信息,确定推送时间;Determine the push time based on the alarm parameter information;
在所述推送时间向指定终端推送所述目标报警报告。Push the target alarm report to the designated terminal at the push time.
上述PCB设备报警数据推送方法、装置、计算机设备及存储介质,通过接收所述PCB设备推送的带有报警编号的报警消息;在此处,报警消息可以只携带报警编号,进而大大减少报警消息的数据量大小,确保报警消息传达的及时性和完整性。获取与所述报警编号匹配的目标报警报告,在此处,远程控制设备预存有报警编号与目标报警报告之间的关联数据,可以通过报警编号匹配到相应的目标报警报告。从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;根据所述报警参数信息确定推送时间;在此处,可以基于报警参数信息的不同,选取不同的推送时间。在所述推送时间向指定终端推送所述目标报警报告,以完成目标报警报告的推送,使工作人员及时获得目标报警报告。本申请可以提高报警消息的传送效率,确保报警消息传达的及时性和完整性。The above-mentioned PCB equipment alarm data pushing method, device, computer equipment and storage medium receive alarm messages with alarm numbers pushed by the PCB equipment; here, the alarm messages can only carry the alarm number, thus greatly reducing the number of alarm messages. The amount of data ensures the timeliness and completeness of alarm message transmission. Obtain the target alarm report that matches the alarm number. Here, the remote control device pre-stores the associated data between the alarm number and the target alarm report, and can match the corresponding target alarm report through the alarm number. Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter; determine the push time according to the alarm parameter information; here, based on the difference in alarm parameter information, Choose a different push time. Push the target alarm report to the designated terminal at the push time to complete the push of the target alarm report, so that the staff can obtain the target alarm report in time. This application can improve the transmission efficiency of alarm messages and ensure the timeliness and completeness of alarm message transmission.
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。The details of one or more embodiments of the application are set forth in the following drawings and description, and other features and advantages of the application will be apparent from the description, drawings, and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. , for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative labor.
图1是本申请一实施例中PCB设备报警数据推送方法的一应用环境示意图;Figure 1 is a schematic diagram of an application environment of the method for pushing PCB equipment alarm data in an embodiment of the present application;
图2是本申请一实施例中信息模型与PCB设备之间的关联示意图;Figure 2 is a schematic diagram of the association between the information model and the PCB device in an embodiment of the present application;
图3是本申请一实施例中PCB设备报警数据推送方法的一流程示意图;Figure 3 is a schematic flow chart of a method for pushing PCB equipment alarm data in an embodiment of the present application;
图4是本申请一实施例中PCB设备报警数据推送装置的一结构示意图;Figure 4 is a schematic structural diagram of a PCB equipment alarm data push device in an embodiment of the present application;
图5是本申请一实施例中计算机设备的一示意图。Figure 5 is a schematic diagram of a computer device in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
本实施例提供的PCB设备报警数据推送方法,可应用在如图1的应用环境中,其中,客户端与服务端进行通信。其中,客户端可以是各种PCB加工设备。服务端可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The PCB device alarm data pushing method provided by this embodiment can be applied in the application environment as shown in Figure 1, in which the client communicates with the server. Among them, the client can be various PCB processing equipment. The server can be implemented as an independent server or a server cluster composed of multiple servers.
远程控制设备(如设备自动化管理系统)和PCB设备(如激光钻孔设备、激光切割设备、激光成像设备等)之间的通信数据使用同一种信息模型。该信息模型用于描述PCB设备的基本数据结构和信息特征。Communication data between remote control equipment (such as equipment automation management systems) and PCB equipment (such as laser drilling equipment, laser cutting equipment, laser imaging equipment, etc.) use the same information model. This information model is used to describe the basic data structure and information characteristics of PCB equipment.
信息模型提供了一种设备与远端之间,或设备与设备之间约定的一种数据交互的模型格式。该信息模型可表现为远程控制设备(远端)构建设备、方法、数据项的树形结构模型,以加快PCB设备与远程控制设备之间的沟通效率。The information model provides a model format for data interaction agreed between the device and the remote end, or between the device and the device. The information model can be expressed as a tree structure model of the remote control device (remote) building equipment, methods, and data items to speed up the communication efficiency between the PCB device and the remote control device.
具体地,用信息模型去描述PCB设备,是用信息结构体描述PCB设备,用协议将其 数据化(如第一请求中的子项结构数据项),远程控制设备在获取这些数据后,依据其信息结构体,快速全面还原设备的组成结构或控制功能,以方便远端快速实现设备监控及远程控制等功能。Specifically, using information models to describe PCB equipment uses information structures to describe PCB equipment, and uses protocols to describe them. Dataization (such as the sub-item structure data items in the first request), after the remote control device obtains these data, it can quickly and comprehensively restore the device's composition structure or control functions based on its information structure, so as to facilitate remote remote device monitoring. and remote control functions.
信息模型用来描述不同设备的基本数据结构和信息特征,该模型使用基本的节点对设备进行设计建模,定义数据和设备结构基本关系。如图2所示,PCB钻孔设备的各个组件、各组件的元器件、传感器等组合布局与信息模型形成逻辑对应关系,不同的设备可以依据其设备特点设计不同的组件单元,以满足PCB设备加工过程中各工序段的设计需求。图2的示例中,PCB设备结构信息包括PCB板材、加工程序、传感器、设备基础信息、运动部件、当前参数集信息、控制接口等组件。组件可以是虚拟的功能模块、也可以是设备本身的结构。外部为具有圆形倒角的方框的表示为方法。方法是控制设备动作的实例表达。外部为椭圆框的表示为数据项。数据项可以表示为组件的参数。不管是PCB设备、数据项、方法还是组件,均有对应的地址,从而远程控制设备在调用相应的目标对象时,均可通过地址进行调用。The information model is used to describe the basic data structure and information characteristics of different devices. The model uses basic nodes to design and model the device, and defines the basic relationship between data and device structure. As shown in Figure 2, the combined layout of each component of the PCB drilling equipment, components, sensors, etc. of each component forms a logical correspondence with the information model. Different equipment can design different component units according to their equipment characteristics to meet the needs of PCB equipment. Design requirements for each process section during the processing process. In the example in Figure 2, the PCB equipment structure information includes components such as PCB boards, processing programs, sensors, basic equipment information, moving parts, current parameter set information, and control interfaces. Components can be virtual function modules or the structure of the device itself. The outside is represented by a box with rounded chamfers as method. Methods are instance expressions that control device actions. The outer ellipse box represents the data item. Data items can be represented as parameters of components. Regardless of whether it is a PCB device, data item, method or component, there is a corresponding address, so when the remote control device calls the corresponding target object, it can be called through the address.
例如,定义PCB设备的地址是123,控制接口的地址为1234,加载参数集的地址为1344,加载参数集对应的参数地址是1600。远程控制设备需要调用加载参数集的参数时,可以通过类似访问目录的方式去找到对应的参数,例如通过以下地址:123/1234/1344/1600即可获取到加载参数集对应的参数地址。For example, the address of the defined PCB device is 123, the address of the control interface is 1234, the address of the loaded parameter set is 1344, and the corresponding parameter address of the loaded parameter set is 1600. When the remote control device needs to call the parameters of the loaded parameter set, it can find the corresponding parameters by a method similar to accessing the directory. For example, the parameter address corresponding to the loaded parameter set can be obtained through the following address: 123/1234/1344/1600.
在一实施例中,如图3所示,提供一种PCB设备报警数据推送方法,以该方法应用在图1中的服务端为例进行说明,包括如下步骤S10-S50。In one embodiment, as shown in Figure 3, a method for pushing PCB equipment alarm data is provided. This method is explained by taking the method applied to the server in Figure 1 as an example, including the following steps S10-S50.
S10、接收所述PCB设备推送的带有报警编号的报警消息。S10. Receive an alarm message with an alarm number pushed by the PCB device.
可理解地,在符合推送条件时,PCB设备向远程控制设备发送报警消息。在此处,报警消息包含报警编号。需要注意的是,远程控制设备与PCB设备之间传送的消息,均符合上述定义的信息模型。Understandably, when the push conditions are met, the PCB device sends an alarm message to the remote control device. Here, the alarm message contains the alarm number. It should be noted that the messages transmitted between the remote control device and the PCB device conform to the information model defined above.
在一示例中,当PCB设备发生报警时,会生成相应的报警编号,然后发送类型为C5F5的报警消息给远程控制设备。报警消息包括包头和消息体,报警编号存储在消息体中。In an example, when an alarm occurs on the PCB device, a corresponding alarm number will be generated, and then an alarm message of type C5F5 will be sent to the remote control device. The alarm message includes a header and a message body, and the alarm number is stored in the message body.
S20、获取与所述报警编号匹配的目标报警报告。S20. Obtain the target alarm report matching the alarm number.
可理解地,远程控制设备预存有报警编号与目标报警报告之间的关联数据,每一报警编号唯一关联一个目标报警报告。因而,可以使用报警编号在关联数据中进行查询,获得匹配的目标报警报告。Understandably, the remote control device pre-stores the associated data between the alarm number and the target alarm report, and each alarm number is uniquely associated with one target alarm report. Therefore, you can use the alarm number to query in the associated data to obtain the matching target alarm report.
S30、从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级。S30. Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter.
可理解地,目标报警报告可以是预先定义好的。目标报警报告包括报告编号以及报警参数信息。报警参数信息包括但不限于报警类别和报警等级。可以根据实际需要定义报警类别和报警等级。Understandably, the target alarm report may be predefined. The target alarm report includes the report number and alarm parameter information. Alarm parameter information includes but is not limited to alarm category and alarm level. Alarm categories and alarm levels can be defined according to actual needs.
在一示例中,报警类别可定义为7类,分别为:In an example, the alarm categories can be defined as 7 categories, namely:
1、信息通报(状态告知,如正常上料时打开安全门);1. Information notification (status notification, such as opening the safety door during normal loading);
2、操作命令(无效或非法的操作指令);2. Operation commands (invalid or illegal operation commands);
3、参数超限(实际参数值超出标准值允许范围);3. Parameter exceeds the limit (the actual parameter value exceeds the allowable range of the standard value);
4、设备自检(设备自动检测状态不符合设定值);4. Equipment self-test (the equipment’s automatic detection status does not meet the set value);
5、保护动作(设备保护、安全装置未生效);5. Protection action (equipment protection and safety devices are not effective);
6、故障报警(设备部件发生故障);6. Fault alarm (equipment component failure);
7、事故报警(运行过程中发生事故)。7. Accident alarm (accident occurs during operation).
在另一示例中,报警级别可定义4种,分别为:In another example, four alarm levels can be defined, namely:
1、一般(信息告知);1. General (information notification);
2、重要(对产品有影响需采取措施); 2. Important (measures need to be taken if it affects the product);
3、严重(设备异常、设备安全警报,设备自身不能处理,需要人工干预);3. Serious (equipment abnormality, equipment safety alarm, the equipment itself cannot handle it, and manual intervention is required);
4、特别严重(涉及人身安全、不可恢复的错误、发生重大事故)。4. Particularly serious (involving personal safety, unrecoverable errors, major accidents).
S40、根据所述报警参数信息,确定推送时间。S40. Determine the push time according to the alarm parameter information.
可理解地,在获得报警参数信息之后,可以根据报警参数信息中的报警类别和/或报警等级设置目标报警报告的推送时间。在一些示例中,推送时间可以包括三种类型,一种是即时、一种是延时、一种是不推送。Understandably, after obtaining the alarm parameter information, the push time of the target alarm report can be set according to the alarm category and/or alarm level in the alarm parameter information. In some examples, the push time can include three types, one is immediate, one is delayed, and one is not pushed.
S50、在所述推送时间向指定终端推送所述目标报警报告。S50: Push the target alarm report to the designated terminal at the push time.
可理解地,指定终端可以根据实际需要进行指定,如可以是工作人员操作的设备(包括但不限于个人电脑、手机、PCB设备等)。通过报警等级或报警类别确定的推送时间,避免了工作人员一直需要守在PCB设备旁边的问题,同时在发生较为严重的报警时,能进行快速判断并响应,极大地提高了报警消息的处理效率。Understandably, the designated terminal can be designated according to actual needs, for example, it can be a device operated by staff (including but not limited to personal computers, mobile phones, PCB equipment, etc.). The push time determined by the alarm level or alarm category avoids the problem of staff always needing to stay next to the PCB equipment. At the same time, when a more serious alarm occurs, quick judgment and response can be made, which greatly improves the processing efficiency of alarm messages. .
步骤S10-S50中,接收所述PCB设备推送的带有报警编号的报警消息;在此处,报警消息可以只携带报警编号,进而大大减少报警消息的数据量大小,确保报警消息传达的及时性和完整性(若报警消息的数据量较大,则可能受PCB设备故障影响,导致报警消息无法发出或发出的消息不完整)。获取与所述报警编号匹配的目标报警报告,在此处,远程控制设备预存有报警编号与目标报警报告之间的关联数据,可以通过报警编号匹配到相应的目标报警报告。从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;根据所述报警参数信息确定推送时间;在此处,可以基于报警参数信息的不同,选取不同的推送时间。在所述推送时间向指定终端推送所述目标报警报告,以完成目标报警报告的推送,使工作人员及时获得目标报警报告。本实施例可以提高报警消息的传送效率,确保报警消息传达的及时性和完整性。In steps S10-S50, receive the alarm message with the alarm number pushed by the PCB device; here, the alarm message can only carry the alarm number, thereby greatly reducing the data size of the alarm message and ensuring the timeliness of the alarm message transmission. and completeness (if the amount of data in the alarm message is large, it may be affected by PCB equipment failure, causing the alarm message to fail to be sent or the message sent to be incomplete). Obtain the target alarm report that matches the alarm number. Here, the remote control device pre-stores the associated data between the alarm number and the target alarm report, and can match the corresponding target alarm report through the alarm number. Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter; determine the push time according to the alarm parameter information; here, based on the difference in alarm parameter information, Choose a different push time. Push the target alarm report to the designated terminal at the push time to complete the push of the target alarm report, so that the staff can obtain the target alarm report in time. This embodiment can improve the transmission efficiency of alarm messages and ensure the timeliness and completeness of alarm message transmission.
可选的,步骤S10之前,即所述接收所述PCB设备推送的带有报警编号的报警消息之前,还包括:Optionally, before step S10, that is, before receiving the alarm message with an alarm number pushed by the PCB device, the following is also included:
S11、向所述PCB设备发送带有所述报警编号的报警订阅请求;S11. Send an alarm subscription request with the alarm number to the PCB device;
S12、接收所述PCB设备返回的用于响应所述报警订阅请求的订阅确认信息。S12. Receive the subscription confirmation information returned by the PCB device in response to the alarm subscription request.
可理解地,远程控制设备可以向PCB设备发送带有报警编号或所述报警参数信息的报警订阅请求。在此处,报警订阅请求可以携带有一个或多个报警编号。PCB设备接收到该报警订阅请求之后,可以启用该报警编号的报警订阅推送。在完成报警订阅推送的启用之后,可以向远程控制设备发送相应的订阅确认结果。Understandably, the remote control device may send an alarm subscription request with an alarm number or the alarm parameter information to the PCB device. Here, the alarm subscription request can carry one or more alarm numbers. After the PCB device receives the alarm subscription request, it can enable the alarm subscription push of the alarm number. After the activation of alarm subscription push is completed, the corresponding subscription confirmation result can be sent to the remote control device.
在一示例中,报警订阅请求的消息标识可以是C5F3。在一些情况下,也可以向PCB设备发送带有报警编号的取消订阅请求,以取消对该报警编号的订阅。取消订阅请求的消息标识可以是C5F4。In an example, the message identifier of the alarm subscription request may be C5F3. In some cases, an unsubscription request with an alarm number can also be sent to the PCB device to cancel the subscription to the alarm number. The message identifier for the unsubscribe request can be C5F4.
本实施例可以实现特定范围的报警消息的订阅。This embodiment can realize subscription of alarm messages in a specific range.
可选的,所述报警订阅请求包括订阅周期和/或触发条件;Optionally, the alarm subscription request includes a subscription period and/or triggering conditions;
步骤S10,即所述接收所述PCB设备推送的带有报警编号的报警消息,包括:Step S10, that is, receiving an alarm message with an alarm number pushed by the PCB device, includes:
S101、接收所述PCB设备按照所述订阅周期推送的所述报警消息;和/或,S101. Receive the alarm message pushed by the PCB device according to the subscription cycle; and/or,
S102、接收所述PCB设备满足所述触发条件时推送的所述报警消息。S102. Receive the alarm message pushed when the PCB device meets the trigger condition.
可理解地,报警订阅请求可以包括订阅周期和/或触发条件。订阅周期可以根据实际需要设置,如可以是每分钟一次,也可以是每天一次。在设置订阅周期之后,PCB设备按照订阅周期向远程控制设备推送报警消息。Understandably, the alarm subscription request may include a subscription period and/or triggering conditions. The subscription cycle can be set according to actual needs, for example, it can be once every minute or once every day. After setting the subscription period, the PCB device pushes alarm messages to the remote control device according to the subscription period.
触发条件可以根据实际需要设置,如报警等级大于预设等级、报警类别处于推送范围等。在设置触发条件之后,若PCB设备监测到的报警等级和/或报警类别满足触发条件,则可以向远程控制设备推送报警消息。Trigger conditions can be set according to actual needs, such as the alarm level is greater than the preset level, the alarm category is within the push range, etc. After setting the trigger conditions, if the alarm level and/or alarm category detected by the PCB device meets the trigger conditions, the alarm message can be pushed to the remote control device.
本实施例提供了两种推送方式,一种按照订阅周期进行推送,另一种则在满足触发条件时进行推送,满足了报警消息的推送需求。 This embodiment provides two push methods, one is pushed according to the subscription cycle, and the other is pushed when the trigger conditions are met, which meets the push requirements of alarm messages.
可选的,步骤S10之前,即所述接收所述PCB设备推送的带有报警编号的报警消息之前,还包括:Optionally, before step S10, that is, before receiving the alarm message with an alarm number pushed by the PCB device, the following is also included:
S13、向所述PCB设备发送关联请求,以使所述PCB设备根据所述关联请求中的关联关系数据设置报警编号和报告编号之间的关联关系,并生成设置结果;其中,一个报警编号与一个或多个报告编号关联,一个所述报告编号与一个所述目标报警报告关联;S13. Send an association request to the PCB device, so that the PCB device sets the association between the alarm number and the report number according to the association data in the association request, and generates the setting result; wherein, an alarm number and One or more report numbers are associated, and one report number is associated with one of the target alarm reports;
S14、接收所述PCB设备返回的基于所述设置结果生成的关联应答消息。S14. Receive the association response message generated based on the setting result returned by the PCB device.
可理解地,远程控制设备可以向PCB设备发送关联请求。关联请求包含关联关系数据。PCB接收到关联关系数据之后,可以使用关联关系数据设置报警编号和报告编号之间的关联关系。其中,每个目标报警报告都有一个报警编号。通过设置报警编号和报告编号之间的关联关系,可以建立报警编号和目标报警报告的关联关系。进而,PCB设备在生成目标报警报告时,可以自动匹配到报警编号,再根据报警编号生成报警消息。Understandably, the remote control device can send an association request to the PCB device. Association requests contain association relationship data. After the PCB receives the correlation data, it can use the correlation data to set the correlation between the alarm number and the report number. Among them, each target alarm report has an alarm number. By setting the correlation between the alarm number and the report number, you can establish the correlation between the alarm number and the target alarm report. Furthermore, when the PCB device generates a target alarm report, it can automatically match the alarm number, and then generate an alarm message based on the alarm number.
在完成关联关系的设置之后,可以生成相应的设置结果。设置结果可以是全部成功、部分成功或全部失败。PCB设备端可以根据设置结果生成关联应答消息,并将关联应答消息发送给远程控制设备。在一些示例中,关联应答消息包含了关联成功的报警编码和报告编码。关联应答消息的消息标识可以是C5F2。After completing the setting of the association relationship, the corresponding setting results can be generated. The setting result can be full success, partial success, or total failure. The PCB device side can generate an association response message based on the setting result, and send the association response message to the remote control device. In some examples, the association response message contains the alarm code and report code of successful association. The message identifier of the association response message may be C5F2.
当报告编号为空时,应取消已经绑定的报警编号和报告编号之间的关联关系。如果存在关联请求异常或目标报警报告不存在等异常情况,PCB设备向远程控制设备发送关联出错应答信息。关联出错消息的消息标识为C5F2,其消息体中“ACK”数据项设置为“NO ACK”,并在提示信息中备注错误原因。When the report number is empty, the association between the bound alarm number and the report number should be cancelled. If there is an abnormality in the association request or the target alarm report does not exist, the PCB device sends association error response information to the remote control device. The message identifier associated with the error message is C5F2, the "ACK" data item in the message body is set to "NO ACK", and the cause of the error is noted in the prompt message.
本实施例通过发送关系数据,可以实现报警编号与目标报警报告之间的关联。In this embodiment, by sending relational data, the association between the alarm number and the target alarm report can be achieved.
可选的,步骤S10之前,即所述接收所述PCB设备推送的带有报警编号的报警消息之前,还包括:Optionally, before step S10, that is, before receiving the alarm message with an alarm number pushed by the PCB device, the following is also included:
S15、向所述PCB设备发送报告定义请求,以使所述PCB设备根据所述报告定义请求中的报告定义参数,设置所述目标报警报告,并生成定义结果;S15. Send a report definition request to the PCB device, so that the PCB device sets the target alarm report according to the report definition parameters in the report definition request and generates a definition result;
S16、接收所述PCB设备返回的基于所述定义结果生成的定义应答消息。S16. Receive the definition response message generated based on the definition result returned by the PCB device.
可理解地,远程控制设备可以向PCB设备发送报告定义请求,请求定义目标报警报告。报告定义请求包括报告定义参数。报告定义参数包括报告编号、参数编码等。其中,参数编码包括目标报警报告中包含的数据项地址组、数据项地址等。Understandably, the remote control device may send a report definition request to the PCB device, requesting the definition of a target alarm report. The report definition request includes report definition parameters. Report definition parameters include report number, parameter encoding, etc. Among them, the parameter coding includes the data item address group, data item address, etc. contained in the target alarm report.
PCB设备接收到报告定义请求之后,可以根据报告定义参数完成对目标报警报告的设置,生成定义结果。然后,PCB设备根据定义结果生成定义应答消息,返回给远程控制设备。在一示例中,报告定义请求的消息标识可为C5F1。After the PCB device receives the report definition request, it can complete the setting of the target alarm report according to the report definition parameters and generate the definition result. Then, the PCB device generates a definition response message based on the definition result and returns it to the remote control device. In one example, the message identifier of the report definition request may be C5F1.
可选的,步骤S40,即所述根据所述报警参数信息确定推送时间,包括:Optionally, step S40, that is, determining the push time based on the alarm parameter information, includes:
S401、判断所述报警等级是否大于预设等级;S401. Determine whether the alarm level is greater than the preset level;
S402、若所述报警等级大于所述预设等级,则将所述推送时间设置成第一推送时间;S402. If the alarm level is greater than the preset level, set the push time to the first push time;
S403、若所述报警等级小于或等于所述预设等级,则将所述推送时间设置成第二推送时间;所述第一推送时间小于所述第二推送时间。S403. If the alarm level is less than or equal to the preset level, set the push time to the second push time; the first push time is less than the second push time.
可理解地,可以根据实际需要设置PCB设备发生异常时的报警等级。例如,PCB设备组件中的X轴、Y轴运动精度异常的报警等级为1级、Z轴上下感应器异常的报警等级为2级、距离传感器感应异常的报警等级为3级、刀头撞机的报警等级为4级。在此处,报警等级越高,说明报警的紧急程度越大。Understandably, the alarm level when an abnormality occurs in the PCB equipment can be set according to actual needs. For example, the alarm level for abnormal X-axis and Y-axis motion accuracy in PCB equipment components is level 1, the alarm level for abnormal Z-axis upper and lower sensors is level 2, the alarm level for abnormal distance sensor sensing is level 3, and the tool head hits the machine. The alarm level is level 4. Here, the higher the alarm level, the greater the urgency of the alarm.
预设等级可以根据实际需要进行设置。如可以是1级。报警等级在高于1级时,会严重影响实际的生产,因而,在报警等级在高于1级时,立即进行报警推送。在此处,第一推送时间可以根据实际需要进行设置,如0~5s。The preset level can be set according to actual needs. If it can be level 1. When the alarm level is higher than level 1, it will seriously affect actual production. Therefore, when the alarm level is higher than level 1, the alarm is pushed immediately. Here, the first push time can be set according to actual needs, such as 0~5s.
报警等级等于1级时,影响程度较小,可以延时推送。在此处,第二推送时间可以根据实际需要进行设置,如30s~+∞s。在此处+∞s表示不推送。 When the alarm level is equal to level 1, the impact is small and the push can be delayed. Here, the second push time can be set according to actual needs, such as 30s~+∞s. +∞s here means no push.
本实施例通过对报警的严重程度进行分级,通过报警等级确定目标报警报告的推送时间,避免了工作人员一直需要守在设备旁边的问题,同时在发生较为严重的报警时,能进行快速判断并响应,极大地提高了目标报警报告的处理效率。This embodiment classifies the severity of the alarm and determines the push time of the target alarm report based on the alarm level. This avoids the problem that staff need to stay next to the device all the time. At the same time, when a more serious alarm occurs, quick judgment can be made and response, greatly improving the processing efficiency of target alarm reports.
可选的,步骤S40,即所述根据所述报警参数信息确定推送时间,包括,7Optionally, step S40, that is, determining the push time based on the alarm parameter information, includes: 7
S404、判断所述报警类别是否处于推送范围内;S404. Determine whether the alarm category is within the push range;
S405、若所述报警类别处于所述推送范围内,则将所述推送时间设置成第一推送时间;S405. If the alarm category is within the push range, set the push time to the first push time;
S406、若所述报警类别不处于所述推送范围内,则将所述推送时间设置成第二推送时间;所述第一推送时间小于所述第二推送时间。S406. If the alarm category is not within the push range, set the push time to the second push time; the first push time is less than the second push time.
可理解地,可以根据实际需要设置PCB设备发生异常时的报警类别。例如,某一操作人员的手被PCB设备中的某一组件压住了,此时的报警类别为事故报警,对应的报警类别编号为7;Z轴上下运动异常所属类别为故障报警,所属报警类别编码为6。Understandably, the alarm category when an abnormality occurs in the PCB equipment can be set according to actual needs. For example, if an operator's hand is pressed by a component in the PCB equipment, the alarm category at this time is accident alarm, and the corresponding alarm category number is 7; the abnormal movement of the Z-axis up and down belongs to the fault alarm category, and the corresponding alarm category is 7. The category code is 6.
推送范围可以根据实际需要进行设置。如可以是{6,7}。报警类别处于推送范围时,危险性较大。因而,在报警类别处于推送范围时,立即进行报警推送。在此处,第一推送时间可以根据实际需要进行设置,如0~5s。The push range can be set according to actual needs. For example, it can be {6, 7}. When the alarm category is within the push range, the risk is greater. Therefore, when the alarm category is within the push range, the alarm is pushed immediately. Here, the first push time can be set according to actual needs, such as 0~5s.
报警类别处于推送范围之外时,危险性较小,可以延时推送。在此处,第二推送时间可以根据实际需要进行设置,如30s~+∞s。在此处+∞s表示不推送。When the alarm category is outside the push range, the risk is less and the push can be delayed. Here, the second push time can be set according to actual needs, such as 30s~+∞s. +∞s here means no push.
本实施例通过对报警的严重程度进行分类,通过报警类别确定目标报警报告的推送时间,避免了工作人员一直需要守在设备旁边的问题,同时在发生较为严重的报警时,能进行快速判断并响应,极大地提高了目标报警报告的处理效率。This embodiment classifies the severity of the alarm and determines the push time of the target alarm report based on the alarm category. This avoids the problem of staff needing to stay next to the device all the time. At the same time, when a more serious alarm occurs, quick judgment can be made and response, greatly improving the processing efficiency of target alarm reports.
可选的,步骤S40,即所述根据所述报警参数信息确定推送时间,包括:Optionally, step S40, that is, determining the push time based on the alarm parameter information, includes:
S407、将所述报警参数信息发送至解析服务器,以使所述解析服务器对所述报警参数信息进行解析,获得所述推送时间;S407. Send the alarm parameter information to the parsing server, so that the parsing server parses the alarm parameter information and obtains the push time;
S408、接收所述解析服务器返回的所述推送时间。S408: Receive the push time returned by the parsing server.
可理解地,可以设置有专门用于解析报警参数信息的解析服务器。解析服务器上部署有用于解析报警参数信息的数学模型,例如集成模型(例如将GBDT(Gradient Boosting Decision Tree,梯度提升树)、XgBoost(一种可扩展的端到端的提升树模型)、LightGBM分类器(Light Gradient Boosting Machine,轻量级梯度提升机器学习)集成在一起进行投票,然后通过少数服从多数的方式决定最终的分类结果),可将根据报警类别、报警等级,进行人工判断的报警推送时间的结果作为训练数据,添加到各个分类器(例如GBDT、XgBoost、LightGBM)进行训练,从而可以得到根据报警类别以及报警等级判断的集成模型。通过集成模型可以分析出PCB设备的当前的运行状态,进而生成合理的推送时间。在一些示例中,解析服务器还可以接收PCB设备所处环境的环境参量,如温度、湿度等,以及PCB设备自身的设备属性,如零配件产地、性能、使用时间等。结合报警参数信息、环境参量和设备属性,可以分析出更为准确的PCB设备状况,并确定出相应的推送时间。Understandably, a parsing server specifically used to parse alarm parameter information may be provided. Mathematical models used to parse alarm parameter information are deployed on the parsing server, such as integrated models (for example, GBDT (Gradient Boosting Decision Tree), XgBoost (an scalable end-to-end boosting tree model), LightGBM classifier (Light Gradient Boosting Machine, lightweight gradient boosting machine learning) are integrated to vote, and then the final classification result is determined by a minority obeying the majority), and the alarm push time can be manually judged based on the alarm category and alarm level. The results are used as training data and added to various classifiers (such as GBDT, XgBoost, LightGBM) for training, so that an integrated model judged based on alarm categories and alarm levels can be obtained. Through the integrated model, the current operating status of the PCB device can be analyzed, and a reasonable push time can be generated. In some examples, the parsing server can also receive environmental parameters of the environment where the PCB device is located, such as temperature, humidity, etc., as well as device attributes of the PCB device itself, such as the origin of spare parts, performance, usage time, etc. Combining alarm parameter information, environmental parameters and device attributes, a more accurate PCB device status can be analyzed and the corresponding push time can be determined.
本实施例设置了专门用于解析报警参数信息的解析服务器,大大减少了对远程控制设备的计算资源的占用,有利于提高远程控制设备的响应速度,而且,解析服务器可以提供高效准确的计算服务,减少推送时间的计算时长。This embodiment sets up a parsing server specifically for parsing alarm parameter information, which greatly reduces the occupation of computing resources of the remote control device and is conducive to improving the response speed of the remote control device. Moreover, the parsing server can provide efficient and accurate computing services. , reduce the calculation time of push time.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence number of each step in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
在一实施例中,提供一种PCB设备报警数据推送装置,该PCB设备报警数据推送装置与上述实施例中PCB设备报警数据推送方法一一对应。如图4所示,该PCB设备报警数据推送装置包括接收报警消息模块10、获取报警报告模块20、提取报警参数模块30、确定推送时间模块40和推送报告模块50。各功能模块详细说明如下:In one embodiment, a PCB equipment alarm data pushing device is provided. The PCB equipment alarm data pushing device corresponds to the PCB equipment alarm data pushing method in the above embodiment. As shown in Figure 4, the PCB equipment alarm data push device includes an alarm message receiving module 10, an alarm report obtaining module 20, an alarm parameter extracting module 30, a push time determining module 40 and a push report module 50. The detailed description of each functional module is as follows:
接收报警消息模块10,用于接收所述PCB设备推送的带有报警编号的报警消息;The alarm message receiving module 10 is used to receive an alarm message with an alarm number pushed by the PCB device;
获取报警报告模块20,用于获取与所述报警编号匹配的目标报警报告; Obtain alarm report module 20, used to obtain a target alarm report matching the alarm number;
提取报警参数模块30,用于从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;The alarm parameter extraction module 30 is used to extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
确定推送时间模块40,用于根据所述报警参数信息,确定推送时间;The push time determination module 40 is used to determine the push time according to the alarm parameter information;
推送报告模块50,用于在所述推送时间向指定终端推送所述目标报警报告。The push report module 50 is configured to push the target alarm report to the designated terminal at the push time.
可选的,PCB设备报警数据推送装置还包括订阅模块,所述订阅模块包括:Optionally, the PCB equipment alarm data push device also includes a subscription module, and the subscription module includes:
订阅请求单元,用于向所述PCB设备发送带有所述报警编号的报警订阅请求;A subscription request unit, configured to send an alarm subscription request with the alarm number to the PCB device;
订阅确定单元,用于接收所述PCB设备返回的用于响应所述报警订阅请求的订阅确认信息。A subscription determining unit configured to receive subscription confirmation information returned by the PCB device in response to the alarm subscription request.
可选的,所述报警订阅请求包括订阅周期和/或触发条件;Optionally, the alarm subscription request includes a subscription period and/or triggering conditions;
接收报警消息模块10包括:The alarm message receiving module 10 includes:
定时接收单元,用于接收所述PCB设备按照所述订阅周期推送的所述报警消息;和/或,A timing receiving unit configured to receive the alarm message pushed by the PCB device according to the subscription cycle; and/or,
条件接收单元,用于接收所述PCB设备满足所述触发条件时推送的所述报警消息。A conditional receiving unit, configured to receive the alarm message pushed when the PCB device meets the triggering condition.
可选的,PCB设备报警数据推送装置还包括关联模块,所述关联模块包括:Optionally, the PCB equipment alarm data push device also includes a correlation module, and the correlation module includes:
关联请求单元,用于向所述PCB设备发送关联请求,以使所述PCB设备根据所述关联请求中的关联关系数据设置报警编号和报告编号之间的关联关系,并生成设置结果;其中,一个报警编号与一个或多个报告编号关联,一个所述报告编号与一个所述目标报警报告关联;An association request unit, configured to send an association request to the PCB device, so that the PCB device sets the association relationship between the alarm number and the report number according to the association relationship data in the association request, and generates a setting result; wherein, One alarm number is associated with one or more report numbers, and one said report number is associated with one said target alarm report;
关联应答单元,用于接收所述PCB设备返回的基于所述设置结果生成的关联应答消息。An association response unit, configured to receive an association response message generated based on the setting result returned by the PCB device.
可选的,PCB设备报警数据推送装置还包括报告定义模块,所述报告定义模块包括:Optionally, the PCB equipment alarm data push device also includes a report definition module, and the report definition module includes:
定义请求单元,用于向所述PCB设备发送报告定义请求,以使所述PCB设备根据所述报告定义请求中的报告定义参数设置所述目标报警报告,并生成定义结果;A definition request unit, configured to send a report definition request to the PCB device, so that the PCB device sets the target alarm report according to the report definition parameters in the report definition request, and generates a definition result;
定义应答单元,用于接收所述PCB设备返回的基于所述定义结果生成的定义应答消息。A definition response unit is configured to receive a definition response message generated based on the definition result returned by the PCB device.
可选的,确定推送时间模块40包括:Optionally, the push time determination module 40 includes:
等级比较单元,用于判断所述报警等级是否大于预设等级;A level comparison unit used to determine whether the alarm level is greater than a preset level;
第一推送时间单元,用于若所述报警等级大于所述预设等级,则将所述推送时间设置成第一推送时间;The first push time unit is used to set the push time to the first push time if the alarm level is greater than the preset level;
第二推送时间单元,用于若所述报警等级小于或等于所述预设等级,则将所述推送时间设置成第二推送时间;所述第一推送时间小于所述第二推送时间。The second push time unit is used to set the push time to a second push time if the alarm level is less than or equal to the preset level; the first push time is less than the second push time.
可选的,确定推送时间模块40包括:Optionally, the push time determination module 40 includes:
范围判断单元,用于判断所述报警类别是否处于推送范围内;A range judgment unit, used to judge whether the alarm category is within the push range;
第一时间单元,用于若所述报警类别处于所述推送范围内,则将所述推送时间设置成第一推送时间;The first time unit is used to set the push time to the first push time if the alarm category is within the push range;
第二时间单元,用于若所述报警类别不处于所述推送范围内,则将所述推送时间设置成第二推送时间;所述第一推送时间小于所述第二推送时间。The second time unit is used to set the push time to the second push time if the alarm category is not within the push range; the first push time is less than the second push time.
关于PCB设备报警数据推送装置的具体限定可以参见上文中对于PCB设备报警数据推送方法的限定,在此不再赘述。上述PCB设备报警数据推送装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific limitations on the device for pushing PCB equipment alarm data, please refer to the above limitations on the method for pushing PCB equipment alarm data, which will not be described again here. Each module in the above-mentioned PCB equipment alarm data push device can be realized in whole or in part by software, hardware and combinations thereof. Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图5所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括可读存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机可读指令。该内存储器为可读存储介质中的操作系统和计算机可读指令的运行提供环境。该 计算机设备的网络接口用于与外部服务器通过网络连接通信。该计算机可读指令被处理器执行时以实现一种PCB设备报警数据推送方法。本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be shown in Figure 5 . The computer equipment includes a processor, memory, network interface, display screen and input device connected by a system bus. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes readable storage media and internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions. The internal memory provides an environment for the execution of an operating system and computer-readable instructions in a readable storage medium. Should The network interface of a computer device is used to communicate with external servers over a network connection. When the computer readable instructions are executed by the processor, a PCB device alarm data pushing method is implemented. The readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现以下步骤:In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the following steps are implemented:
接收所述PCB设备推送的带有报警编号的报警消息;Receive an alarm message with an alarm number pushed by the PCB device;
获取与所述报警编号匹配的目标报警报告;Obtain the target alarm report matching the alarm number;
从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
根据所述报警参数信息,确定推送时间;Determine the push time according to the alarm parameter information;
在所述推送时间向指定终端推送所述目标报警报告。Push the target alarm report to the designated terminal at the push time.
在一个实施例中,提供了一个或多个存储有计算机可读指令的计算机可读存储介质,本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质。可读存储介质上存储有计算机可读指令,计算机可读指令被一个或多个处理器执行时实现以下步骤:In one embodiment, one or more computer-readable storage media storing computer-readable instructions are provided. The readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media. storage media. Computer-readable instructions are stored on the readable storage medium. When executed by one or more processors, the computer-readable instructions implement the following steps:
接收所述PCB设备推送的带有报警编号的报警消息;Receive an alarm message with an alarm number pushed by the PCB device;
获取与所述报警编号匹配的目标报警报告;Obtain the target alarm report matching the alarm number;
从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
根据所述报警参数信息,确定推送时间;Determine the push time according to the alarm parameter information;
在所述推送时间向指定终端推送所述目标报警报告。Push the target alarm report to the designated terminal at the push time.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性可读取存储介质或易失性可读存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through computer readable instructions. The computer readable instructions can be stored in a non-volatile memory. When the computer-readable instructions are read from the storage medium or the volatile readable storage medium, the computer-readable instructions may include the processes of the embodiments of the above methods. Any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。 The above-described embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the above-mentioned implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of this application, and should be included in within the protection scope of this application.

Claims (20)

  1. 一种PCB设备报警数据推送方法,应用于远程控制设备与PCB设备之间,其中,包括:A method for pushing alarm data of PCB equipment, applied between remote control equipment and PCB equipment, including:
    接收所述PCB设备推送的带有报警编号的报警消息;Receive an alarm message with an alarm number pushed by the PCB device;
    获取与所述报警编号匹配的目标报警报告;Obtain the target alarm report matching the alarm number;
    从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
    根据所述报警参数信息,确定推送时间;Determine the push time according to the alarm parameter information;
    在所述推送时间向指定终端推送所述目标报警报告。Push the target alarm report to the designated terminal at the push time.
  2. 如权利要求1所述的PCB设备报警数据推送方法,其中,所述接收所述PCB设备推送的带有报警编号的报警消息之前,还包括:The PCB equipment alarm data pushing method according to claim 1, wherein before receiving the alarm message with an alarm number pushed by the PCB equipment, it further includes:
    向所述PCB设备发送带有报警编号的报警订阅请求;Send an alarm subscription request with an alarm number to the PCB device;
    接收所述PCB设备返回的用于响应所述报警订阅请求的订阅确认信息。Receive subscription confirmation information returned by the PCB device in response to the alarm subscription request.
  3. 如权利要求2所述的PCB设备报警数据推送方法,其中,所述报警订阅请求包括订阅周期和/或触发条件;The PCB equipment alarm data pushing method according to claim 2, wherein the alarm subscription request includes a subscription period and/or triggering conditions;
    所述接收所述PCB设备推送的带有报警编号的报警消息,包括:The receiving an alarm message with an alarm number pushed by the PCB device includes:
    接收所述PCB设备按照所述订阅周期推送的所述报警消息;和/或,Receive the alarm message pushed by the PCB device according to the subscription cycle; and/or,
    接收所述PCB设备满足所述触发条件时推送的所述报警消息。Receive the alarm message pushed when the PCB device meets the trigger condition.
  4. 如权利要求1所述的PCB设备报警数据推送方法,其中,所述接收所述PCB设备推送的带有报警编号的报警消息之前,还包括:The PCB equipment alarm data pushing method according to claim 1, wherein before receiving the alarm message with an alarm number pushed by the PCB equipment, it further includes:
    向所述PCB设备发送关联请求,以使所述PCB设备根据所述关联请求中的关联关系数据,设置报警编号和报告编号之间的关联关系,并生成设置结果;其中,一个报警编号与一个或多个报告编号关联,一个所述报告编号与一个所述目标报警报告关联;Send an association request to the PCB device, so that the PCB device sets the association between the alarm number and the report number according to the association relationship data in the association request, and generates a setting result; wherein, an alarm number and an Or multiple report numbers are associated, and one report number is associated with one target alarm report;
    接收所述PCB设备返回的基于所述设置结果生成的关联应答消息。Receive an association response message generated based on the setting result returned by the PCB device.
  5. 如权利要求1所述的PCB设备报警数据推送方法,其中,所述接收所述PCB设备推送的带有报警编号的报警消息之前,还包括:The PCB equipment alarm data pushing method according to claim 1, wherein before receiving the alarm message with an alarm number pushed by the PCB equipment, it further includes:
    向所述PCB设备发送报告定义请求,以使所述PCB设备根据所述报告定义请求中的报告定义参数,设置所述目标报警报告,并生成定义结果;Send a report definition request to the PCB device, so that the PCB device sets the target alarm report according to the report definition parameters in the report definition request and generates a definition result;
    接收所述PCB设备返回的基于所述定义结果生成的定义应答消息。Receive a definition response message generated based on the definition result returned by the PCB device.
  6. 如权利要求1所述的PCB设备报警数据推送方法,其中,所述根据所述报警参数信息确定推送时间,包括:The PCB equipment alarm data push method according to claim 1, wherein the determining the push time according to the alarm parameter information includes:
    判断所述报警等级是否大于预设等级;Determine whether the alarm level is greater than the preset level;
    若所述报警等级大于所述预设等级,则将所述推送时间设置成第一推送时间;If the alarm level is greater than the preset level, then the push time is set to the first push time;
    若所述报警等级小于或等于所述预设等级,则将所述推送时间设置成第二推送时间;所述第一推送时间小于所述第二推送时间。If the alarm level is less than or equal to the preset level, the push time is set to the second push time; the first push time is less than the second push time.
  7. 如权利要求1所述的PCB设备报警数据推送方法,其中,所述根据所述报警参数信息确定推送时间,包括:The PCB equipment alarm data push method according to claim 1, wherein the determining the push time according to the alarm parameter information includes:
    判断所述报警类别是否处于推送范围内;Determine whether the alarm category is within the push range;
    若所述报警类别处于所述推送范围内,则将所述推送时间设置成第一推送时间;If the alarm category is within the push range, the push time is set to the first push time;
    若所述报警类别不处于所述推送范围内,则将所述推送时间设置成第二推送时间;所述第一推送时间小于所述第二推送时间。If the alarm category is not within the push range, the push time is set to the second push time; the first push time is less than the second push time.
  8. 一种PCB设备报警数据推送装置,其中,包括:A PCB equipment alarm data push device, which includes:
    接收报警消息模块,用于接收所述PCB设备推送的带有报警编号的报警消息;An alarm message receiving module is configured to receive an alarm message with an alarm number pushed by the PCB device;
    获取报警报告模块,用于获取与所述报警编号匹配的目标报警报告; Obtain an alarm report module, used to obtain a target alarm report matching the alarm number;
    提取报警参数模块,用于从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;An alarm parameter extraction module is used to extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
    确定推送时间模块,用于根据所述报警参数信息,确定推送时间;A push time determination module is used to determine the push time based on the alarm parameter information;
    推送报告模块,用于在所述推送时间向指定终端推送所述目标报警报告。A push report module is used to push the target alarm report to the designated terminal at the push time.
  9. 如权利要求8所述的PCB设备报警数据推送装置,其中,还包括订阅模块,所述订阅模块包括:The PCB equipment alarm data pushing device according to claim 8, further comprising a subscription module, the subscription module including:
    订阅请求单元,用于向所述PCB设备发送带有所述报警编号的报警订阅请求;A subscription request unit, configured to send an alarm subscription request with the alarm number to the PCB device;
    订阅确定单元,用于接收所述PCB设备返回的用于响应所述报警订阅请求的订阅确认信息。A subscription determining unit configured to receive subscription confirmation information returned by the PCB device in response to the alarm subscription request.
  10. 如权利要求9所述的PCB设备报警数据推送装置,其中,所述报警订阅请求包括订阅周期和/或触发条件;The PCB equipment alarm data push device according to claim 9, wherein the alarm subscription request includes a subscription period and/or triggering conditions;
    所述接收报警消息模块包括:The module for receiving alarm messages includes:
    定时接收单元,用于接收所述PCB设备按照所述订阅周期推送的所述报警消息;和/或,A timing receiving unit configured to receive the alarm message pushed by the PCB device according to the subscription cycle; and/or,
    条件接收单元,用于接收所述PCB设备满足所述触发条件时推送的所述报警消息。A conditional receiving unit, configured to receive the alarm message pushed when the PCB device meets the triggering condition.
  11. 如权利要求8所述的PCB设备报警数据推送装置,其中,还包括关联模块,所述关联模块包括:The PCB equipment alarm data pushing device according to claim 8, further comprising an association module, the association module including:
    关联请求单元,用于向所述PCB设备发送关联请求,以使所述PCB设备根据所述关联请求中的关联关系数据设置报警编号和报告编号之间的关联关系,并生成设置结果;其中,一个报警编号与一个或多个报告编号关联,一个所述报告编号与一个所述目标报警报告关联;An association request unit, configured to send an association request to the PCB device, so that the PCB device sets the association relationship between the alarm number and the report number according to the association relationship data in the association request, and generates a setting result; wherein, One alarm number is associated with one or more report numbers, and one said report number is associated with one said target alarm report;
    关联应答单元,用于接收所述PCB设备返回的基于所述设置结果生成的关联应答消息。An association response unit, configured to receive an association response message generated based on the setting result returned by the PCB device.
  12. 如权利要求8所述的PCB设备报警数据推送装置,其中,还包括报告定义模块,所述报告定义模块包括:The PCB equipment alarm data pushing device according to claim 8, further comprising a report definition module, the report definition module includes:
    定义请求单元,用于向所述PCB设备发送报告定义请求,以使所述PCB设备根据所述报告定义请求中的报告定义参数设置所述目标报警报告,并生成定义结果;A definition request unit, configured to send a report definition request to the PCB device, so that the PCB device sets the target alarm report according to the report definition parameters in the report definition request, and generates a definition result;
    定义应答单元,用于接收所述PCB设备返回的基于所述定义结果生成的定义应答消息。A definition response unit is configured to receive a definition response message generated based on the definition result returned by the PCB device.
  13. 如权利要求8所述的PCB设备报警数据推送装置,其中,所述确定推送时间模块包括:The PCB equipment alarm data pushing device according to claim 8, wherein the module for determining the pushing time includes:
    等级比较单元,用于判断所述报警等级是否大于预设等级;A level comparison unit used to determine whether the alarm level is greater than a preset level;
    第一推送时间单元,用于若所述报警等级大于所述预设等级,则将所述推送时间设置成第一推送时间;The first push time unit is used to set the push time to the first push time if the alarm level is greater than the preset level;
    第二推送时间单元,用于若所述报警等级小于或等于所述预设等级,则将所述推送时间设置成第二推送时间;所述第一推送时间小于所述第二推送时间。The second push time unit is used to set the push time to a second push time if the alarm level is less than or equal to the preset level; the first push time is less than the second push time.
  14. 如权利要求8所述的PCB设备报警数据推送装置,其中,所述确定推送时间模块包括:The PCB equipment alarm data pushing device according to claim 8, wherein the module for determining the pushing time includes:
    范围判断单元,用于判断所述报警类别是否处于推送范围内;A range judgment unit, used to judge whether the alarm category is within the push range;
    第一时间单元,用于若所述报警类别处于所述推送范围内,则将所述推送时间设置成第一推送时间;The first time unit is used to set the push time to the first push time if the alarm category is within the push range;
    第二时间单元,用于若所述报警类别不处于所述推送范围内,则将所述推送时间设置成第二推送时间;所述第一推送时间小于所述第二推送时间。The second time unit is used to set the push time to the second push time if the alarm category is not within the push range; the first push time is less than the second push time.
  15. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其中,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein when the processor executes the computer-readable instructions, the following steps are implemented:
    接收所述PCB设备推送的带有报警编号的报警消息;Receive an alarm message with an alarm number pushed by the PCB device;
    获取与所述报警编号匹配的目标报警报告; Obtain the target alarm report matching the alarm number;
    从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
    根据所述报警参数信息,确定推送时间;Determine the push time according to the alarm parameter information;
    在所述推送时间向指定终端推送所述目标报警报告。Push the target alarm report to the designated terminal at the push time.
  16. 如权利要求15所述的计算机设备,其中,所述接收所述PCB设备推送的带有报警编号的报警消息之前,还包括:The computer device according to claim 15, wherein before receiving the alarm message with an alarm number pushed by the PCB device, it further includes:
    向所述PCB设备发送带有报警编号的报警订阅请求;Send an alarm subscription request with an alarm number to the PCB device;
    接收所述PCB设备返回的用于响应所述报警订阅请求的订阅确认信息。Receive subscription confirmation information returned by the PCB device in response to the alarm subscription request.
  17. 如权利要求16所述的计算机设备,其中,所述报警订阅请求包括订阅周期和/或触发条件;The computer device of claim 16, wherein the alarm subscription request includes a subscription period and/or a trigger condition;
    所述接收所述PCB设备推送的带有报警编号的报警消息,包括:The receiving an alarm message with an alarm number pushed by the PCB device includes:
    接收所述PCB设备按照所述订阅周期推送的所述报警消息;和/或,Receive the alarm message pushed by the PCB device according to the subscription cycle; and/or,
    接收所述PCB设备满足所述触发条件时推送的所述报警消息。Receive the alarm message pushed when the PCB device meets the trigger condition.
  18. 一个或多个存储有计算机可读指令的可读存储介质,其中,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer-readable instructions, wherein when executed by one or more processors, the computer-readable instructions cause the one or more processors to perform the following steps:
    接收所述PCB设备推送的带有报警编号的报警消息;Receive an alarm message with an alarm number pushed by the PCB device;
    获取与所述报警编号匹配的目标报警报告;Obtain the target alarm report matching the alarm number;
    从所述目标报警报告提取报警参数信息;所述报警参数信息包括报警参数的报警类别和/或报警等级;Extract alarm parameter information from the target alarm report; the alarm parameter information includes the alarm category and/or alarm level of the alarm parameter;
    根据所述报警参数信息,确定推送时间;Determine the push time according to the alarm parameter information;
    在所述推送时间向指定终端推送所述目标报警报告。Push the target alarm report to the designated terminal at the push time.
  19. 如权利要求18所述的可读存储介质,其中,所述接收所述PCB设备推送的带有报警编号的报警消息之前,还包括:The readable storage medium according to claim 18, wherein before receiving the alarm message with an alarm number pushed by the PCB device, it further includes:
    向所述PCB设备发送带有报警编号的报警订阅请求;Send an alarm subscription request with an alarm number to the PCB device;
    接收所述PCB设备返回的用于响应所述报警订阅请求的订阅确认信息。Receive subscription confirmation information returned by the PCB device in response to the alarm subscription request.
  20. 如权利要求19所述的可读存储介质,其中,所述报警订阅请求包括订阅周期和/或触发条件;The readable storage medium of claim 19, wherein the alarm subscription request includes a subscription period and/or a trigger condition;
    所述接收所述PCB设备推送的带有报警编号的报警消息,包括:The receiving an alarm message with an alarm number pushed by the PCB device includes:
    接收所述PCB设备按照所述订阅周期推送的所述报警消息;和/或,Receive the alarm message pushed by the PCB device according to the subscription cycle; and/or,
    接收所述PCB设备满足所述触发条件时推送的所述报警消息。 Receive the alarm message pushed when the PCB device meets the trigger condition.
PCT/CN2023/115212 2022-07-07 2023-08-28 Pcb device alert data pushing method and apparatus, computer device, and storage medium WO2024008212A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210795420.8A CN115311825A (en) 2022-07-07 2022-07-07 Alarm data pushing method and device for PCB (printed Circuit Board) equipment, computer equipment and storage medium
CN202210795420.8 2022-07-07

Publications (1)

Publication Number Publication Date
WO2024008212A1 true WO2024008212A1 (en) 2024-01-11

Family

ID=83857523

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/115212 WO2024008212A1 (en) 2022-07-07 2023-08-28 Pcb device alert data pushing method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN115311825A (en)
WO (1) WO2024008212A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117784739A (en) * 2024-02-27 2024-03-29 宁德时代新能源科技股份有限公司 Data processing system and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115311825A (en) * 2022-07-07 2022-11-08 深圳市大族数控科技股份有限公司 Alarm data pushing method and device for PCB (printed Circuit Board) equipment, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100102973A1 (en) * 2008-10-27 2010-04-29 Lennox Industries, Inc. Alarm and diagnostics system and method for a distributed-architecture heating, ventilation and air conditioning network
CN104961014A (en) * 2015-05-19 2015-10-07 高春宝 Method, equipment and system for monitoring faults of elevator
CN109347672A (en) * 2018-10-26 2019-02-15 南京天溯自动化控制系统有限公司 A kind of method and system pushing driving workflow based on message
CN112598205A (en) * 2019-09-17 2021-04-02 北京国双科技有限公司 Alarm information processing method and device, storage medium and electronic equipment
CN113807549A (en) * 2021-09-15 2021-12-17 佛山技研智联科技有限公司 Alarm message pushing method, device, equipment and storage medium
CN115311825A (en) * 2022-07-07 2022-11-08 深圳市大族数控科技股份有限公司 Alarm data pushing method and device for PCB (printed Circuit Board) equipment, computer equipment and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964963B (en) * 2017-09-20 2021-09-28 视联动力信息技术股份有限公司 Alarm system based on video network and method for realizing alarm
CN108460140A (en) * 2018-03-13 2018-08-28 广州供电局有限公司 Equipment-patrolling report-generating method, device, system and computer equipment
CN109714387A (en) * 2018-11-16 2019-05-03 国电南瑞南京控制系统有限公司 A kind of operation management system alarm method for subscribing subscribes to terminal, issue terminal and system
CN109889373B (en) * 2019-01-22 2022-06-21 视联动力信息技术股份有限公司 Method, device and system for transmitting alarm information
CN110888780A (en) * 2019-11-19 2020-03-17 泰康保险集团股份有限公司 Application monitoring method, device, equipment and storage medium
CN111082986A (en) * 2019-12-16 2020-04-28 新奥数能科技有限公司 Alarm notification method and device
CN111626597A (en) * 2020-05-22 2020-09-04 广东电网有限责任公司 Equipment alarm method, device, equipment and medium
CN112671560B (en) * 2020-12-11 2023-08-01 广东电力通信科技有限公司 High-availability distributed real-time alarm processing method and system
CN112714030B (en) * 2021-03-24 2021-06-22 腾讯科技(深圳)有限公司 Alarm method, device, equipment and computer readable storage medium
CN113593196A (en) * 2021-07-19 2021-11-02 许昌许继软件技术有限公司 Power distribution room alarm information subscription method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100102973A1 (en) * 2008-10-27 2010-04-29 Lennox Industries, Inc. Alarm and diagnostics system and method for a distributed-architecture heating, ventilation and air conditioning network
CN104961014A (en) * 2015-05-19 2015-10-07 高春宝 Method, equipment and system for monitoring faults of elevator
CN109347672A (en) * 2018-10-26 2019-02-15 南京天溯自动化控制系统有限公司 A kind of method and system pushing driving workflow based on message
CN112598205A (en) * 2019-09-17 2021-04-02 北京国双科技有限公司 Alarm information processing method and device, storage medium and electronic equipment
CN113807549A (en) * 2021-09-15 2021-12-17 佛山技研智联科技有限公司 Alarm message pushing method, device, equipment and storage medium
CN115311825A (en) * 2022-07-07 2022-11-08 深圳市大族数控科技股份有限公司 Alarm data pushing method and device for PCB (printed Circuit Board) equipment, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117784739A (en) * 2024-02-27 2024-03-29 宁德时代新能源科技股份有限公司 Data processing system and method

Also Published As

Publication number Publication date
CN115311825A (en) 2022-11-08

Similar Documents

Publication Publication Date Title
WO2024008212A1 (en) Pcb device alert data pushing method and apparatus, computer device, and storage medium
CN109766262B (en) Interface data processing method, automatic testing method, device, equipment and medium
CN110069572B (en) HIVE task scheduling method, device, equipment and storage medium based on big data platform
US11531909B2 (en) Computer system and method for machine learning or inference
US8572437B2 (en) Multi-platform test automation enhancement
CN112714030B (en) Alarm method, device, equipment and computer readable storage medium
CN110909013B (en) Service list generation method, device, equipment and computer readable storage medium
CN110851471A (en) Distributed log data processing method, device and system
CN112527600A (en) Monitoring log processing method, device, equipment and storage medium
WO2020258653A1 (en) Cross-node data processing method and apparatus
CN105989537A (en) Security and financial derivative transaction risk control system and risk control method
CN110737548A (en) Data request method and server
CN113076112A (en) Database deployment method and device and electronic equipment
CN110795441B (en) Report data processing method, device, equipment and storage medium
US8380729B2 (en) Systems and methods for first data capture through generic message monitoring
CN111367934A (en) Data consistency checking method, device, server and medium
CN111416857A (en) Client crash processing method, device, system, equipment and storage medium
CN114090268B (en) Container management method and container management system
US20210165725A1 (en) Integrated event processing and policy enforcement
CN112907221B (en) Self-service method, device and system
EP4277223A1 (en) Data processing method, apparatus and system, and storage medium
US20220237021A1 (en) Systems and methods of telemetry diagnostics
CN117555948A (en) Business continuity testing method and device suitable for transaction system
CN112653599A (en) Interface error information reporting method, system, device and storage medium
CN113391872A (en) Task processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23834977

Country of ref document: EP

Kind code of ref document: A1