Link diagnosis control method and device, storage medium and electronic device

By adjusting the front-mounted machine status according to the operating status of the remote control device in the industrial SCADA system, the efficiency reduction problem caused by FEP link diagnosis during HMI remote control operation is solved, and the efficiency and response speed of the remote control operation are improved.

CN119299339APending Publication Date: 2025-01-10HANGZHOU HOLLYSYS AUTOMATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411403027.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In industrial SCADA systems, FEP may encounter FEP's other link diagnosis during remote control operation, resulting in a reduced efficiency of remote control operation. The prior art has failed to effectively solve this problem.

Method used

By receiving activation or cancel commands when the remote control device performs operations, adjusting the front-end state to the remote control ready or cancel state, pausing or allowing the execution of another link diagnosis, and dynamically adjusting the sending delay of the target master station to avoid remote control operation and Conflicts of link diagnosis on another machine.

Benefits of technology

It effectively avoids the situation of another link diagnosis during remote control operation, improves the efficiency of remote control operation, and ensures the fast response and efficient execution of HMI remote control operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299339A_ABST
    Figure CN119299339A_ABST
Patent Text Reader

Abstract

The invention discloses a link diagnosis control method and device, a storage medium and an electronic device.The method comprises the steps that under the condition that remote control equipment executes first operation, an activation command sent by the remote control equipment is received, the first operation at least comprises one of the following conditions: the duration of displaying the program control interface by the remote control equipment is greater than or equal to a first preset duration, and the remote control equipment receives a target operation of a target object; wherein the target operation is used for indicating the target object to select program control card information of the controlled network equipment in the program control interface; and in response to the activation command, determining that the remote control equipment is about to execute remote control operation, adjusting the state of the front-end processor to a remote control ready state, and when the state of the front-end processor is the remote control ready state, pausing the front-end processor to execute another machine link diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular, to a control method and device for link diagnosis, a storage medium, and an electronic device. Background Art

[0002] On the one hand, the industrial data acquisition and supervisory control (SCADA) system usually uses a large number of master-slave serial field buses when communicating with equipment. The front-end communication processor (Front-End Processor, FEP) as the upper computer of equipment communication often adopts redundant configuration, that is, the FEP performs another machine link diagnosis operation, which will cause the redundant master station link conflict mode problem. That is, at the same time, the FEP as a redundant master station cannot initiate requests to the equipment at the same time. The redundant FEP master stations must coordinate to send device requests, otherwise it will cause bus conflicts.

[0003] Normally, the way in which the redundant FEP master stations coordinate to send device requests (i.e., another machine link diagnostic operation) is usually as follows: among the redundant FEPs, one FEP is selected as the actual master (Hot) FEP, and the other FEP is selected as the actual standby (Standby) FEP. The actual master FEP is the main initiator of the device request. Most of the time, only the actual master FEP will send requests to the device. The actual standby FEP has the right to initiate requests to the device only when the diagnostic cycle (for example, every 30 seconds) is reached (when the actual standby FEP has the right to initiate requests to the device, the actual master FEP will suspend initiating requests to the device).

[0004] On the other hand, industrial SCADA systems usually require remote control of equipment through a human-machine interface (HMI) to remotely control equipment or adjust equipment parameters.

[0005] In the prior art, the remote control of the HMI and the link diagnosis of the FEP are independent of each other and have no operational association. The link diagnosis of the FEP is usually executed periodically. When executing the remote control operation of the HMI, the link diagnosis of the FEP may be encountered, which will reduce the efficiency of the remote control operation.

[0006] When performing remote control operation through the HMI, there may be a problem that the FEP's other machine link diagnosis may occur, resulting in a decrease in the efficiency of the remote control operation. No effective solution has been proposed yet.

[0007] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention

[0008] The embodiments of the present application provide a link diagnosis control method and device, a storage medium and an electronic device to at least solve the problem that when performing remote control operation through the HMI, another machine link diagnosis of the FEP may be encountered, resulting in reduced efficiency of the remote control operation.

[0009] According to one aspect of an embodiment of the present application, a link diagnosis control method is provided, which is applied to a front-end processor of a controlled network device, comprising: when a remote control device executes a first operation, receiving an activation command sent by the remote control device, wherein the first operation includes at least one of the following: the remote control device displays a program-controlled interface for a time period greater than or equal to a first preset time period, and the remote control device receives a target operation of a target object; wherein the target operation is used to instruct the target object to select program-controlled card information of the controlled network device in the program-controlled interface; in response to the activation command, determining that the remote control device is to execute a remote control operation, and adjusting the state of the front-end processor to a remote control ready state, wherein when the state of the front-end processor is in the remote control ready state, pausing the front-end processor from executing link diagnosis of another machine.

[0010] In an exemplary embodiment, after adjusting the state of the front-end processor of the controlled network device to a remote control ready state, the method further includes: adjusting the sending delay of the target master station in the front-end processor to the shortest remote control delay, wherein the target master station is a master station connected to the controlled network device; upon receiving a control instruction sent by the remote control device, controlling the target master station to send the control instruction to the controlled network device according to the shortest remote control delay.

[0011] In an exemplary embodiment, after adjusting the state of the front-end processor to a remote control ready state, the method further includes: when the remote control device performs a second operation, receiving a cancel command sent by the remote control device, wherein the second operation includes at least one of the following: the remote control device does not display the program control interface for a period of time greater than or equal to a second preset period of time, and the remote control device completes the remote control operation; in response to the cancel command, determining that the remote control device has completed the remote control operation, and controlling the state of the front-end processor to be adjusted to a remote control cancel state, wherein when the state of the front-end processor is in the remote control cancel state, the front-end processor is allowed to perform another machine link diagnosis.

[0012] In an exemplary embodiment, after controlling the state of the front-end processor to be adjusted to a remote control cancellation state, the method further includes: adjusting the sending delay of the target master station in the front-end processor to a default delay, wherein the target master station is a master station connected to the controlled network device; and when performing link diagnosis of another machine, controlling the target master station to send a link diagnosis request to the controlled network device according to the default delay.

[0013] In an exemplary embodiment, after adjusting the state of the front-end processor to a remote control ready state, the method further includes: starting a timer and determining whether a control instruction sent by the remote control device is received before the timer times out; if it is determined that the control instruction sent by the remote control device is received before the timer times out, sending the control instruction to the controlled network device to adjust parameter information of the controlled network device according to the control instruction; if it is determined that the control instruction sent by the remote control device is not received before the timer times out, adjusting the state of the front-end processor to a remote control cancel state.

[0014] In an exemplary embodiment, after the state of the front-end processor of the controlled network device is adjusted to a remote control ready state, the method further includes: determining whether the link diagnosis of the other machine is being executed when a control instruction sent by the remote control device is received; and determining whether a complete response information sent by the diagnosed device is received when it is determined that the link diagnosis of the other machine is being executed, wherein, in the process of executing the link diagnosis of the other machine, the front-end processor sends a diagnostic link request to each diagnosed device respectively, so as to determine the link information between the front-end processor and each diagnosed device respectively according to the complete response information sent by each diagnosed device; and suspending the execution of the link diagnosis of the other machine and sending the control instruction to the controlled network device when it is determined that the complete response information sent by the diagnosed device is received.

[0015] In an exemplary embodiment, after sending the control instruction to the controlled network device, the method further includes: determining whether the local remote control queue of the front-end is an empty queue, wherein the local remote control queue is used to carry the control instruction sent by the remote control device; when the local remote control queue of the front-end is an empty queue, continuing to execute the link diagnosis of the other machine to send link diagnosis requests to other diagnosed devices; and when the local remote control queue of the front-end is a non-empty queue, continuing to suspend the execution of the link diagnosis of the other machine.

[0016] According to another aspect of an embodiment of the present application, a control device for link diagnosis is also provided, which is applied to a front-end processor of a controlled network device, including: a receiving module, used to receive an activation command sent by the remote control device when the remote control device performs a first operation, wherein the first operation includes at least one of the following: the remote control device displays a program-controlled interface for a time period greater than or equal to a first preset time period, and the remote control device receives a target operation of a target object; wherein the target operation is used to instruct the target object to select the program-controlled card information of the controlled network device in the program-controlled interface; a response module, used to determine, in response to the activation command, that the remote control device is to perform a remote control operation, and adjust the state of the front-end processor to a remote control ready state, wherein, when the state of the front-end processor is in the remote control ready state, the front-end processor is paused from performing link diagnosis of another machine.

[0017] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned link diagnosis control method when running.

[0018] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the link diagnosis control method through the computer program.

[0019] Through the present application, when the remote control device displays the program control interface for a time period greater than or equal to the first preset time period, or the remote control device receives an operation in which the target object selects the program control card information of the controlled network device in the program control interface, etc., the activation command sent by the remote control device is received; the front-end processor of the controlled network device responds to the activation command, determines that the remote control device is to perform a remote control operation, and adjusts the state of the front-end processor to a remote control ready state to suspend the front-end processor from performing another machine link diagnosis. In other words, when receiving the activation command sent by the remote control device, the front-end processor of the controlled device is controlled to prohibit the execution of another machine link diagnosis. Through the above technical solution, the problem that when performing remote control operation through the HMI, the other machine link diagnosis of the FEP may be encountered, resulting in a decrease in the efficiency of the remote control operation, can be solved, thereby achieving that when performing remote control operation, the other machine link diagnosis of the FEP will not be encountered, thereby improving the efficiency of the remote control operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The exemplary embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1It is a hardware structure block diagram of a front-end processor of a controlled network device in a link diagnosis control method according to an embodiment of the present application;

[0022] Figure 2 is a flow chart of a control method for link diagnosis according to an embodiment of the present application (I);

[0023] Figure 3 is a flow chart (II) of a control method for link diagnosis according to an embodiment of the present application;

[0024] Figure 4 It is a structural block diagram of a control device for link diagnosis according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0026] It should be noted that the terms and "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] The method embodiments provided in the embodiments of the present application can be executed in the front-end processor of the controlled network device or a similar computing device. Taking the front-end processor of the controlled network device as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a front-end processor of a controlled network device in a link diagnosis control method according to an embodiment of the present application. Figure 1 As shown, the front-end of the controlled network device may include one or more ( Figure 1Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the front-end of the above-mentioned controlled network device may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the front-end processor of the controlled network device. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of link diagnosis in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, which is equivalent to implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the ball machine via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0029] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a front-end of the controlled network device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0030] In this embodiment, a link diagnosis control method is provided, which is applied to Figure 1 In the front-end of the controlled network device, Figure 2 : is a flow chart of a control method for link diagnosis according to an embodiment of the present application, the flow includes the following steps:

[0031] Step S202, receiving an activation command sent by the remote control device when the remote control device performs a first operation, wherein the first operation includes at least one of the following: the remote control device displays the program control interface for a time period greater than or equal to a first preset time period, and the remote control device receives a target operation of a target object to select program control card information of the controlled network device in the program control interface; wherein the target operation is used to indicate the target object;

[0032] Step S204, in response to the activation command, determining that the remote control device is to perform a remote control operation, and adjusting the state of the front end processor to a remote control ready state, wherein when the state of the front end processor is the remote control ready state, pausing the front end processor from performing another machine link diagnosis.

[0033] That is to say, upon receiving an activation command sent by the remote control device, i.e., determining that the remote control device is about to perform a remote control operation, the front-end processor needs to suspend executing the other-machine link diagnosis operation to avoid a conflict between the front-end processor's execution of the other-machine link diagnosis and the remote control operation, thereby affecting the efficiency of control.

[0034] Through the above steps, when the remote control device displays the program control interface for a time period greater than or equal to the first preset time period, or the remote control device receives an operation in which the target object selects the program control card information of the controlled network device in the program control interface, etc., the activation command sent by the remote control device is received; the front-end processor of the controlled network device responds to the activation command, determines that the remote control device is to perform a remote control operation, and adjusts the state of the front-end processor to a remote control ready state to suspend the front-end processor from performing another machine link diagnosis. In other words, when receiving the activation command sent by the remote control device, the front-end processor of the controlled device is controlled to prohibit the execution of another machine link diagnosis. Through the above technical solution, the problem that when performing remote control operation through HMI, the other machine link diagnosis of FEP may be encountered, resulting in a decrease in the efficiency of remote control operation can be solved. Thereby, when performing remote control operation, the other machine link diagnosis of FEP will not be encountered, thereby improving the efficiency of remote control operation.

[0035] In an exemplary embodiment, after the state of the front-end processor of the controlled network device is adjusted to the remote control ready state in step S204, the following operations may be performed:

[0036] 1) Adjusting the sending delay of the target master station in the front-end machine to the shortest remote control delay, wherein the target master station is a master station connected to the controlled network device; upon receiving a control instruction sent by the remote control device, controlling the target master station to send the control instruction to the controlled network device according to the shortest remote control delay.

[0037] In actual use, it takes a certain amount of time from the control command sent by the remote control device to the control command sent by the remote control device. The shorter the remote control delay, the faster the response speed to the control command. In order to reduce the delay of the controlled network device receiving the control command and improve the response speed of the control command, it is necessary to adjust the sending delay to the shortest remote control delay.

[0038] Furthermore, when the remote control delay is adjusted to the shortest remote control delay, upon receiving a control instruction sent by the remote control device, the target master station can be controlled to send a control instruction to the controlled network device according to the shortest remote control delay.

[0039] For example, the current remote control delay is the default remote control delay: 300ms. After the state of the front-end processor of the controlled network device is adjusted to the remote control ready state, it is determined that the remote control device is about to perform a remote control operation. At this time, the default remote control delay of 300ms can be adjusted to the shortest remote control delay of 120ms (300ms and 120ms are only examples, and the default remote control delay and the shortest remote control delay can be adjusted according to the specific situation).

[0040] 2) When the remote control device executes a second operation, receiving a cancel command sent by the remote control device, wherein the second operation includes at least one of the following: the remote control device does not display the program control interface for a period greater than or equal to a second preset period, and the remote control device completes the remote control operation; in response to the cancel command, determining that the remote control device has completed the remote control operation, and controlling the state of the front-end processor to be adjusted to a remote control cancel state, wherein when the state of the front-end processor is in the remote control cancel state, the front-end processor is allowed to perform another machine link diagnosis.

[0041] Among them, after controlling the state of the front-end processor to be adjusted to the remote control cancellation state, the method also includes: adjusting the sending delay of the target master station in the front-end processor to a default delay, wherein the target master station is a master station connected to the controlled network device; when performing link diagnosis of another machine, controlling the target master station to send a link diagnosis request to the controlled network device according to the default delay.

[0042] Through the above technical solution, it can be known that when the remote control device does not display the program control interface for a time period greater than or equal to the second preset time period, or the remote control device has completed the remote control operation, the remote control device can send a cancel command to the front-end machine of the controlled network device.

[0043] Furthermore, the front-end processor of the controlled network device responds to the cancel command and determines that the remote control device is not performing a remote control operation at the current time, and then the controlled network device can adjust the state of the front-end processor to the remote control cancel state, that is, allowing the front-end processor to perform another machine link diagnosis.

[0044] For example, assuming that the second preset time is 5 seconds, when the remote control device does not display the program control interface within 5 seconds, the state of the front-end processor can be adjusted to the remote control cancellation state, thereby allowing the execution of the link diagnosis of the other machine.

[0045] Furthermore, after the state of the front-end processor is adjusted to the remote control cancel state, the sending delay of the target master station can be adjusted to the default delay. That is, when the state of the front-end processor is adjusted from the remote control ready state to the remote control cancel state, when the state of the front-end processor is in the remote control ready state, the sending delay of the target master station is the shortest remote control delay, and when the state of the front-end processor is changed to the remote control cancel state, the sending delay of the target master station can be adjusted from the shortest remote control delay to the default delay.

[0046] It is understandable that the shortest remote control delay usually requires greater energy consumption to achieve fast data transmission, while the default delay can reduce energy consumption to a certain extent. Therefore, in order to reduce energy consumption and improve system stability, the shortest remote control delay can be adjusted to the default delay when the shortest remote control delay is not required.

[0047] 3) Start the timer and determine whether the control instruction sent by the remote control device is received before the timer times out; if it is determined that the control instruction sent by the remote control device is received before the timer times out, send the control instruction to the controlled network device to adjust the parameter information of the controlled network device according to the control instruction; if it is determined that the control instruction sent by the remote control device is not received before the timer times out, adjust the state of the front-end to the remote control cancellation state.

[0048] It can be seen from the above technical solution that after the state of the front-end is adjusted to the remote control ready state, a timer can be started to determine whether a control instruction sent by the remote control device is received before the timer times out. If a control instruction sent by the remote control device is received before the timer times out, the parameter information of the controlled network device can be adjusted according to the control instruction; if a control instruction from the remote control device is not received before the timer times out, the state of the front-end can be adjusted to the remote control cancel state.

[0049] For example: assuming that the timer timing is set to 2s, then after the state of the front-end is adjusted to the remote control ready state, the timer is started. If no control command from the remote control device is received within 2s, the state of the front-end can be adjusted to the remote control cancel state; if a control command sent by the remote control device is received within 2s, the parameter information of the controlled network device can be adjusted according to the control command.

[0050] 4) upon receiving the control instruction sent by the remote control device, determining whether the link diagnosis of the other machine is being executed; upon determining that the link diagnosis of the other machine is being executed, determining whether complete response information sent by the diagnosed device is received, wherein, in the process of executing the link diagnosis of the other machine, the front-end processor sends a diagnostic link request to each diagnosed device respectively, so as to determine the link information between the front-end processor and each diagnosed device respectively according to the complete response information sent by each diagnosed device; upon determining that the complete response information sent by the diagnosed device is received, suspending the execution of the link diagnosis of the other machine and sending the control instruction to the controlled network device.

[0051] It is understandable that, when a control instruction sent by the remote control device is received, it is necessary to confirm whether another machine link diagnosis is being executed at the current moment.

[0052] Assuming that the front-end processor is currently executing link diagnosis of another machine, it is necessary to determine the subsequent operations based on the execution status of the link diagnosis of the other machine. Specifically: when receiving the complete response information sent by the diagnosed device, the link information between the front-end processor and the diagnosed device can be determined, and after receiving the complete response information, the execution of the link diagnosis of the other machine is suspended so that the controlled network device executes the control instructions sent by the remote control device.

[0053] Wherein, after sending the control instruction to the controlled network device, the method further includes: determining whether the local remote control queue of the front-end is an empty queue, wherein the local remote control queue is used to carry the control instructions sent by the remote control device; when the local remote control queue of the front-end is an empty queue, continuing to execute the link diagnosis of the other machine to send link diagnosis requests to other diagnosed devices; when the local remote control queue of the front-end is a non-empty queue, continuing to suspend the execution of the link diagnosis of the other machine.

[0054] After sending a control instruction to the controlled network device, the local remote control queue can be obtained. If the local remote control queue is empty, it means that the control instruction sent by the remote control device has been executed. At this time, the link diagnosis of the other machine can be continued to continue the suspended link diagnosis of the other machine.

[0055] The above embodiment describes a technical solution for controlling the front-end processor of the controlled device to prohibit the execution of the other-machine link diagnosis when it is determined that the remote control device is to execute the remote control operation, thereby realizing that the other-machine link diagnosis of the FEP will not be encountered when the remote control operation is executed. The above technical solution realizes that the other-machine link diagnosis of the FEP will not be encountered when the remote control operation is executed, thereby improving the efficiency of the remote control operation.

[0056] Obviously, the above-described embodiments are only a part of the embodiments of the present application, not all of the embodiments. In order to better understand the above-mentioned link diagnosis control method, the above-mentioned process is described below in conjunction with the embodiments, but it is not intended to limit the technical solutions of the embodiments of the present application, specifically:

[0057] In an optional embodiment, a redundant master station remote control method and apparatus in a serial bus link conflict mode are proposed to coordinate the remote control of the HMI and the link diagnosis of the FEP. Figure 3 FIG. 1 is a schematic diagram of data flow in a remote control process of a redundant master station according to an optional embodiment of the present application. Figure 3 As shown, Figure 3 Including: RTDB is the real-time database, Dev represents the device, FEP-A is the actual main front-end processor, FEP-B is the actual backup front-end processor, among which, based on Figure 3 The data flow transmission process of the remote control process of the redundant master station is as follows:

[0058] Step S1, when the time for the user (i.e., the target object of the present application) to enter the program control interface of the HMI reaches a predetermined time (the predetermined time is the first preset duration of the present application), or when a valid check item of any program control card in the program control interface is selected (i.e., the target operation of receiving the target object of the present application selects the program control card information of the controlled network device in the program control interface), a remote control pre-activation command (i.e., adjusting parameter PreRC=1, which is also the activation command of the present application) can be issued to the FEP (i.e., the front-end processor of the controlled network device of the present application).

[0059] The program control card may be composed of a two-dimensional table, a link, and device information. The predetermined time may be configured by itself. For example, in an optional embodiment of the present application, the predetermined time is configured to be 3s.

[0060] Step S2, start the timeout timer (i.e., the timer of the present application), and set the timeout period of the timer to 120s (the timer timeout period can be configured by itself, for example, in an optional embodiment of the present application, the timeout period of the timer is configured to 120s).

[0061] Step S3, when the FEP receives the pre-activation command, it can set all related drivers (the related drivers are the master stations in the front-end processor of this application, and there may be multiple master stations) to the remote control pre-ready state (i.e. the remote control ready state of this application). During the remote control pre-ready state, all related drivers of the FEP need to suspend the link diagnosis of other machines, and at the same time, the sending delay of all related drivers needs to be dynamically adjusted to the shortest remote control delay.

[0062] For example: assuming that the conventional transmission delay is 200ms, and based on the shortest delay time of the master station request or command that can be tolerated by the device in the optional embodiment of the present application, the shortest remote control delay is set to 20ms.

[0063] In this case, after it is determined that the pre-activation instruction has been received and all related drivers are set to the remote control ready state, the 200ms sending delay is adjusted to the shortest remote control delay of 20ms, so as to reduce the time delay from the remote control device sending the pre-activation instruction to the receiving of the pre-activation instruction sent by the remote control device, and improve the response speed of the remote control operation.

[0064] Step S4, assuming that the time when the user switches out of the HMI program control interface reaches the second predetermined time (the second predetermined time is the second preset duration of the present application, and the second predetermined time can be specifically configured according to the specific embodiment, and can be consistent with the predetermined time, or can be inconsistent with the predetermined time. For example, in the optional embodiment of the present application, the second predetermined time is set to 3s consistent with the predetermined time), or the HMI program control is completed. In the above two cases, the timer can be turned off, and at the same time, a remote control preparation cancellation instruction (i.e., the cancellation command of the present application) is issued to the FEP. When the FEP receives the remote control preparation cancellation instruction, the remote control ready state of all related drives (i.e., the remote control cancellation state of the present application) is canceled, and all related drives enter the normal data acquisition mode. That is, when the FEP receives the remote control preparation cancellation instruction, the FEP enters the remote control cancellation state, and the FEP's other machine link diagnosis can be executed at this time.

[0065] Through the above technical solution, on the one hand, before the host sends a remote control, it first determines whether another machine link diagnosis is currently being performed. Assuming that another machine link diagnosis is being performed, the remote control is temporarily not sent, waiting for the next opportunity for the master station to send a request. The next opportunity for the master station to send a request may be the moment when an execution cycle of the other machine link diagnosis is completed.

[0066] On the other hand, the situations in which the execution of this round of other-machine link diagnosis is suspended are: 1) Before the host sends the other-machine link diagnosis, the local remote control queue can be checked first. When it is determined that the local remote control queue is empty, the other-machine link diagnosis can be performed; when it is determined that the local remote control queue is not empty, the execution of this round of other-machine link diagnosis is suspended; 2) After the host receives a complete response from the device (the host receives a complete response from the device, which means that the diagnostic process for diagnosing a device in the device's other-machine link diagnosis has ended), before preparing to send the next request for other-machine link diagnosis, the host also needs to check the local remote control queue first. If the local remote control queue is not empty, that is, there are unfinished remote control operations, the current round of other-machine link diagnosis is suspended.

[0067] After pausing the current round of link diagnosis of another machine, you need to wait until the remote control queue is empty before you can continue to execute the suspended link diagnosis.

[0068] It should be noted that after the host receives the device response to the previous another machine link diagnostic request and processes the device response to the previous another machine link diagnostic request, and / or before sending the next another machine link diagnostic request, it is necessary to use the shortest remote control delay as the sending delay between the two requests to maintain the fastest data acquisition frequency of the relevant equipment during programming.

[0069] Through an optional embodiment of the present application, when it is determined that the remote control device is to perform a remote control operation, the front-end processor of the controlled device is prohibited from performing another machine link diagnosis, thereby achieving that when performing the remote control operation, the FEP's another machine link diagnosis will not be encountered. This solves the problem that when performing remote control operation through the HMI, the FEP's another machine link diagnosis may be encountered, resulting in reduced efficiency of the remote control operation. Furthermore, when performing the remote control operation, the FEP's another machine link diagnosis will not be encountered, thereby improving the efficiency of the remote control operation.

[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0071] In this embodiment, a control device for link diagnosis is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0072] Figure 4 is a structural block diagram of a control device for link diagnosis according to an embodiment of the present application, the device comprising:

[0073] The receiving module 42 is used to receive an activation command sent by the remote control device when the remote control device performs a first operation, wherein the first operation includes at least one of the following: the remote control device displays the program control interface for a time period greater than or equal to a first preset time period, and the remote control device receives a target operation of a target object; wherein the target operation is used to instruct the target object to select the program control card information of the controlled network device in the program control interface;

[0074] The response module 44 is used to respond to the activation command, determine that the remote control device is to perform a remote control operation, and adjust the state of the front-end processor to a remote control ready state, wherein when the state of the front-end processor is the remote control ready state, the front-end processor is suspended from performing another machine link diagnosis.

[0075] Through the above-mentioned device, when the time length of the remote control device displaying the program control interface is greater than or equal to the first preset time length, or the remote control device receives the operation of the target object selecting the program control card information of the controlled network device in the program control interface, etc., the activation command sent by the remote control device is received; the front-end processor of the controlled network device responds to the activation command, determines that the remote control device is to perform a remote control operation, and adjusts the state of the front-end processor to a remote control ready state to suspend the front-end processor from performing another machine link diagnosis. In other words, when receiving the activation command sent by the remote control device, the front-end processor of the controlled device is controlled to prohibit the execution of another machine link diagnosis. Through the above-mentioned technical solution, the problem that when performing remote control operation through HMI, another machine link diagnosis of FEP may be encountered, resulting in a decrease in the efficiency of remote control operation can be solved. Thereby, when performing remote control operation, another machine link diagnosis of FEP will not be encountered, thereby improving the efficiency of remote control operation.

[0076] In an exemplary embodiment, the response module 44 is also used to adjust the sending delay of the target master station in the front-end machine to the shortest remote control delay, wherein the target master station is a master station connected to the controlled network device; when receiving a control instruction sent by the remote control device, the target master station is controlled to send the control instruction to the controlled network device according to the shortest remote control delay.

[0077] In an exemplary embodiment, the response module 44 is also used to receive a cancel command sent by the remote control device when the remote control device executes a second operation, wherein the second operation includes at least one of the following: the remote control device does not display the program control interface for a period of time greater than or equal to a second preset period of time, and the remote control device completes the remote control operation; in response to the cancel command, determining that the remote control device has completed the remote control operation, and controlling the state of the front-end processor to be adjusted to a remote control cancel state, wherein when the state of the front-end processor is in the remote control cancel state, the front-end processor is allowed to perform another machine link diagnosis.

[0078] In an exemplary embodiment, the response module 44 is also used to adjust the sending delay of the target master station in the front-end machine to a default delay, wherein the target master station is a master station connected to the controlled network device; when performing link diagnosis of another machine, the target master station is controlled to send a link diagnosis request to the controlled network device according to the default delay.

[0079] In an exemplary embodiment, the response module 44 is also used to start a timer and determine whether a control instruction sent by the remote control device is received before the timer times out; if it is determined that the control instruction sent by the remote control device is received before the timer times out, the control instruction is sent to the controlled network device to adjust the parameter information of the controlled network device according to the control instruction; if it is determined that the control instruction sent by the remote control device is not received before the timer times out, the state of the front-end is adjusted to the remote control cancellation state.

[0080] In an exemplary embodiment, the response module 44 is further used to determine whether the other machine link diagnosis is being executed when a control instruction sent by the remote control device is received; and to determine whether a complete response information sent by the diagnosed device is received when it is determined that the other machine link diagnosis is being executed, wherein, in the process of executing the other machine link diagnosis, the front-end processor sends a diagnostic link request to each diagnosed device respectively, so as to determine the link information between the front-end processor and each diagnosed device respectively according to the complete response information sent by each diagnosed device; and when it is determined that the complete response information sent by the diagnosed device is received, the execution of the other machine link diagnosis is suspended, and the control instruction is sent to the controlled network device.

[0081] In an exemplary embodiment, the response module 44 is also used to determine whether the local remote control queue of the front-end is an empty queue, wherein the local remote control queue is used to carry the control instructions sent by the remote control device; when the local remote control queue of the front-end is an empty queue, continue to execute the link diagnosis of the other machine to send link diagnosis requests to other diagnosed devices; when the local remote control queue of the front-end is a non-empty queue, continue to suspend the execution of the link diagnosis of the other machine.

[0082] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0083] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0084] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0085] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0086] S1, receiving an activation command sent by the remote control device when the remote control device performs a first operation, wherein the first operation includes at least one of the following: the remote control device displays a program-controlled interface for a time period greater than or equal to a first preset time period, and the remote control device receives a target operation of a target object to select program-controlled card information of the controlled network device in the program-controlled interface; wherein the target operation is used to indicate the target object;

[0087] S2, in response to the activation command, determining that the remote control device is to perform a remote control operation, and adjusting the state of the front-end processor to a remote control ready state, wherein when the state of the front-end processor is the remote control ready state, pausing the front-end processor to perform another machine link diagnosis.

[0088] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0089] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0090] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0091] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A link diagnosis control method, characterized in that: The front-end processor used for the controlled network equipment includes: In the case where the remote control device performs a first operation, receiving an activation command sent by the remote control device, wherein the first operation includes at least one of the following: the remote control device displays the program-controlled interface for a time period greater than or equal to a first preset time period, and the remote control device receives a target operation of a target object to select program-controlled card information of the controlled network device in the program-controlled interface; wherein the target operation is used to indicate the target object; In response to the activation command, it is determined that the remote control device is to perform a remote control operation, and the state of the front end processor is adjusted to a remote control ready state, wherein when the state of the front end processor is the remote control ready state, the front end processor is suspended from performing another machine link diagnosis.

2. The link diagnosis control method according to claim 1, characterized in that: After adjusting the state of the front-end processor of the controlled network device to a remote control ready state, the method further includes: Adjusting the sending delay of the target master station in the front-end to the shortest remote control delay, wherein the target master station is a master station connected to the controlled network device; When receiving the control instruction sent by the remote control device, the target master station is controlled to send the control instruction to the controlled network device according to the shortest remote control delay.

3. The link diagnosis control method according to claim 1, characterized in that: After adjusting the state of the front-end processor to the remote control ready state, the method further includes: In the case where the remote control device performs a second operation, receiving a cancel command sent by the remote control device, wherein the second operation includes at least one of the following: the remote control device does not display the program control interface for a period greater than or equal to a second preset period, and the remote control device completes the remote control operation; In response to the cancel command, it is determined that the remote control device has completed the remote control operation, and the state of the front-end processor is controlled to be adjusted to a remote control cancel state, wherein when the state of the front-end processor is the remote control cancel state, the front-end processor is allowed to perform another machine link diagnosis.

4. The link diagnosis control method according to claim 3, characterized in that: After controlling the state of the front-end processor to be adjusted to the remote control cancellation state, the method further includes: Adjusting the sending delay of the target master station in the front-end processor to a default delay, wherein the target master station is a master station connected to the controlled network device; In the case of executing another machine link diagnosis, the target master station is controlled to send a link diagnosis request to the controlled network device according to the default delay.

5. The link diagnosis control method according to claim 1 or 3, characterized in that: After adjusting the state of the front-end processor to the remote control ready state, the method further includes: Starting a timer and determining whether a control instruction sent by the remote control device is received before the timer times out; In the case where it is determined that the control instruction sent by the remote control device is received before the timer times out, sending the control instruction to the controlled network device to adjust the parameter information of the controlled network device according to the control instruction; When it is determined that no control instruction sent by the remote control device is received before the timer times out, the state of the front-end processor is adjusted to a remote control cancellation state.

6. The link diagnosis control method according to claim 1, characterized in that: After adjusting the state of the front-end processor of the controlled network device to a remote control ready state, the method further includes: In case of receiving the control instruction sent by the remote control device, determining whether the other machine link diagnosis is being executed; In the case where it is determined that the link diagnosis of the other machine is being performed, determining whether complete response information sent by the diagnosed device is received, wherein in the process of performing the link diagnosis of the other machine, the front end processor sends a diagnostic link request to each diagnosed device respectively, so as to determine the link information between the front end processor and each diagnosed device respectively according to the complete response information sent by each diagnosed device; When it is determined that the complete response information sent by the diagnosed device is received, the execution of the link diagnosis of the other machine is suspended, and the control instruction is sent to the controlled network device.

7. The link diagnosis control method according to claim 6, characterized in that: After sending the control instruction to the controlled network device, the method further includes: Determine whether a local remote control queue of the front-end processor is an empty queue, wherein the local remote control queue is used to carry the control instruction sent by the remote control device; When the local remote control queue of the front-end processor is an empty queue, continue to perform the link diagnosis of the other machine to send a link diagnosis request to other diagnosed devices; When the local remote control queue of the front-end processor is a non-empty queue, the link diagnosis of the other machine continues to be suspended.

8. A control device for link diagnosis, characterized in that: The front-end processor used for the controlled network equipment includes: A receiving module, configured to receive an activation command sent by the remote control device when the remote control device performs a first operation, wherein the first operation includes at least one of the following: the remote control device displays a program-controlled interface for a time period greater than or equal to a first preset time period, and the remote control device receives a target operation of a target object; wherein the target operation is used to instruct the target object to select program-controlled card information of the controlled network device in the program-controlled interface; The response module is used to respond to the activation command, determine that the remote control device is to perform a remote control operation, and adjust the state of the front-end processor to a remote control ready state, wherein when the state of the front-end processor is the remote control ready state, the front-end processor is suspended from performing another machine link diagnosis.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.