[go: up one dir, main page]

CN115700429A - Terminal equipment and management method - Google Patents

Terminal equipment and management method Download PDF

Info

Publication number
CN115700429A
CN115700429A CN202211376964.7A CN202211376964A CN115700429A CN 115700429 A CN115700429 A CN 115700429A CN 202211376964 A CN202211376964 A CN 202211376964A CN 115700429 A CN115700429 A CN 115700429A
Authority
CN
China
Prior art keywords
memory
target
code
processor
memories
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
CN202211376964.7A
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.)
Feiteng Information Technology Beijing Co ltd
Phytium Technology Co Ltd
Original Assignee
Feiteng Information Technology Beijing Co ltd
Phytium Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Feiteng Information Technology Beijing Co ltd, Phytium Technology Co Ltd filed Critical Feiteng Information Technology Beijing Co ltd
Priority to CN202211376964.7A priority Critical patent/CN115700429A/en
Publication of CN115700429A publication Critical patent/CN115700429A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本申请提出一种终端设备及管理方法,外置单元用于读取至少3个存储器中的目标代码,在至少2个存储器中的目标代码相同的情况下,确定第一目标存储器;其中,目标代码为操作系统代码和/或应用软件代码,第一目标存储器为目标代码相同的存储器中的任意一个;外置单元还用于将第一目标存储器的标识发送给处理器;处理器用于读取第一目标存储器中的目标代码,并将读取到的目标代码加载至内存的第一类地址段中,以运行目标代码。通过多个存储器对目标代码进行备份存储,在需要调用时,通过比对筛选出翻转粒子可能性最小的存储器作为目标存储器,从而保障目标代码能够正常运行,保障终端设备的可靠性。

Figure 202211376964

This application proposes a terminal device and a management method. The external unit is used to read the target codes in at least 3 memories, and if the target codes in at least 2 memories are the same, determine the first target memory; wherein, the target The code is operating system code and/or application software code, and the first target memory is any one of the memory with the same target code; the external unit is also used to send the identification of the first target memory to the processor; the processor is used to read the target code in the first target memory, and load the read target code into the first type address segment of the memory to run the target code. The target code is backed up and stored through multiple memories. When it needs to be called, the memory with the least possibility of flipping particles is selected as the target memory through comparison, so as to ensure the normal operation of the target code and the reliability of the terminal equipment.

Figure 202211376964

Description

一种终端设备及管理方法A terminal device and management method

技术领域technical field

本申请涉及通信技术领域,具体而言,涉及一种终端设备及管理方法。The present application relates to the technical field of communications, and in particular, to a terminal device and a management method.

背景技术Background technique

随着社会的发展,人们的通信需求越来越多,进而需要部署大量的通信基站,基站部署的位置所处的自然环境的差异性也越来越大。尤其是,随着无线通信领域逐渐由地面延伸到控制,卫星通信技术开始发展普及,部署于高空区域的卫星基站的数量也越来越多。With the development of society, people have more and more communication needs, and then need to deploy a large number of communication base stations, and the differences in the natural environment where the base stations are deployed are also increasing. In particular, as the field of wireless communication gradually extends from the ground to control, satellite communication technology begins to develop and popularize, and the number of satellite base stations deployed in high-altitude areas is also increasing.

应理解,在地面的基站可以不用单独考虑辐噪引起的数据翻转造成的影响。然而部署于高空区域终端设备(例如卫星基站和核心网)在运行时会面临辐噪的影响,导致其存储的数据存在翻转的可能,影响卫星基站和核心网的正常运行。It should be understood that the base station on the ground does not need to separately consider the influence caused by the data inversion caused by radiation noise. However, terminal equipment (such as satellite base stations and core networks) deployed in high-altitude areas will face the impact of radiation noise during operation, resulting in the possibility of flipping the stored data, affecting the normal operation of satellite base stations and core networks.

因此,如何克服高辐噪对终端设备影响,保障终端设备的正常运行,成为了本领域技术人员所关注的难题。Therefore, how to overcome the influence of high radiation noise on the terminal equipment and ensure the normal operation of the terminal equipment has become a difficult problem concerned by those skilled in the art.

发明内容Contents of the invention

本申请的目的在于提供一种终端设备及管理方法,以至少部分改善上述问题。The purpose of the present application is to provide a terminal device and a management method, so as to at least partially improve the above problems.

为了实现上述目的,本申请实施例采用的技术方案如下:In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

第一方面,本申请实施例提供一种终端设备,所述终端设备包括:外置单元、处理器、内存以及至少3个存储器,所述外置单元分别与所述处理器、所述至少3个存储器通信连接,所述处理器与所述至少3个存储器通信连接,所述处理器还与所述内存通信连接;In the first aspect, an embodiment of the present application provides a terminal device. The terminal device includes: an external unit, a processor, a memory, and at least three memories, and the external unit is connected to the processor, the at least three a memory is connected in communication, the processor is connected in communication with the at least 3 memories, and the processor is also connected in communication with the memory;

所述外置单元用于读取所述至少3个存储器中的目标代码,在至少2个存储器中的目标代码相同的情况下,确定第一目标存储器;The external unit is used to read the target codes in the at least 3 memories, and determine the first target memory when the target codes in the at least 2 memories are the same;

其中,所述目标代码为操作系统代码和/或应用软件代码,所述第一目标存储器为目标代码相同的存储器中的任意一个;Wherein, the target code is operating system code and/or application software code, and the first target memory is any one of the same memory as the target code;

所述外置单元还用于将所述第一目标存储器的标识发送给所述处理器;The external unit is further configured to send the identifier of the first target memory to the processor;

所述处理器用于读取所述第一目标存储器中的目标代码,并将读取到的目标代码加载至所述内存的第一类地址段中,以运行所述目标代码。The processor is used for reading the target code in the first target memory, and loading the read target code into the first type address segment of the memory, so as to run the target code.

通过多个存储器对目标代码进行备份存储,在需要调用时,通过比对筛选出翻转粒子可能性最小的存储器作为目标存储器,从而保障目标代码能够正常运行,保障终端设备的可靠性。The target code is backed up and stored through multiple memories. When it needs to be called, the memory with the least possibility of flipping particles is selected by comparison as the target memory, so as to ensure the normal operation of the target code and the reliability of the terminal equipment.

在一种可选的实施方式中,在所述外置单元上电后,所述外置单元用于对所述至少3个存储器进行上电;在确定所述第一目标存储器后,所述外置单元还用于对出所述第一目标存储器以外的非第一目标存储器进行下电。从而可以达到节省电能、降低能耗的目的。In an optional implementation manner, after the external unit is powered on, the external unit is used to power on the at least three memories; after the first target memory is determined, the The external unit is also used to power off the non-first target memory except the first target memory. Thereby, the purpose of saving electric energy and reducing energy consumption can be achieved.

在一种可选的实施方式中,在将所述第一目标存储器的标识发送给所述处理器之前,所述外置单元还用于对所述处理器和所述内存进行上电。从而可以达到节省电能、降低能耗的目的。In an optional implementation manner, before sending the identifier of the first target memory to the processor, the external unit is further configured to power on the processor and the memory. Thereby, the purpose of saving electric energy and reducing energy consumption can be achieved.

在一种可选的实施方式中,在所述目标代码运行后,所述外置单元还用于在获取到触发指令时,读取所述至少3个存储器中的目标代码,所述至少3个存储器中的目标代码相同的情况下,将所述至少3个存储器中的任意一个确定为第二目标存储器;In an optional implementation manner, after the target code runs, the external unit is further configured to read the target code in the at least three memories when the trigger instruction is acquired, and the at least three In the case where the target codes in the three memories are the same, any one of the at least three memories is determined as the second target memory;

所述外置单元还用于在任意一个存储器存储的目标代码与其他存储器存储的目标代码不同的情况下,对所述至少3个存储器中的目标代码进行调整,以使所述至少3个存储器中的目标代码保持一致,并将调整后的所述至少3个存储器中的任意一个确定为第二目标存储器;The external unit is also used to adjust the object codes in the at least 3 memories when the object codes stored in any one memory are different from the object codes stored in other memories, so that the at least 3 memories The target code in is consistent, and any one of the adjusted at least 3 memories is determined as the second target memory;

所述外置单元还用于将所述第二目标存储器的标识发送给所述处理器;The external unit is further configured to send the identifier of the second target memory to the processor;

所述处理器用于读取所述第二目标存储器中的目标代码,并基于所述第二目标存储器中的目标代码对所述内存进行更新。The processor is used for reading the target code in the second target memory, and updating the memory based on the target code in the second target memory.

基于动态更新,可以降低终端设备正常运行目标代码(操作系统代码和应用软件代码)后,存储器12和内存14中的目标代码可能在辐噪的影响下出现翻转变化对终端设备所带来的影响,提升终端设备的可靠性。Based on the dynamic update, after the target code (operating system code and application software code) is running normally on the terminal device, the target code in the memory 12 and the memory 14 may be reversed and changed under the influence of radiation noise, which may affect the terminal device. , to improve the reliability of terminal equipment.

在一种可选的实施方式中,所述处理器还用于将所述第二目标存储器中的目标代码加载至所述内存的第一类地址段中。In an optional implementation manner, the processor is further configured to load the target code in the second target memory into the first type address segment of the memory.

应理解,通过将第二目标存储器中的目标代码加载至内存的第一类地址段中,使将第二目标存储器中的目标代码直接对内存中的目标代码进行覆盖,以避免内存中初始加载的目标代码发生翻转变化,保障目标代码的正确性,提升终端设备的可靠性。It should be understood that by loading the object code in the second object memory into the first type address segment of the memory, the object code in the second object memory can directly overwrite the object code in the memory, so as to avoid initial loading in the memory The target code of the device is reversed to ensure the correctness of the target code and improve the reliability of the terminal equipment.

在一种可选的实施方式中,所述处理器还用于将所述第二目标存储器中的目标代码分别放置于所述内存的第二类地址段和第三类地址段;In an optional implementation manner, the processor is further configured to respectively place the target code in the second target memory in a second-type address segment and a third-type address segment of the memory;

所述处理器还用于对所述内存的第一类地址段、第二类地址段以及第三类地址段中的目标代码进行比对,若第一类地址段中的目标代码与第二类地址段中的目标代码和第三类地址段中的目标代码均不相同,则对第一类地址段中的目标代码进行纠正。The processor is also used to compare the target codes in the first type address segment, the second type address segment and the third type address segment of the memory, if the target code in the first type address segment is the same as the second type address segment If the object code in the address segment of the first type is different from the object code in the address segment of the third type, the object code in the address segment of the first type is corrected.

若第一类地址段中的目标代码与第二类地址段中的目标代码和第三类地址段中的目标代码中的任意一个相同,则将所述内存的第二类地址段中的目标代码和第三类地址段中的目标代码删除。If the object code in the first type address segment is identical to any one of the object code in the second type address segment and the object code in the third type address segment, then the object in the second type address segment of the memory is code and object code in the third-class address segment are deleted.

同样地以避免内存中初始加载的目标代码发生翻转变化,保障目标代码的正确性,提升终端设备的可靠性。In the same way, the target code initially loaded in the memory is prevented from being overturned, the correctness of the target code is guaranteed, and the reliability of the terminal device is improved.

在一种可选的实施方式中,所述触发指令为所述处理器按照预设时间间隔发送的指令,或者,所述触发指令为所述外置单元照预设时间间隔生成的指令。In an optional implementation manner, the trigger instruction is an instruction sent by the processor at preset time intervals, or the trigger instruction is an instruction generated by the external unit at preset time intervals.

在一种可选的实施方式中,所述触发指令为所述处理器监测到应用程序报错或操作系统报错时所生成的指令。In an optional implementation manner, the trigger instruction is an instruction generated when the processor monitors that an error is reported by an application program or an error is reported by an operating system.

第二方面,本申请实施例提供一种终端设备管理方法,应用于终端设备,所述终端设备包括:外置单元、处理器、内存以及至少3个存储器,所述外置单元分别与所述处理器、所述至少3个存储器通信连接,所述处理器与所述至少3个存储器通信连接,所述处理器还与所述内存通信连接,所述终端设备管理方法包括:In the second aspect, an embodiment of the present application provides a terminal device management method, which is applied to a terminal device, and the terminal device includes: an external unit, a processor, a memory, and at least three memories, and the external unit is connected to the The processor and the at least three memories are connected in communication, the processor is connected in communication with the at least three memories, the processor is also connected in communication with the memory, and the terminal device management method includes:

所述外置单元读取所述至少3个存储器中的目标代码,在至少2个存储器中的目标代码相同的情况下,确定第一目标存储器;The external unit reads the target codes in the at least 3 memories, and determines the first target memory when the target codes in the at least 2 memories are the same;

其中,所述目标代码为操作系统代码和/或应用软件代码,所述第一目标存储器为目标代码相同的存储器中的任意一个;Wherein, the target code is operating system code and/or application software code, and the first target memory is any one of the same memory as the target code;

所述外置单元将所述第一目标存储器的标识发送给所述处理器;The external unit sends the identifier of the first target memory to the processor;

所述处理器读取所述第一目标存储器中的目标代码,并将读取到的目标代码加载至所述内存的第一类地址段中,以运行所述目标代码。The processor reads the target code in the first target memory, and loads the read target code into the first-type address segment of the memory, so as to run the target code.

为使本申请的上述目的、特征和优点能更明显易懂,下文特举实施例,并配合所附附图,作详细说明如下。In order to make the above objects, features and advantages of the present application more comprehensible, the following specific embodiments are described in detail in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, so It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.

图1为本申请实施例提供的星载系统的运行环境示意图;FIG. 1 is a schematic diagram of the operating environment of the spaceborne system provided by the embodiment of the present application;

图2为本申请实施例提供的终端设备的结构示意图;FIG. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;

图3为本申请实施例提供的终端设备管理方法的流程示意图。FIG. 3 is a schematic flowchart of a terminal device management method provided by an embodiment of the present application.

图中:11-外置单元;12-存储器;13-处理器;14-内存。In the figure: 11-external unit; 12-memory; 13-processor; 14-memory.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the present application Examples, not all examples. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

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

在本申请的描述中,需要说明的是,术语“上”、“下”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,或者是该申请产品使用时惯常摆放的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。In the description of the present application, it should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", "inner", "outer" etc. is based on the orientation or positional relationship shown in the drawings, or the The usual orientation or positional relationship of the application product when used is only for the convenience of describing the application and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, therefore It should not be construed as a limitation of the application.

在本申请的描述中,还需要说明的是,除非另有明确的规定和限定,术语“设置”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should also be noted that, unless otherwise clearly stipulated and limited, the terms "setting" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection, or Integral connection; it can be mechanical connection or electrical connection; it can be direct connection or indirect connection through an intermediary, and it can be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application in specific situations.

下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some implementations of the present application will be described in detail below in conjunction with the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

为了满足通信需求,越来越多的基站被部署于高空区域或核电站附近的区域。高空区域或核电站附近的区域都是高辐噪区域,部署于其中的基站等终端设备在运行时会面临辐噪的影响,导致其存储的数据存在翻转的可能,影响卫星基站和核心网的正常运行,影响其可靠性。In order to meet communication requirements, more and more base stations are deployed in high-altitude areas or areas near nuclear power plants. High-altitude areas or areas near nuclear power plants are areas with high radiation noise. Terminal equipment such as base stations deployed in them will face the impact of radiation noise during operation, resulting in the possibility of flipping the stored data, affecting the normal operation of satellite base stations and core networks. operation, affecting its reliability.

请参考图1,图1为本申请实施例提供的星载系统的运行环境示意图。以部署于高空区域的终端设备为星载系统作为示例,星载系统主要应用于卫星通信、广播以及导航等场景中。以5G卫星通信场景为例。星载系统支持5G基站HE部分核心网功能(UPF),支持地面卫星终端和信关站直连卫星,满足海上、山区、郊区等地面通信系统无法覆盖地区的移动通信需求,实现天地一体化全覆盖,可应用于应急安全、测绘、海事、日常通信等业务诉求。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of an operating environment of a spaceborne system provided by an embodiment of the present application. Taking terminal equipment deployed in high-altitude areas as an example of a spaceborne system, the spaceborne system is mainly used in scenarios such as satellite communication, broadcasting, and navigation. Take the 5G satellite communication scenario as an example. The spaceborne system supports the core network function (UPF) of the HE part of the 5G base station, supports direct connection of ground satellite terminals and gateway stations to satellites, meets the mobile communication needs of areas where ground communication systems cannot cover such as seas, mountainous areas, and suburbs, and realizes full coverage of space-ground integration , can be applied to business demands such as emergency safety, surveying and mapping, maritime affairs, and daily communication.

应理解,星载系统可以支持5G通信,但相比地面5G通信系统,星载系统还需考虑辐噪对系统稳定性和可靠性的影响。太空辐噪易造成单粒子翻转和闩锁等问题,影响器件、系统的可靠以及稳定性。It should be understood that the spaceborne system can support 5G communication, but compared with the terrestrial 5G communication system, the spaceborne system also needs to consider the impact of radiation noise on system stability and reliability. Space radiation noise can easily cause problems such as single event flipping and latch-up, affecting the reliability and stability of devices and systems.

为了克服以上问题,本申请实施例提供了一种终端设备,终端设备可以为图1中所示的星载系统、卫星基站,还可以是用于部署在高辐噪地面环境的基站设备,通过处理器13(例如CPU)和存储的内存14刷新机制来提高辐噪场景下的系统可靠性。In order to overcome the above problems, an embodiment of the present application provides a terminal device. The terminal device can be the spaceborne system shown in Figure 1, a satellite base station, or a base station device for deployment in a ground environment with high radiation noise. The refresh mechanism of the processor 13 (for example, CPU) and the stored memory 14 is used to improve system reliability in radiation noise scenarios.

具体地,请参考图2,图2为本申请实施例提供的终端设备的结构示意图。终端设备包括:外置单元11、处理器13、内存14以及至少3个存储器12,外置单元11分别与处理器13、至少3个存储器12通信连接,处理器13与至少3个存储器12通信连接,处理器13还与内存14通信连接。Specifically, please refer to FIG. 2 , which is a schematic structural diagram of a terminal device provided in an embodiment of the present application. The terminal device includes: an external unit 11, a processor 13, a memory 14, and at least three memories 12, the external unit 11 is connected to the processor 13 and at least three memories 12 in communication, and the processor 13 communicates with at least three memories 12 The processor 13 is also connected to the memory 14 in communication.

在一种可选的实施方式中,处理器13可以是一种集成电路芯片,具有信号的处理能力。具体地,处理器13可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processor,简称DSP)、专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。In an optional implementation manner, the processor 13 may be an integrated circuit chip having a signal processing capability. Specifically, the processor 13 may be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it may also be a digital signal processor (Digital Signal Processor, referred to as DSP), application specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), field programmable gate array (Field-Programmable Gate Array, referred to as FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

外置单元11又称为外置控制单元,其可以但不限定于采用现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)。The external unit 11 is also referred to as an external control unit, which may, but is not limited to, use a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA for short).

存储器12可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 12 may include a high-speed random access memory (RAM: Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

内存14可以但不限定为双倍数据率同步动态随机存取存储器(Double Data RateSynchronous Dynamic Random Access Memory,简称DDR SDRAM)。The memory 14 can be, but not limited to, double data rate synchronous dynamic random access memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDR SDRAM for short).

存储器用于存储程序代码,例如下文中的目标代码,目标代码为操作系统代码和/或应用软件代码。可选地,目标代码包括至少一个可以软件或固件(firmware)的形式存储于存储器中或固化在终端设备的操作系统(operating system,OS)中的软件功能模块。处理器13在接收到执行指令后,可以调用执行目标代码。The memory is used to store program codes, such as object codes hereinafter, where the object codes are operating system codes and/or application software codes. Optionally, the target code includes at least one software function module that can be stored in a memory in the form of software or firmware (firmware) or solidified in an operating system (operating system, OS) of the terminal device. After receiving the execution instruction, the processor 13 may invoke and execute the target code.

可选地,终端设备中的各个部件可以通过总线实现通信连接,总线可以是ISA(Industry Standard Architecture)总线、PCI(Peripheral Component Interconnect)总线或EISA(Extended Industry Standard Architecture)总线等。需要说明的是,图2中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。Optionally, various components in the terminal device may be connected through a bus for communication, and the bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. It should be noted that only one bidirectional arrow is used in FIG. 2 , but it does not mean that there is only one bus or one type of bus.

在图2的基础上,为了克服太空辐噪易造成单粒子翻转和闩锁等问题,本申请实施例提供了一种可选的实施方式,请参考下文。On the basis of Figure 2, in order to overcome the problems of single event flipping and latching easily caused by space radiation noise, the embodiment of this application provides an optional implementation mode, please refer to the following.

外置单元11用于读取至少3个存储器12中的目标代码,在至少2个存储器12中的目标代码相同的情况下,确定第一目标存储器。The external unit 11 is used to read the target codes in at least three memories 12, and determine the first target memory when the target codes in at least two memories 12 are the same.

其中,目标代码为操作系统代码和/或应用软件代码,第一目标存储器为目标代码相同的存储器12中的任意一个。Wherein, the target code is operating system code and/or application software code, and the first target memory is any one of the memories 12 with the same target code.

请继续参考图2,外置单元11分别读取存储器12A、存储器12B、存储器12C以及存储器12D中指定地址区间内存储的目标代码。存储器12A、存储器12B、存储器12C以及存储器12D的指定地址区间可以相同,也可以不同,在此不做限定。假设存储器12A、存储器12B、存储器12C以及存储器12D中的目标代码均相同,则从存储器12A、存储器12B、存储器12C以及存储器12D中确定任意一个作为第一目标存储器。若存储器12A、存储器12C以及存储器12D中的目标代码均相同,存储器12B中的目标代码与其他的目标代码不同,则可以从存储器12A、存储器12C以及存储器12D中确定一个作为第一目标存储器。Please continue to refer to FIG. 2 , the external unit 11 respectively reads the object codes stored in the specified address range in the memory 12A, the memory 12B, the memory 12C and the memory 12D. The designated address ranges of the memory 12A, the memory 12B, the memory 12C, and the memory 12D may be the same or different, and are not limited here. Assuming that the target codes in the memory 12A, the memory 12B, the memory 12C and the memory 12D are all the same, any one of the memory 12A, the memory 12B, the memory 12C and the memory 12D is determined as the first target memory. If the object codes in memory 12A, memory 12C, and memory 12D are all the same, and the object code in memory 12B is different from other object codes, then one of memory 12A, memory 12C, and memory 12D can be determined as the first object memory.

应理解,在辐噪环境下,多个存储器的某一个数据同时发生翻转的可能性更低,通过将目标代码相同的存储器12中的任意一个确定第一目标存储器,保障后续获取到的目标代码的准确性。It should be understood that in a radiation noise environment, the possibility of a certain data flipping of multiple memories at the same time is lower, and by determining any one of the memories 12 with the same target code as the first target memory, the target code acquired subsequently can be guaranteed. accuracy.

在一种可选地的实时方式中,若从存储器12A、存储器12B、存储器12C以及存储器12D中的目标代码不完全相同,则可以进行3模比对纠正,以对从存储器12A、存储器12B、存储器12C以及存储器12D中的目标代码进行调节,例如对上例中存储器12B中的目标代码进行调节,使其保持一致。In an optional real-time manner, if the object codes in the slave memory 12A, memory 12B, memory 12C, and memory 12D are not exactly the same, then a 3-modulus comparison and correction can be performed to correct the slave memory 12A, memory 12B, The object codes in the memory 12C and the memory 12D are adjusted, for example, the object codes in the memory 12B in the above example are adjusted to keep them consistent.

外置单元11还用于将第一目标存储器的标识发送给处理器13。The external unit 11 is also configured to send the identifier of the first target memory to the processor 13 .

可选地,第一目标存储器的标识可以是标号或者ID。Optionally, the identifier of the first target storage may be a label or an ID.

处理器13用于读取第一目标存储器中的目标代码,并将读取到的目标代码加载至内存14的第一类地址段中,以运行目标代码。The processor 13 is configured to read the target code in the first target memory, and load the read target code into the first type address segment of the memory 14 to run the target code.

可选地,处理器13读取第一目标存储器的操作系统代码,操作系统代码被放置在内存14的第一类地址段中运行。在操作系统运行后,处理器13启动软件的启动程序,处理器13将第一目标存储器的应用软件代码导入内存14中执行。Optionally, the processor 13 reads the operating system code of the first target memory, and the operating system code is placed in the first type address segment of the memory 14 to run. After the operating system runs, the processor 13 starts the software startup program, and the processor 13 imports the application software codes in the first target memory into the memory 14 for execution.

综上所述,本申请实施例提供了一种终端设备,包括:外置单元、处理器、内存以及至少3个存储器,外置单元分别与处理器、至少3个存储器通信连接,处理器与至少3个存储器通信连接,处理器还与内存通信连接;外置单元用于读取至少3个存储器中的目标代码,在至少2个存储器中的目标代码相同的情况下,确定第一目标存储器;其中,目标代码为操作系统代码和/或应用软件代码,第一目标存储器为目标代码相同的存储器中的任意一个;外置单元还用于将第一目标存储器的标识发送给处理器;处理器用于读取第一目标存储器中的目标代码,并将读取到的目标代码加载至内存的第一类地址段中,以运行目标代码。通过多个存储器对目标代码进行备份存储,在需要调用时,通过比对筛选出翻转粒子可能性最小的存储器作为目标存储器,从而保障目标代码能够正常运行,保障终端设备的可靠性。To sum up, the embodiment of the present application provides a terminal device, including: an external unit, a processor, a memory, and at least 3 memories, the external unit is connected to the processor and at least 3 memories in communication, and the processor and At least 3 memories are communicatively connected, and the processor is also connected to the memory; the external unit is used to read the target codes in at least 3 memories, and determine the first target memory when the target codes in at least 2 memories are the same ; Wherein, the target code is the operating system code and/or the application software code, and the first target memory is any one of the same memory of the target code; the external unit is also used to send the identification of the first target memory to the processor; processing The device is used to read the target code in the first target memory, and load the read target code into the first type address segment of the memory, so as to run the target code. The target code is backed up and stored through multiple memories. When it needs to be called, the memory with the least possibility of flipping particles is selected by comparison as the target memory, so as to ensure the normal operation of the target code and the reliability of the terminal equipment.

应理解,对应星载系统等终端设备,电能十分宝贵。所以在不需要工作时,往往对其中的部件进行下电。在此情况下,当需要终端设备工作时,首先对外置单元11进行上电。It should be understood that for terminal equipment such as on-board systems, power is very valuable. Therefore, when there is no need to work, the components are often powered off. In this case, when the terminal device needs to work, the external unit 11 is powered on first.

可选地,在外置单元11上电后,外置单元11用于对至少3个存储器12进行上电。Optionally, after the external unit 11 is powered on, the external unit 11 is used to power on at least three memories 12 .

即在在外置单元11进行上电前,存储器12均处于下电状态,以降低电能的消耗。That is, before the external unit 11 is powered on, the memory 12 is in a power-off state to reduce power consumption.

可选地,在存储器12上电后,外置单元11可以读取其中的目标代码。Optionally, after the memory 12 is powered on, the external unit 11 can read the object code therein.

在确定第一目标存储器后,外置单元11还用于对出第一目标存储器以外的非第一目标存储器进行下电。After the first target memory is determined, the external unit 11 is further configured to power off non-first target memories other than the first target memory.

可选地,为了节省电能、降低消耗,在确定第一目标存储器后,可以仅保证第一目标存储器处于上电状态,其他的存储器处于下电状态。Optionally, in order to save electric energy and reduce consumption, after the first target memory is determined, only the first target memory can be guaranteed to be in the power-on state, and the other memories are in the power-off state.

可选地,在将第一目标存储器的标识发送给处理器13之前,外置单元11还用于对处理器13和内存14进行上电。Optionally, before sending the identifier of the first target memory to the processor 13, the external unit 11 is also configured to power on the processor 13 and the memory 14.

可选地,在外置单元11进行上电前,处理器13和内存14处于下电状态,降低能耗。在确定第一目标存储器后,外置单元11对处理器13和内存14进行上电,并将第一目标存储器的标识发送给外置单元11。Optionally, before the external unit 11 is powered on, the processor 13 and the memory 14 are in a power-off state to reduce energy consumption. After determining the first target memory, the external unit 11 powers on the processor 13 and the memory 14 , and sends the identifier of the first target memory to the external unit 11 .

在一种可能的场景下,当终端设备正常运行目标代码(操作系统代码和应用软件代码)后,存储器12和内存14中的目标代码仍然可能在辐噪的影响下出现翻转变化,影响终端设备的可靠性。为了应对该问题,本申请实施例还提供了一种可能的实现方式,请参考下文。In a possible scenario, when the terminal device runs the target code (operating system code and application software code) normally, the target code in the memory 12 and the internal memory 14 may still undergo a flip change under the influence of radiation noise, affecting the terminal device reliability. In order to deal with this problem, the embodiment of the present application also provides a possible implementation manner, please refer to the following.

在一种可选的实施方式中,在目标代码运行后,外置单元11还用于在获取到触发指令时,读取至少3个存储器12中的目标代码,至少3个存储器12中的目标代码相同的情况下,将至少3个存储器12中的任意一个确定为第二目标存储器。In an optional implementation, after the target code runs, the external unit 11 is also used to read the target codes in at least three memories 12, and the target codes in at least three memories 12 when the trigger instruction is obtained. If the codes are the same, any one of at least three memories 12 is determined as the second target memory.

可选地,外置单元11在获取到触发指令时,确定是否有存储器12处于下电状态,若有则需要对其进行上电操作,然后再读取其中的目标代码。Optionally, when the external unit 11 obtains the trigger instruction, it determines whether any memory 12 is in a power-off state, and if so, it needs to be powered on, and then reads the target code therein.

外置单元11还用于在任意一个存储器12存储的目标代码与其他存储器12存储的目标代码不同的情况下,对至少3个存储器12中的目标代码进行调整,以使至少3个存储器12中的目标代码保持一致,并将调整后的至少3个存储器12中的任意一个确定为第二目标存储器。The external unit 11 is also used to adjust the object codes in at least three memories 12 when the object codes stored in any one memory 12 are different from the object codes stored in other memories 12, so that at least three memories 12 The target codes are consistent, and any one of the adjusted at least three memories 12 is determined as the second target memory.

可选地,调整的具体实施方式可以但不限定为:按照3模对比纠正的方式,对至少3个存储器12中的目标代码进行调整。Optionally, the specific implementation manner of the adjustment may be, but not limited to: adjust the target codes in at least three memories 12 in a 3-mode contrast correction manner.

可选地,存储器采用固定地址的方式存放相同的操作系统和应用软件,外置单元对存储器相同地址段的内容进行逐一的对比。反馈对比结果不相同部分,基于2>1的原则,将不相同的部分进行覆盖。并且外置单元11将此处错误进行记录形成告警反馈回地面操作中心。Optionally, the memory uses a fixed address to store the same operating system and application software, and the external unit compares the contents of the same address segment of the memory one by one. The different parts of the feedback comparison results will be covered based on the principle of 2>1. And the external unit 11 records the error here to form an alarm and feeds it back to the ground operation center.

可选地,在确定第二目标存储器之后,为了降低能耗,可以对其他的非第二目标存储器进行下电。Optionally, after the second target memory is determined, other non-second target memories may be powered off in order to reduce energy consumption.

外置单元11还用于将第二目标存储器的标识发送给处理器13。The external unit 11 is also configured to send the identifier of the second target memory to the processor 13 .

处理器13用于读取第二目标存储器中的目标代码,并基于第二目标存储器中的目标代码对内存14进行更新。The processor 13 is configured to read the target code in the second target memory, and update the memory 14 based on the target code in the second target memory.

基于动态更新,可以降低终端设备正常运行目标代码(操作系统代码和应用软件代码)后,存储器12和内存14中的目标代码可能在辐噪的影响下出现翻转变化对终端设备所带来的影响,提升终端设备的可靠性。Based on the dynamic update, after the target code (operating system code and application software code) is running normally on the terminal device, the target code in the memory 12 and the memory 14 may be reversed and changed under the influence of radiation noise, which may affect the terminal device. , to improve the reliability of terminal equipment.

关于处理器13如何基于第二目标存储器中的目标代码对内存14进行更新,本申请实施例还提供了可能的实现方式,请参考下文。Regarding how the processor 13 updates the memory 14 based on the target code in the second target memory, the embodiment of the present application also provides a possible implementation manner, please refer to the following.

在一种可选地的实施方式中,处理器13还用于将第二目标存储器中的目标代码加载至内存14的第一类地址段中。In an optional implementation manner, the processor 13 is further configured to load the target code in the second target memory into the first-type address segment of the memory 14 .

应理解,直接覆盖原有在内存中的代码。此种行为会造成少许的系统中断。It should be understood that the original code in memory is directly overwritten. This behavior causes a small amount of system disruption.

应理解,通过将第二目标存储器中的目标代码加载至内存14的第一类地址段中,使将第二目标存储器中的目标代码直接对内存14中的目标代码进行覆盖,以避免内存14中初始加载的目标代码发生翻转变化,保障目标代码的正确性,提升终端设备的可靠性。It should be understood that by loading the object code in the second object memory into the first type address segment of the memory 14, the object code in the second object memory can be directly overwritten on the object code in the memory 14, so as to avoid memory 14 The target code initially loaded in the system is reversed to ensure the correctness of the target code and improve the reliability of the terminal device.

在一种可选地的实施方式中,处理器13还用于将第二目标存储器中的目标代码分别放置于内存14的第二类地址段和第三类地址段。In an optional implementation manner, the processor 13 is further configured to place the target code in the second target memory in the second type address segment and the third type address segment of the memory 14 respectively.

需要说明的是,在将第二目标存储器中的目标代码分别放置于内存14的过程中,也可能出现粒子翻转的现象,为了避免在放置过程中出现的翻转,导致的误判断,需要重复放置两次,分别放置于第二类地址段和第三类地址段中。It should be noted that during the process of placing the target codes in the second target memory in the memory 14, the phenomenon of particle flipping may also occur. In order to avoid the flipping that occurs during the placement process and cause misjudgment, it is necessary to repeatedly place Twice, respectively placed in the second type of address segment and the third type of address segment.

处理器13还用于对内存14的第一类地址段、第二类地址段以及第三类地址段中的目标代码进行比对,若第一类地址段中的目标代码与第二类地址段中的目标代码和第三类地址段中的目标代码均不相同,则对第一类地址段中的目标代码进行纠正。Processor 13 is also used for comparing the target code in the first type address segment, the second type address segment and the third type address segment of memory 14, if the target code in the first type address segment is the same as the second type address segment If the object code in the segment is different from the object code in the third-type address segment, correct the object code in the first-type address segment.

可选地,需要操作系统/应用软件进行相应的策略。如:CPU需要在相对空闲的状态时按照3模对比原则对三块内存中的代码进行逐个对比,如果对比结果相同直接进行对新导入的内存快进行删除操作;如果结果不相同,则进行不相同部分统计,对于正在调用或者调用次数高的程序需要进行内存地址映射,临时将此段内容映射到另外两块中的一块内存段地址上。对不相同部分进行写覆盖操作保证数据的一致性,数据写完后进行中断通知CPU,再将临时映射的内存段地址改回。对于调用次数低的代码段直接进行写覆盖操作保证数据的一致性。最终在三段内存数据一致后将新增的两端内存数据删除。Optionally, the operating system/application software is required to implement corresponding policies. For example: when the CPU is relatively idle, it needs to compare the codes in the three memory blocks one by one according to the 3-mode comparison principle. If the comparison results are the same, directly delete the newly imported memory blocks; if the results are not the same, perform different operations. For the same part of statistics, memory address mapping is required for programs that are being called or have a high number of calls, and temporarily map the content of this segment to the address of a memory segment in the other two blocks. Perform write overwrite operations on different parts to ensure data consistency. After the data is written, an interrupt is performed to notify the CPU, and then the address of the temporarily mapped memory segment is changed back. For the code segment with a low number of calls, the overwrite operation is directly performed to ensure data consistency. Finally, delete the newly added memory data at both ends after the data in the three memory segments are consistent.

可选地,基于第一类地址段、第二类地址段以及第三类地址段中的目标代码,按照3模对比纠正的方式,对第一类地址段中的目标代码进行调整。Optionally, based on the target codes in the first type of address segment, the second type of address segment and the third type of address segment, the target code in the first type of address segment is adjusted in a 3-mode comparison correction manner.

若第一类地址段中的目标代码与第二类地址段中的目标代码和第三类地址段中的目标代码中的任意一个相同,则将内存14的第二类地址段中的目标代码和第三类地址段中的目标代码删除。If the object code in the first type address segment is identical to any one of the object code in the second type address segment and the object code in the third type address segment, then the object code in the second type address segment of memory 14 and the object code in the third type address segment are deleted.

可选地,为了节省内存空间纠正完了也可以删除第二类地址段中的目标代码和第三类地址段中的目标代码删除。Optionally, in order to save memory space, the object code in the second-type address segment and the object code in the third-type address segment can also be deleted after the correction is completed.

在一种可选的实施方式中,触发指令为处理器13按照预设时间间隔发送的指令,或者,触发指令为外置单元11照预设时间间隔生成的指令。In an optional implementation manner, the triggering instruction is an instruction sent by the processor 13 at a preset time interval, or the triggering instruction is an instruction generated by the external unit 11 at a preset time interval.

在一种可选的实施方式中,触发指令为处理器13监测到应用程序报错或操作系统报错时所生成的指令。In an optional implementation manner, the triggering instruction is an instruction generated when the processor 13 monitors that an error is reported by an application program or an error is reported by an operating system.

本申请实施例还提供了一种终端设备管理方法,可以包括但不限于应用于图2所示的终端设备,具体的流程,请参考图3,终端设备管理方法的实现步骤可以包括:S111、S112以及S131,下面对其进行具体阐述:The embodiment of the present application also provides a terminal device management method, which may include but not limited to be applied to the terminal device shown in FIG. 2. For the specific process, please refer to FIG. 3. The implementation steps of the terminal device management method may include: S111, S112 and S131 are described in detail below:

S111,外置单元读取至少3个存储器中的目标代码,在至少2个存储器中的目标代码相同的情况下,确定第一目标存储器。S111. The external unit reads target codes in at least three memories, and determines a first target memory when the target codes in at least two memories are the same.

其中,目标代码为操作系统代码和/或应用软件代码,第一目标存储器为目标代码相同的存储器中的任意一个。Wherein, the target code is operating system code and/or application software code, and the first target memory is any one of the same memory as the target code.

S112,外置单元将第一目标存储器的标识发送给处理器。S112. The external unit sends the identifier of the first target memory to the processor.

S131,处理器读取第一目标存储器中的目标代码,并将读取到的目标代码加载至内存的第一类地址段中,以运行目标代码。S131. The processor reads the target code in the first target memory, and loads the read target code into the first type address segment of the memory, so as to run the target code.

需要说明的是,本实施例所提供的终端设备管理方法,其可以执行上述终端设备实施例所示的功能用于,以实现对应的技术效果。为简要描述,本实施例部分未提及之处,可参考上述的实施例中相应内容。It should be noted that the terminal device management method provided in this embodiment can perform the functions shown in the above terminal device embodiments to achieve corresponding technical effects. For brief description, for parts not mentioned in this embodiment, reference may be made to the corresponding content in the foregoing embodiments.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods and computer program products according to multiple embodiments of the present application. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器12(ROM,Read-Only Memory)、随机存取存储器12(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. And aforementioned storage medium comprises: U disk, mobile hard disk, read-only memory 12 (ROM, Read-Only Memory), random access memory 12 (RAM, Random Access Memory), magnetic disk or optical disk etc. can store program codes medium.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其它的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, but that the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, the embodiments should be regarded as exemplary and not restrictive in all points of view, and the scope of the application is defined by the appended claims rather than the foregoing description, and it is intended that the scope of the present application be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in this application. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1.一种终端设备,其特征在于,所述终端设备包括:外置单元、处理器、内存以及至少3个存储器,所述外置单元分别与所述处理器、所述至少3个存储器通信连接,所述处理器与所述至少3个存储器通信连接,所述处理器还与所述内存通信连接;1. A terminal device, characterized in that the terminal device comprises: an external unit, a processor, a memory, and at least 3 storage devices, and the external unit communicates with the processor and the at least 3 storage devices respectively connected, the processor is connected in communication with the at least 3 memories, and the processor is also connected in communication with the memory; 所述外置单元用于读取所述至少3个存储器中的目标代码,在至少2个存储器中的目标代码相同的情况下,确定第一目标存储器;The external unit is used to read the target codes in the at least 3 memories, and determine the first target memory when the target codes in the at least 2 memories are the same; 其中,所述目标代码为操作系统代码和/或应用软件代码,所述第一目标存储器为目标代码相同的存储器中的任意一个;Wherein, the target code is operating system code and/or application software code, and the first target memory is any one of the same memory as the target code; 所述外置单元还用于将所述第一目标存储器的标识发送给所述处理器;The external unit is further configured to send the identifier of the first target memory to the processor; 所述处理器用于读取所述第一目标存储器中的目标代码,并将读取到的目标代码加载至所述内存的第一类地址段中,以运行所述目标代码。The processor is used for reading the target code in the first target memory, and loading the read target code into the first type address segment of the memory, so as to run the target code. 2.如权利要求1所述的终端设备,其特征在于,在所述外置单元上电后,所述外置单元用于对所述至少3个存储器进行上电;2. The terminal device according to claim 1, characterized in that, after the external unit is powered on, the external unit is used to power on the at least three memories; 在确定所述第一目标存储器后,所述外置单元还用于对出所述第一目标存储器以外的非第一目标存储器进行下电。After determining the first target memory, the external unit is further configured to power off non-first target memories other than the first target memory. 3.如权利要求1所述的终端设备,其特征在于,在将所述第一目标存储器的标识发送给所述处理器之前,所述外置单元还用于对所述处理器和所述内存进行上电。3. The terminal device according to claim 1, wherein before sending the identifier of the first target memory to the processor, the external unit is also used to configure the processor and the The memory is powered on. 4.如权利要求1所述的终端设备,其特征在于,在所述目标代码运行后,所述外置单元还用于在获取到触发指令时,读取所述至少3个存储器中的目标代码,所述至少3个存储器中的目标代码相同的情况下,将所述至少3个存储器中的任意一个确定为第二目标存储器;4. The terminal device according to claim 1, characterized in that, after the target code runs, the external unit is further configured to read the target code in the at least three memories when the trigger command is acquired code, when the target codes in the at least 3 memories are the same, any one of the at least 3 memories is determined as the second target memory; 所述外置单元还用于在任意一个存储器存储的目标代码与其他存储器存储的目标代码不同的情况下,对所述至少3个存储器中的目标代码进行调整,以使所述至少3个存储器中的目标代码保持一致,并将调整后的所述至少3个存储器中的任意一个确定为第二目标存储器;The external unit is also used to adjust the object codes in the at least 3 memories when the object codes stored in any one memory are different from the object codes stored in other memories, so that the at least 3 memories The target code in is consistent, and any one of the adjusted at least 3 memories is determined as the second target memory; 所述外置单元还用于将所述第二目标存储器的标识发送给所述处理器;The external unit is further configured to send the identifier of the second target memory to the processor; 所述处理器用于读取所述第二目标存储器中的目标代码,并基于所述第二目标存储器中的目标代码对所述内存进行更新。The processor is used for reading the target code in the second target memory, and updating the memory based on the target code in the second target memory. 5.如权利要求4所述的终端设备,其特征在于,所述处理器还用于将所述第二目标存储器中的目标代码加载至所述内存的第一类地址段中。5. The terminal device according to claim 4, wherein the processor is further configured to load the target code in the second target memory into the first type address segment of the memory. 6.如权利要求4所述的终端设备,其特征在于,所述处理器还用于将所述第二目标存储器中的目标代码分别放置于所述内存的第二类地址段和第三类地址段;6. The terminal device according to claim 4, wherein the processor is further configured to place the target code in the second target memory in the second-type address segment and the third-type address segment of the memory, respectively. address segment; 所述处理器还用于对所述内存的第一类地址段、第二类地址段以及第三类地址段中的目标代码进行比对,若第一类地址段中的目标代码与第二类地址段中的目标代码和第三类地址段中的目标代码均不相同,则对第一类地址段中的目标代码进行纠正。The processor is also used to compare the target codes in the first type address segment, the second type address segment and the third type address segment of the memory, if the target code in the first type address segment is the same as the second type address segment If the object code in the address segment of the first type is different from the object code in the address segment of the third type, the object code in the address segment of the first type is corrected. 7.如权利要求6所述的终端设备,其特征在于,若第一类地址段中的目标代码与第二类地址段中的目标代码和第三类地址段中的目标代码中的任意一个相同,则将所述内存的第二类地址段中的目标代码和第三类地址段中的目标代码删除。7. The terminal device as claimed in claim 6, wherein if the object code in the first type address segment and any one of the object code in the second type address segment and the object code in the third type address segment If they are the same, the object codes in the second-type address segment and the object code in the third-type address segment of the memory are deleted. 8.如权利要求4所述的终端设备,其特征在于,所述触发指令为所述处理器按照预设时间间隔发送的指令,或者,所述触发指令为所述外置单元照预设时间间隔生成的指令。8. The terminal device according to claim 4, wherein the trigger instruction is an instruction sent by the processor according to a preset time interval, or the trigger instruction is an instruction sent by the external unit according to a preset time interval. Instructions generated at intervals. 9.如权利要求4所述的终端设备,其特征在于,所述触发指令为所述处理器监测到应用程序报错或操作系统报错时所生成的指令。9 . The terminal device according to claim 4 , wherein the trigger instruction is an instruction generated when the processor monitors that an error is reported by an application program or an error is reported by an operating system. 10.一种终端设备管理方法,其特征在于,应用于终端设备,所述终端设备包括:外置单元、处理器、内存以及至少3个存储器,所述外置单元分别与所述处理器、所述至少3个存储器通信连接,所述处理器与所述至少3个存储器通信连接,所述处理器还与所述内存通信连接,所述终端设备管理方法包括:10. A terminal device management method, characterized in that it is applied to a terminal device, and the terminal device includes: an external unit, a processor, a memory, and at least three memories, and the external unit is connected to the processor, the The at least three memories are connected in communication, the processor is connected in communication with the at least three memories, the processor is also connected in communication with the memory, and the terminal device management method includes: 所述外置单元读取所述至少3个存储器中的目标代码,在至少2个存储器中的目标代码相同的情况下,确定第一目标存储器;The external unit reads the target codes in the at least 3 memories, and determines the first target memory when the target codes in the at least 2 memories are the same; 其中,所述目标代码为操作系统代码和/或应用软件代码,所述第一目标存储器为目标代码相同的存储器中的任意一个;Wherein, the target code is operating system code and/or application software code, and the first target memory is any one of the same memory as the target code; 所述外置单元将所述第一目标存储器的标识发送给所述处理器;The external unit sends the identifier of the first target memory to the processor; 所述处理器读取所述第一目标存储器中的目标代码,并将读取到的目标代码加载至所述内存的第一类地址段中,以运行所述目标代码。The processor reads the target code in the first target memory, and loads the read target code into the first-type address segment of the memory, so as to run the target code.
CN202211376964.7A 2022-11-04 2022-11-04 Terminal equipment and management method Pending CN115700429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211376964.7A CN115700429A (en) 2022-11-04 2022-11-04 Terminal equipment and management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211376964.7A CN115700429A (en) 2022-11-04 2022-11-04 Terminal equipment and management method

Publications (1)

Publication Number Publication Date
CN115700429A true CN115700429A (en) 2023-02-07

Family

ID=85121122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211376964.7A Pending CN115700429A (en) 2022-11-04 2022-11-04 Terminal equipment and management method

Country Status (1)

Country Link
CN (1) CN115700429A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1434136A1 (en) * 2002-12-27 2004-06-30 Siemens Aktiengesellschaft Microprocessor with cache memory and secondary memory, and method for programming such a microprocessor
CN104637530A (en) * 2014-04-17 2015-05-20 清华大学 Random access memory with redundant structure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1434136A1 (en) * 2002-12-27 2004-06-30 Siemens Aktiengesellschaft Microprocessor with cache memory and secondary memory, and method for programming such a microprocessor
CN104637530A (en) * 2014-04-17 2015-05-20 清华大学 Random access memory with redundant structure

Similar Documents

Publication Publication Date Title
US11262921B2 (en) Partial area self refresh mode
CN109391904B (en) SAR (synthetic aperture radar) adjusting method and device, mobile terminal and readable storage medium
CN109982423A (en) Antenna power method of adjustment, device, storage medium and intelligent terminal
US8370667B2 (en) System context saving based on compression/decompression time
US9582402B2 (en) Remote task queuing by networked computing devices
CN108076507B (en) Positioning mode control method, device, storage medium and mobile terminal
US20190155792A1 (en) Electronic device and file data journaling method of electronic device
US9172380B2 (en) Method and apparatus for supporting self-destruction function in baseband modem
US8885393B2 (en) Memory array voltage source controller for retention and write assist
US6822902B2 (en) Apparatus and method for interfacing between modem and memory in mobile station
CN112640333B (en) Clock calibration method and device
CN106453907A (en) Control method and device for terminal application
WO2021096761A1 (en) Supervised reimaging of vulnerable computing devices with prioritization, auto healing, and pattern detection
CN115700429A (en) Terminal equipment and management method
EP3731556A1 (en) Method for channel monitoring, and communication device
US20160232051A1 (en) Embedded resilient buffer
US11036595B2 (en) Semiconductor system including fault manager
US20230284137A1 (en) Data Processing Method and Terminal
US20240241748A1 (en) Asynchronous client to client task management
US12117912B2 (en) Enriched pre-extensible firmware interface initialization graphics
US12144060B2 (en) Cellular signal mesh network
US20200092734A1 (en) Email Synchronization Method and Device
CN115396416A (en) Position monitoring method and device and communication equipment
US20140323086A1 (en) Management of wireless channel use
CN114244636B (en) Gateway device, wireless extender, method, device and medium

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