[go: up one dir, main page]

CN107203399B - A satellite in-orbit program refocusing system - Google Patents

A satellite in-orbit program refocusing system Download PDF

Info

Publication number
CN107203399B
CN107203399B CN201710403506.0A CN201710403506A CN107203399B CN 107203399 B CN107203399 B CN 107203399B CN 201710403506 A CN201710403506 A CN 201710403506A CN 107203399 B CN107203399 B CN 107203399B
Authority
CN
China
Prior art keywords
program
reset
circuit
memory
main controller
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.)
Expired - Fee Related
Application number
CN201710403506.0A
Other languages
Chinese (zh)
Other versions
CN107203399A (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.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
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 Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CN201710403506.0A priority Critical patent/CN107203399B/en
Publication of CN107203399A publication Critical patent/CN107203399A/en
Application granted granted Critical
Publication of CN107203399B publication Critical patent/CN107203399B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Radio Relay Systems (AREA)

Abstract

The invention discloses a satellite on-orbit program reinjection system, which comprises a switching signal generation circuit, a main controller and a satellite on-orbit program reinjection circuit, wherein the switching signal generation circuit is used for outputting a corresponding guide identification signal to the main controller after receiving a switching program instruction sent by a ground control center; the main controller is used for controlling the system to perform reset operation after receiving the reset signal; after resetting, reading a bootstrap program in the original program memory for running, and guiding the remark program in the remark program memory or the original program in the original program memory to run in the memory by the bootstrap program according to the received bootstrap identification signal; and the reset circuit is used for generating a reset signal and sending the reset signal to the main controller after receiving a reset program instruction sent by the ground control center. The invention can avoid the influence on the system reset function and the program switching function caused by integrating a plurality of functions as much as possible, and has high reliability.

Description

一种卫星在轨程序重注系统A satellite in-orbit program refocusing system

技术领域technical field

本发明涉及卫星程序维护技术领域,特别是涉及一种卫星在轨程序重注系统。The invention relates to the technical field of satellite program maintenance, in particular to a satellite on-orbit program refocusing system.

背景技术Background technique

卫星的空间有效载荷指的是直接执行卫星任务的仪器设备(包括主控制器,用于存储程序的存储器以及执行程序的内存等),由于空间有效载荷的嵌入式软件是工作的中枢,若由于在轨应用环境的变化,使得嵌入式软件部分功能失效的话,会影响空间有效载荷的正常工作,此时需要采用在轨程序重注的方法更新或更换嵌入式软件的程序,恢复空间有效载荷的正常工作。The space payload of the satellite refers to the instruments and equipment (including the main controller, the memory for storing the program and the memory for executing the program, etc.) that directly perform the satellite mission. Since the embedded software of the space payload is the center of the work, if due to the Changes in the on-orbit application environment make some functions of the embedded software fail, which will affect the normal operation of the space payload. At this time, it is necessary to update or replace the embedded software program by re-introducing the on-orbit program to restore the space payload. normal work.

在轨程序重注的方法是通过天地链路将重注程序从地面控制中心传送到卫星平台,卫星平台再通过卫星内部数据总线传送到空间有效载荷,空间有效载荷接收重注程序,通过校验后存储,重注程序可覆盖原始程序,也可单独存储,然后地面控制中心发送切换程序指令,使空间有效载荷切换至引导重注程序,然后进行系统复位操作,复位后直接运行重注程序。The method of on-orbit program re-injection is to transmit the re-injection program from the ground control center to the satellite platform through the space-ground link, and then the satellite platform transmits it to the space payload through the satellite internal data bus, and the space payload receives the re-injection program and passes the verification. After storage, the re-injection program can overwrite the original program, or it can be stored separately, and then the ground control center sends a switching program instruction to switch the space payload to the guided re-injection program, and then perform a system reset operation, and directly run the re-injection program after reset.

目前,空间有效载荷中,接收切换程序指令后将其转换为相应的切换信号发送至主控制器进行程序切换的部件为FPGA,同时FPGA还承担接收地面控制中心发送的复位指令后生成复位信号并发送至主控制器的功能,以及一些其他功能。由于FPGA承担的功能较多,程序复杂,不同程序之间可能出现相互影响,即FPGA中一个功能部分出现故障后,可能会影响程序切换部分或复位部分的功能,导致切换失败或复位失败,使得空间有效载荷无法引导重注程序运行,即采用兼具多种功能的FPGA来作为复位部分与程序切换部分的功能组件存在较大风险,可靠性低。At present, in the space payload, the component that receives the switching program command and converts it into a corresponding switching signal and sends it to the main controller for program switching is the FPGA. At the same time, the FPGA is also responsible for receiving the reset command sent by the ground control center. function sent to the main controller, and some other functions. Because the FPGA has many functions and the program is complex, there may be mutual influence between different programs, that is, if a functional part of the FPGA fails, it may affect the function of the program switching part or the reset part, resulting in the failure of switching or reset, making the The space payload cannot guide the refocusing program to run, that is, the use of FPGA with multiple functions as the functional component of the reset part and the program switching part has great risks and low reliability.

因此,如何提供一种可靠性高的卫星在轨程序重注系统是本领域技术人员目前需要解决的问题。Therefore, how to provide a highly reliable satellite on-orbit program re-introduction system is a problem that those skilled in the art need to solve at present.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种卫星在轨程序重注系统,能够尽可能避免由于将多个功能集成到一起导致的对系统复位功能以及程序切换功能的影响,可靠性高。The purpose of the present invention is to provide a satellite on-orbit program re-injection system, which can avoid the influence on the system reset function and the program switching function caused by integrating multiple functions together as much as possible, and has high reliability.

为解决上述技术问题,本发明提供了一种卫星在轨程序重注系统,包括主控制器以及分别与所述主控制器连接的切换信号生成电路、内存、原始程序存储器、重注程序存储器和复位电路;In order to solve the above technical problems, the present invention provides a satellite on-orbit program re-injection system, which includes a main controller, a switching signal generation circuit, a memory, an original program memory, a re-injection program memory and a switching signal generation circuit respectively connected to the main controller. reset circuit;

所述原始程序存储器内存储有原始程序以及引导程序;An original program and a boot program are stored in the original program memory;

所述切换信号生成电路,用于接收地面控制中心发送的切换程序指令后,输出相应的引导标识信号至至所述主控制器;The switching signal generating circuit is used for outputting the corresponding guidance identification signal to the main controller after receiving the switching program instruction sent by the ground control center;

所述主控制器,用于接收复位信号后控制系统进行复位操作;复位后,读取所述原始程序存储器内的引导程序进行运行,所述引导程序依据接收到的引导标识信号引导所述重注程序存储器内的重注程序或所述原始程序存储器内的原始程序至所述内存内运行;The main controller is used to control the system to perform a reset operation after receiving the reset signal; after reset, read the boot program in the original program memory to run, and the boot program guides the reset according to the received boot identification signal. Inject the re-injected program in the program memory or the original program in the original program memory to run in the memory;

所述复位电路,用于接收所述地面控制中心发送的复位程序指令后,生成所述复位信号并发送至所述主控制器。The reset circuit is configured to generate the reset signal and send it to the main controller after receiving the reset program instruction sent by the ground control center.

优选地,还包括:Preferably, it also includes:

用于对复位程序指令进行过滤操作的容错电路,所述容错电路的输入端用于接收所述地面控制中心发送的复位程序指令,输出端连接所述复位电路的输入端。A fault-tolerant circuit for filtering reset program instructions, the input terminal of the fault-tolerant circuit is used for receiving the reset program instructions sent by the ground control center, and the output terminal is connected to the input terminal of the reset circuit.

优选地,所述容错电路具体为RC电路。Preferably, the fault-tolerant circuit is specifically an RC circuit.

优选地,还包括:Preferably, it also includes:

连接于所述复位电路的输出端与所述主控制器的复位输入端之间的整形电路,所述整形电路用于对所述复位信号进行整形操作。A shaping circuit is connected between the output terminal of the reset circuit and the reset input terminal of the main controller, and the shaping circuit is used for shaping the reset signal.

优选地,所述整形电路具体为施密特触发器。Preferably, the shaping circuit is a Schmitt trigger.

优选地,还包括:Preferably, it also includes:

用于产生冗余复位信号的看门狗电路;A watchdog circuit for generating redundant reset signals;

用于进行或操作的逻辑电路;logic circuits for performing OR operations;

所述看门狗电路的输出端与所述整形电路的输出端分别连接所述逻辑电路的两个输入端,所述逻辑电路的输出端连接所述主控制器的复位输入端。The output end of the watchdog circuit and the output end of the shaping circuit are respectively connected to two input ends of the logic circuit, and the output end of the logic circuit is connected to the reset input end of the main controller.

优选地,所述切换信号生成电路具体为磁保持继电器。Preferably, the switching signal generating circuit is specifically a magnetic latching relay.

优选地,所述复位电路为电磁继电器。Preferably, the reset circuit is an electromagnetic relay.

优选地,所述内存具体包括:Preferably, the memory specifically includes:

运行模块,用于运行所述重注程序或所述原始程序;an operation module for running the re-injection program or the original program;

重注模块,用于接收所述地面控制中心发送的采用CCSDS编码的重注程序数据包进行依次校验及存储,当接收到尾包后,整合各个数据包内的程序得到所述重注程序并进行校验,校验通过后,将所述重注程序写入所述重注程序存储器内。The re-injection module is used to receive the CCSDS-encoded re-injection program data packets sent by the ground control center for verification and storage in turn, and after receiving the tail packet, integrate the programs in each data packet to obtain the re-injection program and perform verification, and after the verification is passed, write the re-injection program into the re-injection program memory.

本发明提供了一种卫星在轨程序重注系统,包括主控制器以及分别与所述主控制器连接的切换信号生成电路、内存、原始程序存储器、重注程序存储器和复位电路;切换信号生成电路接收地面控制中心发送的切换程序指令后,输出相应的电引导标识信号至主控制器,主控制器在复位后,读取引导程序进行运行,引导程序运行过程中,会根据接收到的引导标识信号携带的引导标识,选择性的引导重注程序存储器内的重注程序或原始程序存储器内的原始程序至内存内运行。可见,本发明的系统将复位电路与切换信号生成电路分离开来,复位信号与切换信号由不同的电路生成,且复位电路仅用于复位信号的生成,而切换信号生成电路仅用于切换信号的生成,尽可能避免了切换信号生成部分与复位部分之间的相互影响,也减少了由于将以上两个功能部分与其他功能集成到一起而导致受到其他功能的影响造成故障的情况出现,提高了卫星在轨程序重注过程的可靠性。The invention provides a satellite on-orbit program re-injection system, comprising a main controller and a switching signal generation circuit, a memory, an original program memory, a re-injection program memory and a reset circuit respectively connected with the main controller; the switching signal generation circuit After the circuit receives the switching program command sent by the ground control center, it outputs the corresponding electric guidance identification signal to the main controller. After the main controller is reset, it reads the guidance program to run. During the operation of the guidance program, it will follow the received guidance. The boot flag carried by the flag signal selectively guides the reprogrammed program in the reprogrammed memory or the original program in the original program memory to run in the memory. It can be seen that the system of the present invention separates the reset circuit and the switching signal generation circuit, the reset signal and the switching signal are generated by different circuits, and the reset circuit is only used for the generation of the reset signal, and the switching signal generation circuit is only used for the switching signal The generation of the switch signal generation part and the reset part are avoided as much as possible, and the occurrence of failures caused by the influence of other functions due to the integration of the above two functional parts with other functions is also reduced. The reliability of the satellite in-orbit program refocusing process is improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the prior art and the accompanying drawings required in the embodiments. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明提供的一种卫星在轨程序重注系统的结构示意图;Fig. 1 is the structural representation of a kind of satellite in-orbit program re-injection system provided by the present invention;

图2为本发明提供的另一种卫星在轨程序重注系统的结构示意图;Fig. 2 is the structural representation of another kind of satellite in-orbit program re-injection system provided by the present invention;

图3为本发明提供的一种CCSDS编码重注程序数据包格式示意图。FIG. 3 is a schematic diagram of a data packet format of a CCSDS coding re-injection program provided by the present invention.

具体实施方式Detailed ways

本发明的核心是提供一种卫星在轨程序重注系统,能够尽可能避免由于将多个功能集成到一起导致的对系统复位功能以及程序切换功能的影响,可靠性高。The core of the invention is to provide a satellite on-orbit program re-injection system, which can avoid the influence on the system reset function and the program switching function caused by integrating multiple functions together as much as possible, and has high reliability.

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明提供了一种卫星在轨程序重注系统,参见图1所示,图1为本发明提供的一种卫星在轨程序重注系统的结构示意图;该系统包括主控制器1以及分别与主控制器1连接的切换信号生成电路5、内存4、原始程序存储器3、重注程序存储器2和复位电路6;The present invention provides a satellite in-orbit program re-injection system, as shown in FIG. 1 , which is a schematic structural diagram of a satellite in-orbit program re-injection system provided by the present invention; the system includes a main controller 1 and a A switching signal generation circuit 5, a memory 4, an original program memory 3, a refill program memory 2 and a reset circuit 6 connected to the main controller 1;

原始程序存储器内存储有原始程序以及引导程序;The original program and the boot program are stored in the original program memory;

其中,原始程序存储器3、重注程序存储器2之间相互独立,两个存储器具体可采用EEPROM(型号可以为3DEE5M40VS5257),采用主控制器1不同的片选信号,具有不同的地址空间。当然,本发明不限定两个存储器的具体型号。Among them, the original program memory 3 and the remarked program memory 2 are independent of each other, and the two memories can use EEPROM (the model can be 3DEE5M40VS5257), use different chip select signals of the main controller 1, and have different address spaces. Of course, the present invention does not limit the specific models of the two memories.

切换信号生成电路5,用于用于接收地面控制中心发送的切换程序指令后,输出相应的引导标识信号至至所述主控制器1;The switching signal generating circuit 5 is used for outputting the corresponding guidance identification signal to the main controller 1 after receiving the switching program instruction sent by the ground control center;

这里的切换信号生成电路5可以采用磁保持继电器2JB1-910,该引导标识信号为高低电平信号,不同的引导标识采用不同的电平表示,例如高电平表示引导重注程序,低电平表示引导原始程序,当然,具体高电平引导哪种程序可自行设定,本发明不作限定,另外,切换信号生成电路5也可采用其他能够实现上述功能的电路。The switching signal generation circuit 5 here can use the magnetic latching relay 2JB1-910, the guide identification signal is a high and low level signal, and different guide signs are represented by different levels. It represents the booting of the original program. Of course, the specific high-level boot program can be set by itself, which is not limited in the present invention. In addition, the switching signal generating circuit 5 can also adopt other circuits that can realize the above functions.

主控制器1,用于用于接收复位信号后控制系统进行复位操作;复位后,读取所述原始程序存储器内的引导程序进行运行,所述引导程序依据接收到的引导标识信号引导所述重注程序存储器2内的重注程序或所述原始程序存储器3内的原始程序至所述内存4内运行;The main controller 1 is used to control the system to perform a reset operation after receiving a reset signal; after reset, read the bootstrap program in the original program memory to run, and the bootstrap program guides the Re-inject the re-injection program in the program memory 2 or the original program in the original program memory 3 to run in the memory 4;

其中,主控制器1可以采用BM3803处理器,其中,BM3803处理器的PI07引脚作为切换信号(第一电平信号和第二电平信号)的输入与切换信号生成电路5的输出端连接。其中,主控制器1内存4储有引导程序,引导程序在上电后自动运行,其功能是引导不同的应用程序加载至内存4运行,主控制器1初始化后,读取PI07引脚输入的切换信号的数据,当切换信号为低电平信号时,读取数据为0,此时,引导程序引导重注程序至内存4中,当切换信号为高电平信号时,读取数据为1,此时,引导程序引导原始程序至内存4中;当然,也可以高电平信号时引导重注程序,反之引导原始程序,具体采用哪种方式本发明不作具体限定。The main controller 1 can use the BM3803 processor, wherein the PI07 pin of the BM3803 processor is used as the input of the switching signal (the first level signal and the second level signal) and is connected to the output end of the switching signal generating circuit 5 . Among them, the main controller 1's memory 4 stores a boot program, and the boot program runs automatically after power-on. Its function is to guide different applications to be loaded into the memory 4 to run. After the main controller 1 is initialized, it reads the input from the PI07 pin. The data of the switching signal, when the switching signal is a low-level signal, the read data is 0, at this time, the bootloader guides the re-injection program to the memory 4, when the switching signal is a high-level signal, the read data is 1 , at this time, the boot program guides the original program to the memory 4; of course, the re-injection program can also be guided when the signal is high, otherwise the original program is guided, and the specific method used is not specifically limited in the present invention.

复位电路6,用于接收地面控制中心发送的复位程序指令后,生成复位信号并发送至主控制器1。The reset circuit 6 is used to generate a reset signal and send it to the main controller 1 after receiving the reset program instruction sent by the ground control center.

其中,这里的复位电路6也可以采用磁保持继电器2JB1-910,用于在接收到低电平信号(80ms±10ms)时进行复位,当然,也可设置为高电平信号触发复位,另外复位电路6也可采用其他类型的电路,本发明对此不作具体限定。Among them, the reset circuit 6 here can also use the magnetic latching relay 2JB1-910, which is used to reset when a low-level signal (80ms±10ms) is received. Of course, it can also be set to a high-level signal to trigger the reset, and the reset The circuit 6 may also adopt other types of circuits, which are not specifically limited in the present invention.

另外,这里的内存4为SRAM,具体可以为型号3DSR20M40VS6507,当然本发明不限定内存4的型号。In addition, the memory 4 here is SRAM, and specifically, the model can be 3DSR20M40VS6507. Of course, the present invention does not limit the model of the memory 4 .

需要注意的是,引导程序位于PROM的0处,每次上电或复位后首先运行该程序,它根据接收的引导标识来决定引导原始程序或重注程序到内存运行。由于重注程序可能会发生多次覆盖的情况,因此为了避免引导程序被覆盖,将引导程序存储于原始程序存储器中。It should be noted that the boot program is located at 0 of the PROM. After each power-on or reset, the program is run first. It decides to boot the original program or reload the program to the memory according to the received boot ID. Since the re-injection program may be overwritten multiple times, the boot program is stored in the original program memory in order to avoid the boot program being overwritten.

本发明提供了一种卫星在轨程序重注系统,包括主控制器以及分别与所述主控制器连接的切换信号生成电路、内存、原始程序存储器、重注程序存储器和复位电路;切换信号生成电路接收地面控制中心发送的切换程序指令后,输出相应的电引导标识信号至主控制器,主控制器在复位后,读取引导程序进行运行,引导程序运行过程中,会根据接收到的引导标识信号携带的引导标识,选择性的引导重注程序存储器内的重注程序或原始程序存储器内的原始程序至内存内运行。可见,本发明的系统将复位电路与切换信号生成电路分离开来,复位信号与切换信号由不同的电路生成,且复位电路仅用于复位信号的生成,而切换信号生成电路仅用于切换信号的生成,尽可能避免了切换信号生成部分与复位部分之间的相互影响,也减少了由于将以上两个功能部分与其他功能集成到一起而导致受到其他功能的影响造成故障的情况出现,提高了卫星在轨程序重注过程的可靠性。The invention provides a satellite on-orbit program re-injection system, comprising a main controller and a switching signal generation circuit, a memory, an original program memory, a re-injection program memory and a reset circuit respectively connected with the main controller; the switching signal generation circuit After the circuit receives the switching program command sent by the ground control center, it outputs the corresponding electric guidance identification signal to the main controller. After the main controller is reset, it reads the guidance program to run. During the operation of the guidance program, it will follow the received guidance. The boot flag carried by the flag signal selectively guides the reprogrammed program in the reprogrammed memory or the original program in the original program memory to run in the memory. It can be seen that the system of the present invention separates the reset circuit and the switching signal generation circuit, the reset signal and the switching signal are generated by different circuits, and the reset circuit is only used for the generation of the reset signal, and the switching signal generation circuit is only used for the switching signal The generation of the switch signal generation part and the reset part are avoided as much as possible, and the occurrence of failures caused by the influence of other functions due to the integration of the above two functional parts with other functions is also reduced. The reliability of the satellite in-orbit program refocusing process is improved.

为方便理解,下面介绍上述系统的工作流程:For ease of understanding, the workflow of the above system is described below:

步骤s101:地面控制中心通过天地链路将重注程序发送至卫星平台,卫星平台再通过卫星内部1553B总线或CAN总线发送至空间有效载荷中的重注程序存储器2内进行校验并存储;Step s101: the ground control center sends the re-injection program to the satellite platform through the sky-earth link, and the satellite platform then sends it to the re-injection program memory 2 in the space payload through the satellite internal 1553B bus or CAN bus for verification and storage;

步骤s102:切换信号生成电路5接收地面控制中心发送的重注切换程序指令后,生成第一电平信号至主控制器1;Step s102: the switching signal generation circuit 5 generates a first level signal to the main controller 1 after receiving the re-note switching program instruction sent by the ground control center;

步骤s103:复位电路6接收地面控制中心发送的复位程序指令后,生成复位信号并发送至主控制器1;Step s103: after the reset circuit 6 receives the reset program instruction sent by the ground control center, it generates a reset signal and sends it to the main controller 1;

这里的引导即为拷贝操作。The boot here is the copy operation.

步骤s104:内存4初始化后,主控制器1运行读取的引导程序,引导程序根据接收到的第一电平信号引导重注程序存储器2内的重注程序至内存4;Step s104: after the memory 4 is initialized, the main controller 1 runs the read bootstrap program, and the bootstrap program guides the refill program in the refill program memory 2 to the memory 4 according to the received first level signal;

步骤s105:内存4中的重注程序自动运行,完成重注操作。Step s105: the refilling program in the memory 4 runs automatically to complete the refilling operation.

可以理解的是,本发明能够反复切换内存4中的程序来源,并且能够实现多次重注操作。It can be understood that, the present invention can repeatedly switch the program source in the memory 4, and can realize multiple re-injection operations.

在优选实施例中,内存4具体包括:In a preferred embodiment, the memory 4 specifically includes:

运行模块,用于运行重注程序或原始程序;Run module, used to run the re-injected program or the original program;

重注模块,用于接收地面控制中心发送的采用CCSDS编码的重注程序数据包进行依次校验及存储,当接收到尾包后,整合各个数据包内的程序得到重注程序并进行校验,校验通过后,将重注程序写入重注程序存储器2内。The re-injection module is used to receive the CCSDS-encoded re-injection program data packets sent by the ground control center for sequential verification and storage. After receiving the tail packet, integrate the programs in each data packet to obtain the re-injection program and verify it. , after the verification is passed, write the refilling program into the refilling program memory 2 .

可以理解的是,在步骤s101中重注程序发送至空间有效载荷并存储的过程中,需要将重注程序分解为多个重注程序数据包。It can be understood that, in the process of sending the refilling program to the space payload and storing it in step s101, the refilling program needs to be decomposed into a plurality of refilling program data packets.

其中,重注程序数据包的大小为每包64字节,CCSDS编码是基于CCSDS标准的一种编码,图3为本发明提供的一种CCSDS编码重注程序数据包格式示意图。Wherein, the size of the re-note program data packet is 64 bytes per packet, and the CCSDS encoding is a code based on the CCSDS standard.

版本号:3位二进制,固定为b”000”;Version number: 3-bit binary, fixed as b"000";

包类型:1位二进制,固定为b”0”,代表重注包;Packet type: 1-bit binary, fixed as b"0", which means re-injection packet;

副导头标志:1位二进制,b”0”代表没有副导头;b”1”代表有副导头;Sub-pilot flag: 1-bit binary, b"0" means no sub-pilot; b"1" means there is sub-pilot;

应用进程ID:11位二进制,标识各后端设备;Application process ID: 11-bit binary, identifying each back-end device;

序列标志:2位二进制,标识上注程序Serial flag: 2-bit binary, marking the betting program

b”00”代表上注程序的中间包;b"00" represents the intermediate package of the betting program;

b”01”代表上注程序的起始包;b"01" represents the starting package of the betting program;

b”10”代表上注程序的结束包;b"10" represents the end packet of the betting procedure;

b”11”代表上注程序的独立包。b"11" represents the independent package of the betting program.

包序列计数:14位二进制,为当前包在全部序列中的顺序,从0开始计数,最大值为16383(b”11111111111111”);Packet sequence count: 14-bit binary, which is the order of the current packet in all sequences, starting from 0, and the maximum value is 16383 (b"11111111111111");

包数据长度:16位二进制,单位为字节,值等于包数据长度(包含副导头和有效数据区)-1;Packet data length: 16-bit binary, the unit is byte, the value is equal to the packet data length (including sub-preamble and valid data area)-1;

有效数据区:十六进制数据内容,数据长度应为偶数,为上注程序+2字节校验和;Valid data area: hexadecimal data content, the data length should be an even number, which is the above-mentioned program + 2-byte checksum;

CRC校验:4字节,校验范围包括整个源包,即对主导头和包数据区进行校验。CRC check: 4 bytes, the check range includes the entire source packet, that is, the main header and the packet data area are checked.

进一步可知,在步骤s101中重注程序发送至空间有效载荷并存储的过程具体如下:It can be further known that, in step s101, the process of sending the re-injection program to the space payload and storing it is as follows:

步骤s201:SRAM通过卫星内部1553B总线或CAN总线接收传输的重注程序数据包并进行第一校验,校验合格则接收,并读取重注程序数据包内的有效数据然后按重注程序数据包序号的顺序存储于重注模块内,校验失败则丢弃并返回错误信息至卫星平台,通知卫星平台重传;Step s201: SRAM receives the transmitted re-note program data packet through the satellite internal 1553B bus or CAN bus and performs the first verification. If the verification is qualified, it is received, and the valid data in the re-note program data packet is read, and then presses the re-note program. The sequence of the data packet sequence numbers is stored in the re-note module. If the verification fails, it will be discarded and an error message will be returned to the satellite platform to notify the satellite platform to retransmit;

步骤s202:重注模块检测到接收到尾包后,整合接收到的各个数据包内的有效数据,得到完整的重注程序后并进行第二校验,校验合格后,将SRAM内的重注程序写入重注程序存储器2内;Step s202: After the re-injection module detects that the tail packet is received, it integrates the valid data in each received data packet, obtains a complete re-injection program, and performs a second verification. The remark program is written into the remark program memory 2;

步骤s203:重注程序存储器2对存储的重注程序进行第三校验,校验合格后,通知地面控制中心重注程序接收完成,可进行后续重注程序的切换引导运行操作。Step s203: The refilling program memory 2 performs a third verification on the stored refilling program. After the verification is passed, the ground control center is notified that the refilling program has been received, and the subsequent refilling program switching and guiding operation can be performed.

可以理解的是,第一校验是对传输的重注程序数据包进行校验,目的是判断整包的合格性;第二校验是对重注程序的内容进行校验,目的是判断是否在有效数据的读取或整合过程中出现错误;第三校验是对传输至重注程序存储器2内的重注程序进行校验,目的是判断重注程序从SRAM写入重注程序存储器2的过程中是否出现错误。通过上述三次校验,能够基本避免重注程序传输错误的情况出现,减少了由于重注程序错误导致的重注失败的情况出现,提高了重注操作的可靠性。It can be understood that the first check is to check the transmitted re-note program data packet, the purpose is to judge the eligibility of the whole package; the second check is to check the content of the re-note program, the purpose is to determine whether An error occurs in the process of reading or integrating valid data; the third check is to verify the refill program transferred to the refill program memory 2, and the purpose is to determine that the refill program is written from the SRAM to the refill program memory 2 whether an error occurred during the process. Through the above three verifications, it is possible to basically avoid the occurrence of a transmission error of the re-injection program, reduce the occurrence of the re-injection failure caused by the error of the re-injection program, and improve the reliability of the re-injection operation.

作为优选地,该系统还包括:Preferably, the system also includes:

用于对复位程序指令进行过滤操作的容错电路,容错电路的输入端用于接收地面控制中心发送的复位程序指令,输出端连接复位电路6的输入端。The fault-tolerant circuit is used for filtering the reset program instructions. The input terminal of the fault-tolerant circuit is used to receive the reset program instructions sent by the ground control center, and the output terminal is connected to the input terminal of the reset circuit 6 .

可以理解的是,这里的容错电路的功能是用于过滤复位程序指令内的噪声,防止噪声引起的误复位操作,提高了系统的可靠性。It can be understood that the function of the fault-tolerant circuit here is to filter the noise in the reset program instruction, to prevent the false reset operation caused by the noise, and to improve the reliability of the system.

作为优选地,这里的容错电路具体为RC电路,能够过滤小于20ms的低电平噪声。Preferably, the fault-tolerant circuit here is specifically an RC circuit, which can filter low-level noise less than 20ms.

作为优选地,该系统还包括:Preferably, the system also includes:

连接于复位电路6的输出端与主控制器1的复位输入端之间的整形电路,整形电路用于对复位信号进行整形操作。The shaping circuit is connected between the output terminal of the reset circuit 6 and the reset input terminal of the main controller 1, and the shaping circuit is used for shaping the reset signal.

具体的,这里的整形电路具体为施密特触发器,其型号可以为SNJ54AHC14W,当然,本发明不限定整形电路的具体类型。Specifically, the shaping circuit here is specifically a Schmitt trigger, and its model can be SNJ54AHC14W. Of course, the present invention does not limit the specific type of the shaping circuit.

作为优选地,该系统还包括:Preferably, the system also includes:

用于产生冗余复位信号的看门狗电路;A watchdog circuit for generating redundant reset signals;

用于进行或操作的逻辑电路;logic circuits for performing OR operations;

看门狗电路的输出端与整形电路的输出端分别连接逻辑电路的两个输入端,逻辑电路的输出端连接主控制器1的复位输入端。The output end of the watchdog circuit and the output end of the shaping circuit are respectively connected to the two input ends of the logic circuit, and the output end of the logic circuit is connected to the reset input end of the main controller 1 .

可以理解的是,看门狗电路的输入端也接收地面控制中心发送的复位程序指令,从而控制看门狗电路生成复位信号,看门狗电路的输入信号与复位电路6输出的复位信号求或后连接主控制器1的复位输入端。该看门狗电路为冗余电路,用于产生冗余复位信号,保证复位操作的成功执行,提高系统的可靠性。It can be understood that the input terminal of the watchdog circuit also receives the reset program command sent by the ground control center, thereby controlling the watchdog circuit to generate a reset signal, and the input signal of the watchdog circuit and the reset signal output by the reset circuit 6 are ORed. Then connect to the reset input terminal of main controller 1. The watchdog circuit is a redundant circuit and is used for generating redundant reset signals to ensure the successful execution of the reset operation and improve the reliability of the system.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其他实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to 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 (8)

1. A satellite on-orbit program reinjection system is characterized by comprising a main controller, a switching signal generation circuit, a memory, an original program memory, a reinjection program memory and a reset circuit, wherein the switching signal generation circuit, the memory, the original program memory, the reinjection program memory and the reset circuit are respectively connected with the main controller;
an original program and a bootstrap program are stored in the original program memory;
the switching signal generating circuit is used for outputting a corresponding guiding identification signal to the main controller after receiving a switching program instruction sent by a ground control center;
the main controller is used for controlling the system to perform reset operation after receiving a reset signal; after resetting, reading a bootstrap program in the original program storage to run, wherein the bootstrap program guides the re-injection program in the re-injection program storage or the original program in the original program storage to run in the memory according to the received bootstrap identification signal;
the reset circuit is used for generating the reset signal and sending the reset signal to the main controller after receiving a reset program instruction sent by the ground control center; wherein, the reset circuit is an electromagnetic relay.
2. The system of claim 1, further comprising:
the fault-tolerant circuit is used for filtering reset program instructions, the input end of the fault-tolerant circuit is used for receiving the reset program instructions sent by the ground control center, and the output end of the fault-tolerant circuit is connected with the input end of the reset circuit.
3. The system according to claim 2, characterized in that the fault tolerant circuit is embodied as an RC circuit.
4. The system of claim 2, further comprising:
and the shaping circuit is connected between the output end of the reset circuit and the reset input end of the main controller and is used for shaping the reset signal.
5. The system according to claim 4, characterized in that the shaping circuit is embodied as a Schmitt trigger.
6. The system of claim 4, further comprising:
a watchdog circuit for generating a redundant reset signal;
logic circuitry for performing an OR operation;
the output end of the watchdog circuit and the output end of the shaping circuit are respectively connected with two input ends of the logic circuit, and the output end of the logic circuit is connected with the reset input end of the main controller.
7. System according to any one of claims 1 to 6, characterized in that the switching signal generating circuit is embodied as a magnetic latching relay.
8. The system of claim 1, wherein the memory specifically comprises:
the operation module is used for operating the remark program or the original program;
and the reinjection module is used for receiving the reinjection program data packets which are sent by the ground control center and adopt the CCSDS codes for sequential verification and storage, integrating the programs in the data packets to obtain the reinjection program and verify the reinjection program after receiving the tail packet, and writing the reinjection program into the reinjection program storage after the verification is passed.
CN201710403506.0A 2017-06-01 2017-06-01 A satellite in-orbit program refocusing system Expired - Fee Related CN107203399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710403506.0A CN107203399B (en) 2017-06-01 2017-06-01 A satellite in-orbit program refocusing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710403506.0A CN107203399B (en) 2017-06-01 2017-06-01 A satellite in-orbit program refocusing system

Publications (2)

Publication Number Publication Date
CN107203399A CN107203399A (en) 2017-09-26
CN107203399B true CN107203399B (en) 2020-08-11

Family

ID=59908235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710403506.0A Expired - Fee Related CN107203399B (en) 2017-06-01 2017-06-01 A satellite in-orbit program refocusing system

Country Status (1)

Country Link
CN (1) CN107203399B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579333A (en) * 2020-11-30 2021-03-30 上海航天控制技术研究所 High-reliability self-repairing on-orbit programmable system and method controlled by solar wing of space station
CN114328371A (en) * 2021-12-30 2022-04-12 深圳市微联星智科技有限公司 Program storage device capable of reconstructing satellite-borne signal processing platform on rail

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207877A (en) * 2011-04-15 2011-10-05 中国科学院长春光学精密机械与物理研究所 Method and system for re-pouring on-track program of space camera
CN103955411A (en) * 2014-05-21 2014-07-30 北京空间机电研究所 On-orbit transmitting and configuring method for spaceborne high-capacity FPGA (Field Programmable Gate Array) program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8707370B2 (en) * 2012-07-13 2014-04-22 International Datacasting Corporation Digital satellite broadcast program distribution over multicast IP broadband networks
CN103777983B (en) * 2014-01-24 2016-09-21 航天东方红卫星有限公司 A kind of On-board software is safeguarded and upgrade method in-orbit
CN105549464A (en) * 2015-12-10 2016-05-04 中国电子科技集团公司第三十二研究所 Management and control system for medium and high orbit satellite payloads

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207877A (en) * 2011-04-15 2011-10-05 中国科学院长春光学精密机械与物理研究所 Method and system for re-pouring on-track program of space camera
CN103955411A (en) * 2014-05-21 2014-07-30 北京空间机电研究所 On-orbit transmitting and configuring method for spaceborne high-capacity FPGA (Field Programmable Gate Array) program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RS-422与1553B总线同步数据传输系统的设计与实现;徐东东等;《通信技术》;20170315;第40卷(第3期);第133-137页 *

Also Published As

Publication number Publication date
CN107203399A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN106569847B (en) Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
CN106843942B (en) Wearable device and firmware upgrading method thereof
CN112698851B (en) Program update system, program transfer device, and program transfer method
CN107820603A (en) A kind of firmware update and controller
CN107179909A (en) Method for upgrading software, device and computer-readable recording medium
CN111488166A (en) Method and device for upgrading software of management unit of double-core intelligent ammeter and storage medium
CN104967497A (en) A reliable data transmission method and upgrading method based on network communication protocol
KR20170131584A (en) Method for protecting configuration data from a data bus transceiver, data bus transceiver and data bus system
US9891934B2 (en) Configuration controller for and a method of controlling a configuration of a circuitry
CN107220097B (en) On-orbit programming and overloading method for large-scale complex structure software
CN107203399B (en) A satellite in-orbit program refocusing system
CN117112035A (en) Flexible satellite-borne minimum safety system and quick reconstruction method
CN107710163B (en) Circuits, systems and methods for error correction code management of write-once memory codes
CN105446783A (en) DSP (Digital Signal Processor) program rapid loading method for pico satellite
CN112181444B (en) DSP multi-core data programming method based on 1553B bus
CN107239358A (en) Startup method, mobile terminal and the device with store function of Android system
CN111506330A (en) Program updating method and device, star affair computer and storage medium
CN114090043A (en) Universal on-orbit dynamic reconstruction method, system and medium for satellite-borne software
CN103631611A (en) Method and equipment for updating optical transmitter and receiver
CN110673871A (en) Online upgrade apparatus, control method, electronic device, and computer-readable medium
CN107515757A (en) Software program upgrading method and system and terminal
CN118642782A (en) On-line loading method and device for onboard embedded SoC firmware
CN116155350A (en) Satellite instruction batch generation method, system, storage medium and electronic equipment
CN115422099B (en) A method, apparatus, electronic device and storage medium for transmitting communication information.
CN106484477B (en) The software download and starting method of safety

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200811

CF01 Termination of patent right due to non-payment of annual fee