[go: up one dir, main page]

CN107819618B - A method for diagnosing abnormal communication of small satellite voting type - Google Patents

A method for diagnosing abnormal communication of small satellite voting type Download PDF

Info

Publication number
CN107819618B
CN107819618B CN201711062917.4A CN201711062917A CN107819618B CN 107819618 B CN107819618 B CN 107819618B CN 201711062917 A CN201711062917 A CN 201711062917A CN 107819618 B CN107819618 B CN 107819618B
Authority
CN
China
Prior art keywords
node
voting
frame
state
nodes
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
CN201711062917.4A
Other languages
Chinese (zh)
Other versions
CN107819618A (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.)
Chang Guang Satellite Technology Co Ltd
Original Assignee
Chang Guang Satellite 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 Chang Guang Satellite Technology Co Ltd filed Critical Chang Guang Satellite Technology Co Ltd
Priority to CN201711062917.4A priority Critical patent/CN107819618B/en
Publication of CN107819618A publication Critical patent/CN107819618A/en
Application granted granted Critical
Publication of CN107819618B publication Critical patent/CN107819618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/1851Systems using a satellite or space-based relay
    • H04B7/18519Operations control, administration or maintenance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40078Bus configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

A voting type communication abnormity diagnosis method for a small satellite relates to a voting type communication abnormity diagnosis method for the small satellite, and solves the problems that the existing satellite-borne computer diagnosis method has a single point diagnosis point, is easy to generate faults, and has false alarms and missing reports. Designing a diagnosis mechanism of multi-host combined voting on a CAN bus in a daisy chain topology mode, communicating in a CAN bus broadcasting mode, designing a diagnosis broadcast frame protocol and voting of a single-machine communication state in a time-limited response mode; setting N nodes on a CAN bus, and sequentially carrying out cyclic communication; each node has four working states, namely a signature state, a voting state, an inquiry state and an isolation state; summarizing the communication states of the N-1 nodes to complete voting on a certain node; after a certain node is voted to be abnormal, a voting group can be isolated, and the voting group still has the diagnosis capability after the certain node is isolated; the node number in the voting group is dynamically updated along with the change of the node state, and the voting group has higher adaptability and expansibility.

Description

一种小卫星表决式通信异常诊断方法A method for diagnosing abnormal communication of small satellite voting type

技术领域technical field

本发明涉及一种小卫星表决式通信异常诊断方法。The invention relates to a small satellite voting type communication abnormality diagnosis method.

背景技术Background technique

目前卫星领域的星上自主通信异常诊断技术通常是采用在星载计算机软件中增加异常诊断模块的方式,星载计算机通过对单机返回的遥测数据的分析,诊断外围单机通信状态,但星载计算机诊断方式存在以下缺陷:星载计算机的主要功能为完成卫星在轨飞行任务,异常诊断模块占用资源过多,会影响卫星正常飞行任务的执行;同时整星仅通过星载计算机进行通信异常诊断,这就构成了“单点”诊断点,在星载计算机受到噪声、电磁干扰、空间粒子辐射、振动等恶劣环境干扰,或者星载计算机通信模块出现异常时,会出现虚警和漏报的现象。为此需要开发一种避免“单点”诊断点,可靠性高的通信异常诊断方法,在星上某个单机出现通信异常时,保证其他单机的正常通信状态。At present, the onboard autonomous communication abnormality diagnosis technology in the satellite field usually adopts the method of adding an abnormality diagnosis module to the onboard computer software. The diagnosis method has the following defects: the main function of the onboard computer is to complete the satellite on-orbit flight mission, and the abnormal diagnosis module occupies too many resources, which will affect the execution of the normal flight mission of the satellite; This constitutes a "single point" diagnostic point. When the onboard computer is disturbed by harsh environments such as noise, electromagnetic interference, space particle radiation, and vibration, or when the communication module of the onboard computer is abnormal, false alarms and false alarms will occur. . Therefore, it is necessary to develop a communication abnormality diagnosis method that avoids the "single point" diagnosis point and has high reliability.

发明内容SUMMARY OF THE INVENTION

本发明为解决现有星载计算机诊断方法存在“单点”诊断点,易出现故障以及虚警和漏报等问题,提供一种小卫星表决式通信异常诊断方法。The invention provides a small satellite voting type communication abnormality diagnosis method to solve the problems of "single point" diagnosis point, easy occurrence of faults, false alarms and omissions in the existing on-board computer diagnosis method.

一种小卫星表决式通信异常诊断方法,该方法在菊花链拓扑方式的CAN总线上设计多主机联合表决的诊断机制,并采用CAN总线广播方式通信,设计一组诊断广播帧协议并采用限时响应方式实现单机通信状态的表决;A small satellite voting type communication abnormality diagnosis method, the method designs a multi-host joint voting diagnosis mechanism on the CAN bus of the daisy chain topology, and adopts the CAN bus broadcast mode to communicate, designs a set of diagnosis broadcast frame protocols, and adopts a time-limited response. way to realize the voting of the single-machine communication status;

具体诊断过程为:The specific diagnosis process is as follows:

设定CAN总线上存在N个节点,相邻的两个节点按照节点号由小到大的顺序分别设定为前向节点和后向节点,所有正常工作节点组成表决组,按照顺序依次循环通信;N为正整数且N≤16;It is set that there are N nodes on the CAN bus, and the adjacent two nodes are set as forward nodes and backward nodes in the order of node numbers from small to large, and all normal working nodes form a voting group, which circulates in sequence ; N is a positive integer and N≤16;

每个节点有四种工作状态,分别为签名态、表决态、质询态和隔离态;Each node has four working states, namely signature state, voting state, challenge state and isolation state;

签名态:节点初始上电后或由异常通信转为正常通信后默认进入签名态,各节点根据自身节点号,在接收到前向节点的签名帧、表决帧或到达发送超时时间后,向CAN总线上广播发送签名帧,表征此节点处于正常通信状态;Signature state: After the node is initially powered on or changes from abnormal communication to normal communication, it enters the signature state by default. According to its own node number, each node sends the CAN message to the CAN after receiving the signature frame, voting frame of the forward node or reaching the sending timeout time. The signature frame is broadcast on the bus, indicating that the node is in a normal communication state;

表决态:Voting status:

在完成签名帧发送后,节点进入表决态,根据CAN总线上表决帧的接收状态及表决帧的数据域中各节点状态,在接收到前向节点的表决帧或超时时间到达后,广播发送对后向节点的表决帧;若无异常状态发生,CAN总线上节点始终在表决态下工作;若收到其他节点发送的隔离帧,则在表决时将处于隔离态的节点剔除出表决组,总线上节点总数-1;若某个处于签名态的节点被表决为正常,则在表决时将其加入表决组,总线上节点总数+1;After completing the sending of the signature frame, the node enters the voting state. According to the receiving state of the voting frame on the CAN bus and the status of each node in the data field of the voting frame, after receiving the voting frame of the forward node or the timeout time, the broadcast sends The voting frame of the backward node; if no abnormal state occurs, the node on the CAN bus always works in the voting state; if the isolation frame sent by other nodes is received, the node in the isolated state will be removed from the voting group during voting, and the bus The total number of nodes on the bus is -1; if a node in the signature state is voted as normal, it will be added to the voting group during voting, and the total number of nodes on the bus will be +1;

质询态:Inquiry state:

在某个节点连续三次被前向节点表决为异常后,则断定该节点为异常节点,所述异常节点与其前向节点同时进入质询态,前向节点向后向节点发送质询帧,后向节点在接收到质询帧后返回质询应答帧,若后向节点返回质询应答帧,则后向节点与其前向节点均返回表决态,表决组继续进行表决流程;若后向节点连续被质询三次均无应答,则前向节点向CAN总线上广播发送隔离帧,将后向节点隔离出表决组,后向节点进入隔离态;前向节点在发送隔离帧后,回到表决态;After a node has been voted abnormal by the forward node for three consecutive times, it is determined that the node is an abnormal node. The abnormal node and its forward node enter the query state at the same time. The forward node sends a query frame to the backward node, and the backward node After receiving the challenge frame, it returns a challenge response frame. If the backward node returns a challenge response frame, both the backward node and its forward node return to the voting state, and the voting group continues the voting process; if the backward node is questioned three times in a row, no In response, the forward node broadcasts the isolation frame to the CAN bus, isolates the backward node from the voting group, and the backward node enters the isolation state; the forward node returns to the voting state after sending the isolation frame;

隔离态:Isolated state:

处在隔离态的节点无法发送数据,无法参与表决,当被隔离的节点恢复正常通信后,默认进入签名态。Nodes in the isolated state cannot send data and cannot participate in voting. When the isolated node resumes normal communication, it enters the signature state by default.

本发明的有益效果:本发明所述的通信异常诊断方法,综合星上多个节点获取的通信状态信息,表决出某个节点的通信情况,并通过质询进行节点故障的确认,避免了传统方法由于异常诊断计算机失效而导致整星无法对异常状态做出判断的弊端,有效的规避了“单点”危险点,提高了整星的在轨可靠性;表决时能够汇总除被表决节点外的N-1个节点的接收状态信息,完成对被表决节点异常状态的表决,提高故障诊断的可靠性;通过四种状态表述节点工作状态,在表决出某个节点异常后,能够将其隔离出表决组,表决流程在某个节点被隔离后,CAN总线上其他节点仍具备诊断通信异常的能力;通信网络中节点数目随节点状态变化动态更新,具有更高的适配性和扩展性。Beneficial effects of the present invention: The communication abnormality diagnosis method of the present invention integrates the communication status information obtained by multiple nodes on the satellite, votes out the communication status of a certain node, and confirms the node failure through inquiry, avoiding the traditional method. Due to the failure of the abnormal diagnosis computer, the whole star cannot make a judgment on the abnormal state, which effectively avoids the "single point" danger point and improves the on-orbit reliability of the whole star; when voting, it can summarize the data except the voted node. N-1 nodes receive state information, complete the voting on the abnormal state of the voted node, and improve the reliability of fault diagnosis; the working state of the node is expressed by four states, and after a node is abnormal, it can be isolated. In the voting group, after a node is isolated in the voting process, other nodes on the CAN bus still have the ability to diagnose communication abnormalities; the number of nodes in the communication network is dynamically updated with changes in node status, which has higher adaptability and scalability.

附图说明Description of drawings

图1为本发明所述的一种小卫星表决式通信异常诊断方法中表决级成员的原理图;Fig. 1 is a schematic diagram of voting-level members in a small satellite voting-type communication abnormality diagnosis method according to the present invention;

图2为本发明所述的一种小卫星表决式通信异常诊断方法中节点工作状态转换图;Fig. 2 is a node working state transition diagram in a small satellite voting type communication abnormality diagnosis method according to the present invention;

图3为本发明所述的一种小卫星表决式通信异常诊断方法中仲裁域定义原理图;3 is a schematic diagram of the definition of an arbitration domain in a small satellite voting type communication abnormality diagnosis method according to the present invention;

图4为本发明所述的一种小卫星表决式通信异常诊断方法中系统上电初始化流程图;4 is a flow chart of system power-on initialization in a small satellite voting type communication abnormality diagnosis method according to the present invention;

图5为本发明所述的一种小卫星表决式通信异常诊断方法中通讯故障表决异常流程图;5 is a flowchart of a communication fault voting abnormality in a small satellite voting type communication abnormality diagnosis method according to the present invention;

图6为本发明所述的一种小卫星表决式通信异常诊断方法中质询流程图;Fig. 6 is the inquiry flow chart in a kind of small satellite voting type communication abnormality diagnosis method according to the present invention;

图7为本发明所述的一种小卫星表决式通信异常诊断方法中节点恢复流程图。FIG. 7 is a flow chart of node recovery in a method for diagnosing abnormality in small satellite voting type communication according to the present invention.

具体实施方式Detailed ways

具体实施方式一、结合图1至图7说明本实施方式,设计一种小卫星表决式通信异常诊断方法,即基于微小卫星星上CAN总线通信网络实现单机部件通信异常诊断的多机协同表决式方法,该方法以菊花链拓扑方式的CAN总线上设计多主机联合表决诊断机制,并利用CAN总线广播方式通信,设计一组诊断广播帧协议并限时响应方式实现单机通信状态的表决。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 1. This embodiment is described with reference to FIGS. 1 to 7 , and a small satellite voting type communication abnormality diagnosis method is designed, that is, a multi-computer cooperative voting method based on the CAN bus communication network on the microsatellite satellite to realize the communication abnormality diagnosis of stand-alone components This method designs a multi-host joint voting diagnosis mechanism on the CAN bus in the daisy-chain topology, and uses the CAN bus broadcast communication to design a set of diagnostic broadcast frame protocols and time-limited response to realize the voting of the single-computer communication status.

在一个CAN总线网络上有N节点参与表决,N为正整数且N≤16;表决的过程为前向节点完成后向节点的表决,最后第N节点完成第1节点的表决。在每个表决周期内所有节点都会进行一次数据发送,接收到数据帧后在对应的状态位计数加1,当前向节点通信时将表决的信息发送到总线上。如某单机部件通信异常,则汇总其他N-1个节点的信息产生表决结果,表决结果分为正常和异常两种。根据系统对故障诊断的要求可设定参与表决的最小节点数量,如一个7节点系统,可以只采用2个节点信息进行表决。There are N nodes participating in the voting on a CAN bus network, N is a positive integer and N≤16; the voting process is the voting of the forward node after the completion of the forward node, and finally the Nth node completes the voting of the first node. In each voting cycle, all nodes will send data once. After receiving the data frame, the corresponding status bit count is incremented by 1, and the voting information is sent to the bus when communicating with the node. If the communication of a single-machine component is abnormal, the information of other N-1 nodes is aggregated to generate a voting result, and the voting results are divided into two types: normal and abnormal. According to the system's requirements for fault diagnosis, the minimum number of nodes participating in voting can be set. For example, in a 7-node system, only 2 node information can be used for voting.

CAN总线上所有节点组成表决组,如图1所示为N个节点组成的表决组,每两个连续的节点,分别称为前向节点和后向节点。默认的通信顺序为节点号由小到大的顺序,依次循环通信;若某节点超时则其后向节点自主进行通信。All nodes on the CAN bus form a voting group. Figure 1 shows a voting group composed of N nodes. Every two consecutive nodes are called forward nodes and backward nodes respectively. The default communication order is the order of node numbers from small to large, and the communication is cyclic in turn; if a node times out, it will communicate with the node autonomously.

每个节点设计有四个工作状态,分别是签名态、表决态、质询态和隔离态;每一种状态可以反映当前节点的通信状况。Each node is designed with four working states, namely signature state, voting state, challenge state and isolation state; each state can reflect the current communication status of the node.

签名态:节点初始上电后或由异常通信转为正常通信后默认进入签名态,各节点根据自身节点号,在接收到前向节点的签名帧、表决帧或到达发送超时时间后,向CAN总线上广播发送签名帧,表征此节点处于正常通信状态;Signature state: After the node is initially powered on or changes from abnormal communication to normal communication, it enters the signature state by default. According to its own node number, each node sends the CAN message to the CAN after receiving the signature frame, voting frame of the forward node or reaching the sending timeout time. The signature frame is broadcast on the bus, indicating that the node is in a normal communication state;

表决态:Voting status:

在完成签名帧发送后,节点进入表决态,根据CAN总线上表决帧的接收状态及表决帧的数据域中各节点状态,在接收到前向节点的表决帧或超时时间到达后,广播发送对后向节点的表决帧;若无异常状态发生,CAN总线上节点始终在表决态下工作;若收到其他节点发送的隔离帧,则在表决时将处于隔离态的节点剔除出表决组;After completing the sending of the signature frame, the node enters the voting state. According to the receiving state of the voting frame on the CAN bus and the status of each node in the data field of the voting frame, after receiving the voting frame of the forward node or the timeout time, the broadcast sends The voting frame of the backward node; if no abnormal state occurs, the node on the CAN bus always works in the voting state; if the isolation frame sent by other nodes is received, the node in the isolation state will be removed from the voting group during voting;

质询态:Inquiry state:

在某个节点连续三次被前向节点表决为异常后,则断定该节点为异常节点,所述异常节点与其前向节点同时进入质询态,前向节点向后向节点发送质询帧,后向节点在接收到质询帧后返回质询应答帧,若后向节点返回质询应答帧,则后向节点与其前向节点均返回表决态,表决组继续进行表决流程;若后向节点连续被质询三次均无应答,则前向节点向CAN总线上广播发送隔离帧,将后向节点隔离出表决组,后向节点进入隔离态;前向节点在发送隔离帧后,回到表决态;After a node has been voted abnormal by the forward node for three consecutive times, it is determined that the node is an abnormal node. The abnormal node and its forward node enter the query state at the same time. The forward node sends a query frame to the backward node, and the backward node After receiving the challenge frame, it returns a challenge response frame. If the backward node returns a challenge response frame, both the backward node and its forward node return to the voting state, and the voting group continues the voting process; if the backward node is questioned three times in a row, no In response, the forward node broadcasts the isolation frame to the CAN bus, isolates the backward node from the voting group, and the backward node enters the isolation state; the forward node returns to the voting state after sending the isolation frame;

隔离态:处在隔离态的节点无法发送数据,无法参与表决,将其与总线上的其他节点进行隔离,避免通信异常的进一步扩大化。当被隔离的节点恢复正常通信后,默认进入签名态。Isolation state: Nodes in isolation state cannot send data and cannot participate in voting. They are isolated from other nodes on the bus to avoid further expansion of communication abnormalities. When the isolated node resumes normal communication, it enters the signature state by default.

结合图2说明本实施方式,节点上电后或由异常通信转为正常通信后默认进入签名态,发送签名帧;当节点表决出后向节点通信状态后进入表决态,发送对后向节点的表决帧(包含表决正常帧、表决异常帧);在后向节点连续三次被表决为异常后进入质询态,前向节点发送后向节点的质询帧(后向节点发送质询应答帧);在后向节点连续三次被质询都无应答时,前向节点发送隔离帧,将后向节点隔离出表决组,后向节点进入隔离态。This embodiment is described with reference to FIG. 2. After the node is powered on or changes from abnormal communication to normal communication, it enters the signature state by default, and sends a signature frame; when the node votes out of the communication state to the node, it enters the voting state, and sends a message to the backward node. Voting frame (including voting normal frame and voting abnormal frame); after the backward node is voted as abnormal for three consecutive times, it enters the challenge state, and the forward node sends a challenge frame to the backward node (the backward node sends a challenge response frame); When the forward node is challenged for three consecutive times and has no response, the forward node sends an isolation frame to isolate the backward node from the voting group, and the backward node enters the isolation state.

本实施方式中,超时时间的确定方法,每个节点根据接收到的通信帧中包含的节点序号动态计算超时时间,计算公式为:若节点号>发送通信帧节点号,则节点超时时间=(节点号-发送通信帧节点号)*ΔT;若节点号≤发送通信帧节点号,则节点超时时间=(总节点数+节点号-发送通信帧节点号)*ΔT;In this embodiment, for the method for determining the timeout period, each node dynamically calculates the timeout period according to the node serial number contained in the received communication frame, and the calculation formula is: if the node number > the node number of the sending communication frame, then the node timeout period=( Node number - node number of sending communication frame)*ΔT; if node number ≤ node number of sending communication frame, then node timeout = (total number of nodes + node number - node number of sending communication frame)*ΔT;

如图1中当前发送表决帧的是节点1,则其后向节点2应答超时时间为(2-1)*ΔT,节点N的超时时间为(N-1)*ΔT。节点N发送后第一个应答节点是节点1。所述ΔT为设定的单位超时时间,根据总线上节点总数及节点工作形式确定。As shown in Fig. 1, the node 1 is currently sending the voting frame, then the timeout time of the subsequent response to the node 2 is (2-1)*ΔT, and the timeout time of the node N is (N-1)*ΔT. The first responding node after node N sends is node 1. The ΔT is the set unit timeout time, which is determined according to the total number of nodes on the bus and the working form of the nodes.

本实施方式中,采用CAN扩展帧进行通信,定义表1为不同通信帧的仲裁域填写要求,仲裁域定义原理图如图3所示。仲裁域ID28~ID21定义为故障诊断帧标识、8bits、默认AAH;ID20~ID17为帧类型标识位,4bits;ID16~ID13定义为发送节点标识、4bits;ID12~ID09为后向节点标识,填充被表决、被质询、被隔离或需要第一个应答的后向节点号;ID08~ID05为表决组节点总数,0001b~1111b分别表明总线上有1~15个节点,0000b表明总线上有16个节点;ID04~ID00为保留位。如图3所示。数据域采用8字节长度,定义如表2为数据域填充说明。每个通信帧中包含本节点对后向节点进行的表决结果,其他节点的数据帧接收信息。In this embodiment, the CAN extended frame is used for communication, and Table 1 is defined as the requirements for filling in the arbitration fields of different communication frames, and the schematic diagram of the definition of the arbitration fields is shown in FIG. 3 . The arbitration field ID28~ID21 is defined as the fault diagnosis frame identification, 8bits, default AAH; ID20~ID17 is the frame type identification bit, 4bits; ID16~ID13 is defined as the sending node identification, 4bits; ID12~ID09 is the backward node identification, filled with The number of the backward node that votes, is challenged, is isolated or needs the first response; ID08~ID05 are the total number of nodes in the voting group, 0001b~1111b respectively indicate that there are 1~15 nodes on the bus, and 0000b indicates that there are 16 nodes on the bus ;ID04~ID00 are reserved bits. As shown in Figure 3. The data field is 8 bytes long, and the definition is shown in Table 2 for the filling description of the data field. Each communication frame contains the voting result of the node to the backward node, and the data frame reception information of other nodes.

表1Table 1

Figure GDA0001548867780000051
Figure GDA0001548867780000051

表2Table 2

Figure GDA0001548867780000061
Figure GDA0001548867780000061

具体实施方式二、结合图4至图7说明本实施方式,本实施方式为具体实施方式一所述的一种小卫星表决式通信异常诊断方法的实施例:本实施方式以五个节点的CAN总线网络为例,详细说明通信故障诊断过程:4 to 7, this embodiment is an example of a small satellite voting type communication abnormality diagnosis method described in Embodiment 1: this embodiment uses CAN of five nodes Take the bus network as an example to describe the communication fault diagnosis process in detail:

一、初始流程First, the initial process

1)如图4所示,CAN总线上节点在完成上电后,均处于签名态,默认从节点0开始发送签名帧,数据域默认填充0;1) As shown in Figure 4, after the nodes on the CAN bus are powered on, they are all in the signature state. By default, the signature frame is sent from node 0, and the data field is filled with 0 by default;

2)其他节点在收到前向节点签名帧后依次开始发送签名帧,数据域默认填充0;2) Other nodes start to send signature frames in turn after receiving the forward node signature frame, and the data field is filled with 0 by default;

3)在所有节点发送签名帧后,节点0开始发送表决正常帧,由于未收到其他节点的表决正常帧,数据域状态填写0;3) After all nodes send signature frames, node 0 starts to send voting normal frames. Since no voting normal frames from other nodes are received, the data field status is filled with 0;

4)节点1在收到节点0的表决正常帧后,发送表决正常帧,由于接收到节点0的表决正常帧,所以发送的表决正常帧中数据域节点0状态填写0+1=1;4) After receiving the normal voting frame of node 0, node 1 sends the normal voting frame. Since the normal voting frame of node 0 is received, the state of node 0 in the data field of the sent normal voting frame is filled with 0+1=1;

5)节点2在接收到节点1的表决正常帧后,发送表决正常帧,节点1的表决正常帧中节点0的状态为1,且节点2接收到了节点0发送的表决正常帧,因此数据域节点0的状态填写1+1=2;由于接收到节点1的表决正常帧,数据域节点1状态填写1;5) Node 2 sends a voting normal frame after receiving the voting normal frame of node 1. The state of node 0 in the voting normal frame of node 1 is 1, and node 2 receives the voting normal frame sent by node 0, so the data field The status of node 0 is filled with 1+1=2; since the voting normal frame of node 1 is received, the status of node 1 in the data domain is filled with 1;

6)节点3在接收到节点2的表决正常帧后,发送表决正常帧,节点2的表决正常帧中数据域节点0的状态为2,数据域节点1状态为1,且节点3接收到了节点0、节点1发送的表决正常帧,因此发送的表决正常帧中数据域节点0的状态填写2+1=3,数据域节点1的状态填写1+1=2;由于接收到节点2的表决正常帧,数据域节点2状态填写1;6) After receiving the voting normal frame of node 2, node 3 sends the voting normal frame. In the voting normal frame of node 2, the state of data domain node 0 is 2, the state of data domain node 1 is 1, and node 3 receives the node 0. The voting normal frame sent by node 1, so in the voting normal frame sent, fill in 2+1=3 for the state of node 0 in the data domain, and fill in 1+1=2 for the state of node 1 in the data domain; since the voting of node 2 is received For normal frames, fill in 1 for the status of node 2 in the data field;

7)节点4在接收到节点3发送的表决正常帧后,第1个满足表决条件,开始对节点0的进行表决,节点3的表决正常帧中数据域节点0的状态为3,且节点4接收到了节点0的表决正常帧,节点4接收到的节点0的状态为3+1=4,除被表决节点外,所有节点均收到其发出的表决正常帧,因此节点4发送表决正常帧,表决节点0处于正常状态;7) After node 4 receives the voting normal frame sent by node 3, the first one satisfies the voting conditions and starts to vote on node 0. The state of node 0 in the data domain in the normal voting frame of node 3 is 3, and node 4 The voting normal frame of node 0 is received, and the status of node 0 received by node 4 is 3+1=4. Except for the voted node, all nodes have received the voting normal frame sent by it, so node 4 sends the voting normal frame. , the voting node 0 is in a normal state;

8)其他节点依次发送表决正常帧,表决后向节点的通信状态;8) Other nodes send voting normal frames in turn, and the communication status to the node after voting;

9)当节点3发送表决正常帧后,总线上所有节点均经过被表决,所有节点均处于正常状态;9) After node 3 sends the voting normal frame, all nodes on the bus have been voted, and all nodes are in a normal state;

10)总线上节点按照0->1->2->3->4->0的顺序循环发送表决正常帧。10) Nodes on the bus cyclically send voting normal frames in the order of 0->1->2->3->4->0.

二、通信异常表决流程2. Voting process for abnormal communication

1)如图5所示,若节点1发生故障,该节点未能成功发送表决正常帧;1) As shown in Figure 5, if node 1 fails, the node fails to send the voting normal frame successfully;

2)节点2未收到前向节点的表决正常帧,超时时间ΔT=10ms,节点2在等待20ms后,自主发送表决正常帧,由于未收到节点1的表决正常帧,数据域节点1状态填写0;2) Node 2 does not receive the normal voting frame from the forward node, and the timeout time ΔT=10ms. After waiting for 20ms, node 2 sends the normal voting frame independently. Since the normal voting frame from node 1 is not received, the state of node 1 in the data domain is fill in 0;

3)节点3接收到节点2的表决正常帧后,发送表决正常帧,由于节点2的表决正常帧中数据域节点1状态为0,且节点3未收到节点1的表决正常帧,因此数据域节点1状态填写0;3) After node 3 receives the voting normal frame of node 2, it sends the voting normal frame. Since the state of node 1 in the data field in the voting normal frame of node 2 is 0, and node 3 has not received the voting normal frame of node 1, the data Fill in 0 for the status of domain node 1;

4)其他节点在收到前向节点表决正常帧后发送表决正常帧;4) Other nodes send the voting normal frame after receiving the voting normal frame from the forward node;

5)节点0收到前向节点发送的表决正常帧后,数据域节点1状态为0,发送表决异常帧,表决节点1出现异常;5) After node 0 receives the normal voting frame sent by the forward node, the status of node 1 in the data domain is 0, and the voting abnormal frame is sent, and the voting node 1 is abnormal;

6)其他节点继续进行表决流程,表决其后向节点通信状态;6) Other nodes continue the voting process, and then communicate the status to the node after voting;

7)若节点0连续3次表决节点1通信异常,在第3次发送表决异常帧后,节点0与节点1进入质询态。7) If node 0 votes for node 1 to communicate abnormally for three consecutive times, after sending the voting exception frame for the third time, node 0 and node 1 enter the inquiry state.

三、质询流程3. Inquiry Process

1)如图6所示,节点0与节点1处于质询态,节点0向节点1发送质询帧;1) As shown in Figure 6, node 0 and node 1 are in a challenge state, and node 0 sends a challenge frame to node 1;

2)节点0在节点1无应答并等待3ms的情况下,第2次发送质询帧;2) Node 0 sends a challenge frame for the second time when node 1 has no response and waits for 3ms;

3)节点0在节点1无应答并等待3ms的情况下,第3次发送质询帧;3) When node 1 has no response and waits for 3ms, node 0 sends a challenge frame for the third time;

4)若等待3ms后,仍未收到质询应答帧,即连续3次发送质询帧均无响应,则节点0发送隔离帧,将节点1隔离出系统,使节点1处于隔离态,不再参与总线故障诊断流程。当其他节点接收到隔离帧后,将总线上总节点数减1,总线上通信不再考虑节点1;4) If the challenge response frame is still not received after waiting for 3ms, that is, there is no response after sending the challenge frame 3 times in a row, then node 0 sends an isolation frame to isolate node 1 from the system, so that node 1 is in an isolated state and no longer participates. Bus fault diagnosis process. When other nodes receive the isolation frame, the total number of nodes on the bus is decremented by 1, and node 1 is no longer considered for communication on the bus;

5)节点0在发送隔离帧后,再次发送表决正常帧,开始新一轮表决,此时由于节点1已经被隔离,所以总线上节点总数为4,节点0的后向节点变为节点2;5) After sending the isolation frame, node 0 sends a voting normal frame again to start a new round of voting. At this time, since node 1 has been isolated, the total number of nodes on the bus is 4, and the backward node of node 0 becomes node 2;

6)节点2在接收到隔离帧后,总线上节点总数相应更改为4,前向节点变为节点0,在接收到节点0的表决正常帧后发送表决正常帧;6) After node 2 receives the isolation frame, the total number of nodes on the bus is correspondingly changed to 4, the forward node becomes node 0, and the voting normal frame is sent after receiving the voting normal frame of node 0;

7)总线上其他节点按照0->2->3->4->0的顺序循环发送表决正常帧。7) Other nodes on the bus cyclically send voting normal frames in the order of 0->2->3->4->0.

四、节点恢复正常,重新参与表决流程4. The node returns to normal and re-participates in the voting process

1)如图7所示,节点1通信恢复正常后,在其前向节点(节点0)发送表决正常帧后,发送签名帧,在总线节点总数上加1;1) As shown in Figure 7, after the communication of node 1 returns to normal, after it sends the voting normal frame to the forward node (node 0), it sends a signature frame and adds 1 to the total number of bus nodes;

2)节点2接收到节点1发送的签名帧后,在表决正常帧中更改数据域节点1的状态,表明接收到了节点1发送的签名帧;2) After node 2 receives the signature frame sent by node 1, it changes the state of node 1 in the data domain in the voting normal frame, indicating that it has received the signature frame sent by node 1;

3)其他节点按照接收规则更改数据域节点1状态;3) Other nodes change the state of data domain node 1 according to the receiving rules;

4)节点0接收到节点4的表决正常帧后,表决节点1处于正常状态,发送表决正常帧,将节点总数加1,后向节点更改为1,同时不再对节点2进行表决,其他节点接收到表决正常帧后,取消节点1的隔离状态;4) After node 0 receives the voting normal frame of node 4, voting node 1 is in a normal state, sends a voting normal frame, adds 1 to the total number of nodes, and changes the backward node to 1, and no longer votes on node 2, other nodes After receiving the voting normal frame, cancel the isolation state of node 1;

5)节点1根据数据接收状态,完成对节点2的表决,并发送表决正常帧;5) Node 1 completes the voting on Node 2 according to the data receiving state, and sends a voting normal frame;

6)其他节点将总线上总节点数变为5,完成对后向节点的表决,并发送表决正常帧;6) Other nodes change the total number of nodes on the bus to 5, complete the voting on the backward nodes, and send the voting normal frame;

7)总线上节点按照0->1->2->3->4->0的顺序循环发送表决正常帧。7) The nodes on the bus cyclically send voting normal frames in the order of 0->1->2->3->4->0.

Claims (5)

1. A small satellite voting type communication abnormity diagnosis method is characterized in that a diagnosis mechanism of multi-host combined voting is designed on a CAN bus in a daisy chain topology mode, communication is performed in a CAN bus broadcasting mode, a group of diagnosis broadcast frame protocols are designed, and voting of a single-machine communication state is realized in a time-limited response mode;
the specific diagnosis process is as follows:
setting N nodes on a CAN bus, respectively setting two adjacent nodes as a forward node and a backward node according to the sequence of node numbers from small to large, forming a voting group by all normal working nodes, and sequentially and circularly communicating according to the sequence; n is a positive integer and N is less than or equal to 16; the forward node collecting voting group completes voting on the backward nodes according to the data receiving states of N-1 nodes except the backward nodes;
each node has four working states, namely a signature state, a voting state, an inquiry state and an isolation state;
signature state: after the nodes are initially electrified or normal communication is converted from abnormal communication, the nodes enter a signature state by default, and each node broadcasts and sends a signature frame to a CAN bus after receiving a signature frame, a voting frame or overtime according to the node number of the node, so that the node is represented to be in a normal communication state;
voting state:
after the signature frame is sent, the nodes enter a voting state, and the voting frame of the backward nodes is broadcast and sent after the voting frame of the forward nodes is received or the overtime time is reached according to the receiving state of the voting frame on the CAN bus and the state of each node in the data domain of the voting frame; if no abnormal state occurs, the nodes on the CAN bus always work in a voting state; if isolated frames sent by other nodes are received, eliminating the nodes in an isolated state from a voting group during voting;
a challenge state:
after a certain node is voted as abnormal by a forward node for three times continuously, the node is judged to be an abnormal node, the abnormal node and the forward node enter an inquiry state simultaneously, the forward node sends an inquiry frame to a backward node, the backward node returns an inquiry response frame after receiving the inquiry frame, if the backward node returns the inquiry response frame, the backward node and the forward node both return a voting state, and a voting group continues to carry out a voting process; if the backward node is continuously inquired for three times and has no response, the forward node broadcasts and sends an isolation frame to the CAN bus, the backward node is isolated out of a voting group, and the backward node enters an isolation state; the forward node returns to a voting state after sending the isolation frame;
isolation state:
and when the isolated node recovers normal communication, the isolated node enters a signature state by default.
2. A voting type communication abnormality diagnosis method for minisatellite according to claim 1, wherein the timeout time is calculated by: each node dynamically calculates the overtime time according to the node serial number contained in the received communication frame, and the calculation method of the overtime time is as follows: if the node number is larger than the node number of the sending communication frame, the node overtime time is (the node number-the node number of the sending communication frame) × delta T; and if the node number is not more than the node number of the sending communication frame, the node overtime time is (the total node number + the node number-the node number of the sending communication frame) × Delta T, and the Delta T is the set unit overtime time.
3. A voting type communication abnormality diagnosis method for small satellites according to claim 1, wherein if isolated frames sent by other nodes are received, nodes in an isolated state are rejected from a voting group during voting, and the total number of nodes on a bus is reduced by 1.
4. A voting type communication abnormality diagnosis method for small satellites according to claim 1, wherein when the isolated node recovers normal communication, a signature frame is sent, and after voting that the node is normal through its forward node, 1 is added to the total number of CAN bus nodes.
5. A voting type communication abnormality diagnosis method for small satellite according to claim 2, wherein the communication frame includes information received by the node that transmitted the frame and the result of voting performed by the node that subsequently transmitted the frame or the data frame of the other node.
CN201711062917.4A 2017-11-02 2017-11-02 A method for diagnosing abnormal communication of small satellite voting type Active CN107819618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711062917.4A CN107819618B (en) 2017-11-02 2017-11-02 A method for diagnosing abnormal communication of small satellite voting type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711062917.4A CN107819618B (en) 2017-11-02 2017-11-02 A method for diagnosing abnormal communication of small satellite voting type

Publications (2)

Publication Number Publication Date
CN107819618A CN107819618A (en) 2018-03-20
CN107819618B true CN107819618B (en) 2020-07-31

Family

ID=61604708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711062917.4A Active CN107819618B (en) 2017-11-02 2017-11-02 A method for diagnosing abnormal communication of small satellite voting type

Country Status (1)

Country Link
CN (1) CN107819618B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224838A (en) * 2019-12-10 2020-06-02 中国航空工业集团公司西安航空计算技术研究所 Method for confirming node state in time-triggered bus and node

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN87104733A (en) * 1987-07-04 1988-03-16 上海电信设备三厂 Single-chip microcomputer distributed control time division multiplexer
CN102447603A (en) * 2012-02-08 2012-05-09 浙江中控技术股份有限公司 Bus redundancy method and system based on on-line real-time diagnosis of link state
US8230269B2 (en) * 2008-06-17 2012-07-24 Microsoft Corporation Monitoring data categorization and module-based health correlations
CN105467973A (en) * 2015-12-23 2016-04-06 北京卫星制造厂 A method for fault monitoring and processing of a lower computer
CN105743755A (en) * 2016-04-19 2016-07-06 上海君协光电科技发展有限公司 Dual-redundant CAN bus communication system
WO2016209115A1 (en) * 2015-06-25 2016-12-29 Федеральное государственное унитарное предприятие "Всероссийский научно-исследовательский институт автоматики им. Н.Л. Духова" Safety control system for a nuclear power plant
CN106970857A (en) * 2017-02-09 2017-07-21 上海航天控制技术研究所 A kind of restructural triple redundance computer system and its reconstruct down method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN87104733A (en) * 1987-07-04 1988-03-16 上海电信设备三厂 Single-chip microcomputer distributed control time division multiplexer
US8230269B2 (en) * 2008-06-17 2012-07-24 Microsoft Corporation Monitoring data categorization and module-based health correlations
CN102447603A (en) * 2012-02-08 2012-05-09 浙江中控技术股份有限公司 Bus redundancy method and system based on on-line real-time diagnosis of link state
WO2016209115A1 (en) * 2015-06-25 2016-12-29 Федеральное государственное унитарное предприятие "Всероссийский научно-исследовательский институт автоматики им. Н.Л. Духова" Safety control system for a nuclear power plant
CN105467973A (en) * 2015-12-23 2016-04-06 北京卫星制造厂 A method for fault monitoring and processing of a lower computer
CN105743755A (en) * 2016-04-19 2016-07-06 上海君协光电科技发展有限公司 Dual-redundant CAN bus communication system
CN106970857A (en) * 2017-02-09 2017-07-21 上海航天控制技术研究所 A kind of restructural triple redundance computer system and its reconstruct down method

Also Published As

Publication number Publication date
CN107819618A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
CN106444425B (en) Design method of TTP/C bus controller for distributed control of aeroengine
KR102213762B1 (en) Two-way architecture with redundant ccdl's
EP2209241B1 (en) System and method for a cross channel data link (CCDL)
US7372859B2 (en) Self-checking pair on a braided ring network
US10397668B2 (en) Wakeup sequence for two-wire daisy chain communication system
RU2679706C2 (en) Two-channel architecture
CN101512984A (en) Cluster coupler unit and method for synchronizing a plurality of clusters in a time-triggered network
JP2007517427A (en) Moebius time-triggered communication
CN107276710B (en) Time-triggered Ethernet fault diagnosis method based on time synchronization state monitoring
CN107819618B (en) A method for diagnosing abnormal communication of small satellite voting type
Bai Analysis of a SAE AS5643 Mil-1394b based high-speed avionics network architecture for space and defense applications
Kimm et al. Integrated fault tolerant system for automotive bus networks
JP6410914B1 (en) Serial communication system
US9323629B2 (en) Method for managing path failures of OSEK networks
Hall et al. Ringing out fault tolerance. a new ring network for superior low-cost dependability
WO2006080433A1 (en) Information processing apparatus and information processing method
Ballesteros et al. Towards preventing error propagation in a real-time Ethernet switch
EP3076604B1 (en) Communication device and link establishment method
Chen et al. Design of FlexRay-based communication on triplex redundancy flight control computer
Sedhumadhavan et al. Design of FPGA based Flexray Communication Protocol for Superior Automotive Applications
Paulitsch ASCB–Avionics Standard Communications Bus
Li The analysis of the avionics application of the time-triggered protocol bus
Zhang et al. Research and software design of high reliability communication of CAN bus ID dynamically configurable on satellite
Malekpour Achieving Agreement In Three Rounds With Bounded-Byzantine Faults
Hall et al. ESCAPE CAN Limitations

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
CP03 Change of name, title or address

Address after: No. 1299, Mingxi Road, Beihu science and Technology Development Zone, Changchun City, Jilin Province

Patentee after: Changguang Satellite Technology Co.,Ltd.

Address before: No.1759 Mingxi Road, Gaoxin North District, Changchun City, Jilin Province

Patentee before: CHANG GUANG SATELLITE TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A voting based communication anomaly diagnosis method for small satellites

Granted publication date: 20200731

Pledgee: Jilin Province Trust Co.,Ltd.

Pledgor: Changguang Satellite Technology Co.,Ltd.

Registration number: Y2024220000062

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20200731

Pledgee: Jilin Province Trust Co.,Ltd.

Pledgor: Changguang Satellite Technology Co.,Ltd.

Registration number: Y2024220000062

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A small satellite voting based communication anomaly diagnosis method

Granted publication date: 20200731

Pledgee: Jilin Dehui Rural Commercial Bank Co.,Ltd. Yatai Street Branch

Pledgor: Changguang Satellite Technology Co.,Ltd.

Registration number: Y2025220000053