CN108614757B - Method for monitoring 1394 bus reset and implementing circuit - Google Patents

Method for monitoring 1394 bus reset and implementing circuit Download PDF

Info

Publication number
CN108614757B
CN108614757B CN201611140809.XA CN201611140809A CN108614757B CN 108614757 B CN108614757 B CN 108614757B CN 201611140809 A CN201611140809 A CN 201611140809A CN 108614757 B CN108614757 B CN 108614757B
Authority
CN
China
Prior art keywords
data
fifo
link layer
packet
interface module
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
CN201611140809.XA
Other languages
Chinese (zh)
Other versions
CN108614757A (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.)
Xian Xiangteng Microelectronics Technology Co Ltd
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
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 Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN201611140809.XA priority Critical patent/CN108614757B/en
Publication of CN108614757A publication Critical patent/CN108614757A/en
Application granted granted Critical
Publication of CN108614757B publication Critical patent/CN108614757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3027Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Communication Control (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to the computer hardware technology, and relates to a design circuit and a method for resetting and monitoring a 1394 bus. The 1394 bus is a network transmission data bus in the field of military aviation, the invention constructs the bus reset signal into a data packet format of a special packet, and then displays the bus reset occurrence moment in the form of the special packet through primary/secondary filtering, so that the time of the bus reset action can be determined, the 1394 bus can be monitored in real time, and the real-time processing requirement of the data in an airborne environment can be met.

Description

Method for monitoring 1394 bus reset and implementing circuit
Technical Field
The invention belongs to the computer hardware technology, and relates to a design circuit and a method for resetting and monitoring a 1394 bus.
Background
The 1394 bus is used as a network transmission data bus in the field of military aviation, a bus monitoring node needs to monitor data packets and bus resetting on the bus, the data packets and the bus resetting are required to be recorded according to the sequence of the data packets and the bus resetting, and a bus event of the bus resetting is monitored according to the mode of the data packets. In the prior art, bus data packets and bus reset occurrence time are recorded, and software is used for sequencing according to sequence when monitoring records are checked, but the method is not suitable for the real-time processing requirements on data in an airborne environment.
Disclosure of Invention
The purpose of the invention is as follows: a method for monitoring 1394 bus reset and a realization circuit are provided, which are used for realizing real-time monitoring of 1394 bus. The invention provides a method for sequentially recording bus reset and common data packets according to time sequence by a hardware logic circuit by regarding the bus reset as a special message so as to meet the requirement of real-time processing of data.
The technical scheme of the invention is as follows:
a method of monitoring a 1394 bus reset, comprising the steps of:
step 1: the host interface module of the link layer is configured with a chip of the link layer, so that after detecting that the 1394 bus is reset, the host interface module of the link layer reports that a bus reset event occurs, and the step 2 is carried out; when the bus has data transmission, the link layer DM interface module receives the data packet transmitted by the link layer chip, and the step 3 is carried out;
step 2: the host interface module of the link layer informs the DM interface module of the link layer of constructing a bus reset packet, writes the bus reset packet into a data buffer FIFO, and then goes to step 4;
and step 3: the link layer DM interface module writes the data packet transmitted by the link layer chip DM interface into a data buffer FIFO;
and 4, step 4: the link layer DM interface module informs the FIFO control module whether the type of the data packet currently stored in the data buffer FIFO is a common data packet or a constructed bus reset packet, and the length of the data packet;
and 5: the FIFO control module stores the length information of the data packet into a type FIFO according to the type of the data packet, and simultaneously reads out and writes the data stored in the data buffer FIFO into the data FIFO;
step 6: the DMA control module detects whether the type FIFO is empty, if not, the DMA control module calculates the address and the packet length needed to be stored in the data packet and informs the host DMA interface module;
and 7: the host DMA interface module extracts data from the data FIFO according to the destination address and the length of the moved data of the DMA operation and sends the data to the host.
The circuit for realizing the method comprises a link layer host interface module, a link layer DM interface module, an FIFO control module, a data buffer FIFO, a type FIFO, a data FIFO, a DMA control module and a host interface module,
the host interface module of the link layer is used for configuring an external link layer chip, so that the external link layer chip reports the occurrence of a bus reset event to the host interface module of the link layer after detecting that the 1394 bus is reset; informing a link layer DM interface module to construct a bus reset packet;
the link layer DM interface module is used for constructing a bus reset packet according to a data packet transmitted from an external link layer chip and a notice of the link layer host interface module, and writing the bus reset packet into a data buffer FIFO according to a time sequence; informing an FIFO control module whether the type of a data packet currently stored in the data buffer FIFO is a common data packet or a constructed bus reset packet, and the length of the data packet;
the FIFO control module stores the length information of the data packet into the type FIFO according to the type of the data packet, and simultaneously reads out and writes the data stored in the data buffer FIFO into the data FIFO;
the DMA control module is used for detecting whether the type FIFO is empty or not, if not, calculating the address and the packet length which need to be stored in the data packet, and informing the host DMA interface module;
and the host DMA interface module extracts data from the data FIFO according to the destination address and the length of the moved data of the DMA operation and sends the data to the host.
The format of the bus reset packet is constructed to be different from the format of the normally transmitted data packet, so that the bus reset packet and the normally transmitted data packet can be distinguished.
The invention has the advantages and effects that: the bus reset signal is constructed into a data packet format of a special packet, and finally the bus reset occurrence time is displayed in the form of the special packet, so that the monitored bus reset and normally transmitted data packets can be arranged in real time according to the time sequence.
Drawings
FIG. 1 is a block diagram of the circuit structure of the present invention
Detailed Description
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and the specific embodiments. It is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than the whole embodiments, and that all other embodiments, which can be derived by a person skilled in the art without inventive step based on the embodiments of the present invention, belong to the scope of protection of the present invention.
A design method for monitoring bus reset comprises the following steps:
step 1: the host interface module of the link layer is configured with a chip of the link layer, so that after detecting that the 1394 bus is reset, the host interface module of the link layer reports that a bus reset event occurs, and the step 2 is carried out; when the bus has data transmission, the link layer DM interface module receives the data packet transmitted by the link layer chip, and the step 3 is carried out;
step 2: the host interface module of the link layer informs the DM interface module of the link layer of constructing a bus reset packet, writes the bus reset packet into a data buffer FIFO, and then goes to step 4;
and step 3: the link layer DM interface module writes the data packet transmitted by the link layer chip DM interface into a data buffer FIFO;
and 4, step 4: the link layer DM interface module informs the FIFO control module whether the type of the data packet currently stored in the data buffer FIFO is a common data packet or a constructed bus reset packet, and the length of the data packet;
and 5: the FIFO control module stores the length information of the data packet into a type FIFO according to the type of the data packet, and simultaneously reads out and writes the data stored in the data buffer FIFO into the data FIFO;
step 6: the DMA control module detects whether the type FIFO is empty, if not, the DMA control module calculates the address and the packet length needed to be stored in the data packet and informs the host DMA interface module;
and 7: the host DMA interface module extracts data from the data FIFO according to the destination address and the length of the moved data of the DMA operation and sends the data to the host.
The circuit for realizing the method comprises a link layer host interface module, a link layer DM interface module, an FIFO control module, a data buffer FIFO, a type FIFO, a data FIFO, a DMA control module and a host interface module,
the host interface module of the link layer is used for configuring an external link layer chip, so that the external link layer chip reports the occurrence of a bus reset event to the host interface module of the link layer after detecting that the 1394 bus is reset; informing a link layer DM interface module to construct a bus reset packet;
the link layer DM interface module is used for constructing a bus reset packet according to a data packet transmitted from an external link layer chip and a notice of the link layer host interface module, and writing the bus reset packet into a data buffer FIFO according to a time sequence; informing an FIFO control module whether the type of a data packet currently stored in the data buffer FIFO is a common data packet or a constructed bus reset packet, and the length of the data packet;
the FIFO control module stores the length information of the data packet into the type FIFO according to the type of the data packet, and simultaneously reads out and writes the data stored in the data buffer FIFO into the data FIFO;
the DMA control module is used for detecting whether the type FIFO is empty or not, if not, calculating the address and the packet length which need to be stored in the data packet, and informing the host DMA interface module;
and the host DMA interface module extracts data from the data FIFO according to the destination address and the length of the moved data of the DMA operation and sends the data to the host.
The format of the bus reset packet is constructed to be different from the format of the normally transmitted data packet, so that the bus reset packet and the normally transmitted data packet can be distinguished.

Claims (2)

1. A method of monitoring a 1394 bus reset, comprising the steps of,
step 1: the host interface module of the link layer is configured with a chip of the link layer, so that after detecting that the 1394 bus is reset, the host interface module of the link layer reports that a bus reset event occurs, and the step 2 is carried out; when the bus has data transmission, the link layer DM interface module receives the data packet transmitted by the link layer chip, and the step 3 is carried out;
step 2: the host interface module of the link layer informs the DM interface module of the link layer of constructing a bus reset packet, writes the bus reset packet into a data buffer FIFO, and then goes to step 4;
and step 3: the link layer DM interface module writes the data packet transmitted by the link layer chip DM interface into a data buffer FIFO;
and 4, step 4: the link layer DM interface module informs the FIFO control module whether the type of the data packet currently stored in the data buffer FIFO is a common data packet or a constructed bus reset packet, and the length of the data packet;
and 5: the FIFO control module stores the length information of the data packet into a type FIFO according to the type of the data packet, and simultaneously reads out and writes the data stored in the data buffer FIFO into the data FIFO;
step 6: the DMA control module detects whether the type FIFO is empty, if not, the DMA control module calculates the address and the packet length needed to be stored in the data packet and informs the host DMA interface module;
and 7: the host DMA interface module extracts data from the data FIFO according to the destination address and the moved data length of the DMA operation, sends the data to the host computer, constructs the format of the bus reset packet, and is different from the format of the data packet transmitted normally, so that the bus reset packet and the data packet transmitted normally can be distinguished.
2. A circuit for implementing the method of monitoring 1394 bus resets of claim 1, including a link layer host interface module, a link layer DM interface module, a FIFO control module, a data buffer FIFO, a type FIFO, a data FIFO, a DMA control module, and a host interface module, wherein
The host interface module of the link layer is used for configuring an external link layer chip, so that the external link layer chip reports the occurrence of a bus reset event to the host interface module of the link layer after detecting that the 1394 bus is reset; informing a link layer DM interface module to construct a bus reset packet;
the link layer DM interface module is used for constructing a bus reset packet according to a data packet transmitted from an external link layer chip and a notice of the link layer host interface module, and writing the bus reset packet into a data buffer FIFO according to a time sequence; informing an FIFO control module whether the type of a data packet currently stored in the data buffer FIFO is a common data packet or a constructed bus reset packet, and the length of the data packet;
the FIFO control module stores the length information of the data packet into the type FIFO according to the type of the data packet, and simultaneously reads out and writes the data stored in the data buffer FIFO into the data FIFO;
the DMA control module is used for detecting whether the type FIFO is empty or not, if not, calculating the address and the packet length which need to be stored in the data packet, and informing the host DMA interface module;
the host DMA interface module extracts data from the data FIFO according to the destination address and the length of the moved data of the DMA operation and sends the data to the host,
the format of the bus reset packet is constructed to be different from the format of the normally transmitted data packet, so that the bus reset packet and the normally transmitted data packet can be distinguished.
CN201611140809.XA 2016-12-12 2016-12-12 Method for monitoring 1394 bus reset and implementing circuit Active CN108614757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611140809.XA CN108614757B (en) 2016-12-12 2016-12-12 Method for monitoring 1394 bus reset and implementing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611140809.XA CN108614757B (en) 2016-12-12 2016-12-12 Method for monitoring 1394 bus reset and implementing circuit

Publications (2)

Publication Number Publication Date
CN108614757A CN108614757A (en) 2018-10-02
CN108614757B true CN108614757B (en) 2021-10-15

Family

ID=63657024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611140809.XA Active CN108614757B (en) 2016-12-12 2016-12-12 Method for monitoring 1394 bus reset and implementing circuit

Country Status (1)

Country Link
CN (1) CN108614757B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258149A (en) * 1998-11-17 2000-06-28 索尼公司 Bus analyzer, bus reset display method and electronic machine with bus analyzer
CN104461982A (en) * 2014-12-09 2015-03-25 中国航空工业集团公司第六三一研究所 Timed transmission processing method and timed transmission processing circuit for 1394 bus event messages
CN104486036A (en) * 2014-12-09 2015-04-01 中国航空工业集团公司第六三一研究所 Message fault-tolerance processing circuit and method of meeting requirements of 1394 protocol
CN105376129A (en) * 2015-12-09 2016-03-02 中国航空工业集团公司西安航空计算技术研究所 1394 bus transaction layer-link layer data packet transmitting circuit and method
CN105512005A (en) * 2015-12-12 2016-04-20 中国航空工业集团公司西安航空计算技术研究所 Circuit and method for synchronous working of control/remote node and bus monitor node

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8040798B2 (en) * 2008-09-25 2011-10-18 Microsoft Corporation Discovering communication rules in a network trace

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258149A (en) * 1998-11-17 2000-06-28 索尼公司 Bus analyzer, bus reset display method and electronic machine with bus analyzer
CN104461982A (en) * 2014-12-09 2015-03-25 中国航空工业集团公司第六三一研究所 Timed transmission processing method and timed transmission processing circuit for 1394 bus event messages
CN104486036A (en) * 2014-12-09 2015-04-01 中国航空工业集团公司第六三一研究所 Message fault-tolerance processing circuit and method of meeting requirements of 1394 protocol
CN105376129A (en) * 2015-12-09 2016-03-02 中国航空工业集团公司西安航空计算技术研究所 1394 bus transaction layer-link layer data packet transmitting circuit and method
CN105512005A (en) * 2015-12-12 2016-04-20 中国航空工业集团公司西安航空计算技术研究所 Circuit and method for synchronous working of control/remote node and bus monitor node

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种有效监控及过滤1394总线消息的设计实现;王宣明;《计算机技术与发展》;20150731;156-157页 *

Also Published As

Publication number Publication date
CN108614757A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN102866971B (en) Device, the system and method for transmission data
CN105793905B (en) By the method and system of the alarm extension specific time of notice
CN106502814B (en) Method and device for recording error information of PCIE (peripheral component interface express) equipment
CN107209829B (en) Data judging device and data judging method
CN202421817U (en) IOT (Internet of Things) wireless intelligent baby monitoring device
CN103177609A (en) Ground based system and methods for identifying incursions along the flight path of an in-flight aircraft
CN109218141A (en) A kind of malfunctioning node detection method and relevant apparatus
CN109885521B (en) Interrupt processing method and system, electronic equipment and storage medium
CN111143167B (en) Alarm merging method, device, equipment and storage medium for multiple platforms
EP4024362A2 (en) Method and apparatus of failure monitoring for signal lights, electronic device and storage medium
US9641616B2 (en) Self-steering point-to-point storage protocol
US20170351560A1 (en) Software failure impact and selection system
CN110334150A (en) Monitor method, monitor terminal and the system of master-slave database synchronizing relay
CN105589772A (en) Method and apparatus for detecting logic crash of FPGA chip
CN102495577A (en) Wireless intelligent infant monitoring device based on internet of things
CN102684895B (en) Standby server and system and method for restoring registration of client side in master server
CN105553743A (en) Log obtaining method, system, first network device and third network device
CN108614757B (en) Method for monitoring 1394 bus reset and implementing circuit
CN104516839A (en) Embedded type application system
WO2016007608A1 (en) System and method for monitoring mobile vehicles
JP5770815B2 (en) Wireless monitoring control method and apparatus
CN102325171B (en) Data storage method in monitoring system and system
CN106126454B (en) The access method and device of a kind of computer system, high speed peripheral component interconnection endpoint device
CN114113855A (en) Electrostatic discharge detection processing method and device and terminal equipment
CN114785714A (en) Message transmission delay detection method, storage medium and equipment

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
TR01 Transfer of patent right

Effective date of registration: 20221010

Address after: Room S303, Innovation Building, No. 25, Gaoxin 1st Road, Xi'an, Shaanxi 710075

Patentee after: XI'AN XIANGTENG MICROELECTRONICS TECHNOLOGY Co.,Ltd.

Address before: No.15, Jinye 2nd Road, Xi'an, Shaanxi 710000

Patentee before: AVIC XI''AN AERONAUTICS COMPUTING TECHNIQUE RESEARCH INSTITUTE

TR01 Transfer of patent right