CN112165411B - Method and system for monitoring transmission data based on controller - Google Patents
Method and system for monitoring transmission data based on controller Download PDFInfo
- Publication number
- CN112165411B CN112165411B CN202010985813.6A CN202010985813A CN112165411B CN 112165411 B CN112165411 B CN 112165411B CN 202010985813 A CN202010985813 A CN 202010985813A CN 112165411 B CN112165411 B CN 112165411B
- Authority
- CN
- China
- Prior art keywords
- controller
- target processor
- monitoring
- command
- identity information
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and a system for monitoring transmission data based on a controller, and belongs to the technical field of data safety monitoring. The method comprises the following steps: performing network connection on the target processor and the controller; the target processor and the controller mutually send an identity authentication instruction, and the target processor and the controller carry out identity authentication according to the received identity authentication instruction; the target processor calls basic parameter information of the controller, determines debugging parameters according to the basic parameter information, sends the debugging parameters to the controller, and debugs the controller according to the debugging parameters; after the controller is debugged, the target processor sends a monitoring command to the controller, and the controller starts a monitoring task to monitor the transmission data of the target processor. The method is simple to operate and easy to use, can visually observe communication data and can store the data at any time, thereby greatly improving the working efficiency and the detection accuracy and promoting the related technical innovation of software detection of controller products.
Description
Technical Field
The present invention relates to the technical field of data security monitoring, and more particularly, to a method and a system for monitoring transmission data based on a controller.
Background
The software control quality of the air conditioner is an important index influencing the reliability, safety and the like of a product, for example, when the control software detection or RS485 communication data monitoring is required under the condition that a corresponding compiling platform and a simulator are not available, the level and the waveform can only be observed through an oscilloscope, and the correctness of data transmission cannot be judged and analyzed.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for monitoring transmission data based on a controller, including:
selecting a controller aiming at a target processor to be monitored, and carrying out network connection on the target processor and the controller;
after the network connection is completed, controlling the target processor to send an identity information calling instruction to the controller, verifying the identity information calling instruction after the controller receives the identity information calling instruction, verifying the identity information of the target processor, allowing the target processor to call the identity information of the controller after the identity information calling instruction is verified, verifying the identity information of the controller by the target processor, and verifying whether the controller is safe and whether the target processor is matched;
after the controllers are verified and verified to be safe and matched, the target processor sends a controller local parameter calling instruction, the controller receives the calling instruction, allows the target processor to call basic parameter information of the controllers, determines debugging parameters according to the basic parameter information, sends the debugging parameters to the controllers, and debugs the controllers according to the debugging parameters;
after the controller is debugged, the target processor sends a monitoring command to the controller, and the controller starts a monitoring task to monitor the transmission data of the target processor.
Optionally, the debugging parameters include: baud rate, data bits, and check bits.
Optionally, the transmitting data includes: and transmitting data between the target processor and the network server or transmitting data between the target processors.
Optionally, the monitoring command is an active command and a timing command, the active command is actively generated according to the monitoring requirement, and the timing command is generated at a preset time according to the monitoring requirement;
the monitoring command is a 16-ary command.
Optionally, in the process of monitoring the transmission data of the target processor, the transmission data is stored and displayed in real time.
The invention also provides a system for monitoring the transmission data based on the controller, which comprises:
the network connection module is used for selecting a controller aiming at a target processor to be monitored and carrying out network connection on the target processor and the controller;
the verification module is used for controlling the target processor to send an identity information calling instruction to the controller after network connection is completed, verifying the identity information calling instruction after the controller receives the identity information calling instruction, verifying the identity information of target processing, allowing the target processor to call the identity information of the controller after verification is correct, and verifying the identity information of the controller and verifying whether the controller is safe and whether the controller is matched with the target processor or not by the target processor;
the debugging module is used for sending a controller local parameter calling instruction by the target processor after the controllers are verified and verified to be safe and matched, allowing the target processor to call basic parameter information of the controllers after the controllers receive the calling instruction, determining debugging parameters by the target processor according to the basic parameter information, sending the debugging parameters to the controllers, and debugging the controllers according to the debugging parameters;
and the monitoring module is used for sending a monitoring command to the controller by the target processor after the controller is debugged, and starting a monitoring task by the controller to monitor the transmission data of the target processor.
Debugging parameters, including: baud rate, data bits, and check bits.
Transmitting data, comprising: and transmitting data between the target processor and the network server or transmitting data between the target processors.
The monitoring command is an active command and a timing command, the active command is actively generated according to the monitoring requirement, and the timing command is generated at a preset time in a timing mode according to the monitoring requirement;
the monitoring command is a 16-system command.
And storing and displaying the transmission data in real time in the process of monitoring the transmission data of the target processor.
The method is simple to operate and easy to use, can visually observe communication data, can also store the data at any time as a subsequent analysis basis, greatly improves the working efficiency and the detection accuracy, and promotes related technical innovation of software detection of controller products.
Drawings
FIG. 1 is a flow chart of a method for monitoring transmitted data based on a controller according to the present invention;
fig. 2 is a structural diagram of a system for monitoring transmission data based on a controller according to the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
The invention provides a method for monitoring transmission data based on a controller, which comprises the following steps of:
selecting a controller aiming at a target processor to be monitored, and carrying out network connection on the target processor and the controller;
after the network connection is completed, controlling the target processor to send an identity information calling instruction to the controller, verifying the identity information calling instruction after the controller receives the identity information calling instruction, verifying the identity information of the target processor, allowing the target processor to call the identity information of the controller after the identity information calling instruction is verified, verifying the identity information of the controller by the target processor, and verifying whether the controller is safe and whether the target processor is matched;
after the controllers are verified and verified to be safe and matched, the target processor sends a controller local parameter calling instruction, the controller receives the calling instruction, allows the target processor to call basic parameter information of the controllers, determines debugging parameters according to the basic parameter information, sends the debugging parameters to the controllers, and debugs the controllers according to the debugging parameters;
after the controller is debugged, the target processor sends a monitoring command to the controller, and the controller starts a monitoring task to monitor the transmission data of the target processor.
Debugging parameters, including: baud rate, data bits, and check bits.
The baud rate is a modulation rate, which refers to the rate at which the effective data signal modulates the carrier, i.e., the number of times the modulation state of the carrier changes per unit time.
Transmitting data, comprising: and transmitting data between the target processor and the network server or transmitting data between the target processors.
The monitoring command is an active command and a timing command, the active command is actively generated according to the monitoring requirement, and the timing command is generated at a preset time in a timing mode according to the monitoring requirement;
the monitoring command is a 16-ary command.
And storing and displaying the transmission data in real time in the process of monitoring the transmission data of the target processor.
The invention is further illustrated by the following examples:
the target processor in the embodiment of the invention selects a PC, a USB-RS485 passive conversion device, a serial port debugging tool and the like;
firstly, electrifying the controller to operate, connecting the controller and a PC through a data communication line from an RS485 communication end to a USB-RS485 passive conversion device end after the controller can work, and performing identity authentication;
installing a serial port debugging tool on a PC (personal computer), setting relevant parameters required by a baud rate, a data bit, a check bit and the like, and debugging a controller;
after debugging is finished, the serial port debugging tool issues a monitoring command to monitor data transmission of the PC.
The present invention further provides a system 200 for monitoring transmission data based on a controller, as shown in fig. 2, including:
a network connection module 201, which selects a controller for a target processor to be monitored, and performs network connection on the target processor and the controller;
the verification module 202 is used for controlling the target processor to send an identity information calling instruction to the controller after network connection is completed, verifying the identity information calling instruction after the controller receives the identity information calling instruction, verifying the identity information of the target processor, allowing the target processor to call the identity information of the controller after verification is correct, verifying the identity information of the controller by the target processor, and verifying whether the controller is safe and whether the controller is matched with the target processor or not;
the debugging module 203 is used for sending a controller local parameter calling instruction by the target processor after the controllers are verified and verified to be safe and matched, allowing the target processor to call basic parameter information of the controllers after the controllers receive the calling instruction, determining debugging parameters by the target processor according to the basic parameter information, sending the debugging parameters to the controllers, and debugging the controllers according to the debugging parameters;
and in the monitoring module 204, after the controller is debugged, the target processor sends a monitoring command to the controller, and the controller starts a monitoring task to monitor the transmission data of the target processor.
Debugging parameters, including: baud rate, data bits, and check bits.
Transmitting data, comprising: and transmitting data between the target processor and the network server or transmitting data between the target processors.
The monitoring command is an active command and a timing command, the active command is actively generated according to the monitoring requirement, and the timing command is generated at a preset time in a timing mode according to the monitoring requirement;
the monitoring command is a 16-system command.
And storing and displaying the transmission data in real time in the process of monitoring the transmission data of the target processor.
The method is simple to operate and easy to use, can visually observe communication data, can also store the data at any time as a subsequent analysis basis, greatly improves the working efficiency and the detection accuracy, and promotes related technical innovation of software detection of controller products.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The scheme in the embodiment of the application can be implemented by adopting various computer languages, such as object-oriented programming language Java and transliterated scripting language JavaScript.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (8)
1. A method of monitoring transmitted data based on a controller, the method comprising:
selecting a controller aiming at a target processor to be monitored, and carrying out network connection on the target processor and the controller;
after the network connection is completed, controlling the target processor to send an identity information calling instruction to the controller, verifying the identity information calling instruction after the controller receives the identity information calling instruction, verifying the identity information of the target processor, allowing the target processor to call the identity information of the controller after the identity information calling instruction is verified, verifying the identity information of the controller by the target processor, and verifying whether the controller is safe and whether the target processor is matched;
after the controllers are verified and verified to be safe and matched, the target processor sends a controller local parameter calling instruction, the controller receives the calling instruction, allows the target processor to call basic parameter information of the controllers, determines debugging parameters according to the basic parameter information, sends the debugging parameters to the controllers, and debugs the controllers according to the debugging parameters;
after the controller is debugged, the target processor sends a monitoring command to the controller, and the controller starts a monitoring task to monitor the transmission data of the target processor;
the monitoring command is an active command and a timing command, the active command is actively generated according to a monitoring requirement, and the timing command is generated at a preset time in a timing mode according to the monitoring requirement;
the monitoring command is a 16-system command.
2. The method of claim 1, the debugging parameters comprising: baud rate, data bits, and check bits.
3. The method of claim 1, the transmitting data, comprising: and transmitting data between the target processor and the network server or transmitting data between the target processors.
4. The method of claim 1, wherein the transmitted data is stored and displayed in real time during the monitoring of the transmitted data of the target processor.
5. A system for monitoring transmitted data based on a controller, the system comprising:
the network connection module is used for selecting a controller aiming at a target processor to be monitored and carrying out network connection on the target processor and the controller;
the verification module is used for controlling the target processor to send an identity information calling instruction to the controller after network connection is completed, verifying the identity information calling instruction after the controller receives the identity information calling instruction, verifying the identity information of target processing, allowing the target processor to call the identity information of the controller after verification is correct, and verifying the identity information of the controller and verifying whether the controller is safe and whether the controller is matched with the target processor or not by the target processor;
the debugging module is used for sending a controller local parameter calling instruction by the target processor after the controllers are verified and verified to be safe and matched, allowing the target processor to call basic parameter information of the controllers after the controllers receive the calling instruction, determining debugging parameters by the target processor according to the basic parameter information, sending the debugging parameters to the controllers, and debugging the controllers according to the debugging parameters;
the monitoring module is used for sending a monitoring command to the controller by the target processor after the controller is debugged, starting a monitoring task by the controller and monitoring the transmission data of the target processor; the monitoring command is an active command and a timing command, the active command is actively generated according to a monitoring requirement, and the timing command is generated at a preset time in a timing mode according to the monitoring requirement;
the monitoring command is a 16-system command.
6. The system of claim 5, the debugging parameters comprising: baud rate, data bits, and check bits.
7. The system of claim 5, the transmitting data, comprising: and transmitting data between the target processor and the network server or transmitting data between the target processors.
8. The system of claim 5, wherein the transmitted data is stored and displayed in real time during the monitoring of the transmitted data of the target processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010985813.6A CN112165411B (en) | 2020-09-18 | 2020-09-18 | Method and system for monitoring transmission data based on controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010985813.6A CN112165411B (en) | 2020-09-18 | 2020-09-18 | Method and system for monitoring transmission data based on controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112165411A CN112165411A (en) | 2021-01-01 |
CN112165411B true CN112165411B (en) | 2022-04-29 |
Family
ID=73859134
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010985813.6A Active CN112165411B (en) | 2020-09-18 | 2020-09-18 | Method and system for monitoring transmission data based on controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112165411B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108282766A (en) * | 2017-12-27 | 2018-07-13 | 武汉长江通信智联技术有限公司 | It is a kind of industry serial ports turn bluetooth debugging acid method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130031419A1 (en) * | 2011-07-28 | 2013-01-31 | International Business Machines Corporation | Collecting Debug Data in a Secure Chip Implementation |
CN102497581B (en) * | 2011-12-14 | 2014-06-25 | 广州杰赛科技股份有限公司 | Digital-certificate-based video monitoring data transmission method and system |
CN102970177B (en) * | 2012-10-19 | 2015-08-26 | 深圳市计通智能技术有限公司 | A kind of computer supervisory control system communication data bit error analyzing and filter method |
CN210075259U (en) * | 2019-06-18 | 2020-02-14 | 深圳职业技术学院 | SDN network-based data monitoring controller |
CN110879564B (en) * | 2019-10-31 | 2020-12-18 | 军创(厦门)自动化科技有限公司 | Remote debugging and monitoring method and system for PLC (programmable logic controller) |
CN110958224A (en) * | 2019-11-05 | 2020-04-03 | 郑州信大捷安信息技术股份有限公司 | Remote serial port debugging system and method |
-
2020
- 2020-09-18 CN CN202010985813.6A patent/CN112165411B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108282766A (en) * | 2017-12-27 | 2018-07-13 | 武汉长江通信智联技术有限公司 | It is a kind of industry serial ports turn bluetooth debugging acid method |
Also Published As
Publication number | Publication date |
---|---|
CN112165411A (en) | 2021-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170068229A1 (en) | Control system, method, program, and information processing device | |
CN104050075B (en) | The method of testing and device of Andriod application programs | |
CN104834602B (en) | A kind of program dissemination method, device and program delivery system | |
CN107018523A (en) | WIFI module testing method and device | |
CN103676937A (en) | Method and device for processing control parameters in controller | |
CN109032995B (en) | Data information transmission method, device, equipment and storage medium | |
CN107170218B (en) | Remote assistance method and system for debugging fire alarm system | |
EP2778809A2 (en) | Simulation methods and systems for an aircraft | |
CN111372232A (en) | Method and system for first connection pairing of electric energy meter and Bluetooth circuit breaker | |
CN113672441A (en) | Method and device for testing intelligent equipment | |
CN110018935A (en) | Store apparatus testing method, system, device and computer readable storage medium | |
CN107844374A (en) | The task executing method of terminal device, device, electronic equipment, storage medium | |
CN110908708B (en) | Code release method, device and system | |
CN110471394B (en) | Task testing method, device and system, storage medium and processor | |
CN113220518B (en) | Chip verification system and chip verification method | |
CN112165411B (en) | Method and system for monitoring transmission data based on controller | |
KR20230015134A (en) | Apparatus and method for controling automation of plant | |
CN107733082B (en) | Method and system for collecting abnormal information of relay protection equipment device | |
CN114638097A (en) | Method, device and equipment for calibrating ECU (electronic control Unit) program parameters and storage medium | |
KR101475596B1 (en) | dispatcher training system and its control method | |
CN116627748A (en) | Detection method, detection system, monitoring equipment and electronic equipment | |
CN115361274B (en) | Alarm message processing method and device | |
CN101877874B (en) | The transmission of performance data and output intent, system and equipment | |
KR100302119B1 (en) | Debugging method using real-time monitoring tool | |
CN117390853A (en) | Simulation method, device, equipment and storage medium based on man-machine interaction |
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 |