[go: up one dir, main page]

CN107046493B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN107046493B
CN107046493B CN201710293588.8A CN201710293588A CN107046493B CN 107046493 B CN107046493 B CN 107046493B CN 201710293588 A CN201710293588 A CN 201710293588A CN 107046493 B CN107046493 B CN 107046493B
Authority
CN
China
Prior art keywords
data packet
bus
communication
node
address
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
CN201710293588.8A
Other languages
Chinese (zh)
Other versions
CN107046493A (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.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN201710293588.8A priority Critical patent/CN107046493B/en
Publication of CN107046493A publication Critical patent/CN107046493A/en
Application granted granted Critical
Publication of CN107046493B publication Critical patent/CN107046493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/40006Architecture of a communication node
    • 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/18513Transmission in a satellite or space-based system
    • 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/40006Architecture of a communication node
    • H04L12/40019Details regarding a bus master
    • 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/40006Architecture of a communication node
    • H04L12/40032Details regarding a bus interface enhancer
    • 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/40267Bus for use in transportation systems
    • H04L2012/4028Bus for use in transportation systems the transportation system being an aircraft

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)
  • Mobile Radio Communication Systems (AREA)
  • Radio Relay Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本公开是关于一种通信方法及装置,应用于包括主控节点和多个被控节点的卫星系统中,该方法应用于主控节点,包括:通过与被控节点连接的一条总线,向被控节点发送点名信息;在点名信息发送后的第一预设时间段内,判断通过点名信息所使用的总线是否接收到被控节点发送的第一数据包;若接收到第一数据包,判断目的地址是否为主控节点的地址;若目的地址不是主控节点的地址,判断目的地址与源地址是否在同一总线上;若目的地址与源地址不在同一总线上,将第一数据包转发到与目的地址对应的目标总线上。该方法中主控节点相当于一个控制枢纽,可以协调不同被控节点上传数据包,并且在需要转发时,可以将数据包在不同总线之间进行转发。

The present disclosure relates to a communication method and device, which are applied to a satellite system including a master control node and a plurality of controlled nodes. The method is applied to the master control node, including: sending the The control node sends the roll call information; within the first preset time period after the roll call information is sent, judge whether the bus used by the roll call information has received the first data packet sent by the controlled node; if the first data packet is received, judge Whether the destination address is the address of the master control node; if the destination address is not the address of the master control node, judge whether the destination address and the source address are on the same bus; if the destination address and the source address are not on the same bus, forward the first data packet to on the target bus corresponding to the destination address. In this method, the master control node is equivalent to a control hub, which can coordinate different controlled nodes to upload data packets, and when forwarding is required, the data packets can be forwarded between different buses.

Description

通信方法及装置Communication method and device

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种通信方法及装置。The present application relates to the technical field of communication, and in particular to a communication method and device.

背景技术Background technique

星内通信总线用以完成卫星各分系统、部组件之间的信息交互。卫星通常由星务、姿控、载荷、能源、热控、通信、推进等分系统组成,作为一个协同工作的整体,各分系统、部组件之间需要进行信息交互。The intra-satellite communication bus is used to complete the information exchange between satellite subsystems and components. Satellites are usually composed of subsystems such as satellite affairs, attitude control, payload, energy, thermal control, communication, and propulsion. As a whole that works together, information interaction between subsystems and components is required.

通常情况下,星内信息流的拓扑结构是网状结构,但考虑到信号线太多,接口数量有限等因素,在星内采用点对点的连线方式进行通信是不现实的,因此星内系统采用总线是一种必然的选择。Usually, the topological structure of the information flow in the star is a mesh structure, but considering factors such as too many signal lines and a limited number of interfaces, it is unrealistic to use a point-to-point connection for communication in the star, so the intra-satellite system Using the bus is an inevitable choice.

近年来卫星星内通信总线相关研究有很多,如1553、CAN(Controller AreaNetwork,控制器局域网络)、485、422等,这些总线设备均需要专用的接口。然而现实的情况是,各个星内组件的通信接口类型不尽相同,有些小型组件由于自身尺寸、质量、功耗、成本限制也不可能添加1553、CAN等接口,因此在不改变接口的基础上,采用一个总线所有的组件连接起来,比较困难。In recent years, there have been a lot of researches on communication buses in satellites, such as 1553, CAN (Controller Area Network, Controller Area Network), 485, 422, etc. These bus devices all require dedicated interfaces. However, the reality is that the types of communication interfaces of components in each satellite are not the same, and some small components cannot add 1553, CAN and other interfaces due to their own size, quality, power consumption, and cost constraints. Therefore, on the basis of not changing the interface , It is difficult to connect all the components with one bus.

发明内容Contents of the invention

本申请公开了一种通信方法及装置,以解决背景技术中卫星星内无法利用总线与所有的组件进行通信的问题。The present application discloses a communication method and device to solve the problem in the background art that the satellite cannot use the bus to communicate with all the components.

为解决上述技术问题,本申请公开如下技术方案:In order to solve the above technical problems, the application discloses the following technical solutions:

一种通信方法,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接,所述通信方法应用于主控节点,所述通信方法包括:A communication method, applied in a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes communicates with at least one Bus connection, the communication method is applied to the master control node, the communication method includes:

通过与所述被控节点连接的一条总线,向所述被控节点发送点名信息;Send roll call information to the controlled node through a bus connected to the controlled node;

在所述点名信息发送后的第一预设时间段内,判断通过所述点名信息所使用的总线是否接收到所述被控节点发送的第一数据包,所述第一数据包携带有目的地址和源地址;Within the first preset time period after the roll call information is sent, it is judged whether the bus used by the roll call information has received the first data packet sent by the controlled node, and the first data packet carries a purpose address and source address;

若接收到第一数据包,判断所述目的地址是否为所述主控节点的地址;If the first data packet is received, judging whether the destination address is the address of the master control node;

若所述目的地址不是所述主控节点的地址,判断所述目的地址与源地址是否在同一总线上;If the destination address is not the address of the master control node, determine whether the destination address and the source address are on the same bus;

若所述目的地址与源地址不在同一总线上,将所述第一数据包转发到与所述目的地址对应的目标总线上。If the destination address is not on the same bus as the source address, the first data packet is forwarded to the destination bus corresponding to the destination address.

可选地,所述通过与所述被控节点连接的至少一条总线,向所述被控节点发送点名信息,包括:Optionally, sending roll call information to the controlled node through at least one bus connected to the controlled node includes:

确定与每个被控节点对应的时间划分信息,所述时间划分信息包括:被控节点标识和时间片的对应关系,且所述被控节点与时间片一一对应;Determine the time division information corresponding to each controlled node, the time division information includes: the corresponding relationship between the controlled node identifier and the time slice, and the controlled node corresponds to the time slice one by one;

确定与每个被控节点相连接的一条总线作为工作总线;Determine a bus connected to each controlled node as the working bus;

按照所有被控节点的地址排序顺序,依次通过各自对应的工作总线向每个所述被控节点发送点名信息。According to the sorting order of the addresses of all the controlled nodes, roll call information is sent to each of the controlled nodes sequentially through their corresponding working buses.

可选地,所述方法还包括:Optionally, the method also includes:

若未接收到第一数据包,将与所述被控节点对应的通信错误计数值加1,并按照设定间隔继续向所述被控节点发送点名信息;If the first data packet is not received, add 1 to the communication error count value corresponding to the controlled node, and continue to send roll call information to the controlled node according to the set interval;

若所述通信错误计数值大于预设错误门限值时,确定与所述点名信息相对应的被控节点通信异常;If the communication error count value is greater than a preset error threshold value, it is determined that the controlled node corresponding to the roll call information is abnormal in communication;

判断与所述通信异常的被控节点是否与多条总线相连接;judging whether the controlled node with abnormal communication is connected to multiple buses;

若所述通信异常的被控节点与多条总线相连接,根据预设总线备用列表中在所述通信异常的被控节点的剩余总线选择一条总线作为新工作总线;If the controlled node with abnormal communication is connected to multiple buses, select a bus as the new working bus according to the remaining buses of the controlled node with abnormal communication in the preset bus standby list;

在与所述通信异常的被控节点对应的下一个时间片,通过所述新工作总线向所述通信异常的被控节点发送点名信息。In a next time slice corresponding to the controlled node with abnormal communication, roll call information is sent to the controlled node with abnormal communication through the new working bus.

可选地,所述方法还包括:Optionally, the method also includes:

接收地面站通过与所述主控节点相连接的测控链路发送的第二数据包;receiving the second data packet sent by the ground station through the measurement and control link connected to the master control node;

判断所述第二数据包的目的地址是否等于所述主控节点的地址;judging whether the destination address of the second data packet is equal to the address of the master control node;

若所述第二数据包的目的地址不等于所述主控节点的地址,将所述第二数据包转发到与所述目的地址对应的总线上;If the destination address of the second data packet is not equal to the address of the master control node, forward the second data packet to the bus corresponding to the destination address;

或者,or,

若所述第一数据包的目的地址与源地址不在同一总线上,所述方法还包括:If the destination address and the source address of the first data packet are not on the same bus, the method also includes:

判断所述第一数据包的目的地址是否为地面站地址;judging whether the destination address of the first data packet is a ground station address;

若所述第一数据包的目的地址为地面站地址,通过与所述主控节点相连接的测控链路将所述第一数据包发送给地面站。If the destination address of the first data packet is the address of the ground station, the first data packet is sent to the ground station through the measurement and control link connected to the master control node.

一种通信方法,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接,所述通信方法应用于被控节点,所述通信方法包括:A communication method, applied in a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes communicates with at least one Bus connection, the communication method is applied to the controlled node, the communication method includes:

通过与所述被控节点相连接的至少一个总线接收点名信息;receiving roll call information through at least one bus connected to the controlled node;

将所述点名信息所使用的总线上确定为工作总线;Determining the bus used by the roll call information as a working bus;

在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上。Sending the first data packet to the working bus within a second preset time period after receiving the roll call information.

可选地,在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上之前,所述方法还包括:Optionally, before sending the first data packet to the working bus within a second preset time period after receiving the roll call information, the method further includes:

将所有待转发数据包放入到发送队列中,所述发送队列中的数据包遵循先入先出原则;Put all data packets to be forwarded into the sending queue, and the data packets in the sending queue follow the first-in-first-out principle;

将所述发送队列中的排序第一的数据包确定为第一数据包;determining the first data packet in the sending queue as the first data packet;

或者,在所述第一数据包被发送后,所述方法还包括:Or, after the first data packet is sent, the method further includes:

判断所述第一数据包是否需要接收确认消息;judging whether the first data packet needs to receive a confirmation message;

若不需要接收确认消息,将所述发送队列中排序第一的数据包移除,将所述发送队列中下一个排序第一的数据包确定为新的第一数据包;If the confirmation message does not need to be received, the first data packet in the sending queue is removed, and the next first data packet in the sending queue is determined as a new first data packet;

若需要接收确认消息,判断所述第一数据包发送后的第三预设时间段内是否接收到确认消息;若接收到确认消息,将预设通信异常值置0;若未接收到确认消息,重新发送所述第一数据包,并对重发次数进行计数;若重发次数大于预设重发门限值,丢失所述第一数据包,并将所述预设通信异常值加1;If it is necessary to receive a confirmation message, determine whether the confirmation message is received within the third preset time period after the first data packet is sent; if the confirmation message is received, set the preset communication abnormal value to 0; if the confirmation message is not received , resend the first data packet, and count the number of retransmissions; if the number of retransmissions is greater than the preset retransmission threshold, lose the first data packet, and add 1 to the preset communication abnormal value ;

若通信异常值大于预设异常值门限值,确定所述工作总线异常。If the communication abnormal value is greater than the preset abnormal value threshold, it is determined that the working bus is abnormal.

一种通信装置,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接,所述通信装置应用于主控节点,所述通信装置包括:A communication device, applied in a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes communicates with at least one Bus connection, the communication device is applied to the master control node, and the communication device includes:

点名信息发送单元,用于通过与所述被控节点连接的一条总线,向所述被控节点发送点名信息;a roll call information sending unit, configured to send roll call information to the controlled node through a bus connected to the controlled node;

数据包接收判断单元,用于在所述点名信息发送后的第一预设时间段内,判断通过所述点名信息所使用的总线是否接收到所述被控节点发送的第一数据包,所述第一数据包携带有目的地址和源地址;The data packet reception judging unit is used to judge whether the bus used by the roll call information has received the first data packet sent by the controlled node within the first preset time period after the roll call information is sent, so The first data packet carries a destination address and a source address;

地址判断单元,用于当接收到第一数据包时,判断所述目的地址是否为所述主控节点的地址;an address judging unit, configured to judge whether the destination address is the address of the master control node when the first data packet is received;

总线判断单元,用于当所述目的地址不是所述主控节点的地址时,判断所述目的地址与源地址是否在同一总线上;A bus judging unit, configured to judge whether the destination address and the source address are on the same bus when the destination address is not the address of the master control node;

转发单元,用于当所述目的地址与源地址不在同一总线上时,将所述第一数据包转发到与所述目的地址对应的目标总线上。A forwarding unit, configured to forward the first data packet to a target bus corresponding to the destination address when the destination address is not on the same bus as the source address.

可选地,所述点名信息发送单元,包括:Optionally, the roll call information sending unit includes:

时间划分信息确定子单元,用于确定与每个被控节点对应的时间划分信息,所述时间划分信息包括:被控节点标识和时间片的对应关系,且所述被控节点与时间片一一对应;The time division information determination subunit is used to determine the time division information corresponding to each controlled node, the time division information includes: the corresponding relationship between the controlled node identifier and the time slice, and the controlled node is equal to the time slice one-to-one correspondence;

工作总线确定子单元,用于确定与每个被控节点相连接的一条总线作为工作总线;A working bus determining subunit, configured to determine a bus connected to each controlled node as a working bus;

发送子单元,用于按照所有被控节点的地址排序顺序,依次通过各自对应的工作总线向每个所述被控节点发送点名信息。The sending subunit is configured to send roll call information to each of the controlled nodes sequentially through their corresponding working buses according to the address sorting order of all the controlled nodes.

可选地,所述装置还包括:Optionally, the device also includes:

计数确定单元,用于当未接收到第一数据包,将与所述被控节点对应的通信错误计数值加1;A count determination unit, configured to add 1 to the communication error count value corresponding to the controlled node when the first data packet is not received;

所述点名信息发送单元还用于按照设定间隔继续向所述被控节点发送点名信息;The roll call information sending unit is further configured to continue sending roll call information to the controlled node at a set interval;

异常确定单元,用于在所述通信错误计数值大于预设错误门限值时,确定与所述点名信息相对应的被控节点通信异常;An abnormality determination unit, configured to determine that the communication of the controlled node corresponding to the roll call information is abnormal when the communication error count value is greater than a preset error threshold;

总线判断单元,用于判断与所述通信异常的被控节点是否与多条总线相连接;a bus judging unit, configured to judge whether the controlled node with the abnormal communication is connected to multiple buses;

总线切换单元,用于当所述通信异常的被控节点与多条总线相连接时,根据预设总线备用列表中在所述通信异常的被控节点的剩余总线选择一条总线作为新工作总线;A bus switching unit, configured to select a bus as a new working bus according to the remaining buses of the controlled node with abnormal communication in the preset bus standby list when the controlled node with abnormal communication is connected to multiple buses;

所述发送单元,还用于在与所述通信异常的被控节点对应的下一个时间片,通过所述新工作总线向所述通信异常的被控节点发送点名信息。The sending unit is further configured to send roll call information to the controlled node with abnormal communication through the new working bus in the next time slice corresponding to the controlled node with abnormal communication.

可选地,所述装置还包括:Optionally, the device also includes:

数据包接收单元,用于接收地面站通过与所述主控节点相连接的测控链路发送的第二数据包;A data packet receiving unit, configured to receive the second data packet sent by the ground station through the measurement and control link connected to the master control node;

第一地址判断单元,用于判断所述第二数据包的目的地址是否等于所述主控节点的地址;a first address judging unit, configured to judge whether the destination address of the second data packet is equal to the address of the master control node;

数据包转发单元,用于当所述数据包的目的地址不等于所述主控节点的地址时,将所述第二数据包转发到与所述目的地址对应的总线上;A data packet forwarding unit, configured to forward the second data packet to the bus corresponding to the destination address when the destination address of the data packet is not equal to the address of the master control node;

或者,or,

若所述第一数据包的目的地址与源地址不在同一总线上,所述装置还包括:If the destination address and the source address of the first data packet are not on the same bus, the device also includes:

第二地址判断单元,用于判断所述第一数据包的目的地址是否为地面站地址;A second address judging unit, configured to judge whether the destination address of the first data packet is a ground station address;

数据包发送单元,用于当所述第一数据包的目的地址为地面站地址时,通过与所述主控节点相连接的测控链路将所述第一数据包发送给地面站。A data packet sending unit, configured to send the first data packet to the ground station through the measurement and control link connected to the master control node when the destination address of the first data packet is the address of the ground station.

一种通信装置,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接,所述通信装置应用于被控节点,所述装置包括:A communication device, applied in a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes communicates with at least one Bus connection, the communication device is applied to the controlled node, and the device includes:

点名信息接收单元,用于通过与所述被控节点相连接的至少一个总线接收点名信息;a roll call information receiving unit, configured to receive roll call information through at least one bus connected to the controlled node;

工作总线确定单元,用于将所述点名信息所使用的总线上确定为工作总线;A working bus determining unit, configured to determine the bus used by the roll call information as a working bus;

数据包发送单元,用于在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上。A data packet sending unit, configured to send the first data packet to the working bus within a second preset time period after receiving the roll call information.

可选地,所述装置还包括:Optionally, the device also includes:

数据包堆放单元,用于将所有待转发数据包放入到发送队列中,所述发送队列中的数据包遵循先入先出原则;The data packet stacking unit is used to put all the data packets to be forwarded into the sending queue, and the data packets in the sending queue follow the first-in-first-out principle;

第一数据包确定单元,用于将所述发送队列中的排序第一的数据包确定为第一数据包;a first data packet determining unit, configured to determine the first data packet in the sending queue as the first data packet;

或者,在所述第一数据包被发送后,所述装置还包括:Or, after the first data packet is sent, the device further includes:

确认消息判断单元,用于判断所述第一数据包是否需要接收确认消息;A confirmation message judging unit, configured to judge whether the first data packet needs to receive a confirmation message;

第一数据包更新单元,用于当不需要接收确认消息时,将所述发送队列中排序第一的数据包移除,将所述发送队列中下一个排序第一的数据包确定为新的第一数据包;The first data packet updating unit is configured to remove the first-ranked data packet in the sending queue when the confirmation message does not need to be received, and determine the next first-ranked data packet in the sending queue as a new one first packet;

确认消息判断单元,用于当需要接收确认消息,判断所述第一数据包发送后的第三预设时间段内是否接收到确认消息;通信异常设置单元,用于当接收到确认消息时,将预设通信异常值置0;第一数据包重发单元,用于当未接收到确认消息时,重新发送所述第一数据包,并对重发次数进行计数;所述通信异常设置单元,用于当重发次数大于预设重发门限值,丢失所述第一数据包,并将所述预设通信异常值加1;A confirmation message judging unit, used to determine whether a confirmation message is received within a third preset time period after the first data packet is sent when a confirmation message needs to be received; a communication abnormality setting unit is used to, when a confirmation message is received, Set the default communication abnormal value to 0; the first data packet retransmission unit is used to resend the first data packet when no confirmation message is received, and count the number of retransmissions; the communication abnormality setting unit , for when the number of retransmissions is greater than the preset retransmission threshold, the first data packet is lost, and the preset communication abnormal value is increased by 1;

异常确定单元,用于当通信异常值大于预设异常值门限值时,确定所述工作总线异常。An abnormality determining unit, configured to determine that the working bus is abnormal when the communication abnormal value is greater than a preset abnormal value threshold.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本申请实施例提供的该方法,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接。在该卫星系统中,主控节点相当于一个控制枢纽,可以协调不同被控节点上传数据包,并且在需要转发时,可以将数据包在不同总线之间进行转发。所以,只要主控节点上的接口兼容,使用原有的总线通信接口,即可方便实现不同星内系统中不同总线之间的通信。不仅使得星内系统的通信成本降低,而且有利于星内系统的拓扑结构的扩展。The method provided by the embodiment of the present application is applied to a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes Nodes are connected to at least one bus. In this satellite system, the master control node is equivalent to a control hub, which can coordinate different controlled nodes to upload data packets, and when forwarding is required, the data packets can be forwarded between different buses. Therefore, as long as the interface on the main control node is compatible, the communication between different buses in different intra-satellite systems can be realized conveniently by using the original bus communication interface. It not only reduces the communication cost of the intra-satellite system, but also facilitates the expansion of the topological structure of the intra-satellite system.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.

为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对实施例或背景技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the background technology. Obviously, for those of ordinary skill in the art, Other drawings can also be obtained from these drawings without any creative effort.

图1为本申请实施例提供的卫星系统的一种结构示意图;FIG. 1 is a schematic structural diagram of a satellite system provided by an embodiment of the present application;

图2为本申请实施例提供的卫星系统的另一种结构示意图;Fig. 2 is another schematic structural diagram of the satellite system provided by the embodiment of the present application;

图3为本申请实施例提供的一种通信方法的流程示意图;FIG. 3 is a schematic flowchart of a communication method provided in an embodiment of the present application;

图4是本申请实施例提供的一种通信装置的结构示意图;FIG. 4 is a schematic structural diagram of a communication device provided by an embodiment of the present application;

图5是本申请实施例提供的一种通信装置的结构示意图。Fig. 5 is a schematic structural diagram of a communication device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

图1为本申请实施例提供的卫星系统的一种结构示意图。FIG. 1 is a schematic structural diagram of a satellite system provided by an embodiment of the present application.

如图1所示,图中包括:主控节点0和多个被控节点(图中标号1-6)主控节点0与被控节点之间通过总线进行通信,在图1中,总线包括:CAN(Controller Area Network,控制器局域网络)总线、SPI(Serial Peripheral Interface,串行外设接口)总线、I2C(Inter-Integrated Circuit)总线以及422总线。在本申请实施例中,主控节点0具有常见的接口如UART接口、CAN接口、SPI接口、I2C接口以及422接口等,所以,主控节点0可以与CAN总线、SPI总线、I2C总线以及422总线直接通信,并且通过UART接口与一个被控节点(图中被控节点6)直接进行通信。在图1中,同一总线与不同节点进行通信时,采用相同的箭头,例如:CAN总线与所有节点之间采用实线箭头来表示,I2C总线与节点之间进行通信,采用长虚线箭头来表示。As shown in Figure 1, the figure includes: the master control node 0 and a plurality of controlled nodes (numbers 1-6 in the figure). Communication between the master control node 0 and the controlled nodes is carried out through the bus. In Figure 1, the bus includes : CAN (Controller Area Network, controller area network) bus, SPI (Serial Peripheral Interface, serial peripheral interface) bus, I2C (Inter-Integrated Circuit) bus and 422 bus. In the embodiment of this application, the master control node 0 has common interfaces such as UART interface, CAN interface, SPI interface, I2C interface and 422 interface, etc., so the master control node 0 can communicate with CAN bus, SPI bus, I2C bus and 422 The bus communicates directly, and communicates directly with a controlled node (controlled node 6 in the figure) through the UART interface. In Figure 1, when the same bus communicates with different nodes, the same arrows are used. For example, the CAN bus and all nodes are represented by solid arrows, and the communication between the I2C bus and nodes is represented by long dashed arrows. .

在本申请实施例中,每个被控节点可以与至少一条总线连接,例如:图1中,被控节点3可以通过CAN总线和I2C总线与主控节点0进行通信。由于UART(UniversalAsynchronous Receiver/Transmitter,通用异步收发传输器)接口只能进行点到点连接,所以,被控节点6只能通过一个UART接口与主控节点0进行通信。另外,由于主控节点只有一个UART接口,所以当有多个被控节点需要通过UART接口与主控节点0进行通信,可以采用FPGA(Field-Programmable Gate Array,即现场可编程门阵列)模块10进行端口扩展,如图2所示,主控节点0通过FPGA模块10上的两个UART接口分别与被控节点6、被控节点7进行通信,主控节点0通过FPGA模块10分别与:CAN总线、SPI总线、I2C总线以及422总线进行通信。In the embodiment of the present application, each controlled node can be connected to at least one bus, for example: in FIG. 1 , the controlled node 3 can communicate with the master control node 0 through the CAN bus and the I2C bus. Since the UART (Universal Asynchronous Receiver/Transmitter, Universal Asynchronous Receiver/Transmitter) interface can only be used for point-to-point connections, the controlled node 6 can only communicate with the master control node 0 through one UART interface. In addition, since the main control node has only one UART interface, when there are multiple controlled nodes that need to communicate with the main control node 0 through the UART interface, an FPGA (Field-Programmable Gate Array, ie Field Programmable Gate Array) module 10 can be used. Carry out port expansion, as shown in Figure 2, the master control node 0 communicates with the controlled node 6 and the controlled node 7 respectively through two UART interfaces on the FPGA module 10, and the master control node 0 communicates with: CAN respectively through the FPGA module 10 Bus, SPI bus, I2C bus and 422 bus for communication.

图3为本申请实施例提供的一种通信方法的流程示意图。FIG. 3 is a schematic flowchart of a communication method provided by an embodiment of the present application.

该方法应用与图1或图2所示卫星系统中,如图3所示,该通信方法可以包括以下步骤。The method is applied to the satellite system shown in FIG. 1 or FIG. 2 . As shown in FIG. 3 , the communication method may include the following steps.

S101,主控节点通过与所述被控节点连接的一条总线,向所述被控节点发送点名信息。S101. The master control node sends roll call information to the controlled node through a bus connected to the controlled node.

主控节点在工作之前,预先获取到所有被控节点的地址列表,并且主控节点预先根据被控节点的数量对时间片进行划分,得到与每个被控节点对应的通信时隙。这样每个被控节点均有一个单独对应的通信时隙。Before working, the master control node obtains the address list of all controlled nodes in advance, and the master control node divides the time slice according to the number of controlled nodes in advance, and obtains the communication time slot corresponding to each controlled node. In this way, each controlled node has a separate corresponding communication time slot.

点名信息中不包含具体的数据,其作用是为了和被控节点进行通信,以确定被控节点是否在线。在本申请实施例中,发送点名信息时,主控该节点可以根据所有被控节点的地址的顺序依次向各个被控节点发送点名信息。点名信息的格式为预设格式,并且这种格式被控节点也已预知。The roll call information does not contain specific data, and its role is to communicate with the controlled node to determine whether the controlled node is online. In the embodiment of the present application, when sending roll call information, the master node may send roll call information to each controlled node sequentially according to the order of addresses of all controlled nodes. The format of the roll call information is a preset format, and this format has also been predicted by the controlled node.

当被控节点只与一个总线连接时,主控节点可以直接通过该总线向被控节点发送点名信息即可。当被控节点与多个总线连接时,主控该节点可以在这多个总线中任意选择一个总线,然后通过该选择的总线向被控节点发送点名信息。When the controlled node is only connected to one bus, the master control node can directly send roll call information to the controlled node through the bus. When the controlled node is connected to multiple buses, the master control node can choose any bus among the multiple buses, and then send roll call information to the controlled node through the selected bus.

S102,被控节点通过与所述被控节点相连接的至少一个总线接收点名信息。S102. The controlled node receives roll call information through at least one bus connected to the controlled node.

S103,被控节点将所述点名信息所使用的总线上确定为工作总线。S103. The controlled node determines the bus used by the roll call information as a working bus.

S104,被控节点在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上。S104. The controlled node sends the first data packet to the working bus within a second preset time period after receiving the roll call information.

S105,主控节点在所述点名信息发送后的第一预设时间段内,判断通过所述点名信息所使用的总线是否接收到所述被控节点发送的第一数据包。S105. The master control node determines whether the first data packet sent by the controlled node is received through the bus used by the roll call information within a first preset time period after the roll call information is sent.

第一预设时间段可以在考虑上时延等因素的基础上设置。The first preset time period may be set on the basis of considering factors such as time delay.

在本申请实施例中,数据包的格式也已经预先通知给主控节点,并且第一数据包携带有目的地址和源地址,进而当主控该节点接收到数据后,可以根据格式以及其内携带的源地址,可以准确判断出是否为发送过点名信息的被控节点上传的第一数据包。In the embodiment of this application, the format of the data packet has also been notified to the master node in advance, and the first data packet carries the destination address and source address, and then when the master node receives the data, it can The source address carried can accurately determine whether it is the first data packet uploaded by the controlled node that sent the roll call information.

若接收到第一数据包,执行步骤S106。否则,结束流程。If the first data packet is received, step S106 is executed. Otherwise, end the process.

S106,主控该节点判断所述目的地址是否为所述主控节点的地址。S106, controlling the node to determine whether the destination address is the address of the controlling node.

由于主控节点起到的作用是数据中转枢纽,所以当主控该节点接收到第一数据包后,首先要对该第一数据包的目的地址进行分析,第一步需要分析的就是该第一数据包是否为发送给主控节点的,通过的方式就是比较目的地址和主控节点的地址是否一致。Since the role of the master control node is a data transfer hub, when the master control node receives the first data packet, it must first analyze the destination address of the first data packet. The first step is to analyze the first data packet. Whether the data packet is sent to the master control node or not is determined by comparing whether the destination address is consistent with the address of the master control node.

若所述目的地址不是所述主控节点的地址,执行步骤S107,否则,结束流程。If the destination address is not the address of the master control node, perform step S107, otherwise, end the process.

S107,主控节点判断所述目的地址与源地址是否在同一总线上。S107. The master control node judges whether the destination address and the source address are on the same bus.

如果目的地址不是主控节点的地址,则证明该第一数据包并非发送给主控节点。为此,主控节点需要判断目的地址是否和源地址在同一总线上,如果在同一总线上,那么意味着第一数据包在所发送的总线上可以自动传输,主控节点无需对该第一数据包进行处理。但如果不在同一总线上,那么,就需要主控节点将该第一数据包转发到其它总线上。If the destination address is not the address of the master control node, it proves that the first data packet is not sent to the master control node. For this reason, the master control node needs to judge whether the destination address and the source address are on the same bus. If they are on the same bus, it means that the first data packet can be automatically transmitted on the sent bus, and the master control node does not need to check the first data packet. Packets are processed. However, if they are not on the same bus, then the master control node needs to forward the first data packet to other buses.

若所述目的地址与源地址不在同一总线上,执行步骤S108,否则,结束流程。If the destination address and the source address are not on the same bus, execute step S108; otherwise, end the process.

S108,主控节点将所述第一数据包转发到与所述目的地址对应的目标总线上。S108. The master control node forwards the first data packet to the target bus corresponding to the destination address.

在预先登记所有被控节点的地址时,还同时登记了被控节点与总线之间的隶属对应关系,也即每条总线上有哪些被控节点,进而当得知待转发的第一数据包中的目标地址后,即可根据前述隶属对应关系,查找到和该目标地址对应的目标总线。When pre-registering the addresses of all controlled nodes, the corresponding relationship between the controlled nodes and the bus is also registered at the same time, that is, which controlled nodes are on each bus, and then when the first data packet to be forwarded is known After the target address in , the target bus corresponding to the target address can be found according to the aforementioned affiliation correspondence.

本申请实施例提供的该方法,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接。在该卫星系统中,主控节点相当于一个控制枢纽,可以协调不同被控节点上传数据包,并且在需要转发时,可以将数据包在不同总线之间进行转发。所以,只要主控节点上的接口兼容,使用原有的总线通信接口,即可方便实现不同星内系统中不同总线之间的通信。不仅使得星内系统的通信成本降低,而且有利于星内系统的拓扑结构的扩展。The method provided by the embodiment of the present application is applied to a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes Nodes are connected to at least one bus. In this satellite system, the master control node is equivalent to a control hub, which can coordinate different controlled nodes to upload data packets, and when forwarding is required, the data packets can be forwarded between different buses. Therefore, as long as the interface on the main control node is compatible, the communication between different buses in different intra-satellite systems can be realized conveniently by using the original bus communication interface. It not only reduces the communication cost of the intra-satellite system, but also facilitates the expansion of the topological structure of the intra-satellite system.

此外,当主控节点上的接口数量较少,不够使用时,还可以在增加一个FPGA模块作为扩展接口模块,如图2所示,以便于主控节点可以兼容更多的总线。In addition, when the number of interfaces on the master control node is too small to be used, an FPGA module can be added as an expansion interface module, as shown in Figure 2, so that the master control node can be compatible with more buses.

在本申请实施例中,前述步骤S101在转发点名信息时,可以采用以下步骤。In the embodiment of the present application, the following steps may be adopted when forwarding the roll call information in the aforementioned step S101.

S11,确定与每个被控节点对应的时间划分信息。S11. Determine time division information corresponding to each controlled node.

所述时间划分信息包括:被控节点标识和时间片的对应关系,且所述被控节点与时间片一一对应。在本申请实施例中,可以预先为每个被控节点划分一个独立的时间片,以便在该时间片内与该特定的被控节点进行通信。The time division information includes: a correspondence between controlled node identifiers and time slices, and the controlled nodes correspond to time slices one-to-one. In the embodiment of the present application, an independent time slice may be allocated for each controlled node in advance, so as to communicate with the specific controlled node within the time slice.

S12,主控节点确定与每个被控节点相连接的一条总线作为工作总线。S12. The master control node determines a bus connected to each controlled node as a working bus.

S13,主控节点按照所有被控节点的地址排序顺序,依次通过各自对应的工作总线向每个所述被控节点发送点名信息。S13, the master control node sends roll call information to each of the controlled nodes sequentially through their corresponding working buses according to the address sorting order of all the controlled nodes.

在本申请实施例中,主控节点在所述点名信息发送后的第一预设时间段内未接收到第一数据包,还可以包括以下步骤。In the embodiment of the present application, the master control node does not receive the first data packet within the first preset time period after the roll call information is sent, and may further include the following steps.

S21,主控节点将与所述被控节点对应的通信错误计数值加1,并按照设定间隔继续向所述被控节点发送点名信息。S21. The master control node adds 1 to the communication error count value corresponding to the controlled node, and continues to send roll call information to the controlled node at a set interval.

S22,主控节点按照设定间隔继续向所述被控节点发送点名信息。S22. The master control node continues to send roll call information to the controlled node at a set interval.

S23,主控节点确定与所述点名信息相对应的被控节点通信异常。S23. The master control node determines that the communication of the controlled node corresponding to the roll call information is abnormal.

S24,主控节点判断与所述通信异常的被控节点是否与多条总线相连接。S24. The master control node judges whether the controlled node with abnormal communication is connected to multiple buses.

S25,若所述通信异常的被控节点与多条总线相连接,主控节点根据预设总线备用列表中在所述通信异常的被控节点的剩余总线选择一条总线作为新工作总线。S25. If the controlled node with abnormal communication is connected to multiple buses, the master control node selects a bus as a new working bus according to the remaining buses of the controlled node with abnormal communication in the preset bus backup list.

S26,主控节点在与所述通信异常的被控节点对应的下一个时间片,通过所述新工作总线向所述通信异常的被控节点发送点名信息。S26. The master control node sends roll call information to the controlled node with abnormal communication through the new working bus in a next time slice corresponding to the controlled node with abnormal communication.

通过该方法,对于与多条总线相连接的被控节点,主控节点可以通过尝试的方式在多个总线之间进行切换,直至找到可以通信的总线。但如果某一个被控节点连接的所有总线都尝试后,仍未收到该被控节点反馈的第一数据包,那么就可以确定该被控节点下线或故障,并且对该被控节点进行标记,后续不再向其发送点名信息,并且同时可以将分配给被控节点的时间片剔除,以实现对分配的时间片进行优化。With this method, for a controlled node connected to multiple buses, the master control node can switch between multiple buses in a trial manner until a bus that can communicate is found. However, if the first data packet fed back by the controlled node has not been received after trying all the buses connected to a certain controlled node, then it can be determined that the controlled node is offline or faulty, and the controlled node is checked. mark, no roll call information will be sent to it in the future, and at the same time, the time slice allocated to the controlled node can be removed to optimize the allocated time slice.

在本申请实施例中,主控节点作为数据传输枢纽,通常还可以通过数传设备直接与地面站进行通信,为了实现地面站与被控节点之间的通信,该方法还可以包括以下步骤。In the embodiment of the present application, the main control node, as a data transmission hub, can also directly communicate with the ground station through data transmission equipment. In order to realize the communication between the ground station and the controlled node, the method may also include the following steps.

S31,主控节点接收地面站通过与所述主控节点相连接的测控链路发送的第二数据包;S31. The main control node receives the second data packet sent by the ground station through the measurement and control link connected to the main control node;

S32,主控节点判断所述第二数据包的目的地址是否等于所述主控节点的地址;S32. The master control node judges whether the destination address of the second data packet is equal to the address of the master control node;

S33,若所述第二数据包的目的地址不等于所述主控节点的地址,主控节点将所述第二数据包转发到与所述目的地址对应的总线上。S33. If the destination address of the second data packet is not equal to the address of the master control node, the master control node forwards the second data packet to the bus corresponding to the destination address.

相应地,当被控节点通过总线发送第一数据包后,在主控节点判断出第一数据包的目标地址与源地址不在同一总线上时,该方法还可以包括以下步骤。Correspondingly, after the controlled node sends the first data packet through the bus, when the master control node judges that the destination address of the first data packet is not on the same bus as the source address, the method may further include the following steps.

S41,主控节点判断所述第一数据包的目的地址是否为地面站地址;S41. The master control node judges whether the destination address of the first data packet is a ground station address;

若所述第一数据包的目的地址为地面站地址,S42,主控节点通过与所述主控节点相连接的测控链路将所述第一数据包发送给地面站。If the destination address of the first data packet is the address of the ground station, S42, the master control node sends the first data packet to the ground station through the measurement and control link connected to the master control node.

通过上述描述,可知,无论是地面站向被控节点发送数据包,还是被控节点向地面站发送数据包,主控节点均可以根据数据包中的目的地址轻松进行转发。From the above description, it can be seen that whether the ground station sends a data packet to the controlled node or the controlled node sends a data packet to the ground station, the master control node can easily forward it according to the destination address in the data packet.

在本申请实施例中,在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上之前,,还包括以下步骤。In the embodiment of the present application, before sending the first data packet to the working bus within the second preset time period after receiving the roll call information, the following steps are further included.

S51,被控节点将所有待转发数据包放入到发送队列中。S51. The controlled node puts all data packets to be forwarded into the sending queue.

被控节点在有数据需要发送时,可以不等接收到点名信息,就一下将待转发的数据包放入到发送队列,以便于发送。在本申请实施例中,发送队列中的数据包遵循先入先出原则。When the controlled node has data to send, it can put the data packet to be forwarded into the sending queue without waiting for the roll call information to be sent. In the embodiment of the present application, the data packets in the sending queue follow the first-in-first-out principle.

S52,被控节点将所述发送队列中的排序第一的数据包确定为第一数据包。S52. The controlled node determines the first data packet in the sending queue as the first data packet.

这样,一旦接收到点名信息,被控节点就可以直接将第一个数据包作为第一数据包,并发送出去。In this way, once the roll call information is received, the controlled node can directly take the first data packet as the first data packet and send it out.

此外,考虑到数据包发送后的验证过程,在本申请实施例中,该方法还可以包括以下步骤。In addition, considering the verification process after the data packet is sent, in the embodiment of the present application, the method may further include the following steps.

S61,在所述第一数据包被发送后,被控节点判断所述第一数据包是否需要接收确认消息。S61. After the first data packet is sent, the controlled node determines whether the first data packet needs to receive a confirmation message.

S62,若不需要接收确认消息,被控节点将所述发送队列中排序第一的数据包移除,将所述发送队列中下一个排序第一的数据包确定为新的第一数据包。S62. If the confirmation message does not need to be received, the controlled node removes the first data packet in the sending queue, and determines the next first data packet in the sending queue as a new first data packet.

S63,若需要接收确认消息,被控节点判断所述第一数据包发送后的第三预设时间段内是否接收到确认消息。S63. If it is necessary to receive an acknowledgment message, the controlled node determines whether the acknowledgment message is received within a third preset time period after the first data packet is sent.

S64,若接收到确认消息,被控节点将预设通信异常值置0。S64. If the confirmation message is received, the controlled node sets the preset communication abnormality value to 0.

S65,若未接收到确认消息,被控节点重新发送所述第一数据包,并对重发次数进行计数。S65. If the confirmation message is not received, the controlled node resends the first data packet, and counts the number of times of resending.

S66,若重发次数大于预设重发门限值,被控节点丢失所述第一数据包,并将所述预设通信异常值加1。S66. If the number of retransmissions is greater than the preset retransmission threshold, the controlled node loses the first data packet, and adds 1 to the preset communication abnormality value.

S67,若通信异常值大于预设异常值门限值,被控节点确定所述工作总线异常。S67. If the communication abnormal value is greater than the preset abnormal value threshold, the controlled node determines that the working bus is abnormal.

当被控节点确定工作总线异常后,一方面可以自身记录,或通过其它渠道上报,另一方面,可以不再通过该总线向主控节点发送任何数据,以使主控节点将被控节点确定为异常。When the controlled node determines that the working bus is abnormal, on the one hand, it can record it by itself or report it through other channels; is abnormal.

通过上述步骤,增加了被控节点对发送的第一数据包的准确性进行校验,以确定发送出去的每个第一数据包,均是成功发送,避免由于总线异常,导致无所谓的空发,提高了数据的精准性。Through the above steps, the controlled node is added to verify the accuracy of the first data packet sent to ensure that each first data packet sent out is successfully sent, avoiding insignificant empty sending due to bus anomalies , improving the accuracy of the data.

本申请实施例提出的方案实质上是一种虚拟总线,利用虚拟总线可以解决以下两个问题:(1)异构总线之间的通信,即两条不同类型的总线之间的通信,例如CAN和422两条总线,采用本申请实施例提供的该方法可以实现解决CAN和422之间的通信;(2)可以使得不具备总线接口的设备通过虚拟总线参与通信,例如,有的设备只有UART串行接口(如图1中所示的被控节点6),UART不是总线接口,设备可通过FPGA连接主控节点,通过与主控节点的信息交互进而参与其他总线的通信中。本申请实施例提供的该方案中,主控节点是信息中枢,可以实现数据在不同总线之间、非总线接口与总线之间的传递,通过时分多址实现多对多通信,这里虚拟总线是指建立在物理总线、点对点通信基础上的虚拟总线,主控节点控制被控节点采用时分多址的方式进行通信,这里时分多址是指在虚拟总线上的时分多址。The solution proposed in the embodiment of the present application is essentially a virtual bus, which can solve the following two problems: (1) communication between heterogeneous buses, that is, communication between two different types of buses, such as CAN and 422 two buses, using the method provided by the embodiment of the present application can realize the communication between CAN and 422; (2) it can make the equipment without bus interface participate in the communication through the virtual bus, for example, some equipment only has UART Serial interface (controlled node 6 as shown in Figure 1), UART is not a bus interface, the device can connect to the master control node through FPGA, and then participate in the communication of other buses through information interaction with the master control node. In the solution provided by the embodiment of the present application, the main control node is the information center, which can realize the transfer of data between different buses, non-bus interfaces and buses, and realize many-to-many communication through time division multiple access. Here, the virtual bus is Refers to the virtual bus established on the basis of physical bus and point-to-point communication. The master control node controls the controlled node to communicate in the way of time-division multiple access. Here, time-division multiple access refers to time-division multiple access on the virtual bus.

通过以上的方法实施例的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Through the description of the above method embodiments, those skilled in the art can clearly understand that the present application can be realized by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes various media capable of storing program codes such as read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk.

图4是本申请实施例提供的一种通信装置的结构示意图。Fig. 4 is a schematic structural diagram of a communication device provided by an embodiment of the present application.

该装置可以应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接,所述通信装置应用于主控节点,如图4所示,所述通信装置包括:The device can be applied in a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes is connected to at least one bus , the communication device is applied to the master control node, as shown in Figure 4, the communication device includes:

点名信息发送单元11,用于通过与所述被控节点连接的一条总线,向所述被控节点发送点名信息;A roll call information sending unit 11, configured to send roll call information to the controlled node through a bus connected to the controlled node;

数据包接收判断单元12,用于在所述点名信息发送后的第一预设时间段内,判断通过所述点名信息所使用的总线是否接收到所述被控节点发送的第一数据包,所述第一数据包携带有目的地址和源地址;A data packet reception judging unit 12, configured to determine whether the bus used by the roll call information has received the first data packet sent by the controlled node within a first preset time period after the roll call information is sent, The first data packet carries a destination address and a source address;

地址判断单元13,用于当接收到第一数据包时,判断所述目的地址是否为所述主控节点的地址;An address judging unit 13, configured to judge whether the destination address is the address of the master control node when the first data packet is received;

总线判断单元14,用于当所述目的地址不是所述主控节点的地址时,判断所述目的地址与源地址是否在同一总线上;A bus judging unit 14, configured to judge whether the destination address and the source address are on the same bus when the destination address is not the address of the master control node;

转发单元15,用于当所述目的地址与源地址不在同一总线上时,将所述第一数据包转发到与所述目的地址对应的目标总线上。The forwarding unit 15 is configured to forward the first data packet to a target bus corresponding to the destination address when the destination address and the source address are not on the same bus.

本申请实施例提供的该装置,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接。在该卫星系统中,主控节点相当于一个控制枢纽,可以协调不同被控节点上传数据包,并且在需要转发时,可以将数据包在不同总线之间进行转发。所以,只要主控节点上的接口兼容,使用原有的总线通信接口,即可方便实现不同星内系统中不同总线之间的通信。不仅使得星内系统的通信成本降低,而且有利于星内系统的拓扑结构的扩展。The device provided by the embodiment of the present application is applied in a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes Nodes are connected to at least one bus. In this satellite system, the master control node is equivalent to a control hub, which can coordinate different controlled nodes to upload data packets, and when forwarding is required, the data packets can be forwarded between different buses. Therefore, as long as the interface on the main control node is compatible, the communication between different buses in different intra-satellite systems can be realized conveniently by using the original bus communication interface. It not only reduces the communication cost of the intra-satellite system, but also facilitates the expansion of the topological structure of the intra-satellite system.

在本申请一个实施例中,点名信息发送单元,包括:In one embodiment of the present application, the roll call information sending unit includes:

时间划分信息确定子单元,用于确定与每个被控节点对应的时间划分信息,所述时间划分信息包括:被控节点标识和时间片的对应关系,且所述被控节点与时间片一一对应;The time division information determination subunit is used to determine the time division information corresponding to each controlled node, the time division information includes: the corresponding relationship between the controlled node identifier and the time slice, and the controlled node is equal to the time slice one-to-one correspondence;

工作总线确定子单元,用于确定与每个被控节点相连接的一条总线作为工作总线;A working bus determining subunit, configured to determine a bus connected to each controlled node as a working bus;

发送子单元,用于按照所有被控节点的地址排序顺序,依次通过各自对应的工作总线向每个所述被控节点发送点名信息。The sending subunit is configured to send roll call information to each of the controlled nodes sequentially through their corresponding working buses according to the address sorting order of all the controlled nodes.

在本申请一个实施例中,所述装置还包括:In one embodiment of the present application, the device further includes:

计数确定单元,用于当未接收到第一数据包,将与所述被控节点对应的通信错误计数值加1;A count determination unit, configured to add 1 to the communication error count value corresponding to the controlled node when the first data packet is not received;

所述点名信息发送单元还用于按照设定间隔继续向所述被控节点发送点名信息;The roll call information sending unit is further configured to continue sending roll call information to the controlled node at a set interval;

异常确定单元,用于在所述通信错误计数值大于预设错误门限值时,确定与所述点名信息相对应的被控节点通信异常;An abnormality determination unit, configured to determine that the communication of the controlled node corresponding to the roll call information is abnormal when the communication error count value is greater than a preset error threshold;

总线判断单元,用于判断与所述通信异常的被控节点是否与多条总线相连接;a bus judging unit, configured to judge whether the controlled node with the abnormal communication is connected to multiple buses;

总线切换单元,用于当所述通信异常的被控节点与多条总线相连接时,根据预设总线备用列表中在所述通信异常的被控节点的剩余总线选择一条总线作为新工作总线;A bus switching unit, configured to select a bus as a new working bus according to the remaining buses of the controlled node with abnormal communication in the preset bus standby list when the controlled node with abnormal communication is connected to multiple buses;

所述发送单元,还用于在与所述通信异常的被控节点对应的下一个时间片,通过所述新工作总线向所述通信异常的被控节点发送点名信息。The sending unit is further configured to send roll call information to the controlled node with abnormal communication through the new working bus in the next time slice corresponding to the controlled node with abnormal communication.

在本申请一个实施例中,所述装置还包括:In one embodiment of the present application, the device further includes:

数据包接收单元,用于接收地面站通过与所述主控节点相连接的测控链路发送的第二数据包;A data packet receiving unit, configured to receive the second data packet sent by the ground station through the measurement and control link connected to the master control node;

第一地址判断单元,用于判断所述第二数据包的目的地址是否等于所述主控节点的地址;a first address judging unit, configured to judge whether the destination address of the second data packet is equal to the address of the master control node;

数据包转发单元,用于当所述数据包的目的地址不等于所述主控节点的地址时,将所述第二数据包转发到与所述目的地址对应的总线上;A data packet forwarding unit, configured to forward the second data packet to the bus corresponding to the destination address when the destination address of the data packet is not equal to the address of the master control node;

在本申请另一个实施例中,若所述第一数据包的目的地址与源地址不在同一总线上,所述装置还包括:In another embodiment of the present application, if the destination address and the source address of the first data packet are not on the same bus, the device further includes:

第二地址判断单元,用于判断所述第一数据包的目的地址是否为地面站地址;A second address judging unit, configured to judge whether the destination address of the first data packet is a ground station address;

数据包发送单元,用于当所述第一数据包的目的地址为地面站地址时,通过与所述主控节点相连接的测控链路将所述第一数据包发送给地面站。A data packet sending unit, configured to send the first data packet to the ground station through the measurement and control link connected to the master control node when the destination address of the first data packet is the address of the ground station.

图5是本申请实施例提供的一种通信装置的结构示意图。Fig. 5 is a schematic structural diagram of a communication device provided by an embodiment of the present application.

该装置应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接,所述通信装置应用于被控节点,如图5所示,所述装置包括:The device is applied in a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, and each of the controlled nodes is connected to at least one bus, The communication device is applied to the controlled node, as shown in Figure 5, the device includes:

点名信息接收单元21,用于通过与所述被控节点相连接的至少一个总线接收点名信息;A roll call information receiving unit 21, configured to receive roll call information through at least one bus connected to the controlled node;

工作总线确定单元22,用于将所述点名信息所使用的总线上确定为工作总线;A work bus determining unit 22, configured to determine the bus used by the roll call information as a work bus;

数据包发送单元23,用于在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上。The data packet sending unit 23 is configured to send the first data packet to the working bus within a second preset time period after receiving the roll call information.

在本申请实施例提供的该装置中,对于与多条总线相连接的被控节点,主控节点可以通过尝试的方式在多个总线之间进行切换,直至找到可以通信的总线。In the device provided in the embodiment of the present application, for a controlled node connected to multiple buses, the master control node can switch between multiple buses in a trial manner until a bus that can communicate is found.

在本申请一个实施例中,该装置还可以包括:In one embodiment of the present application, the device may also include:

数据包堆放单元,用于将所有待转发数据包放入到发送队列中,所述发送队列中的数据包遵循先入先出原则;The data packet stacking unit is used to put all the data packets to be forwarded into the sending queue, and the data packets in the sending queue follow the first-in-first-out principle;

第一数据包确定单元,用于将所述发送队列中的排序第一的数据包确定为第一数据包。The first data packet determining unit is configured to determine the first data packet in the sending queue as the first data packet.

在本申请另一实施例中,在所述第一数据包被发送后,所述装置还可以包括:In another embodiment of the present application, after the first data packet is sent, the device may further include:

确认消息判断单元,用于判断所述第一数据包是否需要接收确认消息;A confirmation message judging unit, configured to judge whether the first data packet needs to receive a confirmation message;

第一数据包更新单元,用于当不需要接收确认消息时,将所述发送队列中排序第一的数据包移除,将所述发送队列中下一个排序第一的数据包确定为新的第一数据包;The first data packet updating unit is configured to remove the first-ranked data packet in the sending queue when the confirmation message does not need to be received, and determine the next first-ranked data packet in the sending queue as a new one first packet;

确认消息判断单元,用于当需要接收确认消息,判断所述第一数据包发送后的第三预设时间段内是否接收到确认消息;通信异常设置单元,用于当接收到确认消息时,将预设通信异常值置0;第一数据包重发单元,用于当未接收到确认消息时,重新发送所述第一数据包,并对重发次数进行计数;所述通信异常设置单元,用于当重发次数大于预设重发门限值,丢失所述第一数据包,并将所述预设通信异常值加1;A confirmation message judging unit, used to determine whether a confirmation message is received within a third preset time period after the first data packet is sent when a confirmation message needs to be received; a communication abnormality setting unit is used to, when a confirmation message is received, Set the default communication abnormal value to 0; the first data packet retransmission unit is used to resend the first data packet when no confirmation message is received, and count the number of retransmissions; the communication abnormality setting unit , for when the number of retransmissions is greater than the preset retransmission threshold, the first data packet is lost, and the preset communication abnormal value is increased by 1;

异常确定单元,用于当通信异常值大于预设异常值门限值时,确定所述工作总线异常。An abnormality determining unit, configured to determine that the working bus is abnormal when the communication abnormal value is greater than a preset abnormal value threshold.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiments. The device and system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, It can be located in one place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

本文中,各个优选方案仅仅重点描述的是与其它方案的不同,各个优选方案只要不冲突,都可以任意组合,组合后所形成的实施例也在本说明书所公开的范畴之内,考虑到文本简洁,本文就不再对组合所形成的实施例进行单独描述。In this article, each preferred solution only focuses on the difference from other solutions. As long as there is no conflict, each preferred solution can be combined arbitrarily, and the embodiments formed after the combination are also within the scope of this specification. For brevity, the embodiment formed by the combination will not be separately described herein.

可以理解的是,本申请可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。It will be appreciated that the present application is applicable to numerous general purpose or special purpose computing system environments or configurations. Examples: personal computers, server computers, handheld or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, including A distributed computing environment for any of the above systems or devices, etc.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1.一种通信方法,其特征在于,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接,所述通信方法应用于主控节点,所述通信方法包括:1. A communication method, characterized in that it is applied in a satellite system comprising a master control node and a plurality of controlled nodes, wherein the master control node communicates with the controlled nodes through a bus, and each of the The controlled node is connected to at least one bus, and the communication method is applied to the master control node, and the communication method includes: 通过与所述被控节点连接的一条总线,向所述被控节点发送点名信息;Send roll call information to the controlled node through a bus connected to the controlled node; 在所述点名信息发送后的第一预设时间段内,判断通过所述点名信息所使用的总线是否接收到所述被控节点发送的第一数据包,所述第一数据包携带有目的地址和源地址;Within the first preset time period after the roll call information is sent, it is judged whether the bus used by the roll call information has received the first data packet sent by the controlled node, and the first data packet carries a purpose address and source address; 若接收到第一数据包,判断所述目的地址是否为所述主控节点的地址;If the first data packet is received, judging whether the destination address is the address of the master control node; 若所述目的地址不是所述主控节点的地址,判断所述目的地址与源地址是否在同一总线上;If the destination address is not the address of the master control node, determine whether the destination address and the source address are on the same bus; 若所述目的地址与源地址不在同一总线上,将所述第一数据包转发到与所述目的地址对应的目标总线上。If the destination address is not on the same bus as the source address, the first data packet is forwarded to the destination bus corresponding to the destination address. 2.根据权利要求1所述的方法,其特征在于,所述通过与所述被控节点连接的至少一条总线,向所述被控节点发送点名信息,包括:2. The method according to claim 1, wherein the sending roll call information to the controlled node through at least one bus connected to the controlled node comprises: 确定与每个被控节点对应的时间划分信息,所述时间划分信息包括:被控节点标识和时间片的对应关系,且所述被控节点与时间片一一对应;Determine the time division information corresponding to each controlled node, the time division information includes: the corresponding relationship between the controlled node identifier and the time slice, and the controlled node corresponds to the time slice one by one; 确定与每个被控节点相连接的一条总线作为工作总线;Determine a bus connected to each controlled node as the working bus; 按照所有被控节点的地址排序顺序,依次通过各自对应的工作总线向每个所述被控节点发送点名信息。According to the sorting order of the addresses of all the controlled nodes, roll call information is sent to each of the controlled nodes sequentially through their corresponding working buses. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 若未接收到第一数据包,将与所述被控节点对应的通信错误计数值加1,并按照设定间隔继续向所述被控节点发送点名信息;If the first data packet is not received, add 1 to the communication error count value corresponding to the controlled node, and continue to send roll call information to the controlled node according to the set interval; 若所述通信错误计数值大于预设错误门限值时,确定与所述点名信息相对应的被控节点通信异常;If the communication error count value is greater than a preset error threshold value, it is determined that the controlled node corresponding to the roll call information is abnormal in communication; 判断与所述通信异常的被控节点是否与多条总线相连接;judging whether the controlled node with abnormal communication is connected to multiple buses; 若所述通信异常的被控节点与多条总线相连接,根据预设总线备用列表中在所述通信异常的被控节点的剩余总线选择一条总线作为新工作总线;If the controlled node with abnormal communication is connected to multiple buses, select a bus as the new working bus according to the remaining buses of the controlled node with abnormal communication in the preset bus standby list; 在与所述通信异常的被控节点对应的下一个时间片,通过所述新工作总线向所述通信异常的被控节点发送点名信息。In a next time slice corresponding to the controlled node with abnormal communication, roll call information is sent to the controlled node with abnormal communication through the new working bus. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 接收地面站通过与所述主控节点相连接的测控链路发送的第二数据包;receiving the second data packet sent by the ground station through the measurement and control link connected to the master control node; 判断所述第二数据包的目的地址是否等于所述主控节点的地址;judging whether the destination address of the second data packet is equal to the address of the master control node; 若所述第二数据包的目的地址不等于所述主控节点的地址,将所述第二数据包转发到与所述目的地址对应的总线上;If the destination address of the second data packet is not equal to the address of the master control node, forward the second data packet to the bus corresponding to the destination address; 或者,or, 若所述第一数据包的目的地址与源地址不在同一总线上,所述方法还包括:If the destination address and the source address of the first data packet are not on the same bus, the method also includes: 判断所述第一数据包的目的地址是否为地面站地址;judging whether the destination address of the first data packet is a ground station address; 若所述第一数据包的目的地址为地面站地址,通过与所述主控节点相连接的测控链路将所述第一数据包发送给地面站。If the destination address of the first data packet is the address of the ground station, the first data packet is sent to the ground station through the measurement and control link connected to the master control node. 5.一种通信方法,应用于被控节点,对应于应用于主控节点的如权利要求1所述的通信方法,其特征在于,所述通信方法包括:5. A communication method, applied to a controlled node, corresponding to the communication method according to claim 1 applied to a master control node, wherein the communication method comprises: 通过与所述被控节点相连接的至少一个总线接收点名信息;receiving roll call information through at least one bus connected to the controlled node; 将所述点名信息所使用的总线上确定为工作总线;Determining the bus used by the roll call information as a working bus; 在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上。Sending the first data packet to the working bus within a second preset time period after receiving the roll call information. 6.根据权利要求5所述的方法,其特征在于,在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上之前,所述方法还包括:6. The method according to claim 5, characterized in that, before the first data packet is sent on the working bus within the second preset time period after receiving the roll call information, the method also includes: 将所有待转发数据包放入到发送队列中,所述发送队列中的数据包遵循先入先出原则;Put all data packets to be forwarded into the sending queue, and the data packets in the sending queue follow the first-in-first-out principle; 将所述发送队列中的排序第一的数据包确定为第一数据包;determining the first data packet in the sending queue as the first data packet; 或者,在所述第一数据包被发送后,所述方法还包括:Or, after the first data packet is sent, the method further includes: 判断所述第一数据包是否需要接收确认消息;judging whether the first data packet needs to receive a confirmation message; 若不需要接收确认消息,将所述发送队列中排序第一的数据包移除,将所述发送队列中下一个排序第一的数据包确定为新的第一数据包;If the confirmation message does not need to be received, the first data packet in the sending queue is removed, and the next first data packet in the sending queue is determined as a new first data packet; 若需要接收确认消息,判断所述第一数据包发送后的第三预设时间段内是否接收到确认消息;若接收到确认消息,将预设通信异常值置0;若未接收到确认消息,重新发送所述第一数据包,并对重发次数进行计数;若重发次数大于预设重发门限值,丢失所述第一数据包,并将所述预设通信异常值加1;If it is necessary to receive a confirmation message, determine whether the confirmation message is received within the third preset time period after the first data packet is sent; if the confirmation message is received, set the preset communication abnormal value to 0; if the confirmation message is not received , resend the first data packet, and count the number of retransmissions; if the number of retransmissions is greater than the preset retransmission threshold, lose the first data packet, and add 1 to the preset communication abnormal value ; 若通信异常值大于预设异常值门限值,确定所述工作总线异常。If the communication abnormal value is greater than the preset abnormal value threshold, it is determined that the working bus is abnormal. 7.一种通信装置,其特征在于,应用于包括主控节点和多个被控节点的卫星系统中,所述主控节点与所述被控节点之间通过总线进行通信,每个所述被控节点与至少一条总线连接,所述通信装置应用于主控节点,所述通信装置包括:7. A communication device, characterized in that it is applied in a satellite system including a master control node and a plurality of controlled nodes, the master control node communicates with the controlled nodes through a bus, each of the The controlled node is connected to at least one bus, and the communication device is applied to the master control node, and the communication device includes: 点名信息发送单元,用于通过与所述被控节点连接的一条总线,向所述被控节点发送点名信息;a roll call information sending unit, configured to send roll call information to the controlled node through a bus connected to the controlled node; 数据包接收判断单元,用于在所述点名信息发送后的第一预设时间段内,判断通过所述点名信息所使用的总线是否接收到所述被控节点发送的第一数据包,所述第一数据包携带有目的地址和源地址;The data packet reception judging unit is used to judge whether the bus used by the roll call information has received the first data packet sent by the controlled node within the first preset time period after the roll call information is sent, so The first data packet carries a destination address and a source address; 地址判断单元,用于当接收到第一数据包时,判断所述目的地址是否为所述主控节点的地址;an address judging unit, configured to judge whether the destination address is the address of the master control node when the first data packet is received; 总线判断单元,用于当所述目的地址不是所述主控节点的地址时,判断所述目的地址与源地址是否在同一总线上;A bus judging unit, configured to judge whether the destination address and the source address are on the same bus when the destination address is not the address of the master control node; 转发单元,用于当所述目的地址与源地址不在同一总线上时,将所述第一数据包转发到与所述目的地址对应的目标总线上。A forwarding unit, configured to forward the first data packet to a target bus corresponding to the destination address when the destination address is not on the same bus as the source address. 8.根据权利要求7所述的装置,其特征在于,所述点名信息发送单元,包括:8. The device according to claim 7, wherein the roll call information sending unit comprises: 时间划分信息确定子单元,用于确定与每个被控节点对应的时间划分信息,所述时间划分信息包括:被控节点标识和时间片的对应关系,且所述被控节点与时间片一一对应;The time division information determination subunit is used to determine the time division information corresponding to each controlled node, the time division information includes: the corresponding relationship between the controlled node identifier and the time slice, and the controlled node is equal to the time slice one-to-one correspondence; 工作总线确定子单元,用于确定与每个被控节点相连接的一条总线作为工作总线;A working bus determining subunit, configured to determine a bus connected to each controlled node as a working bus; 发送子单元,用于按照所有被控节点的地址排序顺序,依次通过各自对应的工作总线向每个所述被控节点发送点名信息。The sending subunit is configured to send roll call information to each of the controlled nodes sequentially through their corresponding working buses according to the address sorting order of all the controlled nodes. 9.根据权利要求7所述的装置,其特征在于,所述装置还包括:9. The device according to claim 7, further comprising: 计数确定单元,用于当未接收到第一数据包,将与所述被控节点对应的通信错误计数值加1;A count determination unit, configured to add 1 to the communication error count value corresponding to the controlled node when the first data packet is not received; 所述点名信息发送单元还用于按照设定间隔继续向所述被控节点发送点名信息;The roll call information sending unit is further configured to continue sending roll call information to the controlled node at a set interval; 异常确定单元,用于在所述通信错误计数值大于预设错误门限值时,确定与所述点名信息相对应的被控节点通信异常;An abnormality determination unit, configured to determine that the communication of the controlled node corresponding to the roll call information is abnormal when the communication error count value is greater than a preset error threshold; 总线判断单元,用于判断与所述通信异常的被控节点是否与多条总线相连接;a bus judging unit, configured to judge whether the controlled node with the abnormal communication is connected to multiple buses; 总线切换单元,用于当所述通信异常的被控节点与多条总线相连接时,根据预设总线备用列表中在所述通信异常的被控节点的剩余总线选择一条总线作为新工作总线;A bus switching unit, configured to select a bus as a new working bus according to the remaining buses of the controlled node with abnormal communication in the preset bus standby list when the controlled node with abnormal communication is connected to multiple buses; 所述发送单元,还用于在与所述通信异常的被控节点对应的下一个时间片,通过所述新工作总线向所述通信异常的被控节点发送点名信息。The sending unit is further configured to send roll call information to the controlled node with abnormal communication through the new working bus in the next time slice corresponding to the controlled node with abnormal communication. 10.根据权利要求7所述的装置,其特征在于,所述装置还包括:10. The device according to claim 7, further comprising: 数据包接收单元,用于接收地面站通过与所述主控节点相连接的测控链路发送的第二数据包;A data packet receiving unit, configured to receive the second data packet sent by the ground station through the measurement and control link connected to the master control node; 第一地址判断单元,用于判断所述第二数据包的目的地址是否等于所述主控节点的地址;a first address judging unit, configured to judge whether the destination address of the second data packet is equal to the address of the master control node; 数据包转发单元,用于当所述数据包的目的地址不等于所述主控节点的地址时,将所述第二数据包转发到与所述目的地址对应的总线上;A data packet forwarding unit, configured to forward the second data packet to the bus corresponding to the destination address when the destination address of the data packet is not equal to the address of the master control node; 或者,or, 若所述第一数据包的目的地址与源地址不在同一总线上,所述装置还包括:If the destination address and the source address of the first data packet are not on the same bus, the device also includes: 第二地址判断单元,用于判断所述第一数据包的目的地址是否为地面站地址;A second address judging unit, configured to judge whether the destination address of the first data packet is a ground station address; 数据包发送单元,用于当所述第一数据包的目的地址为地面站地址时,通过与所述主控节点相连接的测控链路将所述第一数据包发送给地面站。A data packet sending unit, configured to send the first data packet to the ground station through the measurement and control link connected to the master control node when the destination address of the first data packet is the address of the ground station. 11.一种通信装置,应用于被控节点,对应于应用于主控节点的如权利要求7所述的通信装置,其特征在于,所述装置包括:11. A communication device, applied to a controlled node, corresponding to the communication device according to claim 7 applied to a master control node, wherein the device comprises: 点名信息接收单元,用于通过与所述被控节点相连接的至少一个总线接收点名信息;a roll call information receiving unit, configured to receive roll call information through at least one bus connected to the controlled node; 工作总线确定单元,用于将所述点名信息所使用的总线上确定为工作总线;A working bus determining unit, configured to determine the bus used by the roll call information as a working bus; 数据包发送单元,用于在接收到点名信息后的第二预设时间段内将第一数据包发送到所述工作总线上。A data packet sending unit, configured to send the first data packet to the working bus within a second preset time period after receiving the roll call information. 12.根据权利要求11所述的装置,其特征在于,所述装置还包括:12. The device according to claim 11, further comprising: 数据包堆放单元,用于将所有待转发数据包放入到发送队列中,所述发送队列中的数据包遵循先入先出原则;The data packet stacking unit is used to put all the data packets to be forwarded into the sending queue, and the data packets in the sending queue follow the first-in-first-out principle; 第一数据包确定单元,用于将所述发送队列中的排序第一的数据包确定为第一数据包;a first data packet determining unit, configured to determine the first data packet in the sending queue as the first data packet; 或者,在所述第一数据包被发送后,所述装置还包括:Or, after the first data packet is sent, the device further includes: 确认消息判断单元,用于判断所述第一数据包是否需要接收确认消息;A confirmation message judging unit, configured to judge whether the first data packet needs to receive a confirmation message; 第一数据包更新单元,用于当不需要接收确认消息时,将所述发送队列中排序第一的数据包移除,将所述发送队列中下一个排序第一的数据包确定为新的第一数据包;The first data packet updating unit is configured to remove the first-ordered data packet in the sending queue when the confirmation message does not need to be received, and determine the next first-ranking data packet in the sending queue as a new one first packet; 确认消息判断单元,用于当需要接收确认消息,判断所述第一数据包发送后的第三预设时间段内是否接收到确认消息;通信异常设置单元,用于当接收到确认消息时,将预设通信异常值置0;第一数据包重发单元,用于当未接收到确认消息时,重新发送所述第一数据包,并对重发次数进行计数;所述通信异常设置单元,用于当重发次数大于预设重发门限值,丢失所述第一数据包,并将所述预设通信异常值加1;A confirmation message judging unit, used to determine whether a confirmation message is received within a third preset time period after the first data packet is sent when a confirmation message needs to be received; a communication abnormality setting unit is used to, when a confirmation message is received, Set the default communication abnormal value to 0; the first data packet retransmission unit is used to resend the first data packet when no confirmation message is received, and count the number of retransmissions; the communication abnormality setting unit , for when the number of retransmissions is greater than the preset retransmission threshold, the first data packet is lost, and the preset communication abnormal value is increased by 1; 异常确定单元,用于当通信异常值大于预设异常值门限值时,确定所述工作总线异常。An abnormality determining unit, configured to determine that the working bus is abnormal when the communication abnormal value is greater than a preset abnormal value threshold.
CN201710293588.8A 2017-04-28 2017-04-28 Communication method and device Active CN107046493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710293588.8A CN107046493B (en) 2017-04-28 2017-04-28 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710293588.8A CN107046493B (en) 2017-04-28 2017-04-28 Communication method and device

Publications (2)

Publication Number Publication Date
CN107046493A CN107046493A (en) 2017-08-15
CN107046493B true CN107046493B (en) 2019-09-06

Family

ID=59546953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710293588.8A Active CN107046493B (en) 2017-04-28 2017-04-28 Communication method and device

Country Status (1)

Country Link
CN (1) CN107046493B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526433B (en) * 2020-07-02 2020-10-30 南京凯瑞得信息科技有限公司 Satellite communication end station roll call method
CN118761080B (en) * 2024-09-03 2024-11-12 智菲科技集团有限公司 A cloud-based intelligent data security management and control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001186A (en) * 2006-11-29 2007-07-18 程伟明 Monitoring system based on sensor-based network technology
CN101123487A (en) * 2007-09-29 2008-02-13 航天东方红卫星有限公司 A Realization Method of Onboard Network Bus Redundancy Backup
CN101662405A (en) * 2009-09-25 2010-03-03 国电南京自动化股份有限公司 Communication circuit of CAN bus
CN102810265A (en) * 2012-05-16 2012-12-05 深圳图瑞交互信息技术有限公司 Information interaction system and information interaction method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874059B (en) * 2012-12-10 2018-06-05 华为终端(东莞)有限公司 Message processing method and device, system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001186A (en) * 2006-11-29 2007-07-18 程伟明 Monitoring system based on sensor-based network technology
CN101123487A (en) * 2007-09-29 2008-02-13 航天东方红卫星有限公司 A Realization Method of Onboard Network Bus Redundancy Backup
CN101662405A (en) * 2009-09-25 2010-03-03 国电南京自动化股份有限公司 Communication circuit of CAN bus
CN102810265A (en) * 2012-05-16 2012-12-05 深圳图瑞交互信息技术有限公司 Information interaction system and information interaction method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《小卫星星载CAN总线的应用层传输方法研究》;陶志刚;《航天器工程》;20110515;第20卷(第3期);第103-107页

Also Published As

Publication number Publication date
CN107046493A (en) 2017-08-15

Similar Documents

Publication Publication Date Title
CN102377685B (en) Subscription message sending system and subscription message sending method
US12068977B2 (en) Data migration method and apparatus
EP3425850B1 (en) Method and device for processing communication path
CN104852828B (en) A kind of network delay detection method, apparatus and system
CN102665297B (en) Communication device and system as well as method of wireless cloud sensor network
CN104506513A (en) Firewall flow graph backup method, firewall and firewall system
CN108702804B (en) Wireless communication system for industrial automation system, method for its operation
CN105471613A (en) Temporary channel establishing method, device and system
CN107046493B (en) Communication method and device
US11522762B2 (en) Coordination device and method for providing control applications via a communication network for transmitting time-critical data
JP7046983B2 (en) Packet transmission method and equipment
CN105207971A (en) Data transmission method and device
US11784929B2 (en) Heterogeneous link data translation and distribution method, system and device, and storage medium
CN104468304A (en) Method for synchronizing pool element status information, pool registrator and pool elements
CN109039738B (en) DCS network equipment configuration and monitoring method, device, maintenance node and terminal
CN108566294B (en) A Communication Network System Supporting Computational Plane
CN104184729A (en) Message processing method and device
Bedon et al. A DTN system for nanosatellite-based sensor networks using a new ALOHA multiple access with gateway priority
CN104579809A (en) Detection method and device for stacking splitting
EP3232617B1 (en) Protection switching method and system, and nodes
CN113992740B (en) Middleware based on autonomous control and data transmission method
KR20120128031A (en) System and method for providing push service
KR101969304B1 (en) Method and computer program for handling trouble using packet-out message in software defined networking environment
US9699090B2 (en) Transfer device, control device, and transfer method
CN105591951A (en) BGP message processing method and device of stack 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
GR01 Patent grant
GR01 Patent grant