CN109818843A - Monitoring analyzing method and device, storage medium and the electronic device of bus - Google Patents
Monitoring analyzing method and device, storage medium and the electronic device of bus Download PDFInfo
- Publication number
- CN109818843A CN109818843A CN201910141115.5A CN201910141115A CN109818843A CN 109818843 A CN109818843 A CN 109818843A CN 201910141115 A CN201910141115 A CN 201910141115A CN 109818843 A CN109818843 A CN 109818843A
- Authority
- CN
- China
- Prior art keywords
- mcu
- bus
- iobus
- data
- parsing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The present invention provides monitoring analyzing method and device, storage medium and the electronic devices of a kind of bus;Wherein, this method comprises: the first MCU of each of multiple first microprogram control unit MCU monitors input/output bus IOBUS all the way respectively;The data that first MCU will be listened to parse, and the data after parsing are transferred to host computer by exchanger chip.Through the invention, solve the parsing that the mode worked at the same time by the way of training in rotation or using double bus audiomonitor in the related technology carries out two-way IOBUS bus, the problem of synchronism of the transmission speed and data transmission that lead to data is restricted fruit.
Description
Technical field
The present invention relates to computer fields, are situated between in particular to a kind of monitoring analyzing method and device of bus, storage
Matter and electronic device.
Background technique
IOBUS is used in safety PLC (Programmable Logic Controller, programmable logic controller (PLC))
(Input/Output BUS, input/output bus) bus needs engineering in development phase and maintenance stage as communication modes
Personnel fully understand equipment current operating conditions, and wherein the communication information of IOBUS bus also becomes particularly important, existing this kind of
Equipment is typically all the communications protocol based on international standard, and the agreement of single channel is carried out parsing by embedded development and passes through ether
Net passes to host computer, and when this case that the IOBUS of redundancy, existing equipment will have inconvenient to use and redundancy
The poor problem of data synchronism.That is, an equipment be difficult to the IOBUS buses of two redundancies worked at the same time into
Row parsing is monitored, even if the mode that can be worked at the same time in a manner of poll or using double bus audiomonitor, carries out two-way
The synchronism of the parsing of IOBUS bus, transmission speed and the data transmission of data will receive limitation.
In view of the above problems in the related art, not yet there is effective solution at present.
Summary of the invention
The embodiment of the invention provides monitoring analyzing method and device, storage medium and the electronic device of a kind of bus, with
It at least solves to carry out two-way by the way of training in rotation or using the mode that double bus audiomonitor works at the same time in the related technology
The problem of synchronism of the parsing of IOBUS bus, the transmission speed and data transmission that lead to data is restricted.
According to one embodiment of present invention, a kind of monitoring analyzing device of bus is provided, comprising: multiple first shreds
Sequence controller MCU, the 2nd MCU and exchanger chip;Wherein, each described first MCU is total for monitoring input and output all the way
Data after monitoring and parsing are transferred to host computer by the exchanger chip by line IOBUS, the first MCU;Described
Two MCU are connect with the first MCU and the exchanger chip, the multiple for controlling the exchanger chip and control
First MCU realizes that synchronous parsing is monitored with synchronous.
Optionally, the equipment further include: IOBUS interface;The IOBUS interface, for connecting the multiple first MCU
With multichannel IOBUS.
Optionally, the equipment further include: multiple PHY chips;Wherein, the quantity of PHY chip and described first
The quantity of MCU is equal;First MCU is connect by the PHY chip with the exchanger chip.
Optionally, the equipment further include: multiple RJ45 interfaces;The multiple RJ45 interface, for export to bus into
The data gone after monitoring and parsing.
According to one embodiment of present invention, a kind of monitoring analytic method of bus is provided, comprising: multiple first shreds
The first MCU of each of sequence controller MCU monitors input/output bus IOBUS all the way respectively;First MCU will be listened to
Data parsed, and the data after parsing are transferred to host computer by exchanger chip.
Optionally, the method also includes: pass through the 2nd MCU and control the exchanger chip and the multiple first MCU.
Optionally, the method also includes: the first MCU monitors the IOBUS by IOBUS interface;Institute
State the data after the first MCU is parsed by PHY chip to exchanger chip transmission.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, it for there are the buses of redundancy IOBUS, is monitored respectively all the way by the way that multiple first MCU are arranged
IOBUS is carried out while listening for and is parsed to the bus of the IOBUS of multiple redundancies to realize, solves and use in the related technology
The mode of training in rotation or the parsing that two-way IOBUS bus is carried out using the mode that double bus audiomonitor works at the same time, lead to data
Transmission speed and data transmission synchronism the problem of being restricted, reached meet work can under multi-channel mode
The effect monitored with the multichannel IOBUS bus synchronized to safety PLC.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the monitoring analytic method of bus according to an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of redundancy IOBUS bus parsing audiomonitor according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
A kind of monitoring analytic method of bus is provided in the present embodiment, and Fig. 1 is according to an embodiment of the present invention total
The flow chart of the monitoring analytic method of line, as shown in Figure 1, the process includes the following steps:
The first MCU of step S102, each of multiple first microprogram control unit MCU monitors input and output all the way respectively
Bus IOBUS;
Step S104, the first MCU parses the data listened to, and the data after parsing are passed through exchanger chip
It is transferred to host computer;
S102 and step S104 through the above steps passes through setting multiple first for there are the buses of redundancy IOBUS
MCU monitors IOBUS all the way respectively, thus realize to the bus of the IOBUS of multiple redundancies carry out while listening for and parsing, solve
Two-way IOBUS bus is carried out by the way of training in rotation or using the mode that double bus audiomonitor works at the same time in the related technology
Parsing, lead to the transmission speed of data and synchronism the problem of being restricted of data transmission, reached and met work
The effect monitored the multichannel IOBUS bus of safety PLC can be synchronized under multi-channel mode.
It should be noted that multiple first MCU being related in the present embodiment are preferably two;It can of course be according to reality
Situation is arranged accordingly.
In the optional embodiment of the present embodiment, the method for the present embodiment further include: interchanger is controlled by the 2nd MCU
Chip and multiple first MCU.
In another optional embodiment of the present embodiment, the method for the present embodiment can also include: that the first MCU passes through
IOBUS interface monitors IOBUS;First MCU transmits the data after parsing to exchanger chip by PHY chip.
The present embodiment is illustrated below with reference to the alternative embodiment of the present embodiment;
In this alternative embodiment, a kind of redundancy IOBUS bus parsing audiomonitor is provided, Fig. 2 is according to the present invention
The structural schematic diagram of the redundancy IOBUS bus parsing audiomonitor of embodiment, as shown in Fig. 2, being real in safety PLC equipment
Now carry out two interchannels decision making function, IOBUS bus is redundancy, for two IOBUS buses, communication it is same
Step property is extremely important, and bus parsing audiomonitor will have the ability while listening for two channels.
In addition, being preferably connected for convenience with safety equipment, connect using corresponding with safety PLC spare interface
Mouthful, which contains two-way IOBUS bus.Due to the fast speed of IOBUS data, it is assumed that two IOBUS bus datas are complete
In the case where synchronization, in order to meet processing speed and two monitor channels while listening for requirement, by two MCU (MCUA and MCUB)
Monitoring work is carried out simultaneously.And in physical layer, two IOBUS buses are connected on two MCU, while two MCU pass through respective PHY
Chip is connected with exchanger chip.The mode for being configured to 1 MAC interface and 5 phy interfaces of the exchanger chip, two channels
PHY chip and the phy interface of interchanger connect, the MAC interface of exchanger chip connect with MCUC, thus exchanger chip
Configuration and control are completed by MCUC.It is connected with each other communication between three MCU, the synchronization of two MCU is realized by software configuration, from
And complete synchronous parsing and the monitor function of two IOBUS buses.The other three PHY of exchanger chip is carried out by three RJ45
The output of bus parsing information.
It should be noted that the equipment can work under single channel pattern, realize that existing bus parses work at present
Monitor function possessed by having.When work, in the monitoring interface of the equipment any one channel by being connected to IOBUS bus,
The parsing of IOBUS bus communication information can be completed in the MCU in the monitoring channel, is passed through again by PHY chip and exchanger chip
The information of IOBUS bus is passed to host computer by Ethernet, and host computer is completed by corresponding packet capturing software such as wireshark
The packet capturing of bus works.
When equipment work is in twin-channel mode, as described above, two monitoring channels are same by externally monitoring interface
When be connected in the respective bus of IOBUS all the way.The audiomonitor two-way carries out bus monitoring task simultaneously, after the parsing of two channels
Data host computer is transmitted to eventually by Ethernet by PHY chip and exchanger chip.It must be completed before carry out task
The synchronous working in two channels makes two coefficients listened to according to tool so that guaranteeing that two acquisition channels are synchronous carries out bus monitoring work
There are good synchronism and actual effect.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Additionally provide a kind of monitoring analyzing device of bus in the present embodiment, the device for realizing above-described embodiment and
Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software
The realization of the combination of part or software and hardware is also that may and be contemplated.
This implementation provides a kind of monitoring analyzing device of bus, comprising: multiple first microprogram control unit MCU, second
MCU and exchanger chip;Wherein, for monitoring, input/output bus IOBUS, the first MCU will be monitored each the first MCU all the way
And the data after parsing are transferred to host computer by exchanger chip;2nd MCU is connect with the first MCU and exchanger chip, is used
Realize that synchronous parsing is monitored with synchronous in control exchanger chip and multiple first MCU of control.
Optionally, equipment further include: IOBUS interface;IOBUS interface, for connecting multiple first MCU and multichannel IOBUS.
Optionally, equipment further include: multiple PHY chips;Wherein, the quantity of the quantity of PHY chip and the first MCU
It is equal;First MCU is connect by PHY chip with exchanger chip.
Optionally, equipment further include: multiple RJ45 interfaces;Multiple RJ45 interfaces monitor simultaneously bus for exporting
Data after parsing.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
The first MCU of S1, each of multiple first microprogram control unit MCU monitors input/output bus all the way respectively
IOBUS;
S2, the first MCU parse the data listened to, and the data after parsing are transferred to by exchanger chip
Host computer.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
The first MCU of S1, each of multiple first microprogram control unit MCU monitors input/output bus all the way respectively
IOBUS;
S2, the first MCU parse the data listened to, and the data after parsing are transferred to by exchanger chip
Host computer.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (9)
1. a kind of monitoring analyzing device of bus characterized by comprising multiple first microprogram control unit MCU, the 2nd MCU
And exchanger chip;Wherein, for monitoring, input/output bus IOBUS, the first MCU will be supervised each the first MCU all the way
Data after listening and parsing are transferred to host computer by the exchanger chip;2nd MCU and the first MCU and described
Exchanger chip connection, for controlling the exchanger chip and the multiple first MCU of control realizes synchronous parsing and same
Step is monitored.
2. the monitoring analyzing device of bus according to claim 1, which is characterized in that the equipment further include: IOBUS connects
Mouthful;
The IOBUS interface, for connecting the multiple first MCU and multichannel IOBUS.
3. the monitoring analyzing device of bus according to claim 1, which is characterized in that the equipment further include: multiple objects
Manage layer PHY chip;Wherein, the quantity of PHY chip is equal with the quantity of the first MCU;
First MCU is connect by the PHY chip with the exchanger chip.
4. the monitoring analyzing device of bus according to claim 1, which is characterized in that the equipment further include: multiple
RJ45 interface;
The multiple RJ45 interface, for exporting the data after bus is monitored and parsed.
5. a kind of monitoring analytic method of bus characterized by comprising
The first MCU of each of multiple first microprogram control unit MCU monitors input/output bus IOBUS all the way respectively;
The data that first MCU will be listened to parse, and the data after parsing are transferred to by exchanger chip
Position machine.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
The exchanger chip and the multiple first MCU are controlled by the 2nd MCU.
7. according to the method described in claim 5, it is characterized in that, the method also includes:
First MCU monitors the IOBUS by IOBUS interface;
First MCU transmits the data after parsing to the exchanger chip by PHY chip.
8. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in any one of claim 5 to 7 when operation.
9. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program to execute side described in any one of claim 5 to 7
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910141115.5A CN109818843A (en) | 2019-02-26 | 2019-02-26 | Monitoring analyzing method and device, storage medium and the electronic device of bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910141115.5A CN109818843A (en) | 2019-02-26 | 2019-02-26 | Monitoring analyzing method and device, storage medium and the electronic device of bus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109818843A true CN109818843A (en) | 2019-05-28 |
Family
ID=66607610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910141115.5A Pending CN109818843A (en) | 2019-02-26 | 2019-02-26 | Monitoring analyzing method and device, storage medium and the electronic device of bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109818843A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1143421A (en) * | 1994-01-14 | 1997-02-19 | Ast研究公司 | Improved signaling protocot for concurrent bus access in a multiprocessor system |
CN1909005A (en) * | 2005-08-03 | 2007-02-07 | 上海神力科技有限公司 | Fuel cell measurement control device using dual CAN bus redundancy communication |
CN101908974A (en) * | 2010-07-16 | 2010-12-08 | 北京航天发射技术研究所 | Heat switching system and heat switching method of dual-redundant CAN bus |
CN103346931A (en) * | 2013-07-10 | 2013-10-09 | 北京航天自动控制研究所 | 1553B bus monitoring system |
CN204244251U (en) * | 2014-12-02 | 2015-04-01 | 广东电网有限责任公司佛山供电局 | A kind of monitoring circuit of RS485 bus |
CN106603359A (en) * | 2016-11-25 | 2017-04-26 | 北京龙鼎源科技股份有限公司 | Communication control method of PLC system and apparatus thereof |
CN206640394U (en) * | 2017-02-27 | 2017-11-14 | 上海华宿电气股份有限公司 | A kind of monitoring system based on power bus information |
CN109324501A (en) * | 2018-09-20 | 2019-02-12 | 四川长虹电器股份有限公司 | The battery management system of double MCU and its more redundant fault reconstructing methods |
-
2019
- 2019-02-26 CN CN201910141115.5A patent/CN109818843A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1143421A (en) * | 1994-01-14 | 1997-02-19 | Ast研究公司 | Improved signaling protocot for concurrent bus access in a multiprocessor system |
CN1909005A (en) * | 2005-08-03 | 2007-02-07 | 上海神力科技有限公司 | Fuel cell measurement control device using dual CAN bus redundancy communication |
CN101908974A (en) * | 2010-07-16 | 2010-12-08 | 北京航天发射技术研究所 | Heat switching system and heat switching method of dual-redundant CAN bus |
CN103346931A (en) * | 2013-07-10 | 2013-10-09 | 北京航天自动控制研究所 | 1553B bus monitoring system |
CN204244251U (en) * | 2014-12-02 | 2015-04-01 | 广东电网有限责任公司佛山供电局 | A kind of monitoring circuit of RS485 bus |
CN106603359A (en) * | 2016-11-25 | 2017-04-26 | 北京龙鼎源科技股份有限公司 | Communication control method of PLC system and apparatus thereof |
CN206640394U (en) * | 2017-02-27 | 2017-11-14 | 上海华宿电气股份有限公司 | A kind of monitoring system based on power bus information |
CN109324501A (en) * | 2018-09-20 | 2019-02-12 | 四川长虹电器股份有限公司 | The battery management system of double MCU and its more redundant fault reconstructing methods |
Non-Patent Citations (1)
Title |
---|
赵明: "发射车冗余热备份CAN总线网络实现方法研究", 《现代防御技术》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103828305B (en) | For parametrization automated system or the system and method for the field apparatus of control system | |
US6915466B2 (en) | Method and system for multi-user channel allocation for a multi-channel analyzer | |
DE69433858T2 (en) | Method and apparatus for exchanging different types of data during different time intervals | |
CN103856361A (en) | Method and system for realizing remote debugging | |
CN105117319A (en) | Method for realizing real-time monitoring of multi-channel MDIO (Management Data Input Output) devices based on FPGA | |
CN106873541A (en) | A kind of EtherCAT Distributed Servo kinetic control systems based on DSP | |
CN104603700B (en) | Method and its design tool for designing distribution control system | |
CN104899170A (en) | Distributed intelligent platform management bus (IPMB) connection method and ATCA (Advanced Telecom Computing Architecture) machine frame | |
CN107453954A (en) | A kind of Networked E-Journals method, system and equipment | |
CN104243246B (en) | A kind of FlexRay bus tests and optimization method and device based on ZigBee technology | |
CN103699461A (en) | Double-host machine mutual redundancy hot backup method | |
CN100498618C (en) | Computer network monitoring system for flexible electric PC board stitching machine | |
CN108646650A (en) | Motor monitoring system and method based on TTP communications | |
CN109818843A (en) | Monitoring analyzing method and device, storage medium and the electronic device of bus | |
CN109714124B (en) | Time synchronization system and method for test system | |
CN106850816A (en) | A kind of remote network control system based on VLAN | |
CN107563075B (en) | Method for realizing CosiMate network and DDS network interconnection | |
CN107769960B (en) | BMC management architecture based on CAN bus | |
CN103095739A (en) | Cabinet server system and node communication method thereof | |
CN108388228A (en) | A kind of synchronous debugging method and apparatus for multichannel embedded control system | |
CN106708701B (en) | Central maintenance device and method based on ARINC659 bus | |
CN108170091A (en) | A kind of PLC controller, PLC controller group system | |
CN106055509B (en) | Optical fiber communication system and configuration method of optical fiber communication | |
CN108153260A (en) | A kind of Discrete Intelligence manufacture system control terminal based on internet | |
CN207882728U (en) | A kind of control system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |
|
RJ01 | Rejection of invention patent application after publication |