[go: up one dir, main page]

CN114817128A - Spaceborne computer system and its data receiving and sending method - Google Patents

Spaceborne computer system and its data receiving and sending method Download PDF

Info

Publication number
CN114817128A
CN114817128A CN202210448261.4A CN202210448261A CN114817128A CN 114817128 A CN114817128 A CN 114817128A CN 202210448261 A CN202210448261 A CN 202210448261A CN 114817128 A CN114817128 A CN 114817128A
Authority
CN
China
Prior art keywords
data
computer system
descriptor
sending
satellite
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210448261.4A
Other languages
Chinese (zh)
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.)
Shanghai aerospace computer technology research institute
Original Assignee
Shanghai aerospace computer technology research institute
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 Shanghai aerospace computer technology research institute filed Critical Shanghai aerospace computer technology research institute
Priority to CN202210448261.4A priority Critical patent/CN114817128A/en
Publication of CN114817128A publication Critical patent/CN114817128A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radio Relay Systems (AREA)

Abstract

An on-board computer system, comprising: the satellite-borne microprocessor is used for data processing and whole satellite control; a data memory for storing payload data; and the coprocessor is electrically connected with the satellite-borne microprocessor and the data memory, is provided with a plurality of data receiving and transmitting channels and automatically stores and forwards the load data. The communication coprocessor is integrated in the general processor module, and the interface data management and control function of the on-board general processor is completed by the coprocessor, so that the working efficiency of the on-board general processor is improved, and meanwhile, the computing resources of an on-board platform are saved.

Description

星载计算机系统及其数据接收、发送方法Spaceborne computer system and its data receiving and sending method

技术领域technical field

本发明属于卫星电子设备技术领域,尤其涉及一种星载计算机系统及其数据接收、发送方法。The invention belongs to the technical field of satellite electronic equipment, and in particular relates to an on-board computer system and a data receiving and sending method thereof.

背景技术Background technique

随着我国航天事业的迅速发展,卫星业务逐渐融入日常生活中。全球覆盖的卫星组网业务需求增大。同时,各垂直行业对星上信息处理时间提出更高要求,以满足市场用户使用需求。传统的单星工作及地面管控运行的模式已无法满足用户需求,因此,增强天基计算资源、减少星上处理时间、开展多星协同的任务规划模式等研究的重要性不言而喻。With the rapid development of my country's aerospace industry, satellite business is gradually integrated into daily life. The demand for satellite networking services with global coverage is increasing. At the same time, various vertical industries have put forward higher requirements for on-board information processing time to meet the needs of market users. The traditional mode of single-satellite operation and ground control operation can no longer meet the needs of users. Therefore, the importance of researches such as enhancing space-based computing resources, reducing on-board processing time, and carrying out multi-satellite collaborative mission planning modes is self-evident.

在此背景下,星上单机数据交互需求不断提升,卫星平台需能够接收本星及他星数据,运行多源数据融合及任务规划算法,最终实现星上智能自主与协同任务调度规划,实现通信、导航、遥控遥测、天气预报、环境监测等领域的信息组网,加快经济社会发展。In this context, the demand for data interaction between on-board stand-alone computers continues to increase. The satellite platform needs to be able to receive local and other satellite data, run multi-source data fusion and mission planning algorithms, and finally realize on-board intelligent autonomous and collaborative task scheduling planning and communication. , navigation, remote control telemetry, weather forecast, environmental monitoring and other fields of information networking to accelerate economic and social development.

但是,星上通用处理器不仅需要完成数据交互管控,还需要对接收的数据进行处理,从而,造成数据管控与数据处理资源的冲突,无法满足高可靠和高效率的要求。However, on-board general-purpose processors not only need to complete data interaction management and control, but also need to process the received data, resulting in conflicts between data management and data processing resources, and cannot meet the requirements of high reliability and high efficiency.

发明内容SUMMARY OF THE INVENTION

为解决上述问题,本发明的目的是提供一种星载计算机通信协处理器,在通用处理器模块中集成了该通信协处理器,将星上通用处理器的接口数据管控功能交由协处理器完成,提升星上通用处理器的工作效率,同时节省星上平台计算资源。In order to solve the above problems, the purpose of the present invention is to provide an on-board computer communication co-processor, which is integrated in a general-purpose processor module, and the interface data control function of the on-board general-purpose processor is handed over to the co-processor. It can improve the work efficiency of the general-purpose processor on the satellite and save the computing resources of the on-board platform.

为实现上述目的,本发明的技术方案为:For achieving the above object, the technical scheme of the present invention is:

一种星载计算机系统,包括:星载微处理器,用于进行数据处理和整星控制;数据存储器,用于存储载荷数据;协处理器,与所述星载微处理器和所述数据存储器电连接,所述协处理器具有复数个数据收发通道并对所述载荷数据进行自动存储及转发。An on-board computer system, comprising: an on-board microprocessor for data processing and whole satellite control; a data memory for storing payload data; a co-processor for working with the on-board microprocessor and the data The memory is electrically connected, and the coprocessor has a plurality of data transceiving channels and automatically stores and forwards the payload data.

本发明的一个可能的实施例中,所述星载计算机系统还包括通信缓存,所述协处理器通过所述通信缓存与所述数据存储器连接。In a possible embodiment of the present invention, the onboard computer system further includes a communication buffer, and the coprocessor is connected to the data storage through the communication buffer.

本发明的一个可能的实施例中,所述协处理器包括复数个数据管理通道、多端口交互接口以及控制器,所述数据管理通道与数据收发通道电连接,所述多端口交互接口与所述数据管理通道和所述通信缓存电连接,所述控制器用于控制所述数据管理通道和所述多端口交互接口将载荷数据按照预设程序进行自动存储和/或转发。In a possible embodiment of the present invention, the coprocessor includes a plurality of data management channels, a multi-port interaction interface, and a controller, the data management channel is electrically connected to the data transceiver channel, and the multi-port interaction interface is connected to all The data management channel and the communication buffer are electrically connected, and the controller is configured to control the data management channel and the multi-port interaction interface to automatically store and/or forward the payload data according to a preset program.

本发明的一个可能的实施例中,所述数据管理通道包括数据缓冲模块和描述符匹配模块,所述数据缓冲模块与对应的所述数据收发通道电连接,所述描述符匹配模块与所述数据缓冲模块和所述多端口交互接口电连接。In a possible embodiment of the present invention, the data management channel includes a data buffer module and a descriptor matching module, the data buffer module is electrically connected to the corresponding data transceiver channel, and the descriptor matching module is connected to the The data buffer module is electrically connected to the multi-port interactive interface.

本发明的一个可能的实施例中,所述协处理器还包括配置寄存器,所述配置寄存器与所述数据管理通道和所述星载微处理器电连接。In a possible embodiment of the present invention, the coprocessor further includes a configuration register, and the configuration register is electrically connected to the data management channel and the onboard microprocessor.

本发明的一个可能的实施例中,所述通信缓存包括复数个与所述数据管理通道一一对应的描述符阵列,所述描述符阵列与对应的所述描述符匹配模块和所述通信缓存的对应通道电连接。In a possible embodiment of the present invention, the communication buffer includes a plurality of descriptor arrays corresponding to the data management channels one-to-one, and the descriptor array is matched with the corresponding descriptor matching module and the communication buffer The corresponding channels are electrically connected.

本发明的一个可能的实施例中,所述协处理器采用型号为Actel AX2000的FPGA芯片。In a possible embodiment of the present invention, the coprocessor adopts an FPGA chip whose model is Actel AX2000.

基于相同的构思,本发明还提供一种星载计算机系统载荷数据接收方法,包括如下步骤:当接收外部载荷数据时,根据数据通信协议识别有效数据帧头,识别到有效帧头后,按照数据包格式解析包头中的数据关键信息;将解析出的包头中的数据关键信息进行数据类型匹配;读取数据关键信息中其的余参数信息,包括存储机制、存储地址;基于所述存储机制和所述存储地址将当前载荷数据进行转发和/或存储到相应地址。Based on the same concept, the present invention also provides a method for receiving payload data of an onboard computer system, comprising the following steps: when receiving external payload data, identifying a valid data frame header according to a data communication protocol, and after identifying the valid frame header, according to the data The packet format parses the data key information in the packet header; performs data type matching on the data key information in the parsed packet header; reads the remaining parameter information in the data key information, including the storage mechanism and storage address; based on the storage mechanism and The storage address forwards and/or stores the current payload data to a corresponding address.

基于相同的构思,本发明还提供一种星载计算机系统载荷数据发送方法,包括如下步骤:配置发送端口的描述符阵列;基于描述符阵列配置信息的长度信息从缓存冲读取相应数据并发送;在当前待发送的帧并非最后一帧数据时,根据描述符阵列内参数发送本帧数据后,轮询下一个描述符阵列并完成相应发送动作;在当前待发送的帧为最后一帧数据时,本次发送结束。Based on the same concept, the present invention also provides a method for sending payload data of an on-board computer system, comprising the steps of: configuring a descriptor array of a sending port; reading corresponding data from a buffer cache based on the length information of the configuration information of the descriptor array and sending it ;When the current frame to be sent is not the last frame of data, after sending the data of this frame according to the parameters in the descriptor array, poll the next descriptor array and complete the corresponding sending action; the current frame to be sent is the last frame of data , this transmission ends.

基于相同的构思,本发明还提供一种可读存储介质,所述可读存储介质上存储有处理程序,所述处理程序被处理器执行时实现上述星载计算机系统载荷数据接收方法或星载计算机系统载荷数据发送方法。Based on the same concept, the present invention also provides a readable storage medium, where a processing program is stored on the readable storage medium, and when the processing program is executed by a processor, the above-mentioned method for receiving payload data of an on-board computer system or an on-board computer system is implemented. Computer system load data transmission method.

本发明由于采用以上技术方案,使其与现有技术相比具有以下的优点和积极效果:Compared with the prior art, the present invention has the following advantages and positive effects due to the adoption of the above technical solutions:

1、在星载计算机系统中集成了专用的通信协处理器,将处理器的接口数据管控功能交由协处理器完成,提升处理器的工作效率,同时节省星上平台计算资源,可靠性更佳,效率更高。1. A dedicated communication co-processor is integrated in the onboard computer system, and the interface data management and control functions of the processor are completed by the co-processor, which improves the work efficiency of the processor, saves the computing resources of the on-board platform, and improves reliability. better and more efficient.

2、由于设置了通信缓存,在将数据写入数据存储器时,可以加快写入效率;设置描述符匹配模块,可以将载荷数据分类存放,使得文件存放有序,便于后续查找。2. Due to the setting of the communication cache, the writing efficiency can be accelerated when the data is written into the data storage; the setting of the descriptor matching module can store the load data by classification, so that the files are stored in an orderly manner, which is convenient for subsequent searches.

附图说明Description of drawings

下面结合附图对本发明的具体实施方式作进一步详细说明,其中:The specific embodiments of the present invention will be described in further detail below in conjunction with the accompanying drawings, wherein:

图1为本发明星载计算机系统装置示意图;1 is a schematic diagram of an onboard computer system device of the present invention;

图2为本发明星载计算机系统载荷数据接收方法流程图;Fig. 2 is the flow chart of the method for receiving load data of the spaceborne computer system of the present invention;

图3为本发明星载计算机系统载荷数据接收原理示意图;FIG. 3 is a schematic diagram of the load data receiving principle of the on-board computer system of the present invention;

图4为本发明星载计算机系统载荷数据接收方法流程图;Fig. 4 is the flow chart of the method for receiving payload data of the on-board computer system of the present invention;

图5为本发明星载计算机系统载荷数据接收原理示意图。FIG. 5 is a schematic diagram of the principle of receiving data of the on-board computer system of the present invention.

具体实施方式Detailed ways

以下结合附图和具体实施例对本发明作进一步详细说明。根据下面说明和权利要求书,本发明的优点和特征将更清楚。需说明的是,附图均采用非常简化的形式且均使用非精准的比率,仅用以方便、明晰地辅助说明本发明实施例的目的。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The advantages and features of the present invention will become apparent from the following description and claims. It should be noted that, the accompanying drawings are all in a very simplified form and use imprecise ratios, and are only used to facilitate and clearly assist the purpose of explaining the embodiments of the present invention.

需要说明,本发明实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relationship between various components under a certain posture (as shown in the accompanying drawings). The relative positional relationship, the movement situation, etc., if the specific posture changes, the directional indication also changes accordingly.

第一实施例first embodiment

如图1,本发明实施例提供了一种载计算机系统,包括:星载微处理器,用于进行数据处理和整星控制;数据存储器,用于存储载荷数据;协处理器,与所述星载微处理器和所述数据存储器电连接,所述协处理器具有复数个数据收发通道并对所述载荷数据进行自动存储及转发。As shown in FIG. 1, an embodiment of the present invention provides an on-board computer system, including: an on-board microprocessor for data processing and satellite control; a data memory for storing payload data; The onboard microprocessor is electrically connected to the data storage, and the coprocessor has a plurality of data transceiving channels and automatically stores and forwards the payload data.

在星载计算机系统中集成了专用的通信协处理器,将处理器的接口数据管控功能交由协处理器完成,提升处理器的工作效率,同时节省星上平台计算资源,可靠性更佳,效率更高。A dedicated communication co-processor is integrated in the onboard computer system, and the interface data management and control functions of the processor are completed by the co-processor, which improves the working efficiency of the processor, saves the computing resources of the on-board platform, and has better reliability. higher efficiency.

本发明的一个可能的实施例中,所述星载计算机系统还包括通信缓存,所述协处理器通过所述通信缓存与所述数据存储器连接。In a possible embodiment of the present invention, the onboard computer system further includes a communication buffer, and the coprocessor is connected to the data storage through the communication buffer.

由于设置了通信缓存,在将数据写入数据存储器时,可以加快写入效率;在将数存储器中的数据读出的时候,可以直接把通信缓存中的数据传输到内存中就可以了,由于通信缓存的速率远远高于磁头读写的速率,所以能够达到明显改善性能的目的。有时候,某些数据是会经常需要访问的,像硬盘内部的缓存(暂存器的一种)会将读取比较频繁的一些数据存储在缓存中,再次读取时就可以直接从缓存中直接传输。Since the communication buffer is set, the writing efficiency can be accelerated when writing data into the data memory; when reading the data in the data memory, the data in the communication buffer can be directly transferred to the memory. The speed of the communication buffer is much higher than the read and write speed of the magnetic head, so it can achieve the purpose of significantly improving the performance. Sometimes, some data needs to be accessed frequently. For example, the internal cache of the hard disk (a kind of scratchpad) will store some data that is read more frequently in the cache, and can be directly read from the cache when it is read again. direct transmission.

本发明的一个可能的实施例中,所述协处理器包括复数个数据管理通道、多端口交互接口以及控制器,所述数据管理通道与数据收发通道电连接,所述多端口交互接口与所述数据管理通道和所述通信缓存电连接,所述控制器用于控制所述数据管理通道和所述多端口交互接口将载荷数据按照预设程序进行自动存储和/或转发。In a possible embodiment of the present invention, the coprocessor includes a plurality of data management channels, a multi-port interaction interface, and a controller, the data management channel is electrically connected to the data transceiver channel, and the multi-port interaction interface is connected to all the data transmission and reception channels. The data management channel and the communication buffer are electrically connected, and the controller is configured to control the data management channel and the multi-port interaction interface to automatically store and/or forward the payload data according to a preset program.

设置所述数据管理通道,能够实现将载荷数据按照数据类型分类存储,实现文件规则存放,便于读取。By setting the data management channel, the payload data can be classified and stored according to the data type, and the file rules can be stored, which is easy to read.

本发明的一个可能的实施例中,所述数据管理通道包括数据缓冲模块和描述符匹配模块,所述数据缓冲模块与对应的所述数据收发通道电连接,所述描述符匹配模块与所述数据缓冲模块和所述多端口交互接口电连接。In a possible embodiment of the present invention, the data management channel includes a data buffer module and a descriptor matching module, the data buffer module is electrically connected to the corresponding data transceiver channel, and the descriptor matching module is connected to the The data buffer module is electrically connected to the multi-port interactive interface.

通过数据缓冲模块,将载荷数据缓存在对应的模块中按照数据包格式解析包头中的数据关键信息,进而在描述符匹配模块对载荷数据进行信息匹配后,通过多端口交互接口将载荷数据存入对应的通信缓存中。Through the data buffer module, the payload data is cached in the corresponding module, and the key data information in the packet header is parsed according to the data packet format, and after the descriptor matching module matches the payload data, the payload data is stored in the multi-port interactive interface. in the corresponding communication buffer.

本发明的一个可能的实施例中,所述协处理器还包括配置寄存器,所述配置寄存器与所述数据管理通道和所述星载微处理器电连接。In a possible embodiment of the present invention, the coprocessor further includes a configuration register, and the configuration register is electrically connected to the data management channel and the onboard microprocessor.

所述配置寄存器用于按照预设程序对所述数据缓冲模块和描述符匹配模块进行初始信息配置。The configuration register is used to perform initial information configuration on the data buffer module and the descriptor matching module according to a preset program.

本发明的一个可能的实施例中,所述通信缓存包括复数个与所述数据管理通道一一对应的描述符阵列,所述描述符阵列与对应的所述描述符匹配模块和所述通信缓存的对应通道电连接。In a possible embodiment of the present invention, the communication buffer includes a plurality of descriptor arrays in one-to-one correspondence with the data management channels, and the descriptor array is matched with the corresponding descriptor matching module and the communication buffer The corresponding channels are electrically connected.

所述描述符阵列包含复数个描述符模块,用于匹配载荷数据的数据类型。The descriptor array includes a plurality of descriptor modules for matching the data type of the payload data.

本发明的一个可能的实施例中,所述协处理器采用型号为Actel AX2000的FPGA芯片。In a possible embodiment of the present invention, the coprocessor adopts an FPGA chip whose model is Actel AX2000.

第二实施例Second Embodiment

如图2和图3所示,本发明还提供一种星载计算机系统载荷数据接收方法,包括如下步骤:As shown in FIG. 2 and FIG. 3 , the present invention also provides a method for receiving load data of an on-board computer system, comprising the following steps:

当接收外部载荷数据时,根据数据通信协议识别有效数据帧头,识别到有效帧头后,按照数据包格式解析包头中的数据关键信息;When receiving external payload data, identify the valid data frame header according to the data communication protocol, and after identifying the valid frame header, parse the data key information in the packet header according to the data packet format;

将解析出的包头中的数据关键信息进行数据类型匹配;Match the data type of the data key information in the parsed packet header;

读取数据关键信息中其的余参数信息,包括存储机制、存储地址;Read the remaining parameter information in the key information of the data, including the storage mechanism and storage address;

基于所述存储机制和所述存储地址将当前载荷数据进行转发和/或存储到相应地址。The current payload data is forwarded and/or stored to a corresponding address based on the storage mechanism and the storage address.

具体来说,每个数据管理通道各提供N个“接收描述符”。每个接收描述符可指定“APID匹配条件”、“包起始地址(写指针)”、“缓存起始地址”、“缓存总长度”等信息,总长度为128位。完成接收描述符配置后,数据管理通道自动并行匹配收到的包与接收描述符,并将数据包保存到对应的缓存中。星载微处理器只需要周期性检查描述符的写指针,即可知道收到了哪些包,并作出相应处理。具体步骤如下:Specifically, each data management channel provides N "receive descriptors". Each receiving descriptor can specify information such as "APID matching condition", "packet start address (write pointer)", "buffer start address", "total buffer length", etc. The total length is 128 bits. After the receiving descriptor configuration is completed, the data management channel automatically matches the received packet and the receiving descriptor in parallel, and saves the data packet into the corresponding buffer. The onboard microprocessor only needs to periodically check the write pointer of the descriptor to know which packets have been received and deal with it accordingly. Specific steps are as follows:

(1)当星载计算机系统接收外部数据时,协处理器根据数据通信协议识别有效数据帧头,识别到有效帧头后,协处理器按照数据包格式解析包头中的数据长度、APID等关键信息;(1) When the onboard computer system receives external data, the coprocessor identifies the valid data frame header according to the data communication protocol. After identifying the valid frame header, the coprocessor parses the data length and APID in the packet header according to the data packet format. information;

(2)将解析出的包头信息与位于高速缓存中或全部接收描述符进行数据类型匹配,描述符配置区如下表所示:(2) Match the data type of the parsed header information with those located in the cache or all received descriptors. The descriptor configuration area is shown in the following table:

Figure BDA0003617620570000061
Figure BDA0003617620570000061

(3)APID匹配条件如下:(3) APID matching conditions are as follows:

当{cond,neg}={0,0}时,匹配掩摸加匹配目标模式:(APID&mask)==match,即APID经掩码过滤后,与match一致则判定为描述符匹配;When {cond,neg}={0,0}, the matching mask plus matching target pattern: (APID&mask)==match, that is, after the APID is filtered by the mask, if it is consistent with the match, it is determined that the descriptor matches;

当{cond,neg}={1,0}时,最小值加最大值(区间内)匹配模式:(APID>=mask&&APID<=match)即APID在描述符设置的mask至match区间内时则判定为描述符匹配;When {cond,neg}={1,0}, the minimum value plus the maximum value (in the interval) matching mode: (APID>=mask&&APID<=match) that is, when APID is within the mask to match interval set by the descriptor, it is determined match for the descriptor;

当{cond,neg}={0,1}时,匹配掩摸加匹配目标(过滤)模式:(APID&mask)!=match即APID经掩码过滤后,与match不一致则判定为描述符匹配;When {cond,neg}={0,1}, the matching mask plus matching target (filtering) mode: (APID&mask)! =match means that after the APID is filtered by the mask, if it is inconsistent with the match, it is determined that the descriptor matches;

当{cond,neg}={1,1}时,最小值加最大值(区间外)匹配模式:(APID<mask||APID>mask)即APID在描述符设置的mask至match区间外时则判定为描述符匹配;When {cond,neg}={1,1}, the minimum value plus the maximum value (outside the interval) matching mode: (APID<mask||APID>mask) that is, when APID is outside the mask to match interval set by the descriptor, then It is determined that the descriptor matches;

(4)通过APID将当前数据包与该端口某一描述符匹配后,进一步读取描述符内其余参数信息,包括存储机制、存储地址等,具体如下:(4) After matching the current data packet with a descriptor of the port through APID, further read the remaining parameter information in the descriptor, including storage mechanism, storage address, etc., as follows:

①数据存放地址:①Data storage address:

当描述符匹配结果为{mon,byp}={0,0}或当{mon,byp}={1,0}时,数据包需存放于RAM内存区。描述符中base为该通信端口匹配当前描述符的数据在内存中存放的起始基地址,idx为数据包第一个字节存放的偏移地址,因此当前数据包存放起始地址为base+idx。协处理器检测数据包匹配后,自动将此描述符对应的idx值增加当前数据包长,下一次匹配的数据包将依次在内存中存放。When the descriptor matching result is {mon,byp}={0,0} or when {mon,byp}={1,0}, the data packet needs to be stored in the RAM memory area. The base in the descriptor is the starting base address where the data of the communication port matches the current descriptor stored in the memory, and the idx is the offset address where the first byte of the data packet is stored, so the starting address of the current data packet is base+ idx. After the coprocessor detects the matching of the data packets, it automatically increases the idx value corresponding to this descriptor to the current data packet length, and the next matched data packets will be stored in the memory in turn.

②数据存放区域:②Data storage area:

描述符中size表示当前描述符匹配的数据包可使用的地址空间大小,防止数据写入错误地址,起始地址为base,结束地址为base+size。当描述符匹配成功的数据包依次向后存放,存储至结束地址后,存放写指针回环,下一个数据回环至base地址依次覆盖写入,idx值自动回环。The size in the descriptor indicates the size of the address space available for the data packet matched by the current descriptor to prevent data from being written to the wrong address. The starting address is base and the ending address is base+size. When the data packets whose descriptors match successfully are stored in sequence, and after they are stored to the end address, the write pointer loop is stored, and the next data loop is looped back to the base address to overwrite and write in sequence, and the idx value is automatically looped back.

(5)根据描述符配置区指定的地址、存储转发去向等信息,自动实现接收数据的存储分发。(5) According to the address specified in the descriptor configuration area, the destination of storage and forwarding, etc., the storage and distribution of the received data is automatically realized.

第三实施例Third Embodiment

如图4和图5所示,本发明还提供一种星载计算机系统载荷数据发送方法,包括如下步骤:As shown in FIG. 4 and FIG. 5 , the present invention also provides a method for sending load data of an on-board computer system, comprising the following steps:

配置发送端口的描述符阵列;Configure the descriptor array of the transmit port;

基于描述符阵列配置信息的长度信息从缓存冲读取相应数据并发送;Based on the length information of the descriptor array configuration information, the corresponding data is read from the cache and sent;

在当前待发送的帧并非最后一帧数据时,根据描述符阵列内参数发送本帧数据后,轮询下一个描述符阵列并完成相应发送动作;When the current frame to be sent is not the last frame of data, after sending the data of this frame according to the parameters in the descriptor array, poll the next descriptor array and complete the corresponding sending action;

在当前待发送的帧为最后一帧数据时,本次发送结束。When the current frame to be sent is the last frame of data, the current sending ends.

具体来说,针对每个通信发送接口各提供了N个“发送描述符”。每个发送描述符可指定“发送包长”、“包起始地址(读指针)”、“缓存起始地址”、“缓存总长度”等信息,总长度为128位。通过发送描述符,星载微处理器一次给发送接口指定至多32个发送动作,从不同缓存位置发送32个数据包。启动发送后,发送接口自动依次读取发送描述符,完成数据包的发送,无需高可靠处理器干预。Specifically, N "transmission descriptors" are provided for each communication transmission interface. Each sending descriptor can specify information such as "sending packet length", "packet start address (read pointer)", "buffer start address", "total buffer length", etc. The total length is 128 bits. By sending descriptors, the onboard microprocessor assigns up to 32 sending actions to the sending interface at a time, and sends 32 data packets from different buffer locations. After the sending is started, the sending interface automatically reads the sending descriptor in turn to complete the sending of the data packet without the intervention of the highly reliable processor.

具体实施步骤如下:当星载计算机系统计划发送数据,星载微处理器首先配置发送该端口的发送描述符阵列,由协处理器实现后续发送工作,需配置的发送描述符配置信息如下表所示:The specific implementation steps are as follows: When the onboard computer system plans to send data, the onboard microprocessor first configures the sending descriptor array for the port, and the coprocessor implements the subsequent sending work. The configuration information of the sending descriptor that needs to be configured is shown in the following table. Show:

Figure BDA0003617620570000081
Figure BDA0003617620570000081

①发送包长度:①Sending packet length:

设置len为发送数据包长,协处理器发送接口根据该长度信息从缓存中读取相应的数据并发送。Set len as the length of the sent data packet, and the coprocessor sending interface reads the corresponding data from the buffer and sends it according to the length information.

②连续发送模式:②Continuous sending mode:

处理器依次设置描述符last=0或last=1,last=0代表当前待发送的帧并非最后一帧,协处理器根据描述符内参数发送本帧数据后,轮询下一个描述符并完成相应发送动作,直至轮询到描述符的last=1,认定为最后一帧数据,本次发送结束。The processor sets the descriptor last=0 or last=1 in turn. Last=0 means that the frame to be sent is not the last frame. After the coprocessor sends the data of this frame according to the parameters in the descriptor, it polls the next descriptor and completes it. Corresponding sending action, until polling to the last = 1 of the descriptor, it is regarded as the last frame of data, and this sending ends.

③发送起始地址③Send start address

描述符中base为当前描述符对应发送数据在内存中存放的起始基地址,idx为发送数据包第一个字节存放的偏移地址,因此当前数据包存放起始地址为base+idx。协处理器明确发送端口及描述符序号后,依照发送起始地址base+idx及长度信息len依次发送通信缓存中的数据。当update=0,发送数据后idx值不发生变化,下一次发送数据包将覆盖当前内存存放;当update=1,自动将此描述符对应的idx值增加当前数据包长,下一次匹配的数据包将依次在内存中存放。In the descriptor, base is the starting base address of the current descriptor corresponding to the sending data stored in the memory, and idx is the offset address where the first byte of the sending data packet is stored, so the starting address of the current data packet is base+idx. After the coprocessor specifies the sending port and the descriptor serial number, it sends the data in the communication buffer in turn according to the sending start address base+idx and length information len. When update=0, the idx value does not change after the data is sent, and the next data packet will be overwritten and stored in the current memory; when update=1, the idx value corresponding to this descriptor is automatically added to the current data packet length, and the next matching data Packages will be placed in memory sequentially.

④数据存放区域④Data storage area

描述符中size表示当前描述符匹配的数据包可使用的地址空间大小,防止数据写入错误地址,起始地址为base,结束地址为base+size。星载微处理器将需要发送的数据内容依序放入,存储至结束地址后,存放写指针回环,下一个数据回环至base地址依次覆盖写入,idx值自动回环。The size in the descriptor indicates the size of the address space available for the data packet matched by the current descriptor to prevent data from being written to the wrong address. The starting address is base and the ending address is base+size. The onboard microprocessor puts the data content to be sent in sequence, stores it to the end address, stores the write pointer loopback, loops back the next data to the base address and overwrites it in turn, and the idx value automatically loops back.

⑤数据防错模式⑤Data error proofing mode

当single=1,发送时协处理器不判别发送内容,当single=0时,发送前协处理器判别起始地址数据内容,比较预设的数据帧头,从预设的起始地址开始搜索,找到合法帧头后启动发送,否则不发送。When single=1, the coprocessor does not discriminate the transmission content when sending, and when single=0, the coprocessor discriminates the data content of the starting address before sending, compares the preset data frame header, and starts searching from the preset starting address , start sending after finding a valid frame header, otherwise it will not send.

第四实施例Fourth Embodiment

基于相同的构思,本发明还提供一种可读存储介质,所述可读存储介质上存储有处理程序,所述处理程序被处理器执行时实现上述星载计算机系统载荷数据接收方法或星载计算机系统载荷数据发送方法。Based on the same concept, the present invention also provides a readable storage medium, where a processing program is stored on the readable storage medium, and when the processing program is executed by a processor, the above-mentioned method for receiving payload data of an on-board computer system or an on-board computer system is implemented. Computer system load data transmission method.

上面结合附图对本发明的实施方式作了详细说明,但是本发明并不限于上述实施方式。即使对本发明作出各种变化,倘若这些变化属于本发明权利要求及其等同技术的范围之内,则仍落入在本发明的保护范围之中。The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and the technical equivalents thereof, they still fall within the protection scope of the present invention.

Claims (10)

1. A space-borne computer system, comprising:
the satellite-borne microprocessor is used for data processing and whole satellite control;
a data memory for storing payload data;
and the coprocessor is electrically connected with the satellite-borne microprocessor and the data memory, is provided with a plurality of data receiving and transmitting channels and automatically stores and forwards the load data.
2. The on-board computer system of claim 1, further comprising a communication cache, the co-processor coupled to the data storage through the communication cache.
3. The on-board computer system of claim 2, wherein the coprocessor includes a plurality of data management channels, a multi-port interactive interface, and a controller, the data management channels are electrically connected to the data transceiving channels, the multi-port interactive interface is electrically connected to the data management channels and the communication cache, and the controller is configured to control the data management channels and the multi-port interactive interface to automatically store and/or forward payload data according to a preset program.
4. The on-board computer system of claim 3, wherein the data management channels comprise a data buffering module electrically connected to the corresponding data transceiving channels and a descriptor matching module electrically connected to the data buffering module and the multi-port interaction interface.
5. The on-board computer system of claim 3, wherein the co-processor further comprises a configuration register electrically connected to the data management channel and the on-board microprocessor.
6. The on-board computer system of claim 4, wherein the communication cache includes a plurality of descriptor arrays in one-to-one correspondence with the data management channels, the descriptor arrays being electrically connected to the corresponding descriptor matching modules and the corresponding channels of the communication cache.
7. The on-board computer system of any of claims 1-6, wherein the co-processor employs an FPGA chip of type ActelAX 2000.
8. A method for receiving load data of a satellite-borne computer system is characterized by comprising the following steps:
when receiving external load data, identifying an effective data frame header according to a data communication protocol, and after identifying the effective frame header, analyzing data key information in the packet header according to a data packet format;
performing data type matching on the analyzed data key information in the packet header;
reading the rest parameter information in the data key information, wherein the rest parameter information comprises a storage mechanism and a storage address;
and forwarding and/or storing the current load data to the corresponding address based on the storage mechanism and the storage address.
9. A method for sending payload data of a satellite-borne computer system is characterized by comprising the following steps:
configuring a descriptor array of a sending port;
reading corresponding data from the cache based on the length information of the descriptor array configuration information and sending the data;
when the current frame to be sent is not the last frame data, polling the next descriptor array and finishing the corresponding sending action after sending the current frame data according to the parameters in the descriptor array;
and when the current frame to be sent is the last frame data, the sending is finished.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a processing program, which when executed by a processor implements the method for receiving payload data of a satellite borne computer system according to claim 8 or the method for transmitting payload data of a satellite borne computer system according to claim 9.
CN202210448261.4A 2022-04-27 2022-04-27 Spaceborne computer system and its data receiving and sending method Pending CN114817128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210448261.4A CN114817128A (en) 2022-04-27 2022-04-27 Spaceborne computer system and its data receiving and sending method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210448261.4A CN114817128A (en) 2022-04-27 2022-04-27 Spaceborne computer system and its data receiving and sending method

Publications (1)

Publication Number Publication Date
CN114817128A true CN114817128A (en) 2022-07-29

Family

ID=82506838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210448261.4A Pending CN114817128A (en) 2022-04-27 2022-04-27 Spaceborne computer system and its data receiving and sending method

Country Status (1)

Country Link
CN (1) CN114817128A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183741A (en) * 2017-11-29 2018-06-19 山东航天电子技术研究所 Electronic system on a kind of micro-nano satellite generalization star
CN110620639A (en) * 2019-10-09 2019-12-27 中科睿微(宁波)电子技术有限公司 Hardware retransmission circuit and method for data subframe aggregation retransmission
CN113806260A (en) * 2017-08-30 2021-12-17 英特尔公司 Techniques for managing flexible host interfaces for network interface controllers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806260A (en) * 2017-08-30 2021-12-17 英特尔公司 Techniques for managing flexible host interfaces for network interface controllers
CN108183741A (en) * 2017-11-29 2018-06-19 山东航天电子技术研究所 Electronic system on a kind of micro-nano satellite generalization star
CN110620639A (en) * 2019-10-09 2019-12-27 中科睿微(宁波)电子技术有限公司 Hardware retransmission circuit and method for data subframe aggregation retransmission

Similar Documents

Publication Publication Date Title
CN111949568B (en) Message processing method, device and network chip
US8626963B2 (en) Packet based data transfer system and method for host-slave interface
CN115037708B (en) Message processing method, system, device and computer readable storage medium
US12278884B2 (en) Apparatus and method for descriptor handling in software and hardware interworking systems and computer-readable medium
CN110109872A (en) A kind of remote sensing satellite isomeric data unifies memory management unit
CN111538694B (en) Data caching method for network interface to support multiple links and retransmission
US6477587B1 (en) Command-based communications between an initiator and a target
CN112765175A (en) Interface data processing method and device, computer equipment and medium
CN115086001A (en) Sampling data caching method and device and storage medium
CN114817128A (en) Spaceborne computer system and its data receiving and sending method
CN119906770B (en) A multi-source heterogeneous protocol parsing method suitable for onboard protocol parsing equipment
CN115292029A (en) Reliable receiving method of indefinite byte serial port based on ARM
CN117251117B (en) A spaceborne solid-state storage system based on serial bus polling management
US9338219B2 (en) Direct push operations and gather operations
CN102420749A (en) Device and method for realizing network card issuing function
CN113485412B (en) Method and system for distinguishing return by using multilink data signal source by unmanned aerial vehicle
CN113485912B (en) Communication function simulation method for 1553B bus BC chip
CN115695254A (en) A network telemetry method, system, storage medium and electronic equipment
CN112100257B (en) Data processing method, device, computer equipment and storage medium
CN109861967A (en) Remote direct memory based on Spark Shuffle accesses system
WO2023097903A1 (en) Message transmission method and apparatus, electronic device, and storage medium
CN113542406A (en) Asynchronous processing system of intersystem messages
CN118363886B (en) Data output method and device, storage medium and electronic device
CN105550234B (en) Transmission method when being chosen based on binary search moonlet data
US7620702B1 (en) Providing real-time control data for a network processor

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