[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114745257B - Data frame debugging method, device, equipment and storage medium - Google Patents

Data frame debugging method, device, equipment and storage medium Download PDF

Info

Publication number
CN114745257B
CN114745257B CN202210308885.6A CN202210308885A CN114745257B CN 114745257 B CN114745257 B CN 114745257B CN 202210308885 A CN202210308885 A CN 202210308885A CN 114745257 B CN114745257 B CN 114745257B
Authority
CN
China
Prior art keywords
data frame
data
debugging
edge computing
graphical interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210308885.6A
Other languages
Chinese (zh)
Other versions
CN114745257A (en
Inventor
高政
王孙骏
朱静强
陈圣斌
宋小平
蔡国元
张明雷
杜运领
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Kongtrolink Information Technology Co ltd
Original Assignee
Hangzhou Kongtrolink Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Kongtrolink Information Technology Co ltd filed Critical Hangzhou Kongtrolink Information Technology Co ltd
Priority to CN202210308885.6A priority Critical patent/CN114745257B/en
Publication of CN114745257A publication Critical patent/CN114745257A/en
Application granted granted Critical
Publication of CN114745257B publication Critical patent/CN114745257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a data frame debugging method, a device, equipment and a storage medium, wherein the method establishes connection between an edge computing host and a visual graphical interface tool; responding to a debugging request of a target data frame, closing a transmission switch of a transmission data frame in a visual graphical interface tool, and stopping the transmission of the next transmission data frame; storing the context data of the current transmission data frame and the context data of the reception data frame; the visual graphical interface tool is used for displaying the context data of the transmitted data frame and the context data of the received data frame, and the visual graphical interface tool is used for checking the static data of the current data frame interaction process, restoring the context environment of the data frame dynamic interaction process when the edge computing host normally operates, so that the effect of dynamic interaction data frame static perspective is achieved, the problems existing in the data frame analysis process are found out quickly, the problem is located quickly, and the data frame debugging efficiency is improved.

Description

Data frame debugging method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for debugging a data frame.
Background
The link of the foundation in the process of digital transformation of factories in the field of industrial Internet of things is to realize interconnection and transformation of industrial field sensors or intelligent equipment, so that the industrial field sensors or intelligent equipment can report data to a data acquisition system in a standardized interface mode. In the process of interconnection of the sensors or the intelligent devices, some sensors or intelligent devices need to complete data acquisition through a digital interface, and when an acquisition host is first interconnected with the sensors or the intelligent devices, protocol development is needed. In the protocol development process, the interactive data frame between the acquisition host and the sensor or the intelligent device needs to be debugged in a field or remote mode to confirm whether the access mode is correct.
The traditional data frame debugging mode is to send a data query frame or a setting frame of the sensor or the intelligent equipment through a serial port debugging tool or a network debugging tool, wait for the sensor or the intelligent equipment to return, compare the returned result with the developed analysis mode, and see whether the data analysis is correct or not.
However, the debugging mode of the data interaction frame in the prior art is mutually independent from the dynamic interaction process of the protocol data frame when the acquisition host runs, the data frame debugging efficiency is low, and when some signal points in the data frame are in error, the data frame cannot be checked, so that the problem of quick positioning cannot be solved.
Disclosure of Invention
The application provides a data frame debugging method, a device, equipment and a storage medium, thereby solving the technical problems that the debugging mode of a data interaction frame in the prior art is mutually independent with the dynamic interaction process of a protocol data frame when a collection host operates, the data frame debugging efficiency is low, the data frame cannot be checked when certain signal points in the data frame are in error, and the problem of quick positioning cannot be solved.
In a first aspect, the present application provides a data frame debugging method, including:
establishing connection between an edge computing host and a visual graphical interface tool;
responding to a debugging request of a target data frame, closing a transmission switch of a transmission data frame in the visual graphical interface tool, and stopping the transmission of the next transmission data frame;
storing the context data of the current transmission data frame and the context data of the reception data frame;
and displaying the context data of the sending data frame and the context data of the receiving data frame through the visual graphical interface tool.
The application provides a data frame debugging method, which realizes a context-based static perspective method of an edge device data frame through a graphical tool, and in the data frame interaction process of an edge computing host and the device, if a certain interaction data frame needs to be debugged, the running process of the data frame interaction can be paused, the static data of the current data frame interaction process is checked through a visual graphical interface tool, and the context environment of the dynamic interaction process of the data frame is restored when the edge computing host operates normally, so that the effect of static perspective of the dynamic interaction data frame is achieved, thus the problems existing in the data frame analysis process can be found out quickly, the problem of quick positioning can be solved, and the data frame debugging efficiency can be improved.
Optionally, before the connection between the edge computing host and the visual graphical interface tool, the method further comprises:
determining an interactive data frame of target equipment in a ladder diagram mode, packaging the interactive data frame into a ladder diagram independent page form, and compiling the ladder diagram to generate an executable file which can be operated by an edge computing host;
and issuing the executable file to an edge computing host.
Before the edge computing host is connected with the visual graphical interface tool, a certain device interaction data frame is developed in a ladder diagram mode, is packaged into a ladder diagram independent page mode, generates executable files which can be operated by the edge computing host through ladder diagram compiling, and is issued to the edge computing host to operate so that the edge computing host can conduct data frame interaction.
Optionally, after the displaying the context data of the transmission data frame and the context data of the reception data frame, the method further includes:
and according to the context data of the sending data frame and the context data of the receiving data frame, positioning the problem of the interactive data frame, and determining the debugging problem of the interactive data frame, wherein the debugging problem comprises a data frame development logic problem and a data frame construction problem.
Here, the context condition of the interactive data frame can be checked statically through the visual graphical interface tool, so that the context environment of the dynamic interaction process of the data frame when the edge computing host normally operates is restored, the logical problem or the data frame construction problem of the data frame development is automatically and rapidly positioned, and the data frame debugging efficiency is further improved.
Optionally, after the determining of the debug problem of the interactive data frame, the method further comprises:
modifying the interactive data frame according to the debugging problem to obtain a modified data frame;
the modified data frame is packaged into a ladder diagram independent page form, and a modified executable file which can be operated by an edge computing host is generated through compiling of the ladder diagram;
and issuing the modified executable file to an edge computing host.
The method and the device can automatically modify the interactive data frame according to the debugging problem so as to realize rapid debugging of the data frame, improve the debugging efficiency of the data frame and further ensure the normal interaction between the edge computing host and the equipment.
Optionally, after the connection between the edge computing host and the visual graphical interface tool is established, the method further comprises:
and displaying successful connection on the visual graphical interface tool.
Here, after the connection between the edge computing host and the visual graphical interface tool is established, the connection success can be displayed on the visual graphical interface tool, and the connection success prompt is carried out, so that the stability and the reliability of the connection are ensured, and the data frame debugging efficiency is further improved.
Optionally, the establishing the connection between the edge computing host and the visual graphical interface tool includes:
establishing connection between the edge computing host and the visual graphical interface tool through a serial port or a network port;
or,
and establishing connection between the edge computing host and the visual graphical interface tool in a wired network or wireless network mode.
Here, the connection between the edge computing host and the visual graphical interface tool can be realized in various modes, so that the reliability and flexibility of connection and the reliability of data frame debugging are ensured.
Optionally, the context data includes at least one of whether the sensor or smart device object creation is successful, a data interaction peripheral port initialization parameter, whether the data query peripheral port initialization is successful, a transmit data frame transmit switch state, a transmit buffer size, a transmit data frame total number, a transmit data frame length, a transmit data frame count, a receive data frame accept switch state, a receive buffer size, whether there is a receive data frame, a receive data frame length, a receive data frame count, whether the check of the receive data frame is correct, a receive data frame response time, receive data frame raw data, a receive data frame data portion, and a signal point value contained within the receive data frame.
In a second aspect, the present application provides a data frame debugging device, including:
the connection module is used for establishing connection between the edge computing host and the visual graphical interface tool;
the first processing module is used for responding to a debugging request of a target data frame, closing a transmission switch of a transmission data frame in the visual graphical interface tool and stopping the transmission of the next transmission data frame;
the storage module is used for storing the context data of the current transmission data frame and the context data of the reception data frame;
and the first display module is used for displaying the context data of the sending data frame and the context data of the receiving data frame through the visual graphical interface tool.
Optionally, before the connection module establishes the connection between the edge computing host and the visual graphical interface tool, the apparatus further comprises:
a second processing module for: determining an interactive data frame of target equipment in a ladder diagram mode, packaging the interactive data frame into a ladder diagram independent page form, and compiling the ladder diagram to generate an executable file which can be operated by an edge computing host; and issuing the executable file to an edge computing host.
Optionally, after the first display module displays the context data of the transmission data frame and the context data of the reception data frame, the apparatus further includes:
and the determining module is used for positioning the problems of the interactive data frames according to the context data of the sending data frames and the context data of the receiving data frames and determining the debugging problems of the interactive data frames, wherein the debugging problems comprise data frame development logic problems and data frame construction problems.
Optionally, after the determining module determines the debug problem of the interactive data frame, the apparatus further includes:
a third processing module for: modifying the interactive data frame according to the debugging problem to obtain a modified data frame; the modified data frame is packaged into a ladder diagram independent page form, and a modified executable file which can be operated by an edge computing host is generated through compiling of the ladder diagram; and issuing the modified executable file to an edge computing host.
Optionally, after the connection module establishes a connection between the edge computing host and the visual graphical interface tool, the apparatus further includes:
and the second display module is used for displaying successful connection on the visual graphical interface tool.
Optionally, the connection module is specifically configured to:
establishing connection between the edge computing host and the visual graphical interface tool through a serial port or a network port;
or,
and establishing connection between the edge computing host and the visual graphical interface tool in a wired network or wireless network mode.
Optionally, the context data includes at least one of whether the sensor or smart device object creation is successful, a data interaction peripheral port initialization parameter, whether the data query peripheral port initialization is successful, a transmit data frame transmit switch state, a transmit buffer size, a transmit data frame total number, a transmit data frame length, a transmit data frame count, a receive data frame accept switch state, a receive buffer size, whether there is a receive data frame, a receive data frame length, a receive data frame count, whether the check of the receive data frame is correct, a receive data frame response time, receive data frame raw data, a receive data frame data portion, and a signal point value contained within the receive data frame.
In a third aspect, the present application provides a data frame debugging device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory, causing the at least one processor to perform the data frame debugging method as described above in the first aspect and the various possible designs of the first aspect.
In a fourth aspect, the present invention provides a computer readable storage medium having stored therein computer executable instructions which, when executed by a processor, implement the data frame debugging method according to the first aspect and the various possible designs of the first aspect.
In a fifth aspect, the present invention provides a computer program product comprising a computer program which, when executed by a processor, implements the data frame debugging method according to the first aspect and the various possible designs of the first aspect.
According to the data frame debugging method, device and equipment and storage medium, the method realizes the static perspective method of the data frame of the edge equipment based on the context environment through a graphical tool, in the data frame interaction process of the edge computing host and the equipment, if a certain interaction data frame needs to be debugged, the operation process of the data frame interaction can be paused, the static data of the current data frame interaction process is checked through a visual graphical interface tool, the context environment of the dynamic interaction process of the data frame is restored when the edge computing host operates normally, the static perspective effect of the dynamic interaction data frame is achieved, so that the problems existing in the data frame analysis process can be found quickly, the problem is located quickly, and the data frame debugging efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic diagram of a data frame debug system architecture according to an embodiment of the present application;
fig. 2 is a flow chart of a data frame debugging method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of context data of an interactive data frame in an edge computing host according to an embodiment of the present disclosure;
fig. 4 is a flowchart of another data frame debugging method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data frame debugging device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data frame debugging device according to an embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The link of the foundation in the process of digital transformation of factories in the field of industrial Internet of things is to realize interconnection and transformation of industrial field sensors or intelligent equipment, so that the industrial field sensors or intelligent equipment can report data to a data acquisition system in a standardized interface mode. In the process of interconnection of the sensors or the intelligent devices, some sensors or intelligent devices need to complete data acquisition through digital interfaces (such as RS485, RS232, CAN and the like), and when an acquisition host is first interconnected with the sensors or the intelligent devices, protocol development is needed. In the protocol development process, the interactive data frame between the acquisition host and the sensor or the intelligent device needs to be debugged in a field or remote mode to confirm whether the access mode is correct. In the traditional mode, a data query frame or a setting frame of the sensor or the intelligent equipment is sent through a serial port debugging tool or a network debugging tool, the sensor or the intelligent equipment is waited to return, and after the sensor or the intelligent equipment returns, the data is compared with a developed analysis mode to see whether the data analysis is correct or not. The debugging mode of the data interaction frame in the mode is mutually independent of the dynamic interaction process of the protocol data frame when the acquisition host runs, and particularly, when certain signal points in the data frame are analyzed to be in error, the debugging process is low in efficiency. On the one hand, the method is only suitable for field debugging of engineers, and the acquisition host needs to be disassembled, so that the codes of the acquisition host are operated in a debugging environment, and the cost is high and the period is long; on the other hand, looking at the sensor or smart device interaction data frames in a way that breaks point debugging in a program development environment, the risk of the entire product code being unintentionally modified is very high. In addition, when the debugging mode is adopted, the data query frame is input on the terminal printing interface through the printing mode of the acquisition host terminal, the data query frame is sent to the sensor or the intelligent equipment through the acquisition host, the intelligent equipment prints on the terminal when the data frame is returned, although the debugging method of the mode is synchronously carried out with the dynamic interaction process of the protocol data frame when the acquisition host operates, a debugging engineer cannot check the context environment related to the analysis data frame when the data frame is analyzed, particularly when some signal points in the data frame are analyzed and have errors, the analysis is carried out according to the independent data interaction frame, the graphical checking method is omitted, and the problem cannot be rapidly located.
In order to solve the above problems, embodiments of the present application provide a data frame debugging method, apparatus, device, and storage medium, where the method implements a context-based static perspective method for an edge device data frame through a graphical tool, and if a certain interactive data frame needs to be debugged during a data frame interaction process between an edge computing host and a device, the running process of the data frame interaction can be paused, static data of the current data frame interaction process is checked through a visual graphical interface tool, and the context environment of the data frame dynamic interaction process during normal operation of the edge computing host is restored.
Optionally, fig. 1 is a schematic diagram of a data frame debug system architecture provided in an embodiment of the present application, and as shown in fig. 1, the architecture includes an edge computing host 101, a visual graphical interface tool 102, and a sensor or smart device 103.
Alternatively, the edge computing host 101 may be an embedded single-chip microcomputer system based on a micro control unit (Micro Controller Unit, MCU) without an operating system, or may be an embedded system with a real-time operating system, such as embedded Linux. In the embodiment of the application, the MCU system without an operating system is taken as an example, the debug interface is a network port, the debug IP is 192.0.0.65, the port number is 1001, the intelligent device interconnected with the edge computing host is an intelligent ammeter (YD 2037W), the communication interface is a serial port, and the communication protocol is a standard MODBUS.
According to the method, the device and the system, the static perspective method of the data frames of the edge equipment based on the context environment can be realized through a graphical tool, the operation process of data frame interaction can be paused if a certain interaction data frame needs to be debugged in the data frame interaction process of the edge computing host and the equipment, the static data of the current data frame interaction process is checked through a visual graphical interface tool, the context environment of the dynamic interaction process of the data frame is restored when the edge computing host operates normally, the static perspective effect of the dynamic interaction data frame is achieved, and therefore the problems in the data frame analysis process can be found rapidly.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the architecture of the data frame debug system. In other possible embodiments of the present application, the architecture may include more or fewer components than those illustrated, or some components may be combined, some components may be separated, or different component arrangements may be specifically determined according to the actual application scenario, and the present application is not limited herein. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
In addition, the network architecture and the service scenario described in the embodiments of the present application are for more clearly describing the technical solution of the embodiments of the present application, and do not constitute a limitation on the technical solution provided in the embodiments of the present application, and as a person of ordinary skill in the art can know, with evolution of the network architecture and appearance of a new service scenario, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The following describes the technical scheme of the present application in detail with reference to specific embodiments:
optionally, fig. 2 is a flow chart of a data frame debugging method provided in an embodiment of the present application. The execution main body of the embodiment of the application can be data frame debugging equipment, and the specific execution main body can be determined according to an actual application scene. As shown in fig. 2, the method comprises the steps of:
s201: and establishing connection between the edge computing host and the visual graphical interface tool.
Optionally, establishing a connection between the edge computing host and the visual graphical interface tool includes:
establishing connection between the edge computing host and the visual graphical interface tool through a serial port or a network port; or, the edge computing host is connected with the visual graphical interface tool in a wired network or wireless network mode.
Here, the embodiment of the application can realize the connection between the edge computing host and the visual graphical interface tool in various modes, so that the reliability and flexibility of the connection and the reliability of data frame debugging are ensured.
Optionally, after establishing the connection between the edge computing host and the visual graphical interface tool, the method further comprises:
and displaying the successful connection on the visual graphical interface tool.
Here, after the connection between the edge computing host and the visual graphical interface tool is established, the embodiment of the application can also display the connection success on the visual graphical interface tool, and prompt the connection success, so that the stability and the reliability of the connection are ensured, and the data frame debugging efficiency is further improved.
Optionally, before the edge computing host is connected with the visual graphical interface tool, the method further comprises:
determining an interactive data frame of the target equipment in a ladder diagram mode, packaging the interactive data frame into a ladder diagram independent page form, and compiling the ladder diagram to generate an executable file which can be operated by the edge computing host; and issuing the executable file to an edge computing host.
Before the edge computing host is connected with the visual graphical interface tool, a certain device interaction data frame is developed in a ladder diagram mode, is packaged into a ladder diagram independent page mode, is compiled through the ladder diagram to generate an executable file which can be operated by the edge computing host, and is issued to the edge computing host to operate, so that the edge computing host can conduct data frame interaction.
S202: and responding to the debugging request of the target data frame, closing a transmission switch of the transmission data frame in the visual graphical interface tool, and stopping the transmission of the next transmission data frame.
When a certain frame of the interactive data frame between the edge computing host and the device needs to be debugged, a sending data frame sending switch in the context data of the data frame can be closed in the visual graphical interface tool, the sending of the next sending data frame is stopped, at the moment, the data interaction process between the edge computing host and the device is suspended, and the context data of the current sending data frame and the receiving data frame are reserved in the current in a static mode.
Optionally, the developer statically checks the context condition of the interactive data frame through a visual graphic tool, so as to restore the context environment of the dynamic interactive process of the data frame when the edge computing host normally operates, and further quickly locate whether the data frame is a logical problem or a data frame construction problem.
S203: and saving the context data of the current transmission data frame and the context data of the reception data frame.
Optionally, the context data includes at least one of whether the sensor or smart device object creation was successful, a data interaction peripheral port initialization parameter, whether the data query peripheral port was initialized to be successful, a transmit data frame transmit switch state, a transmit buffer size, a transmit data frame total number, a transmit data frame length, a transmit data frame count, a receive data frame accept switch state, a receive buffer size, whether there is a receive data frame, a receive data frame length, a receive data frame count, whether the check of the receive data frame is correct, a receive data frame response time, receive data frame raw data, a receive data frame data portion, and a signal point value contained within the receive data frame.
Optionally, fig. 3 is a schematic view of context data of an interactive data frame in an edge computing host according to an embodiment of the present application, where the interactive data frame in the edge computing host may include the data in fig. 3.
In some possible implementations, the context data is stored in the memory when the acquisition host operates normally, and can be read out in real time through a debug port of the acquisition host and displayed in real time on a visual graphical interface tool running on a data frame debug device (e.g. a personal computer), where the debug port can be a serial interface (e.g. RS485, RS232, etc.) or a network interface (TCP, UDP, etc.).
S204: the context data of the transmitted data frame and the context data of the received data frame are displayed by the visual graphical interface tool.
The embodiment of the application provides a data frame debugging method, which realizes a context-based static perspective method of an edge device data frame through a graphical tool, and in the data frame interaction process of an edge computing host and the device, if a certain interaction data frame needs to be debugged, the running process of the data frame interaction can be paused, the static data of the current data frame interaction process is checked through a visual graphical interface tool, and the context of the dynamic interaction process of the data frame is restored when the edge computing host operates normally, so that the effect of static perspective of the dynamic interaction data frame is achieved, thus the problems existing in the data frame analysis process can be found quickly, the problem of quick positioning can be solved, and the data frame debugging efficiency can be improved.
Optionally, the embodiment of the present application may further implement problem positioning and modification of a data frame, and correspondingly, fig. 4 is a schematic flow chart of another data debugging method provided in the embodiment of the present application, as shown in fig. 4, where the method includes:
s401: establishing connection between an edge computing host and a visual graphical interface tool;
s402: responding to a debugging request of a target data frame, closing a transmission switch of a transmission data frame in a visual graphical interface tool, and stopping the transmission of the next transmission data frame;
s403: storing the context data of the current transmission data frame and the context data of the reception data frame;
s404: the context data of the transmitted data frame and the context data of the received data frame are displayed by the visual graphical interface tool.
The implementation of steps S401 to S404 is similar to that of steps S201 to S204, and will not be described here.
S405: and according to the context data of the sending data frame and the context data of the receiving data frame, performing problem positioning on the interactive data frame, and determining the debugging problem of the interactive data frame.
The debugging problems comprise a data frame development logic problem and a data frame construction problem.
Optionally, the developer statically checks the context condition of the interactive data frame through a visual graphic tool, so as to restore the context environment of the dynamic interactive process of the data frame when the edge computing host normally operates, and further quickly locate whether the data frame is a logical problem or a data frame construction problem.
According to the embodiment of the application, the context condition of the interactive data frame can be checked statically through the visual graphical interface tool, so that the context environment of the dynamic interaction process of the data frame when the edge computing host normally operates is restored, the logical problem or the data frame construction problem of the data frame development is automatically and rapidly positioned, and the data frame debugging efficiency is further improved.
Optionally, after determining the debug problem of the interactive data frame, further comprising:
modifying the interactive data frame according to the debugging problem to obtain a modified data frame; the modified data frame is packaged into a ladder diagram independent page form, and a modified executable file which can be operated by an edge computing host is generated through compiling of the ladder diagram; and issuing the modified executable file to an edge computing host.
Optionally, after locating the problem, the data frame debugging device may re-modify the sensor or intelligent device interaction data frame, and repeatedly execute problem locating and debugging of the data frame again until normal interaction between the edge computing host and the device is completed.
Optionally, after the interactive data frame between the edge computing host and the sensor or the intelligent device is determined, the interactive data frame is packaged into an independent page form, and can be multiplexed for multiple times in a subsequent scene.
According to the method and the device for debugging the data frame, the interactive data frame can be automatically modified according to the debugging problem, so that the data frame can be quickly debugged, the debugging efficiency of the data frame is improved, and the normal interaction between the edge computing host and the device is further ensured.
Fig. 5 is a schematic structural diagram of a data frame debugging device provided in an embodiment of the present application, and as shown in fig. 5, the device in the embodiment of the present application includes: a connection module 501, a first processing module 502, a saving module 503, and a first display module 504. The data frame debugging means here may be the processor itself or a chip or an integrated circuit implementing the functions of the processor. Here, the division of the connection module 501, the first processing module 502, the saving module 503, and the first display module 504 is only a division of a logic function, and both may be integrated or independent physically.
The connection module is used for establishing connection between the edge computing host and the visual graphical interface tool;
the first processing module is used for responding to the debugging request of the target data frame, closing a transmission switch of the transmission data frame in the visual graphical interface tool and stopping the transmission of the next transmission data frame;
the storage module is used for storing the context data of the current transmission data frame and the context data of the reception data frame;
and the first display module is used for displaying the context data of the sending data frame and the context data of the receiving data frame through the visual graphical interface tool.
Optionally, before the connection module establishes the connection between the edge computing host and the visual graphical interface tool, the apparatus further comprises:
a second processing module for: determining an interactive data frame of the target equipment in a ladder diagram mode, packaging the interactive data frame into a ladder diagram independent page form, and compiling the ladder diagram to generate an executable file which can be operated by the edge computing host; and issuing the executable file to an edge computing host.
Optionally, after the first display module displays the context data of the transmission data frame and the context data of the reception data frame, the apparatus further includes:
and the determining module is used for positioning the problems of the interactive data frames according to the context data of the sending data frames and the context data of the receiving data frames and determining the debugging problems of the interactive data frames, wherein the debugging problems comprise data frame development logic problems and data frame construction problems.
Optionally, after the determining module determines the debug problem of the interactive data frame, the apparatus further includes:
a third processing module for: modifying the interactive data frame according to the debugging problem to obtain a modified data frame; the modified data frame is packaged into a ladder diagram independent page form, and a modified executable file which can be operated by an edge computing host is generated through compiling of the ladder diagram; and issuing the modified executable file to an edge computing host.
Optionally, after the connection module establishes a connection between the edge computing host and the visual graphical interface tool, the apparatus further comprises:
and the second display module is used for displaying successful connection on the visual graphical interface tool.
Optionally, the connection module is specifically configured to:
establishing connection between the edge computing host and the visual graphical interface tool through a serial port or a network port;
or,
and establishing connection between the edge computing host and the visual graphical interface tool in a wired network or wireless network mode.
Optionally, the context data includes at least one of whether the sensor or smart device object creation was successful, a data interaction peripheral port initialization parameter, whether the data query peripheral port was initialized to be successful, a transmit data frame transmit switch state, a transmit buffer size, a transmit data frame total number, a transmit data frame length, a transmit data frame count, a receive data frame accept switch state, a receive buffer size, whether there is a receive data frame, a receive data frame length, a receive data frame count, whether the check of the receive data frame is correct, a receive data frame response time, receive data frame raw data, a receive data frame data portion, and a signal point value contained within the receive data frame.
Fig. 6 is a schematic structural diagram of a data frame debugging device according to an embodiment of the present application. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not limiting of the implementations of the application described and/or claimed herein.
As shown in fig. 6, the data frame debugging device includes: processor 601 and memory 602, the various components are interconnected using different buses, and may be mounted on a common motherboard or in other manners as desired. The processor 601 may process instructions executing within the data frame debugging device, including instructions stored in or on memory for graphical information displayed on an external input/output device, such as a display device coupled to an interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. One processor 601 is illustrated in fig. 6.
The memory 602 is used as a non-transitory computer readable storage medium, and may be used to store a non-transitory software program, a non-transitory computer executable program, and program instructions/modules (e.g., the connection module 501, the first processing module 502, the save module 503, and the first display module 504 shown in fig. 5) corresponding to a method of debugging a data frame in an embodiment of the present application. The processor 601 executes various functional applications and data frame debugging methods, i.e., methods of implementing the data frame debugging device in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The data frame debugging device may further include: an input device 603 and an output device 604. The processor 601, memory 602, input device 603 and output device 604 may be connected by a bus or otherwise, for example in fig. 6.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the data frame debugging device, such as a touch screen, a keypad, a mouse, or a plurality of mouse buttons, a trackball, a joystick, etc. The output means 604 may be an output device such as a display device of a data frame debugging device. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
The data frame debugging device of the embodiment of the present application may be used to execute the technical solutions in the embodiments of the methods of the present application, and its implementation principle and technical effects are similar, and are not repeated here.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and the computer execution instructions are used for realizing the data frame debugging method of any one of the above when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is used for realizing the data frame debugging method of any one of the above steps when being executed by a processor.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method for debugging a data frame, comprising:
establishing connection between an edge computing host and a visual graphical interface tool;
responding to a debugging request of a target data frame, closing a transmission switch of a transmission data frame in the visual graphical interface tool, and stopping the transmission of the next transmission data frame; the target data frame is an interaction data frame in the data frame interaction process of the edge computing host and the equipment;
storing the context data of the current transmission data frame and the context data of the reception data frame;
displaying, by the visual graphical interface tool, the context data of the send data frame and the context data of the accept data frame;
and according to the context data of the sending data frame and the context data of the receiving data frame, positioning the problem of the interactive data frame, and determining the debugging problem of the interactive data frame, wherein the debugging problem comprises a data frame development logic problem and a data frame construction problem.
2. The method of claim 1, further comprising, prior to said establishing a connection between the edge computing host and the visual graphical interface tool:
determining an interactive data frame of target equipment in a ladder diagram mode, packaging the interactive data frame into a ladder diagram independent page form, and compiling the ladder diagram to generate an executable file which can be operated by an edge computing host;
and issuing the executable file to an edge computing host.
3. The method of claim 1, further comprising, after said determining a debug problem for said interactive data frame:
modifying the interactive data frame according to the debugging problem to obtain a modified data frame;
the modified data frame is packaged into a ladder diagram independent page form, and a modified executable file which can be operated by an edge computing host is generated through compiling of the ladder diagram;
and issuing the modified executable file to an edge computing host.
4. A method according to any one of claims 1 to 3, further comprising, after said connecting the edge computing host with the visual graphical interface tool:
and displaying successful connection on the visual graphical interface tool.
5. A method according to any one of claims 1 to 3, wherein said interfacing the edge computing host with the visual graphical interface tool comprises:
establishing connection between the edge computing host and the visual graphical interface tool through a serial port or a network port;
or,
and establishing connection between the edge computing host and the visual graphical interface tool in a wired network or wireless network mode.
6. The method of any of claims 1 to 3, wherein the context data comprises at least one of whether the sensor or smart device object creation was successful, a data interaction peripheral port initialization parameter, whether a data query peripheral port initialization was successful, a transmit data frame transmit switch state, a transmit buffer size, a transmit data frame total number, a transmit data frame length, a transmit data frame count, an accept data frame accept switch state, an accept buffer size, whether there is an accept data frame, an accept data frame length, an accept data frame count, whether a check of an accept data frame is correct, an accept data frame response time, accept data frame raw data, an accept data frame data portion, and a signal point value contained within an accept data frame.
7. A data frame debugging device, comprising:
the connection module is used for establishing connection between the edge computing host and the visual graphical interface tool;
the first processing module is used for responding to a debugging request of a target data frame, closing a transmission switch of a transmission data frame in the visual graphical interface tool and stopping the transmission of the next transmission data frame; the target data frame is an interaction data frame in the data frame interaction process of the edge computing host and the equipment;
the storage module is used for storing the context data of the current transmission data frame and the context data of the reception data frame;
the first display module is used for displaying the context data of the sending data frame and the context data of the receiving data frame through the visual graphical interface tool;
and the determining module is used for positioning the problems of the interactive data frames according to the context data of the sending data frames and the context data of the receiving data frames and determining the debugging problems of the interactive data frames, wherein the debugging problems comprise data frame development logic problems and data frame construction problems.
8. A data frame debugging device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data frame debugging method of any of claims 1-6.
9. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are for implementing the data frame debugging method of any of claims 1 to 6.
CN202210308885.6A 2022-03-28 2022-03-28 Data frame debugging method, device, equipment and storage medium Active CN114745257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210308885.6A CN114745257B (en) 2022-03-28 2022-03-28 Data frame debugging method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210308885.6A CN114745257B (en) 2022-03-28 2022-03-28 Data frame debugging method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114745257A CN114745257A (en) 2022-07-12
CN114745257B true CN114745257B (en) 2024-01-09

Family

ID=82276657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210308885.6A Active CN114745257B (en) 2022-03-28 2022-03-28 Data frame debugging method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114745257B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541229B (en) * 2023-07-07 2023-10-31 西安羚控电子科技有限公司 Data-driven communication debugging method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360007A (en) * 2007-07-30 2009-02-04 辉达公司 Client server system for analysis and performance tuning of remote graphics devices
CN102265262A (en) * 2005-06-07 2011-11-30 爱特梅尔公司 Mechanism for storing and extracting trace information using internal memory in microcontrollers
CN103838669A (en) * 2012-11-26 2014-06-04 辉达公司 System, method, and computer program product for debugging graphics programs locally
CN109977013A (en) * 2019-03-19 2019-07-05 深圳市腾讯信息技术有限公司 A kind of Debugging message acquisition methods, system and device
CN113709131A (en) * 2021-08-22 2021-11-26 山东云海国创云计算装备产业创新中心有限公司 Network data transmission method and device, computer equipment and readable medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265262A (en) * 2005-06-07 2011-11-30 爱特梅尔公司 Mechanism for storing and extracting trace information using internal memory in microcontrollers
CN101360007A (en) * 2007-07-30 2009-02-04 辉达公司 Client server system for analysis and performance tuning of remote graphics devices
CN103838669A (en) * 2012-11-26 2014-06-04 辉达公司 System, method, and computer program product for debugging graphics programs locally
CN109977013A (en) * 2019-03-19 2019-07-05 深圳市腾讯信息技术有限公司 A kind of Debugging message acquisition methods, system and device
CN113709131A (en) * 2021-08-22 2021-11-26 山东云海国创云计算装备产业创新中心有限公司 Network data transmission method and device, computer equipment and readable medium

Also Published As

Publication number Publication date
CN114745257A (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN101251819A (en) Debug method suitable for multi-processor core system chip
CN102662835A (en) Program debugging method of embedded system and embedded system
CN108333566B (en) ZYNQ-based portable radar test system and test method
CN108965052A (en) A kind of data reading system for the electronic control unit software debugging after entrucking
CN105137807A (en) Universal full-digital housekeeping simulation platform
CN101876825B (en) Human-computer interface device of small PLC
CN201867793U (en) Debugging system of basic input/output system
CN102132246A (en) Debug message generation using a selected address type
CN114745257B (en) Data frame debugging method, device, equipment and storage medium
CN111444609A (en) Data processing method and simulation system
CN106909327A (en) A kind of display control unit for industrial control equipment
CN110766600B (en) Image processing system with distributed architecture
CN109507991B (en) Double-shaft servo control platform debugging system and method
US20020099953A1 (en) Debugging of chipcards
CN201749350U (en) Human-machine interface device for miniature PLC
CN105843157B (en) PLC system and its working method with teledata trace trap function
CN114189534A (en) Design method of device interaction software simulation program in Internet of things system
CN111090430B (en) Application software development system under embedded system
EP0107263A2 (en) Man-machine interface
JPH1173210A (en) Emulation method and device therefor
CN103995475B (en) A kind of flexible embedded equipment under test simulator
CN114217927A (en) Thread calling method and device, computer equipment and storage medium
CN204188189U (en) A kind of flexible embedded equipment under test simulator
CN113609052A (en) Chip simulation system based on FPGA and microprocessor and implementation method
CN113903219A (en) Display method and device for programming teaching, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant