[go: up one dir, main page]

CN118820120A - Peripheral device adaptation method, computer equipment and medium for product verification - Google Patents

Peripheral device adaptation method, computer equipment and medium for product verification Download PDF

Info

Publication number
CN118820120A
CN118820120A CN202411308523.2A CN202411308523A CN118820120A CN 118820120 A CN118820120 A CN 118820120A CN 202411308523 A CN202411308523 A CN 202411308523A CN 118820120 A CN118820120 A CN 118820120A
Authority
CN
China
Prior art keywords
peripheral
product
device parameter
main control
control system
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.)
Granted
Application number
CN202411308523.2A
Other languages
Chinese (zh)
Other versions
CN118820120B (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.)
Shenzhen Qianhai Shenlei Semiconductor Co ltd
Original Assignee
Shenzhen Qianhai Shenlei Semiconductor 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 Shenzhen Qianhai Shenlei Semiconductor Co ltd filed Critical Shenzhen Qianhai Shenlei Semiconductor Co ltd
Priority to CN202411308523.2A priority Critical patent/CN118820120B/en
Publication of CN118820120A publication Critical patent/CN118820120A/en
Application granted granted Critical
Publication of CN118820120B publication Critical patent/CN118820120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本申请涉及计算机技术领域并提供一种用于产品验证的外设适配方法、计算机设备及介质。方法包括:生成待验证产品相关联的外设设备参数文档;通过系统级芯片硬件系统的设备参数分区,存储和维护外设设备参数文档;响应于待验证产品的在主控系统下的基于第一产品规格的验证,至少在用于验证待验证产品的软件开机之前,解析外设设备参数文档,从而确定与第一产品规格对应的一个或者多个外设各自的设备类型、型号和设备参数字段,以及选择性的确定所述一个或者多个外设中的具有相同的设备类型的外设各自的输入输出状态,进而得到第一解析结果,然后,使用第一解析结果进行外设参数初始化用于验证待验证产品。如此降低验证工作量和时长。

The present application relates to the field of computer technology and provides a peripheral adaptation method, computer equipment and medium for product verification. The method includes: generating a peripheral device parameter document associated with the product to be verified; storing and maintaining the peripheral device parameter document through the device parameter partition of the system-level chip hardware system; in response to the verification of the product to be verified based on the first product specification under the main control system, at least before the software for verifying the product to be verified is started, parsing the peripheral device parameter document, thereby determining the device type, model and device parameter field of one or more peripherals corresponding to the first product specification, and selectively determining the input and output states of the one or more peripherals with the same device type, thereby obtaining a first parsing result, and then using the first parsing result to initialize the peripheral parameters for verifying the product to be verified. This reduces the workload and duration of verification.

Description

用于产品验证的外设适配方法、计算机设备及介质Peripheral device adaptation method, computer equipment and medium for product verification

技术领域Technical Field

本申请涉及计算机技术领域,尤其涉及一种用于产品验证的外设适配方法、计算机设备及介质。The present application relates to the field of computer technology, and in particular to a peripheral adaptation method, computer equipment and medium for product verification.

背景技术Background Art

随着集成电路和物联网等技术的发展,一款电子产品上集成了各种外设并通过主控系统和芯片来协调各种外设以实现丰富的功能。常见的外设包括但是不限于显示屏、摄像头、外部存储设备如闪存等。为了确保产品的功能正常,通过软件编码方式进行调试并且烧写软件版本进行验证。但是,市面上存在多款不同的主控系统,例如常见的操作系统如安卓、Linux、Ubuntu等。现有技术中,产品研发过程中的版本发布、验证以及文档分别是按照不同的操作系统版本而设计的,最终软件开放、测试以及交付需要分别在不同操作系统中进行编译验证,因此导致验证工作量大、验证耗时长,而且导致外设替换、产品升级的效率低下。With the development of technologies such as integrated circuits and the Internet of Things, various peripherals are integrated into an electronic product and coordinated through the main control system and chips to achieve rich functions. Common peripherals include but are not limited to display screens, cameras, external storage devices such as flash memory, etc. In order to ensure the normal function of the product, debugging is performed through software coding and the software version is burned for verification. However, there are many different main control systems on the market, such as common operating systems such as Android, Linux, Ubuntu, etc. In the prior art, the version release, verification and documentation in the product development process are designed according to different operating system versions. The final software opening, testing and delivery need to be compiled and verified in different operating systems, which leads to a large workload and a long verification time, and leads to low efficiency in peripheral replacement and product upgrades.

为此,本申请提供了一种用于产品验证的外设适配方法、计算机设备及介质,用于应对现有技术中的技术难题。To this end, the present application provides a peripheral adaptation method, computer device and medium for product verification, which are used to address the technical difficulties in the prior art.

发明内容Summary of the invention

第一方面,本申请提供了一种用于产品验证的外设适配方法。所述外设适配方法包括:生成待验证产品相关联的外设设备参数文档,其中,所述外设设备参数文档包括多个外设各自的设备类型、型号和设备参数字段,所述多个外设中具有相同的设备类型的外设各自具有不同的输入输出状态,并且,不同的输入输出状态通过不同的输入输出状态标识来区分;通过系统级芯片硬件系统的设备参数分区,存储和维护所述外设设备参数文档,所述系统级芯片硬件系统的主控系统被存储在所述系统级芯片硬件系统的主控系统分区并且所述主控系统的运行通过所述主控系统分区和所述系统级芯片硬件系统的系统内存分区来执行,所述设备参数分区与所述主控系统分区隔离也和所述系统内存分区隔离;响应于所述待验证产品的在所述主控系统下的基于第一产品规格的验证,至少在用于验证所述待验证产品的软件开机之前,解析所述设备参数分区中的所述外设设备参数文档,从而确定与所述第一产品规格对应的一个或者多个外设各自的设备类型、型号和设备参数字段,以及选择性的确定所述一个或者多个外设中的具有相同的设备类型的外设各自的输入输出状态,进而得到第一解析结果,然后,使用所述第一解析结果进行外设参数初始化用于验证所述待验证产品。In the first aspect, the present application provides a peripheral device adaptation method for product verification. The peripheral device adaptation method includes: generating a peripheral device parameter document associated with the product to be verified, wherein the peripheral device parameter document includes the device type, model and device parameter fields of each of the multiple peripherals, and the peripherals with the same device type in the multiple peripherals each have different input and output states, and different input and output states are distinguished by different input and output state identifiers; storing and maintaining the peripheral device parameter document through device parameter partitions of a system-on-chip hardware system, the main control system of the system-on-chip hardware system is stored in the main control system partition of the system-on-chip hardware system and the operation of the main control system is through the main control system partition and the system memory partition of the system-on-chip hardware system. area to be executed, the device parameter partition is isolated from the main control system partition and also from the system memory partition; in response to the verification of the product to be verified based on the first product specification under the main control system, at least before the software used to verify the product to be verified is started, the peripheral device parameter document in the device parameter partition is parsed to determine the device type, model and device parameter field of one or more peripherals corresponding to the first product specification, and selectively determine the input and output status of each peripheral with the same device type among the one or more peripherals, thereby obtaining a first parsing result, and then using the first parsing result to initialize the peripheral parameters for verifying the product to be verified.

通过本申请的第一方面,实现了外设设备参数文档的管理是与主控系统解耦化,在待验证产品的各个环节,例如外设导入验证、研发调试、版本发布以及产品规格升级等,通过独立于主控系统来管理外设设备参数文档,可以充分发挥在硬件选型后进行调试验证就已经完成关键工作的优势;不依赖某种主控系统,也不依赖任何外设类型,将外设设备参数的更新与管理与特定的平台及产品解耦化,有效克服了围绕主控系统来设计的产品验证方案的工作量大且耗时长的弊端,有利于增加新的外设或者替换既有的外设,也有利于推广和复刻产品验证方案;节省了多个部门参与和人力投入,通过填写外设参数并烧写到产品上实现开机验证,也节省了软件编译版本和文档更新的工作量,文档不再需要每个操作系统都更新,只需要更新一份独立的外设支持列表即可,不同种类的操作系统共用同一份支持列表;通过大幅降低产品验证的时间和人力投入,提高了产品推广速度,降低了下游厂商在不同产品之间切换的学习成本,也降低了外设升级时的风险,只需要更新设备参数分区即可,也降低了升级过程中存在死机或者升级失败等问题导致产品彻底无法使用和需要返厂维修的风险。Through the first aspect of the present application, the management of peripheral device parameter documents is decoupled from the main control system. In various links of the product to be verified, such as peripheral import verification, R&D debugging, version release and product specification upgrade, the peripheral device parameter documents are managed independently of the main control system, which can give full play to the advantage of completing the key work of debugging and verification after hardware selection; it does not rely on a certain main control system or any peripheral type, and decouples the update and management of peripheral device parameters from specific platforms and products, effectively overcoming the drawbacks of large workload and long time consumption of product verification solutions designed around the main control system, which is conducive to adding new peripherals or replacing existing peripherals, and is also conducive to promoting and replicating products. Product verification solution; it saves the participation of multiple departments and manpower investment. By filling in peripheral parameters and burning them to the product to achieve power-on verification, it also saves the workload of software compilation version and document update. The document no longer needs to be updated for each operating system. Only an independent peripheral support list needs to be updated. Different types of operating systems share the same support list. By greatly reducing the time and manpower investment for product verification, the speed of product promotion is increased, the learning cost of downstream manufacturers switching between different products is reduced, and the risk of peripheral upgrades is reduced. Only the device parameter partition needs to be updated, which also reduces the risk of the product being completely unusable and needing to be returned to the factory for repair due to problems such as freezing or upgrade failure during the upgrade process.

在本申请的第一方面的一种可能的实现方式中,通过所述系统级芯片硬件系统的所述设备参数分区,存储和维护所述外设设备参数文档,包括:更新所述外设设备参数文档并存储更新后外设设备参数文档到所述设备参数分区。In a possible implementation of the first aspect of the present application, the peripheral device parameter document is stored and maintained through the device parameter partition of the system-on-chip hardware system, including: updating the peripheral device parameter document and storing the updated peripheral device parameter document in the device parameter partition.

在本申请的第一方面的一种可能的实现方式中,更新存储在所述设备参数分区中的所述外设设备参数文档独立于更新存储在所述主控系统分区中的所述主控系统。In a possible implementation manner of the first aspect of the present application, updating the peripheral device parameter document stored in the device parameter partition is independent of updating the main control system stored in the main control system partition.

在本申请的第一方面的一种可能的实现方式中,更新所述外设设备参数文档,包括:增加新外设或者替换既有外设。In a possible implementation manner of the first aspect of the present application, updating the peripheral device parameter document includes: adding a new peripheral or replacing an existing peripheral.

在本申请的第一方面的一种可能的实现方式中,更新所述外设设备参数文档是通过填写预设表格中的字段数据,然后,基于所填写的表格来生成所述更新后外设设备参数文档,再然后,烧写所述更新后外设设备参数文档到所述待验证产品上。In a possible implementation of the first aspect of the present application, the peripheral device parameter document is updated by filling in the field data in a preset form, and then, the updated peripheral device parameter document is generated based on the filled in form, and then, the updated peripheral device parameter document is burned to the product to be verified.

在本申请的第一方面的一种可能的实现方式中,所述外设适配方法还包括:响应于所述待验证产品的在所述主控系统下的基于第二产品规格的验证,至少在用于验证所述待验证产品的软件开机之前,解析所述设备参数分区中的所述外设设备参数文档,从而确定与所述第二产品规格对应的第二解析结果,然后,使用所述第二解析结果进行外设参数初始化用于验证所述待验证产品。In a possible implementation of the first aspect of the present application, the peripheral adaptation method also includes: in response to the verification of the product to be verified based on the second product specification under the main control system, at least before the software used to verify the product to be verified is started, parsing the peripheral device parameter document in the device parameter partition to determine a second parsing result corresponding to the second product specification, and then using the second parsing result to initialize the peripheral parameters for verifying the product to be verified.

在本申请的第一方面的一种可能的实现方式中,不同的输入输出状态通过不同的输入输出状态标识来区分,包括:不超过四个的输入输出状态通过两比特位的输入输出状态标识来区分,或者,超过四个且不超过八个的输入输出状态通过三比特位的输入输出状态标识来区分。In a possible implementation of the first aspect of the present application, different input and output states are distinguished by different input and output state identifiers, including: no more than four input and output states are distinguished by a two-bit input and output state identifier, or more than four and no more than eight input and output states are distinguished by a three-bit input and output state identifier.

在本申请的第一方面的一种可能的实现方式中,存储在所述设备参数分区中的所述外设设备参数文档被加密用于防止参数盗取或者恶意篡改。In a possible implementation manner of the first aspect of the present application, the peripheral device parameter document stored in the device parameter partition is encrypted to prevent parameter theft or malicious tampering.

在本申请的第一方面的一种可能的实现方式中,所述设备参数字段包括以下一项或者多项:显示屏尺寸、显示屏是否具备移动设备处理器接口、显示屏是否具备低电压差分信号接口、工作电压、工作频率、工作带宽、峰值功率、峰值电压。In a possible implementation of the first aspect of the present application, the device parameter field includes one or more of the following: display screen size, whether the display screen has a mobile device processor interface, whether the display screen has a low voltage differential signal interface, operating voltage, operating frequency, operating bandwidth, peak power, and peak voltage.

在本申请的第一方面的一种可能的实现方式中,所述设备类型是显示设备、摄像设备、存储设备或者网络设备。In a possible implementation manner of the first aspect of the present application, the device type is a display device, a camera device, a storage device, or a network device.

在本申请的第一方面的一种可能的实现方式中,所述待验证产品的在所述主控系统下的基于所述第一产品规格的验证,被应用于所述待验证产品的开发测试阶段、调试阶段、产品升级阶段或者文档更新阶段。In a possible implementation of the first aspect of the present application, verification of the product to be verified based on the first product specification under the main control system is applied to the development and testing phase, debugging phase, product upgrade phase or document update phase of the product to be verified.

在本申请的第一方面的一种可能的实现方式中,所述一个或者多个外设中存在满足预设逻辑关系的两个外设,所述第一解析结果中的所述两个外设各自的设备类型、型号和设备参数字段是基于所述预设逻辑关系来确定的,所述预设逻辑关系是主备关系、镜像关系或者并行关系。In a possible implementation of the first aspect of the present application, there are two peripherals among the one or more peripherals that satisfy a preset logical relationship, and the device type, model and device parameter fields of each of the two peripherals in the first analysis result are determined based on the preset logical relationship, and the preset logical relationship is a master-slave relationship, a mirror relationship or a parallel relationship.

第二方面,本申请实施例还提供了一种计算机设备,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现根据上述任一方面的任一种实现方式的方法。In a second aspect, an embodiment of the present application further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method according to any one of the implementation modes of any of the above aspects when executing the computer program.

第三方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机设备上运行时使得所述计算机设备执行根据上述任一方面的任一种实现方式的方法。In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer device, the computer device executes a method according to any one of the implementation methods of any of the above aspects.

第四方面,本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的指令,当所述指令在计算机设备上运行时使得所述计算机设备执行根据上述任一方面的任一种实现方式的方法。In a fourth aspect, an embodiment of the present application further provides a computer program product, which includes instructions stored on a computer-readable storage medium, and when the instructions are executed on a computer device, the computer device executes a method according to any one of the implementation methods of any of the above aspects.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1为一种包括多种主控系统和多个外设的应用场景的示意图;FIG1 is a schematic diagram of an application scenario including multiple main control systems and multiple peripherals;

图2为本申请实施例提供的一种用于产品验证的外设适配方法的流程示意图;FIG2 is a flow chart of a peripheral device adaptation method for product verification provided in an embodiment of the present application;

图3为本申请实施例提供的一种参考图2所示的用于产品验证的外设适配方法的系统级芯片硬件系统的示意图;FIG3 is a schematic diagram of a system-on-chip hardware system for a peripheral device adaptation method for product verification provided by an embodiment of the present application with reference to FIG2 ;

图4为本申请实施例提供的一种计算设备的结构示意图。FIG4 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将结合附图对本申请实施例作进一步地详细描述。The embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings.

应当理解的是,在本申请的描述中,“至少一个”指一个或一个以上,“多个”指两个或两个以上。另外,“第一”、“第二”等词汇,除非另有说明,否则仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。It should be understood that, in the description of this application, "at least one" means one or more, and "a plurality of" means two or more. In addition, unless otherwise specified, the words "first", "second", etc. are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

图1为一种包括多种主控系统和多个外设的应用场景的示意图。如图1所示,三种主控系统分别是主控系统A102,主控系统B104以及主控系统C106。电子产品的开发厂商可能使用多种不同的主控系统,例如常见的操作系统如安卓、Linux、Ubuntu等。而不同的主控系统上可以集成各种外设,常见的外设包括但是不限于显示屏、摄像头、外部存储设备如闪存等。为了确保主控系统和集成在产品上的各种外设可以正常运行,需要通过软件编码方式进行调试,还可能需要通过软件编译出固件并烧写到产品内,从而实现软件参数与产品的对应绑定,确保各种外设工作正常。在如图1所示的多种主控系统和多个外设的应用场景,每一种主控系统可能有各自的特点,因此对应的外设组合可能有所不同。例如,一种主控系统可能适合应用于边缘计算、可携带式智能终端设备等场景,因此倾向于集成能耗低、待机时间长的外设来构建电子产品,另一种主控系统可能适合应用于数据中心、人工智能大模型等场景,因此倾向于集成性能好、存储空间大的外设来构建电子产品。因此,多种主控系统可能分别对应不同的外设组合,而最终确定的电子产品的产品规格是由所采用的主控系统以及所集成的外设确定的。图1中示例性示出了,主控系统A102对应的外设组合包括显示外设A110、摄像外设A120和显示外设B112;使用主控系统A102的电子产品的产品规格的示例有,产品规格A180包括主控系统A102、显示外设A110、摄像外设A120,产品规格B181包括主控系统A102、显示外设B112、摄像外设A120。主控系统B104对应的外设组合包括显示外设C114、摄像外设B122、显示外设D116;使用主控系统B104的电子产品的产品规格的示例有,产品规格C182包括主控系统B104、显示外设C114、摄像外设B122,产品规格D183包括主控系统B104、显示外设D116、摄像外设B122。主控系统C106对应的外设组合包括显示外设A110、摄像外设B122、显示外设E118;使用主控系统C106的电子产品的产品规格的示例有,产品规格E184包括主控系统C106、显示外设A110、摄像外设B122,产品规格F185包括主控系统C106、显示外设E118、摄像外设B122。看以看出,为了能够同时运行不同的操作系统和兼容不同的主控系统,以及考虑到各种不同的外设组合,图1中示出了6种产品规格。因此,如果产品研发过程中的版本发布及验证以及文档分别是按照不同的操作系统版本而设计的,最终软件开放与测试以及交付团队需要分别在三种操作系统中进行编译验证,以及对产品的文档进行更新,如果通过软件编写代码来编译出对应的6个版本并且烧写6个软件版本进行验证,这样会导致在外设导入验证、研发调试、版本发布以及产品规格升级等各环节的工作量大且耗时长。FIG. 1 is a schematic diagram of an application scenario including multiple main control systems and multiple peripherals. As shown in FIG. 1 , the three main control systems are main control system A102, main control system B104, and main control system C106. Electronic product developers may use a variety of different main control systems, such as common operating systems such as Android, Linux, Ubuntu, etc. Various peripherals can be integrated on different main control systems, and common peripherals include but are not limited to display screens, cameras, external storage devices such as flash memory, etc. In order to ensure that the main control system and various peripherals integrated in the product can operate normally, it is necessary to debug through software coding, and it may also be necessary to compile firmware through software and burn it into the product, so as to achieve the corresponding binding of software parameters and products, and ensure that various peripherals work normally. In the application scenario of multiple main control systems and multiple peripherals as shown in FIG. 1 , each main control system may have its own characteristics, so the corresponding peripheral combinations may be different. For example, one main control system may be suitable for edge computing, portable intelligent terminal devices and other scenarios, so it tends to integrate peripherals with low energy consumption and long standby time to build electronic products. Another main control system may be suitable for data centers, artificial intelligence large models and other scenarios, so it tends to integrate peripherals with good performance and large storage space to build electronic products. Therefore, a variety of main control systems may correspond to different peripheral combinations, and the final product specifications of the electronic product are determined by the main control system used and the integrated peripherals. FIG1 exemplarily shows that the peripheral combination corresponding to the main control system A102 includes display peripherals A110, camera peripherals A120 and display peripherals B112; examples of product specifications of electronic products using the main control system A102 include product specification A180 including the main control system A102, display peripherals A110, and camera peripherals A120, and product specification B181 including the main control system A102, display peripherals B112, and camera peripherals A120. The peripheral combination corresponding to the main control system B104 includes display peripheral C114, camera peripheral B122, and display peripheral D116; examples of product specifications of electronic products using the main control system B104 include product specification C182 including the main control system B104, display peripheral C114, and camera peripheral B122, and product specification D183 including the main control system B104, display peripheral D116, and camera peripheral B122. The peripheral combination corresponding to the main control system C106 includes display peripheral A110, camera peripheral B122, and display peripheral E118; examples of product specifications of electronic products using the main control system C106 include product specification E184 including the main control system C106, display peripheral A110, and camera peripheral B122, and product specification F185 including the main control system C106, display peripheral E118, and camera peripheral B122. As can be seen, in order to run different operating systems and be compatible with different main control systems at the same time, and taking into account various peripheral combinations, six product specifications are shown in Figure 1. Therefore, if the version release, verification and documentation in the product development process are designed according to different operating system versions, the final software development and testing and delivery team needs to compile and verify in three operating systems respectively, and update the product documentation. If the corresponding six versions are compiled by software coding and six software versions are burned for verification, this will result in a large workload and a long time in various links such as peripheral import verification, R&D debugging, version release and product specification upgrades.

继续参阅图1,可以看出,在多种产品规格中,有相当一部分的外设是重复的,例如,产品规格A180包括主控系统A102、显示外设A110、摄像外设A120,产品规格E184包括主控系统C106、显示外设A110、摄像外设B122。例如,显示外设A110可以是7英寸的具有移动设备处理器接口(Mobile Industry Processor Interface,MIPI)的显示屏,摄像外设A120是1080P分辨率的摄像头,摄像外设B122是720P分辨率的摄像头。另外,在对应了同一种主控系统的外设组合中,可能存在同一种外设类型但是不同型号的外设,例如,主控系统A102对应的外设组合包括显示外设A110、摄像外设A120和显示外设B112。显示外设A110可以是7英寸的具有MPI的显示屏,显示外设B112可以是24英寸的具有低电压差分信号接口(LowVoltage Differential Signaling,LVDS)的显示屏。因此,从外设调试的本质上看,硬件选型后进行调试验证就已经完成了关键的工作。但是,如果要按照不同的主控系统如操作系统版本来设计各个环节上的软件版本,从外设导入、研发调试、版本发布到产品规格升级,这样就会导致多个部门和人力的投入,并且导致在不同的主控系统和操作系统上分别进行编译、发布版本、烧录后开机进行验证等。这种围绕主控系统来设计的基于软件编译和调试的产品验证方式,虽然确保了在主控系统所运行的操作系统不同的时候各个外设包括新增加的外设也能稳定工作,但是导致了大量的重复工作,也导致外设替换、产品升级的效率低下。例如,假设硬件选型确定需要添加某款外设,则在添加新外设后,硬件与软件一起联合调试验证,软件将验证过的参数分别编写代码,如果存在图1所示的6种产品规格则需要编译出6个版本,测试团队分别烧写6个软件版本进行验证,最后由交付团队更新产品在不同操作系统中的外设支持列表。可以看出,如果增加某个新外设到电子产品中,例如增加存储外设,围绕主控系统来设计的产品验证方案需要软件开发、硬件、交付支持等部门的参与,并且工作量大、耗时长。为此,本申请实施例提供了一种与主控系统解耦化的产品验证方案,在有效克服了上述围绕主控系统来设计的产品验证方案的各种弊端的基础上,提供了可靠的验证手段来确保主控系统、各种外设还有软件一起可以稳定正常工作,也尽量节省了在外设导入验证、研发调试、版本发布以及产品规格升级等各环节上需要进行代码编译、调试和维护文档的工作量,下面结合图2详细说明。Continuing to refer to FIG. 1, it can be seen that among the various product specifications, a considerable portion of peripherals are repeated. For example, product specification A180 includes main control system A102, display peripheral A110, and camera peripheral A120, and product specification E184 includes main control system C106, display peripheral A110, and camera peripheral B122. For example, display peripheral A110 may be a 7-inch display screen with a mobile device processor interface (MIPI), camera peripheral A120 is a camera with a 1080P resolution, and camera peripheral B122 is a camera with a 720P resolution. In addition, in the peripheral combination corresponding to the same main control system, there may be peripherals of the same peripheral type but different models. For example, the peripheral combination corresponding to main control system A102 includes display peripheral A110, camera peripheral A120, and display peripheral B112. The display peripheral A110 can be a 7-inch display screen with MPI, and the display peripheral B112 can be a 24-inch display screen with a low voltage differential signaling interface (LVDS). Therefore, from the essence of peripheral debugging, debugging and verification after hardware selection have completed the key work. However, if the software version of each link is designed according to different main control systems such as operating system versions, from peripheral import, R&D debugging, version release to product specification upgrade, this will lead to the investment of multiple departments and manpower, and lead to compilation, version release, and verification after burning on different main control systems and operating systems. This product verification method based on software compilation and debugging designed around the main control system, although it ensures that each peripheral including the newly added peripherals can work stably when the operating system running on the main control system is different, it leads to a lot of duplication of work and inefficiency in peripheral replacement and product upgrade. For example, assuming that the hardware selection determines that a certain peripheral needs to be added, after adding the new peripheral, the hardware and software are jointly debugged and verified, and the software writes code for the verified parameters respectively. If there are 6 product specifications shown in Figure 1, 6 versions need to be compiled, and the test team burns 6 software versions for verification respectively. Finally, the delivery team updates the peripheral support list of the product in different operating systems. It can be seen that if a new peripheral is added to an electronic product, such as adding a storage peripheral, the product verification scheme designed around the main control system requires the participation of departments such as software development, hardware, and delivery support, and the workload is large and time-consuming. To this end, the embodiment of the present application provides a product verification scheme decoupled from the main control system. On the basis of effectively overcoming the various drawbacks of the product verification scheme designed around the main control system, a reliable verification method is provided to ensure that the main control system, various peripherals, and software can work stably and normally together, and the workload of code compilation, debugging, and maintenance documents in various links such as peripheral import verification, research and development debugging, version release, and product specification upgrades is saved as much as possible. The following is a detailed description in conjunction with Figure 2.

图2为本申请实施例提供的一种用于产品验证的外设适配方法的流程示意图。如图2所示,所述外设适配方法包括以下步骤。Fig. 2 is a flow chart of a peripheral device adaptation method for product verification provided in an embodiment of the present application. As shown in Fig. 2, the peripheral device adaptation method includes the following steps.

步骤S210:生成待验证产品相关联的外设设备参数文档,其中,所述外设设备参数文档包括多个外设各自的设备类型、型号和设备参数字段,所述多个外设中具有相同的设备类型的外设各自具有不同的输入输出状态,并且,不同的输入输出状态通过不同的输入输出状态标识来区分。Step S210: Generate a peripheral device parameter document associated with the product to be verified, wherein the peripheral device parameter document includes the device type, model and device parameter fields of each of the multiple peripherals, and the peripherals with the same device type among the multiple peripherals each have different input and output states, and different input and output states are distinguished by different input and output state identifiers.

步骤S220:通过系统级芯片硬件系统的设备参数分区,存储和维护所述外设设备参数文档,所述系统级芯片硬件系统的主控系统被存储在所述系统级芯片硬件系统的主控系统分区并且所述主控系统的运行通过所述主控系统分区和所述系统级芯片硬件系统的系统内存分区来执行,所述设备参数分区与所述主控系统分区隔离也和所述系统内存分区隔离。Step S220: The peripheral device parameter document is stored and maintained through the device parameter partition of the system-on-chip hardware system. The main control system of the system-on-chip hardware system is stored in the main control system partition of the system-on-chip hardware system and the operation of the main control system is executed through the main control system partition and the system memory partition of the system-on-chip hardware system. The device parameter partition is isolated from the main control system partition and the system memory partition.

步骤S230:响应于所述待验证产品的在所述主控系统下的基于第一产品规格的验证,至少在用于验证所述待验证产品的软件开机之前,解析所述设备参数分区中的所述外设设备参数文档,从而确定与所述第一产品规格对应的一个或者多个外设各自的设备类型、型号和设备参数字段,以及选择性的确定所述一个或者多个外设中的具有相同的设备类型的外设各自的输入输出状态,进而得到第一解析结果,然后,使用所述第一解析结果进行外设参数初始化用于验证所述待验证产品。Step S230: In response to the verification of the product to be verified based on the first product specification under the main control system, at least before the software used to verify the product to be verified is started, the peripheral device parameter document in the device parameter partition is parsed to determine the device type, model and device parameter field of one or more peripherals corresponding to the first product specification, and selectively determine the input and output status of each peripheral with the same device type among the one or more peripherals, so as to obtain a first parsing result, and then use the first parsing result to initialize the peripheral parameters for verifying the product to be verified.

参阅图2,图2所示的用于产品验证的外设适配方法,可以应用于电子产品的不同环节,例如外设导入验证、研发调试、版本发布以及产品规格升级等。一款电子产品上集成了各种外设并通过主控系统和芯片来协调各种外设以实现丰富的功能,常见的外设包括但是不限于显示屏、摄像头、外部存储设备如闪存等。为了确保主控系统和集成在产品上的各种外设可以正常运行,不仅需要考虑主控系统所采用的操作系统的要求,还需要考虑产品厂商可能为自家产品制定了特定的软件设计方案和主控系统运行方案,还需要考虑各种不同的外设的软件参数要求(如外设的驱动要求、连接要求等),并且,还需要考虑到产品规格的改变如增加新的外设或者替换既有的外设等,为此,需要可靠的验证手段来确保主控系统、各种外设还有软件一起可以稳定正常工作。在步骤S210,生成待验证产品相关联的外设设备参数文档。其中,所述外设设备参数文档包括多个外设各自的设备类型、型号和设备参数字段,所述多个外设中具有相同的设备类型的外设各自具有不同的输入输出状态,并且,不同的输入输出状态通过不同的输入输出状态标识来区分。这里,待验证产品指的是需要对主控系统、各种外设还有软件一起正常运行进行验证的电子产品。待验证产品可能需要兼容多种不同的主控系统、多款不同的操作系统以及各种外设,例如图1所示的6种产品规格。围绕主控系统来设计的产品验证方案具有各种弊端,例如,按照不同的主控系统如操作系统版本来设计各个环节上的软件版本,从外设导入、研发调试、版本发布到产品规格升级,这样就会导致多个部门和人力的投入,并且导致在不同的主控系统和操作系统上分别进行编译、发布版本、烧录后开机进行验证等。这里,在步骤S210,将外设信息及设备参数提取出来,例如将经常需要调试和更换参数的外设分类并归纳,如将列出的外设分为三大类:MIPI显示屏,摄像头,LVDS显示屏等。如此,生成待验证产品相关联的外设设备参数文档,这意味着将待验证产品所对应的可能的外设组合进行了分类和归纳,并且整理成特定的数据格式,也就是,所述外设设备参数文档包括多个外设各自的设备类型、型号和设备参数字段。设备类型用于指示外设设备的类型如显示外设、存储外设、摄像外设。型号用于指示具体的设备型号,如1080P分辨率的摄像头、720P分辨率的摄像头、7英寸的具有MPI的显示屏、24英寸的具有LVDS的显示屏。设备参数字段用于提供外设设备的定制化需求,如工作电压、工作功率、峰值电压、峰值功率、数据带宽、通信协议等。这里,多个外设中可能存在相同的设备类型的外设,这是考虑到实际应用中的电子产品的产品规格可能采用如多个显示屏,多个摄像头,多个存储外设的情况,例如图1所示的主控系统A102对应的外设组合包括显示外设A110、摄像外设A120和显示外设B112。所述多个外设中具有相同的设备类型的外设各自具有不同的输入输出状态,并且,不同的输入输出状态通过不同的输入输出状态标识来区分。这样意味着,多个外设中,无论是否具有相同的设备类型或者不同的设备类型,每一个外设都是被单独对待,并且每一个外设分别按照特定的数据结构来记录该外设的外设信息,这样是为了后续的解析外设信息以及利用解析后的参数进行初始化。并且,通过不同的输入输出状态标识来区分不同的输入输出状态进而区别具有相同的设备类型的外设,这样后续流程中,如遇到同一类外设参数有两套及以上,则额外地读取输入输出状态,选定与输入输出状态匹配的记录进行索引,找到相应的外设参数。Referring to FIG. 2, the peripheral adaptation method for product verification shown in FIG. 2 can be applied to different links of electronic products, such as peripheral import verification, R&D debugging, version release, and product specification upgrade. An electronic product integrates various peripherals and coordinates various peripherals through the main control system and chip to achieve rich functions. Common peripherals include but are not limited to display screens, cameras, external storage devices such as flash memory, etc. In order to ensure that the main control system and various peripherals integrated in the product can operate normally, it is necessary not only to consider the requirements of the operating system adopted by the main control system, but also to consider that the product manufacturer may have formulated a specific software design scheme and main control system operation scheme for its own products, and to consider the software parameter requirements of various different peripherals (such as peripheral drive requirements, connection requirements, etc.), and it is also necessary to consider changes in product specifications such as adding new peripherals or replacing existing peripherals, etc. For this reason, reliable verification means are needed to ensure that the main control system, various peripherals, and software can work stably and normally together. In step S210, a peripheral device parameter document associated with the product to be verified is generated. Wherein, the peripheral device parameter document includes the device type, model and device parameter field of each of the plurality of peripherals, and the peripherals with the same device type in the plurality of peripherals each have different input and output states, and the different input and output states are distinguished by different input and output state identifiers. Here, the product to be verified refers to an electronic product that needs to verify the normal operation of the main control system, various peripherals and software together. The product to be verified may need to be compatible with a variety of different main control systems, a variety of different operating systems and various peripherals, such as the 6 product specifications shown in Figure 1. The product verification scheme designed around the main control system has various drawbacks. For example, the software version at each link is designed according to different main control systems such as operating system versions, from peripheral import, R&D debugging, version release to product specification upgrade, which will lead to the investment of multiple departments and manpower, and lead to compilation, version release, burning and power-on verification on different main control systems and operating systems. Here, in step S210, the peripheral information and device parameters are extracted, for example, the peripherals that often need to be debugged and replaced are classified and summarized, such as the listed peripherals are divided into three categories: MIPI display screen, camera, LVDS display screen, etc. In this way, the peripheral device parameter document associated with the product to be verified is generated, which means that the possible peripheral combinations corresponding to the product to be verified are classified and summarized, and organized into a specific data format, that is, the peripheral device parameter document includes the device type, model and device parameter field of each of the multiple peripherals. The device type is used to indicate the type of peripheral device such as display peripheral, storage peripheral, camera peripheral. The model is used to indicate the specific device model, such as a camera with a resolution of 1080P, a camera with a resolution of 720P, a 7-inch display screen with MPI, and a 24-inch display screen with LVDS. The device parameter field is used to provide customized requirements for peripheral devices, such as operating voltage, operating power, peak voltage, peak power, data bandwidth, communication protocol, etc. Here, there may be peripherals of the same device type in multiple peripherals. This is to take into account that the product specifications of electronic products in actual applications may adopt situations such as multiple display screens, multiple cameras, and multiple storage peripherals. For example, the peripheral combination corresponding to the main control system A102 shown in Figure 1 includes display peripheral A110, camera peripheral A120 and display peripheral B112. The peripherals with the same device type in the multiple peripherals each have different input and output states, and different input and output states are distinguished by different input and output state identifiers. This means that among the multiple peripherals, regardless of whether they have the same device type or different device types, each peripheral is treated separately, and each peripheral records the peripheral information of the peripheral according to a specific data structure, so as to parse the peripheral information later and use the parsed parameters for initialization. In addition, different input and output states are distinguished by different input and output state identifiers, and then peripherals with the same device type are distinguished. In this way, in the subsequent process, if there are two or more sets of the same type of peripheral parameters, the input and output states are additionally read, and the records matching the input and output states are selected for indexing to find the corresponding peripheral parameters.

继续参阅图2,在步骤S210之后,执行步骤S220。在步骤S220,通过系统级芯片硬件系统的设备参数分区,存储和维护所述外设设备参数文档,所述系统级芯片硬件系统的主控系统被存储在所述系统级芯片硬件系统的主控系统分区并且所述主控系统的运行通过所述主控系统分区和所述系统级芯片硬件系统的系统内存分区来执行,所述设备参数分区与所述主控系统分区隔离也和所述系统内存分区隔离。如此,通过分区隔离,有助于确保与主控系统解耦化,有助于确保存储和维护所述外设设备参数文档是独立于主控系统的运行,例如,操作系统的烧写、擦除和更新均不会影响设备参数分区。并且,所述主控系统的运行通过所述主控系统分区和所述系统级芯片硬件系统的系统内存分区来执行,这意味着,在维持主控系统正常运行和数据业务处理的同时,可以对设备参数分区进行改动而不会影响当前业务的正常运行,这样有助于提前将需要调试和更换参数的外设信息导入到设备参数分区中的外设设备参数文档,从而可以在当前业务结束后的业务空档期进行外设适配,提高整体效率。Continuing to refer to FIG. 2, after step S210, execute step S220. In step S220, the peripheral device parameter document is stored and maintained through the device parameter partition of the system-on-chip hardware system, the main control system of the system-on-chip hardware system is stored in the main control system partition of the system-on-chip hardware system and the operation of the main control system is executed through the main control system partition and the system memory partition of the system-on-chip hardware system, and the device parameter partition is isolated from the main control system partition and also from the system memory partition. In this way, partition isolation helps to ensure decoupling from the main control system, and helps to ensure that the storage and maintenance of the peripheral device parameter document is independent of the operation of the main control system, for example, the burning, erasing and updating of the operating system will not affect the device parameter partition. Furthermore, the operation of the main control system is executed through the main control system partition and the system memory partition of the system-level chip hardware system. This means that while maintaining the normal operation of the main control system and data business processing, the device parameter partition can be modified without affecting the normal operation of the current business. This helps to import the peripheral information that needs to be debugged and the parameters changed into the peripheral device parameter document in the device parameter partition in advance, so that the peripheral adaptation can be performed during the business gap after the current business ends, thereby improving overall efficiency.

继续参阅图2,在步骤S220之后,执行步骤S230。在步骤S230,响应于所述待验证产品的在所述主控系统下的基于第一产品规格的验证,至少在用于验证所述待验证产品的软件开机之前,解析所述设备参数分区中的所述外设设备参数文档,从而确定与所述第一产品规格对应的一个或者多个外设各自的设备类型、型号和设备参数字段,以及选择性的确定所述一个或者多个外设中的具有相同的设备类型的外设各自的输入输出状态,进而得到第一解析结果,然后,使用所述第一解析结果进行外设参数初始化用于验证所述待验证产品。在步骤S210,生成待验证产品相关联的外设设备参数文档,这意味着将待验证产品所对应的可能的外设组合进行了分类和归纳,并且整理成特定的数据格式,并且,通过不同的输入输出状态标识来区分不同的输入输出状态进而区别具有相同的设备类型的外设。在步骤S220,通过分区隔离,确保存储和维护所述外设设备参数文档是独立于主控系统的运行,因此实现了外设设备参数文档的管理是与主控系统解耦化。如此,在待验证产品的各个环节,例如外设导入验证、研发调试、版本发布以及产品规格升级等,通过独立于主控系统来管理外设设备参数文档,可以充分发挥在硬件选型后进行调试验证就已经完成关键工作的优势,通过保留系统级芯片硬件系统的设备参数分区作为预留的存储区域以便存储和维护所述外设设备参数文档,使得外设适配工作可以与主控系统解耦,可以抽离需要反复调试的参数,交由硬件独立调试,并且单个产品的测试结果可以等效至其他产品。这里,在步骤S230,待验证产品的产品规格可能有多种,用于适应不同的用户需求和设计规范。例如,图1所示的产品规格A180和产品规格B181都采用主控系统A102但是采用了不同的外设组成。响应于所述待验证产品的在所述主控系统下的基于第一产品规格的验证,在软件开机过程中提前读取存储在设备参数分区中的外设信息,并将每一类外设参数分别解析,如遇到同一类外设参数有两套及以上,则额外地读取输入输出状态,选定与输入输出状态匹配的记录进行索引,找到相应的外设参数。当外设需要进行参数初始化时,直接使用已经解析后的参数进行初始化。换句话说,响应于所述待验证产品的在所述主控系统下的基于第一产品规格的验证,至少在用于验证所述待验证产品的软件开机之前,解析所述设备参数分区中的所述外设设备参数文档,从而确定与所述第一产品规格对应的一个或者多个外设各自的设备类型、型号和设备参数字段,以及选择性的确定所述一个或者多个外设中的具有相同的设备类型的外设各自的输入输出状态,进而得到第一解析结果,然后,使用所述第一解析结果进行外设参数初始化用于验证所述待验证产品。这里,与所述第一产品规格对应的一个或者多个外设是基于第一产品规格而确定的。待验证产品的其它产品规格可能对应不同的外设组合,可以通过再次执行步骤S230来确定与其它产品规格对应的外设组合并且获取对应的解析结果,再利用对应其它产品规格的解析结果来进行外设参数化,从而确保了其它产品规格下的主控系统、外设及软件一起稳定工作。如此,通过分区隔离以及确保存储和维护所述外设设备参数文档是独立于主控系统的运行,可以利用外设设备参数文档来灵活地适配待验证产品的不同产品规格,软件可以只编译出一种产品版本并进行测试验证,可以将该方案拷贝到其它主控系统中,每个主控系统再分别选取一种产品版本进行测试验证。如此,外设设备参数文档作为外设支持文档,不与操作系统绑定,而是独立出来单独管理,对于不同的主控系统,只需要更新外设设备参数文档即可完成整个产品验证方案。Continuing to refer to FIG. 2, after step S220, step S230 is executed. In step S230, in response to the verification of the product to be verified based on the first product specification under the main control system, at least before the software for verifying the product to be verified is started, the peripheral device parameter document in the device parameter partition is parsed to determine the device type, model and device parameter field of one or more peripherals corresponding to the first product specification, and selectively determine the input and output status of the peripherals with the same device type in the one or more peripherals, thereby obtaining a first parsing result, and then using the first parsing result to initialize the peripheral parameters for verifying the product to be verified. In step S210, a peripheral device parameter document associated with the product to be verified is generated, which means that the possible peripheral combinations corresponding to the product to be verified are classified and summarized, and organized into a specific data format, and different input and output statuses are distinguished by different input and output status identifiers to distinguish peripherals with the same device type. In step S220, by partition isolation, it is ensured that the storage and maintenance of the peripheral device parameter document is independent of the operation of the main control system, so that the management of the peripheral device parameter document is decoupled from the main control system. In this way, in each link of the product to be verified, such as peripheral import verification, research and development debugging, version release and product specification upgrade, by managing the peripheral device parameter document independently of the main control system, the advantage of completing the key work by debugging and verification after hardware selection can be fully utilized, and the device parameter partition of the system-level chip hardware system is reserved as a reserved storage area to store and maintain the peripheral device parameter document, so that the peripheral adaptation work can be decoupled from the main control system, the parameters that need to be debugged repeatedly can be extracted, and the hardware can be debugged independently, and the test results of a single product can be equivalent to other products. Here, in step S230, there may be multiple product specifications for the product to be verified, which are used to adapt to different user needs and design specifications. For example, the product specifications A180 and product specifications B181 shown in Figure 1 both use the main control system A102 but use different peripheral components. In response to the verification of the product to be verified based on the first product specification under the main control system, the peripheral information stored in the device parameter partition is read in advance during the software startup process, and each type of peripheral parameters is parsed separately. If there are two or more sets of the same type of peripheral parameters, the input and output status is additionally read, and the record matching the input and output status is selected for indexing to find the corresponding peripheral parameters. When the peripheral needs to be initialized, the parsed parameters are directly used for initialization. In other words, in response to the verification of the product to be verified based on the first product specification under the main control system, at least before the software for verifying the product to be verified is started, the peripheral device parameter document in the device parameter partition is parsed, so as to determine the device type, model and device parameter field of one or more peripherals corresponding to the first product specification, and selectively determine the input and output status of each peripheral with the same device type among the one or more peripherals, thereby obtaining a first parsing result, and then, the first parsing result is used to initialize the peripheral parameters for verifying the product to be verified. Here, the one or more peripherals corresponding to the first product specification are determined based on the first product specification. Other product specifications of the product to be verified may correspond to different peripheral combinations. The peripheral combinations corresponding to other product specifications can be determined by executing step S230 again and obtaining the corresponding analysis results. The analysis results corresponding to other product specifications are then used to parameterize the peripherals, thereby ensuring that the main control system, peripherals and software under other product specifications work stably together. In this way, by partitioning and isolating and ensuring that the storage and maintenance of the peripheral device parameter document are independent of the operation of the main control system, the peripheral device parameter document can be used to flexibly adapt to the different product specifications of the product to be verified. The software can only compile one product version and test and verify it. The solution can be copied to other main control systems, and each main control system selects a product version for test and verification. In this way, the peripheral device parameter document, as a peripheral support document, is not bound to the operating system, but is independently managed separately. For different main control systems, only the peripheral device parameter document needs to be updated to complete the entire product verification solution.

图2所示的用于产品验证的外设适配方法,为每个主控系统提供一份外设设备参数文档,并且,通过分区隔离以及确保存储和维护所述外设设备参数文档是独立于主控系统的运行,实现了外设设备参数文档的管理是与主控系统解耦化。通过保留系统级芯片硬件系统的设备参数分区作为预留的存储区域以便存储和维护所述外设设备参数文档,使得外设适配工作可以与主控系统解耦,可以抽离需要反复调试的参数,交由硬件独立调试,并且单个产品的测试结果可以等效至其他产品。另外,通过不同的输入输出状态标识来区分不同的输入输出状态进而区别具有相同的设备类型的外设,这样后续流程中,如遇到同一类外设参数有两套及以上,则额外地读取输入输出状态,选定与输入输出状态匹配的记录进行索引,找到相应的外设参数。这样意味着,多个外设中,无论是否具有相同的设备类型或者不同的设备类型,每一个外设都是被单独对待,并且每一个外设分别按照特定的数据结构来记录该外设的外设信息,这样是为了后续的解析外设信息以及利用解析后的参数进行初始化。并且,所述主控系统的运行通过所述主控系统分区和所述系统级芯片硬件系统的系统内存分区来执行,这意味着,在维持主控系统正常运行和数据业务处理的同时,可以对设备参数分区进行改动而不会影响当前业务的正常运行,这样有助于提前将需要调试和更换参数的外设信息导入到设备参数分区中的外设设备参数文档,从而可以在当前业务结束后的业务空档期进行外设适配,提高整体效率。总之,图2所示的用于产品验证的外设适配方法,实现了外设设备参数文档的管理是与主控系统解耦化,在待验证产品的各个环节,例如外设导入验证、研发调试、版本发布以及产品规格升级等,通过独立于主控系统来管理外设设备参数文档,可以充分发挥在硬件选型后进行调试验证就已经完成关键工作的优势;不依赖某种主控系统,也不依赖任何外设类型,将外设设备参数的更新与管理与特定的平台及产品解耦化,有效克服了围绕主控系统来设计的产品验证方案的工作量大且耗时长的弊端,有利于增加新的外设或者替换既有的外设,也有利于推广和复刻产品验证方案;节省了多个部门参与和人力投入,通过填写外设参数并烧写到产品上实现开机验证,也节省了软件编译版本和文档更新的工作量,文档不再需要每个操作系统都更新,只需要更新一份独立的外设支持列表即可,不同种类的操作系统共用同一份支持列表;通过大幅降低产品验证的时间和人力投入,提高了产品推广速度,降低了下游厂商在不同产品之间切换的学习成本,也降低了外设升级时的风险,只需要更新设备参数分区即可,也降低了升级过程中存在死机或者升级失败等问题导致产品彻底无法使用和需要返厂维修的风险。The peripheral device adaptation method for product verification shown in FIG2 provides a peripheral device parameter document for each main control system, and through partition isolation and ensuring that the storage and maintenance of the peripheral device parameter document are independent of the operation of the main control system, the management of the peripheral device parameter document is decoupled from the main control system. By retaining the device parameter partition of the system-level chip hardware system as a reserved storage area for storing and maintaining the peripheral device parameter document, the peripheral device adaptation work can be decoupled from the main control system, the parameters that need to be repeatedly debugged can be extracted and handed over to the hardware for independent debugging, and the test results of a single product can be equivalent to other products. In addition, different input and output status identifiers are used to distinguish different input and output states and then distinguish peripherals with the same device type. In this way, in the subsequent process, if there are two or more sets of the same type of peripheral parameters, the input and output status is additionally read, and the records matching the input and output status are selected for indexing to find the corresponding peripheral parameters. This means that among multiple peripherals, no matter whether they are of the same device type or different device types, each peripheral is treated separately, and each peripheral records the peripheral information of the peripheral according to a specific data structure, so as to parse the peripheral information and initialize it with the parsed parameters. In addition, the operation of the main control system is executed through the main control system partition and the system memory partition of the system-on-chip hardware system, which means that while maintaining the normal operation of the main control system and data service processing, the device parameter partition can be modified without affecting the normal operation of the current business. This helps to import the peripheral information that needs to be debugged and the parameters replaced into the peripheral device parameter document in the device parameter partition in advance, so that the peripheral adaptation can be performed during the business idle period after the current business ends, thereby improving the overall efficiency. In summary, the peripheral adaptation method for product verification shown in Figure 2 realizes the management of peripheral device parameter documents is decoupled from the main control system. In various links of the product to be verified, such as peripheral import verification, R&D debugging, version release and product specification upgrade, by managing peripheral device parameter documents independently of the main control system, it can give full play to the advantage of completing the key work of debugging and verification after hardware selection; it does not rely on a certain main control system or any peripheral type, and decouples the update and management of peripheral device parameters from specific platforms and products, effectively overcoming the disadvantages of large workload and long time consumption of product verification solutions designed around the main control system, which is conducive to adding new peripherals or replacing existing peripherals, and is also conducive to promoting Guanghe replicated the product verification solution; it saved the participation of multiple departments and manpower investment. By filling in the peripheral parameters and burning them to the product to achieve power-on verification, it also saved the workload of software compilation version and document update. The document no longer needs to be updated for each operating system. Only an independent peripheral support list needs to be updated. Different types of operating systems share the same support list; by greatly reducing the time and manpower investment in product verification, the speed of product promotion is increased, the learning cost of downstream manufacturers switching between different products is reduced, and the risk of peripheral upgrades is reduced. Only the device parameter partition needs to be updated, which also reduces the risk of the product being completely unusable and needing to be returned to the factory for repair due to problems such as freezing or upgrade failure during the upgrade process.

图3为本申请实施例提供的一种参考图2所示的用于产品验证的外设适配方法的系统级芯片硬件系统的示意图。如图3所示,系统级芯片硬件系统302包括主控系统分区303、系统内存分区304和设备参数分区305。通过系统级芯片硬件系统302的设备参数分区305,存储和维护所述外设设备参数文档310,所述系统级芯片硬件系统302的主控系统被存储在所述系统级芯片硬件系统302的主控系统分区303并且所述主控系统的运行通过所述主控系统分区303和所述系统级芯片硬件系统302的系统内存分区304来执行,所述设备参数分区305与所述主控系统分区303隔离也和所述系统内存分区304隔离。外设设备参数文档310包括多个外设各自的设备类型、型号和设备参数字段,所述多个外设中具有相同的设备类型的外设各自具有不同的输入输出状态,并且,不同的输入输出状态通过不同的输入输出状态标识来区分。图3中示例性示出了,外设设备参数文档310记录了系统级芯片硬件系统302的主控系统所对应的可能的外设组合,包括类型A320的输入输出状态A351的外设A330,类型B322的外设B331,类型A320的输入输出状态B352的外设C332,类型C324的外设D333,类型D326的外设E334,类型E328的外设F335。FIG3 is a schematic diagram of a system-on-chip hardware system for a peripheral adaptation method for product verification provided by an embodiment of the present application with reference to FIG2. As shown in FIG3, the system-on-chip hardware system 302 includes a main control system partition 303, a system memory partition 304, and a device parameter partition 305. The peripheral device parameter document 310 is stored and maintained through the device parameter partition 305 of the system-on-chip hardware system 302. The main control system of the system-on-chip hardware system 302 is stored in the main control system partition 303 of the system-on-chip hardware system 302, and the operation of the main control system is performed through the main control system partition 303 and the system memory partition 304 of the system-on-chip hardware system 302. The device parameter partition 305 is isolated from the main control system partition 303 and the system memory partition 304. The peripheral device parameter document 310 includes the device type, model, and device parameter fields of multiple peripherals, and the peripherals with the same device type in the multiple peripherals each have different input and output states, and different input and output states are distinguished by different input and output state identifiers. FIG3 exemplifies a diagram showing that a peripheral device parameter document 310 records possible peripheral combinations corresponding to a main control system of a system-on-chip hardware system 302, including a peripheral A330 of type A320 with an input-output status A351, a peripheral B331 of type B322, a peripheral C332 of type A320 with an input-output status B352, a peripheral D333 of type C324, a peripheral E334 of type D326, and a peripheral F335 of type E328.

参阅图2和图3,可以看出,实现了外设设备参数文档的管理是与主控系统解耦化,在待验证产品的各个环节,例如外设导入验证、研发调试、版本发布以及产品规格升级等,通过独立于主控系统来管理外设设备参数文档,可以充分发挥在硬件选型后进行调试验证就已经完成关键工作的优势;不依赖某种主控系统,也不依赖任何外设类型,将外设设备参数的更新与管理与特定的平台及产品解耦化,有效克服了围绕主控系统来设计的产品验证方案的工作量大且耗时长的弊端,有利于增加新的外设或者替换既有的外设,也有利于推广和复刻产品验证方案;节省了多个部门参与和人力投入,通过填写外设参数并烧写到产品上实现开机验证,也节省了软件编译版本和文档更新的工作量,文档不再需要每个操作系统都更新,只需要更新一份独立的外设支持列表即可,不同种类的操作系统共用同一份支持列表;通过大幅降低产品验证的时间和人力投入,提高了产品推广速度,降低了下游厂商在不同产品之间切换的学习成本,也降低了外设升级时的风险,只需要更新设备参数分区即可,也降低了升级过程中存在死机或者升级失败等问题导致产品彻底无法使用和需要返厂维修的风险。Referring to Figures 2 and 3, it can be seen that the management of peripheral device parameter documents is decoupled from the main control system. In various links of the product to be verified, such as peripheral import verification, R&D debugging, version release, and product specification upgrade, the management of peripheral device parameter documents independently of the main control system can give full play to the advantage of completing the key work of debugging and verification after hardware selection; it does not rely on a certain main control system or any peripheral type, and decouples the update and management of peripheral device parameters from specific platforms and products, effectively overcoming the drawbacks of large workload and long time consumption of product verification solutions designed around the main control system, which is conducive to adding new peripherals or replacing existing peripherals, and is also conducive to promotion and replication. Product verification solution; saves the participation and manpower investment of multiple departments, realizes power-on verification by filling in peripheral parameters and burning them to the product, and also saves the workload of software compilation version and document update. The document no longer needs to be updated for each operating system. Only an independent peripheral support list needs to be updated. Different types of operating systems share the same support list; by greatly reducing the time and manpower investment of product verification, the speed of product promotion is increased, the learning cost of downstream manufacturers switching between different products is reduced, and the risk of peripheral upgrades is reduced. Only the device parameter partition needs to be updated, which also reduces the risk of freezing or upgrade failure during the upgrade process, which makes the product completely unusable and needs to be returned to the factory for repair.

参阅图2和图3,在一种可能的实施方式中,通过所述系统级芯片硬件系统的所述设备参数分区,存储和维护所述外设设备参数文档,包括:更新所述外设设备参数文档并存储更新后外设设备参数文档到所述设备参数分区。如此,通过分区隔离,确保存储和维护所述外设设备参数文档是独立于主控系统的运行,因此实现了外设设备参数文档的管理是与主控系统解耦化。如此,在待验证产品的各个环节,例如外设导入验证、研发调试、版本发布以及产品规格升级等,通过独立于主控系统来管理外设设备参数文档,可以充分发挥在硬件选型后进行调试验证就已经完成关键工作的优势,通过保留系统级芯片硬件系统的设备参数分区作为预留的存储区域以便存储和维护所述外设设备参数文档,使得外设适配工作可以与主控系统解耦,可以抽离需要反复调试的参数,交由硬件独立调试,并且单个产品的测试结果可以等效至其他产品。Referring to FIG. 2 and FIG. 3, in a possible implementation, the device parameter partition of the system-on-chip hardware system is used to store and maintain the peripheral device parameter document, including: updating the peripheral device parameter document and storing the updated peripheral device parameter document in the device parameter partition. In this way, by partition isolation, it is ensured that the storage and maintenance of the peripheral device parameter document is independent of the operation of the main control system, thereby realizing that the management of the peripheral device parameter document is decoupled from the main control system. In this way, in each link of the product to be verified, such as peripheral import verification, R&D debugging, version release, and product specification upgrade, by managing the peripheral device parameter document independently of the main control system, the advantage of having completed the key work by debugging and verifying after hardware selection can be fully utilized, and by retaining the device parameter partition of the system-on-chip hardware system as a reserved storage area for storing and maintaining the peripheral device parameter document, the peripheral adaptation work can be decoupled from the main control system, the parameters that need to be repeatedly debugged can be extracted, and the hardware can be debugged independently, and the test results of a single product can be equivalent to other products.

在一些实施例中,更新存储在所述设备参数分区中的所述外设设备参数文档独立于更新存储在所述主控系统分区中的所述主控系统。如此,实现了外设设备参数文档的管理是与主控系统解耦化,在待验证产品的各个环节,例如外设导入验证、研发调试、版本发布以及产品规格升级等,通过独立于主控系统来管理外设设备参数文档,可以充分发挥在硬件选型后进行调试验证就已经完成关键工作的优势;不依赖某种主控系统,也不依赖任何外设类型,将外设设备参数的更新与管理与特定的平台及产品解耦化,有效克服了围绕主控系统来设计的产品验证方案的工作量大且耗时长的弊端,有利于增加新的外设或者替换既有的外设,也有利于推广和复刻产品验证方案。In some embodiments, updating the peripheral device parameter document stored in the device parameter partition is independent of updating the main control system stored in the main control system partition. In this way, the management of the peripheral device parameter document is decoupled from the main control system. In various links of the product to be verified, such as peripheral import verification, R&D debugging, version release, and product specification upgrade, the management of the peripheral device parameter document independently of the main control system can give full play to the advantage of completing the key work of debugging and verification after hardware selection; it does not rely on a certain main control system or any peripheral type, and decouples the update and management of peripheral device parameters from specific platforms and products, effectively overcoming the drawbacks of large workload and long time consumption of product verification solutions designed around the main control system, which is conducive to adding new peripherals or replacing existing peripherals, and is also conducive to promoting and replicating product verification solutions.

在一些实施例中,更新所述外设设备参数文档,包括:增加新外设或者替换既有外设。如此,将外设设备参数的更新与管理与特定的平台及产品解耦化,有效克服了围绕主控系统来设计的产品验证方案的工作量大且耗时长的弊端,有利于增加新的外设或者替换既有的外设,也有利于推广和复刻产品验证方案。In some embodiments, updating the peripheral device parameter document includes: adding new peripherals or replacing existing peripherals. In this way, the updating and management of peripheral device parameters are decoupled from specific platforms and products, effectively overcoming the drawbacks of large workload and long time consumption of product verification solutions designed around the main control system, which is conducive to adding new peripherals or replacing existing peripherals, and is also conducive to promoting and replicating product verification solutions.

在一些实施例中,更新所述外设设备参数文档是通过填写预设表格中的字段数据,然后,基于所填写的表格来生成所述更新后外设设备参数文档,再然后,烧写所述更新后外设设备参数文档到所述待验证产品上。如此,有利于增加新的外设或者替换既有的外设,也有利于推广和复刻产品验证方案;节省了多个部门参与和人力投入,通过填写外设参数并烧写到产品上实现开机验证。In some embodiments, the peripheral device parameter document is updated by filling in the field data in a preset form, then generating the updated peripheral device parameter document based on the filled in form, and then burning the updated peripheral device parameter document to the product to be verified. This is conducive to adding new peripherals or replacing existing peripherals, and is also conducive to promoting and replicating product verification solutions; it saves the participation of multiple departments and manpower investment, and realizes power-on verification by filling in peripheral parameters and burning them to the product.

在一种可能的实施方式中,所述外设适配方法还包括:响应于所述待验证产品的在所述主控系统下的基于第二产品规格的验证,至少在用于验证所述待验证产品的软件开机之前,解析所述设备参数分区中的所述外设设备参数文档,从而确定与所述第二产品规格对应的第二解析结果,然后,使用所述第二解析结果进行外设参数初始化用于验证所述待验证产品。待验证产品的其它产品规格可能对应不同的外设组合,可以通过确定与其它产品规格对应的外设组合并且获取对应的解析结果,再利用对应其它产品规格的解析结果来进行外设参数化,从而确保了其它产品规格下的主控系统、外设及软件一起稳定工作。如此,节省了多个部门参与和人力投入,通过填写外设参数并烧写到产品上实现开机验证,也节省了软件编译版本和文档更新的工作量,文档不再需要每个操作系统都更新,只需要更新一份独立的外设支持列表即可,不同种类的操作系统共用同一份支持列表;通过大幅降低产品验证的时间和人力投入,提高了产品推广速度,降低了下游厂商在不同产品之间切换的学习成本,也降低了外设升级时的风险,只需要更新设备参数分区即可,也降低了升级过程中存在死机或者升级失败等问题导致产品彻底无法使用和需要返厂维修的风险。In a possible implementation, the peripheral adaptation method further includes: in response to the verification of the product to be verified based on the second product specification under the main control system, at least before the software for verifying the product to be verified is started, parsing the peripheral device parameter document in the device parameter partition, thereby determining a second parsing result corresponding to the second product specification, and then using the second parsing result to initialize the peripheral parameters for verifying the product to be verified. Other product specifications of the product to be verified may correspond to different peripheral combinations. By determining the peripheral combinations corresponding to other product specifications and obtaining the corresponding parsing results, and then using the parsing results corresponding to other product specifications to perform peripheral parameterization, it is ensured that the main control system, peripherals and software under other product specifications work stably together. In this way, the participation of multiple departments and manpower investment are saved. By filling in the peripheral parameters and burning them to the product to achieve power-on verification, the workload of software compilation version and document update is also saved. The document no longer needs to be updated for each operating system. Only an independent peripheral support list needs to be updated. Different types of operating systems share the same support list. By greatly reducing the time and manpower investment in product verification, the speed of product promotion is increased, the learning cost of downstream manufacturers switching between different products is reduced, and the risk of peripheral upgrades is reduced. Only the device parameter partition needs to be updated, which also reduces the risk of the product being completely unusable and needing to be returned to the factory for repair due to problems such as freezing or upgrade failure during the upgrade process.

在一种可能的实施方式中,不同的输入输出状态通过不同的输入输出状态标识来区分,包括:不超过四个的输入输出状态通过两比特位的输入输出状态标识来区分,或者,超过四个且不超过八个的输入输出状态通过三比特位的输入输出状态标识来区分。通过不同的输入输出状态标识来区分不同的输入输出状态进而区别具有相同的设备类型的外设,这样后续流程中,如遇到同一类外设参数有两套及以上,则额外地读取输入输出状态,选定与输入输出状态匹配的记录进行索引,找到相应的外设参数。这样意味着,多个外设中,无论是否具有相同的设备类型或者不同的设备类型,每一个外设都是被单独对待,并且每一个外设分别按照特定的数据结构来记录该外设的外设信息,这样是为了后续的解析外设信息以及利用解析后的参数进行初始化。In a possible implementation, different input and output states are distinguished by different input and output state identifiers, including: no more than four input and output states are distinguished by a two-bit input and output state identifier, or more than four and no more than eight input and output states are distinguished by a three-bit input and output state identifier. Different input and output states are distinguished by different input and output state identifiers, and then peripherals with the same device type are distinguished. In this way, in the subsequent process, if there are two or more sets of the same type of peripheral parameters, the input and output states are additionally read, and the records matching the input and output states are selected for indexing to find the corresponding peripheral parameters. This means that among multiple peripherals, regardless of whether they have the same device type or different device types, each peripheral is treated separately, and each peripheral records the peripheral information of the peripheral according to a specific data structure, so as to parse the peripheral information and initialize it using the parsed parameters.

在一种可能的实施方式中,存储在所述设备参数分区中的所述外设设备参数文档被加密用于防止参数盗取或者恶意篡改。如此,通过加密存储在所述设备参数分区中的所述外设设备参数文档,可以更有效地提高系统稳定性和安全性。In a possible implementation, the peripheral device parameter document stored in the device parameter partition is encrypted to prevent parameter theft or malicious tampering. Thus, by encrypting the peripheral device parameter document stored in the device parameter partition, system stability and security can be more effectively improved.

在一种可能的实施方式中,所述设备参数字段包括以下一项或者多项:显示屏尺寸、显示屏是否具备移动设备处理器接口、显示屏是否具备低电压差分信号接口、工作电压、工作频率、工作带宽、峰值功率、峰值电压。如此,提供了丰富的外设设备的定制化选项。In a possible implementation, the device parameter field includes one or more of the following: screen size, whether the screen has a mobile device processor interface, whether the screen has a low voltage differential signal interface, operating voltage, operating frequency, operating bandwidth, peak power, and peak voltage. In this way, a rich customization option for peripheral devices is provided.

在一种可能的实施方式中,所述设备类型是显示设备、摄像设备、存储设备或者网络设备。如此,有助于适配各种外设设备。In a possible implementation, the device type is a display device, a camera device, a storage device or a network device, which is helpful for adapting to various peripheral devices.

在一种可能的实施方式中,所述待验证产品的在所述主控系统下的基于所述第一产品规格的验证,被应用于所述待验证产品的开发测试阶段、调试阶段、产品升级阶段或者文档更新阶段。如此,实现了外设设备参数文档的管理是与主控系统解耦化,在待验证产品的各个环节,例如外设导入验证、研发调试、版本发布以及产品规格升级等,通过独立于主控系统来管理外设设备参数文档,可以充分发挥在硬件选型后进行调试验证就已经完成关键工作的优势。In a possible implementation, the verification of the product to be verified based on the first product specification under the main control system is applied to the development and testing phase, debugging phase, product upgrade phase or document update phase of the product to be verified. In this way, the management of the peripheral device parameter document is decoupled from the main control system. In various links of the product to be verified, such as peripheral import verification, R&D debugging, version release and product specification upgrade, the peripheral device parameter document is managed independently of the main control system, which can give full play to the advantage of completing key work by debugging and verification after hardware selection.

在一种可能的实施方式中,所述一个或者多个外设中存在满足预设逻辑关系的两个外设,所述第一解析结果中的所述两个外设各自的设备类型、型号和设备参数字段是基于所述预设逻辑关系来确定的,所述预设逻辑关系是主备关系、镜像关系或者并行关系。这里,主备关系意味着正常情况下作为主设备的外设保持工作,作为备用设备的外设则是在主设备无法正常工作如需要升级或者发生故障时才介入,因此,满足主备关系的两个外设之间在外设参数配置上一般保持一致,也就是所述两个外设各自的设备类型、型号和设备参数字段是基于所述预设逻辑关系来确定的。另外,镜像关系也意味着满足镜像关系的两个外设之间在外设参数配置上一般保持一致。另外,并行关系意味着满足并行关系的两个外设在一些关键外设参数,例如数据带宽等保持一致。通过预设逻辑关系来确定满足预设逻辑关系的两个外设各自的设备类型、型号和设备参数字段,可以更好地适配复杂多变的各种外设的应用场景。进一步地,参阅图2和图3,在一些实施例中,利用专门设计的数据结构,按照相应的设备类型,型号,设备参数进行梳理,将需要反复调试的设备参数事先准备好,然后由具体的外设硬件来告知应该采用哪一种设备参数,实现了外设适配,可以应用在设计阶段的仿真验证、生产阶段的测试,以及应用阶段的调试。在设备参数分区中的检索结果可用于判断当前外设的调试需求是否超出了事先准备的设备参数范围,如果检索没命中,则意味着参数超范围。如此,可以通过增加新的一套设备参数来升级设备参数分区,以及可选择性地增加新的输入输出状态,这样也就降低了调试难度,尽量复用既有设备参数来提高调试效率。另外,在参数没有超范围的基础上,可以基于设备之间的逻辑依赖关系来更好地实现外设适配。例如主备模式、镜像模式等一般意味着两套外设采用同样的设备参数,并行处理关系的多套外设则一般采用同样的时钟频率以便确保同步性,串行流水处理关系的多套外设则一般采用相同的输入数据位宽以便确保数据吞吐效率。如此,可以提高检索效率,更好地实现外设适配。In a possible implementation, there are two peripherals that meet the preset logical relationship among the one or more peripherals, and the device type, model and device parameter fields of the two peripherals in the first parsing result are determined based on the preset logical relationship, and the preset logical relationship is a master-slave relationship, a mirror relationship or a parallel relationship. Here, the master-slave relationship means that the peripheral as the main device keeps working under normal circumstances, and the peripheral as the backup device intervenes only when the main device cannot work normally, such as when it needs to be upgraded or fails. Therefore, the two peripherals that meet the master-slave relationship are generally consistent in the peripheral parameter configuration, that is, the device type, model and device parameter field of the two peripherals are determined based on the preset logical relationship. In addition, the mirror relationship also means that the two peripherals that meet the mirror relationship are generally consistent in the peripheral parameter configuration. In addition, the parallel relationship means that the two peripherals that meet the parallel relationship are consistent in some key peripheral parameters, such as data bandwidth. By determining the device type, model and device parameter field of the two peripherals that meet the preset logical relationship by the preset logical relationship, the application scenarios of various complex and changeable peripherals can be better adapted. Further, referring to FIG. 2 and FIG. 3, in some embodiments, a specially designed data structure is used to sort out the corresponding device type, model, and device parameters, and the device parameters that need to be debugged repeatedly are prepared in advance, and then the specific peripheral hardware is used to inform which device parameters should be used, so as to achieve peripheral adaptation, which can be applied to the simulation verification in the design stage, the test in the production stage, and the debugging in the application stage. The search results in the device parameter partition can be used to determine whether the debugging requirements of the current peripheral exceed the device parameter range prepared in advance. If the search does not hit, it means that the parameters are out of range. In this way, the device parameter partition can be upgraded by adding a new set of device parameters, and new input and output states can be selectively added, which reduces the difficulty of debugging and reuses the existing device parameters as much as possible to improve the debugging efficiency. In addition, on the basis that the parameters are not out of range, the peripheral adaptation can be better achieved based on the logical dependency between the devices. For example, the master-slave mode, the mirror mode, etc. generally mean that two sets of peripherals use the same device parameters, and multiple sets of peripherals in a parallel processing relationship generally use the same clock frequency to ensure synchronization, and multiple sets of peripherals in a serial pipeline processing relationship generally use the same input data bit width to ensure data throughput efficiency. In this way, the retrieval efficiency can be improved and peripheral adaptation can be better achieved.

图4是本申请实施例提供的一种计算设备的结构示意图,该计算设备400包括:一个或者多个处理器410、通信接口420以及存储器430。所述处理器410、通信接口420以及存储器430通过总线440相互连接。可选地,该计算设备400还可以包括输入/输出接口450,输入/输出接口450连接有输入/输出设备,用于接收用户设置的参数等。该计算设备400能够用于实现上述的本申请实施例中设备实施例或者系统实施例的部分或者全部功能;处理器410还能够用于实现上述的本申请实施例中方法实施例的部分或者全部操作步骤。例如,该计算设备400执行各种操作的具体实现可参照上述实施例中的具体细节,如处理器410用于执行上述方法实施例中部分或者全部步骤或者上述方法实施例中的部分或者全部操作。再例如,本申请实施例中,计算设备400可用于实现上述装置实施例中一个或者多个部件的部分或者全部功能,此外通信接口420具体可用于为了实现这些装置、部件的功能所必须的通讯功能等,以及处理器410具体可用于为了实现这些装置、部件的功能所必须的处理功能等。4 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application, and the computing device 400 includes: one or more processors 410, a communication interface 420 and a memory 430. The processor 410, the communication interface 420 and the memory 430 are interconnected via a bus 440. Optionally, the computing device 400 may also include an input/output interface 450, and the input/output interface 450 is connected to an input/output device for receiving parameters set by a user, etc. The computing device 400 can be used to implement some or all of the functions of the device embodiment or system embodiment in the above-mentioned embodiment of the present application; the processor 410 can also be used to implement some or all of the operating steps of the method embodiment in the above-mentioned embodiment of the present application. For example, the specific implementation of the various operations performed by the computing device 400 can refer to the specific details in the above-mentioned embodiments, such as the processor 410 is used to perform some or all of the steps in the above-mentioned method embodiment or some or all of the operations in the above-mentioned method embodiment. For another example, in an embodiment of the present application, the computing device 400 may be used to implement part or all of the functions of one or more components in the above-mentioned apparatus embodiment. In addition, the communication interface 420 may be specifically used to perform the communication functions necessary to implement the functions of these apparatuses and components, and the processor 410 may be specifically used to perform the processing functions necessary to implement the functions of these apparatuses and components.

应当理解的是,图4的计算设备400可以包括一个或者多个处理器410,并且多个处理器410可以按照并行化连接方式、串行化连接方式、串并行连接方式或者任意连接方式来协同提供处理能力,或者多个处理器410可以构成处理器序列或者处理器阵列,或者多个处理器410之间可以分成主处理器和辅助处理器,或者多个处理器410之间可以具有不同的架构如采用异构计算架构。另外,图4所示的计算设备400,相关的结构性描述及功能性描述是示例性且非限制性的。在一些示例性实施例中,计算设备400可以包括比图4所示的更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者具有不同的部件布置。It should be understood that the computing device 400 of FIG. 4 may include one or more processors 410, and the multiple processors 410 may provide processing capabilities in a coordinated manner in a parallel connection mode, a serial connection mode, a serial-parallel connection mode, or an arbitrary connection mode, or the multiple processors 410 may constitute a processor sequence or a processor array, or the multiple processors 410 may be divided into a main processor and an auxiliary processor, or the multiple processors 410 may have different architectures such as a heterogeneous computing architecture. In addition, the computing device 400 shown in FIG. 4, the related structural description and functional description are exemplary and non-restrictive. In some exemplary embodiments, the computing device 400 may include more or fewer components than those shown in FIG. 4, or combine some components, or split some components, or have a different arrangement of components.

处理器410可以有多种具体实现形式,例如处理器410可以包括中央处理器(central processing unit,CPU)、图形处理器(graphic processing unit,GPU)、神经网络处理器(neural-network processing unit,NPU)、张量处理器(tensor processingunit,TPU)或数据处理器(data processing unit,DPU)等一种或多种的组合,本申请实施例不做具体限定。处理器410还可以是单核处理器或多核处理器。处理器410可以由CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(application-specific integratedcircuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。处理器410也可以单独采用内置处理逻辑的逻辑器件来实现,例如FPGA或数字信号处理器(digital signal processor,DSP)等。通信接口420可以为有线接口或无线接口,用于与其他模块或设备进行通信,有线接口可以是以太接口、局域互联网络(local interconnect network,LIN)等,无线接口可以是蜂窝网络接口或使用无线局域网接口等。The processor 410 may have a variety of specific implementation forms. For example, the processor 410 may include a central processing unit (CPU), a graphic processing unit (GPU), a neural-network processing unit (NPU), a tensor processing unit (TPU) or a data processing unit (DPU), etc., and the embodiment of the present application does not specifically limit it. The processor 410 may also be a single-core processor or a multi-core processor. The processor 410 may be a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The processor 410 may also be implemented using a logic device with built-in processing logic alone, such as an FPGA or a digital signal processor (DSP). The communication interface 420 may be a wired interface or a wireless interface for communicating with other modules or devices. The wired interface may be an Ethernet interface, a local interconnect network (LIN), etc., and the wireless interface may be a cellular network interface or a wireless local area network interface, etc.

存储器430可以是非易失性存储器,例如,只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。存储器430也可以是易失性存储器,易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhancedSDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。存储器430也可用于存储程序代码和数据,以便于处理器410调用存储器430中存储的程序代码执行上述方法实施例中的部分或者全部操作步骤,或者执行上述设备实施例中的相应功能。此外,计算设备400可能包含相比于图4展示的更多或者更少的组件,或者有不同的组件配置方式。The memory 430 may be a non-volatile memory, such as a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The memory 430 may also be a volatile memory, which may be a random access memory (RAM) used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM). The memory 430 can also be used to store program codes and data, so that the processor 410 calls the program codes stored in the memory 430 to execute some or all of the operation steps in the above method embodiments, or to execute the corresponding functions in the above device embodiments. In addition, the computing device 400 may include more or fewer components than those shown in FIG. 4, or have different component configurations.

总线440可以是快捷外围部件互连标准(peripheral component interconnectexpress,PCIe)总线,或扩展工业标准结构(extended industry standard architecture,EISA)总线、统一总线(unified bus,Ubus或UB)、计算机快速链接(compute express link,CXL)、缓存一致互联协议(cache coherent interconnect for accelerators,CCIX)等。总线440可以分为地址总线、数据总线、控制总线等。总线440除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 440 may be a peripheral component interconnect express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc. The bus 440 may be divided into an address bus, a data bus, a control bus, etc. In addition to the data bus, the bus 440 may also include a power bus, a control bus, and a status signal bus, etc. However, for the sake of clarity, FIG. 4 is represented by only one thick line, but it does not mean that there is only one bus or one type of bus.

本申请实施例提供的方法和设备是基于同一发明构思的,由于方法及设备解决问题的原理相似,因此方法与设备的实施例、实施方式、示例或实现方式可以相互参见,其中重复之处不再赘述。本申请实施例还提供一种系统,该系统包括多个计算设备,每个计算设备的结构可以参照上述所描述的计算设备的结构。该系统可实现的功能或者操作可以参照上述方法实施例中的具体实现步骤和/或上述装置实施例中所描述的具体功能,在此不再赘述。The method and device provided in the embodiments of the present application are based on the same inventive concept. Since the principles of solving the problems in the methods and devices are similar, the embodiments, implementation methods, examples or implementation methods of the methods and devices can refer to each other, and the repeated parts will not be repeated. The embodiments of the present application also provide a system, which includes multiple computing devices, and the structure of each computing device can refer to the structure of the computing device described above. The functions or operations that can be implemented by the system can refer to the specific implementation steps in the above method embodiments and/or the specific functions described in the above device embodiments, which will not be repeated here.

本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机设备(如一个或者多个处理器)上运行时可以实现上述方法实施例中的方法步骤。所述计算机可读存储介质的处理器在执行上述方法步骤的具体实现可参照上述方法实施例中所描述的具体操作和/或上述装置实施例中所描述的具体功能,在此不再赘述。The present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer device (such as one or more processors), the method steps in the above method embodiment can be implemented. The specific implementation of the processor of the computer-readable storage medium in executing the above method steps can refer to the specific operations described in the above method embodiment and/or the specific functions described in the above device embodiment, which will not be repeated here.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。本申请实施例可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载或执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(如软盘、硬盘、磁带)、光介质、或者半导体介质。半导体介质可以是固态硬盘,也可以是随机存取存储器,闪存,只读存储器,可擦可编程只读存储器,电可擦可编程只读存储器,寄存器或任何其他形式的合适存储介质。It should be understood by those skilled in the art that the embodiments of the present application may be provided as methods, systems, or computer program products. The present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. The embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiments of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. Computer-readable storage media can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media. Available media can be magnetic media (such as floppy disks, hard disks, tapes), optical media, or semiconductor media. Semiconductor media can be solid-state hard disks, random access memory, flash memory, read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, or any other form of suitable storage media.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述。可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。The present application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. Each flow and/or box in the flow chart and/or block diagram, and the combination of the flow chart and/or box in the flow chart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and/or one box or multiple boxes of the block chart. These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function specified in one flow chart or multiple flows and/or one box or multiple boxes of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的精神和范围。本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并或删减;本申请实施例系统中的模块可以根据实际需要进行划分、合并或删减。如果本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. The steps in the method of the embodiment of the present application can be adjusted in order, merged or deleted according to actual needs; the modules in the system of the embodiment of the present application can be divided, merged or deleted according to actual needs. If these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (14)

1.一种用于产品验证的外设适配方法,其特征在于,所述外设适配方法包括:1. A peripheral device adaptation method for product verification, characterized in that the peripheral device adaptation method comprises: 生成待验证产品相关联的外设设备参数文档,其中,所述外设设备参数文档包括多个外设各自的设备类型、型号和设备参数字段,所述多个外设中具有相同的设备类型的外设各自具有不同的输入输出状态,并且,不同的输入输出状态通过不同的输入输出状态标识来区分;Generate a peripheral device parameter document associated with the product to be verified, wherein the peripheral device parameter document includes a device type, a model, and a device parameter field of each of the plurality of peripherals, and peripherals with the same device type among the plurality of peripherals each have a different input and output state, and the different input and output states are distinguished by different input and output state identifiers; 通过系统级芯片硬件系统的设备参数分区,存储和维护所述外设设备参数文档,所述系统级芯片硬件系统的主控系统被存储在所述系统级芯片硬件系统的主控系统分区并且所述主控系统的运行通过所述主控系统分区和所述系统级芯片硬件系统的系统内存分区来执行,所述设备参数分区与所述主控系统分区隔离也和所述系统内存分区隔离;The peripheral device parameter document is stored and maintained through the device parameter partition of the system-on-chip hardware system, the main control system of the system-on-chip hardware system is stored in the main control system partition of the system-on-chip hardware system and the operation of the main control system is performed through the main control system partition and the system memory partition of the system-on-chip hardware system, and the device parameter partition is isolated from the main control system partition and the system memory partition; 响应于所述待验证产品的在所述主控系统下的基于第一产品规格的验证,至少在用于验证所述待验证产品的软件开机之前,解析所述设备参数分区中的所述外设设备参数文档,从而确定与所述第一产品规格对应的一个或者多个外设各自的设备类型、型号和设备参数字段,以及选择性的确定所述一个或者多个外设中的具有相同的设备类型的外设各自的输入输出状态,进而得到第一解析结果,然后,使用所述第一解析结果进行外设参数初始化用于验证所述待验证产品。In response to the verification of the product to be verified based on the first product specification under the main control system, at least before the software used to verify the product to be verified is started, the peripheral device parameter document in the device parameter partition is parsed to determine the device type, model and device parameter field of one or more peripherals corresponding to the first product specification, and selectively determine the input and output status of each peripheral with the same device type among the one or more peripherals, so as to obtain a first parsing result, and then use the first parsing result to initialize the peripheral parameters for verifying the product to be verified. 2.根据权利要求1所述的外设适配方法,其特征在于,通过所述系统级芯片硬件系统的所述设备参数分区,存储和维护所述外设设备参数文档,包括:更新所述外设设备参数文档并存储更新后外设设备参数文档到所述设备参数分区。2. The peripheral adaptation method according to claim 1 is characterized in that the peripheral device parameter document is stored and maintained through the device parameter partition of the system-on-chip hardware system, including: updating the peripheral device parameter document and storing the updated peripheral device parameter document in the device parameter partition. 3.根据权利要求2所述的外设适配方法,其特征在于,更新存储在所述设备参数分区中的所述外设设备参数文档独立于更新存储在所述主控系统分区中的所述主控系统。3. The peripheral device adaptation method according to claim 2, characterized in that updating the peripheral device parameter document stored in the device parameter partition is independent of updating the main control system stored in the main control system partition. 4.根据权利要求2所述的外设适配方法,其特征在于,更新所述外设设备参数文档,包括:增加新外设或者替换既有外设。4. The peripheral adaptation method according to claim 2 is characterized in that updating the peripheral device parameter document includes: adding a new peripheral or replacing an existing peripheral. 5.根据权利要求2所述的外设适配方法,其特征在于,更新所述外设设备参数文档是通过填写预设表格中的字段数据,然后,基于所填写的表格来生成所述更新后外设设备参数文档,再然后,烧写所述更新后外设设备参数文档到所述待验证产品上。5. The peripheral adaptation method according to claim 2 is characterized in that the peripheral device parameter document is updated by filling in the field data in a preset form, and then, the updated peripheral device parameter document is generated based on the filled in form, and then, the updated peripheral device parameter document is burned to the product to be verified. 6.根据权利要求1所述的外设适配方法,其特征在于,所述外设适配方法还包括:6. The peripheral device adaptation method according to claim 1, characterized in that the peripheral device adaptation method further comprises: 响应于所述待验证产品的在所述主控系统下的基于第二产品规格的验证,至少在用于验证所述待验证产品的软件开机之前,解析所述设备参数分区中的所述外设设备参数文档,从而确定与所述第二产品规格对应的第二解析结果,然后,使用所述第二解析结果进行外设参数初始化用于验证所述待验证产品。In response to the verification of the product to be verified based on the second product specification under the main control system, at least before the software used to verify the product to be verified is started, the peripheral device parameter document in the device parameter partition is parsed to determine a second parsing result corresponding to the second product specification, and then the second parsing result is used to initialize the peripheral parameters for verifying the product to be verified. 7.根据权利要求1所述的外设适配方法,其特征在于,不同的输入输出状态通过不同的输入输出状态标识来区分,包括:不超过四个的输入输出状态通过两比特位的输入输出状态标识来区分,或者,超过四个且不超过八个的输入输出状态通过三比特位的输入输出状态标识来区分。7. The peripheral adaptation method according to claim 1 is characterized in that different input and output states are distinguished by different input and output state identifiers, including: no more than four input and output states are distinguished by a two-bit input and output state identifier, or more than four and no more than eight input and output states are distinguished by a three-bit input and output state identifier. 8.根据权利要求1所述的外设适配方法,其特征在于,存储在所述设备参数分区中的所述外设设备参数文档被加密用于防止参数盗取或者恶意篡改。8. The peripheral device adaptation method according to claim 1 is characterized in that the peripheral device parameter document stored in the device parameter partition is encrypted to prevent parameter theft or malicious tampering. 9.根据权利要求1所述的外设适配方法,其特征在于,所述设备参数字段包括以下一项或者多项:显示屏尺寸、显示屏是否具备移动设备处理器接口、显示屏是否具备低电压差分信号接口、工作电压、工作频率、工作带宽、峰值功率、峰值电压。9. The peripheral adaptation method according to claim 1 is characterized in that the device parameter field includes one or more of the following: display screen size, whether the display screen has a mobile device processor interface, whether the display screen has a low voltage differential signal interface, operating voltage, operating frequency, operating bandwidth, peak power, and peak voltage. 10.根据权利要求1所述的外设适配方法,其特征在于,所述设备类型是显示设备、摄像设备、存储设备或者网络设备。10 . The peripheral device adaptation method according to claim 1 , wherein the device type is a display device, a camera device, a storage device or a network device. 11.根据权利要求1所述的外设适配方法,其特征在于,所述待验证产品的在所述主控系统下的基于所述第一产品规格的验证,被应用于所述待验证产品的开发测试阶段、调试阶段、产品升级阶段或者文档更新阶段。11. The peripheral adaptation method according to claim 1 is characterized in that the verification of the product to be verified based on the first product specification under the main control system is applied to the development and testing stage, debugging stage, product upgrade stage or document update stage of the product to be verified. 12.根据权利要求1所述的外设适配方法,其特征在于,所述一个或者多个外设中存在满足预设逻辑关系的两个外设,所述第一解析结果中的所述两个外设各自的设备类型、型号和设备参数字段是基于所述预设逻辑关系来确定的,所述预设逻辑关系是主备关系、镜像关系或者并行关系。12. The peripheral adaptation method according to claim 1 is characterized in that there are two peripherals among the one or more peripherals that satisfy a preset logical relationship, and the device type, model and device parameter fields of each of the two peripherals in the first analysis result are determined based on the preset logical relationship, and the preset logical relationship is a master-slave relationship, a mirror relationship or a parallel relationship. 13.一种计算机设备,其特征在于,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现根据权利要求1至12中任一项所述的方法。13. A computer device, characterized in that the computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 12 when executing the computer program. 14.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机设备上运行时使得所述计算机设备执行根据权利要求1至12中任一项所述的方法。14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer device, the computer device is enabled to execute the method according to any one of claims 1 to 12.
CN202411308523.2A 2024-09-19 2024-09-19 Peripheral adaptation method for product verification, computer equipment and medium Active CN118820120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411308523.2A CN118820120B (en) 2024-09-19 2024-09-19 Peripheral adaptation method for product verification, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411308523.2A CN118820120B (en) 2024-09-19 2024-09-19 Peripheral adaptation method for product verification, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN118820120A true CN118820120A (en) 2024-10-22
CN118820120B CN118820120B (en) 2024-12-17

Family

ID=93071188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411308523.2A Active CN118820120B (en) 2024-09-19 2024-09-19 Peripheral adaptation method for product verification, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN118820120B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5586268A (en) * 1995-03-03 1996-12-17 Advanced System Products, Inc. Multiple peripheral adapter device driver architecture
CN202548828U (en) * 2012-04-10 2012-11-21 苏州朗昇通信科技有限公司 Debugging device
CN109508202A (en) * 2018-09-27 2019-03-22 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Drive development system, method and medium for embedded operating system
CN110502283A (en) * 2019-08-19 2019-11-26 深圳大趋智能科技有限公司 A kind of product peripheral hardware compatibility method and system
CN114706620A (en) * 2022-02-25 2022-07-05 瑞芯微电子股份有限公司 Parameter configuration method and device and computer readable medium
CN115576612A (en) * 2022-09-02 2023-01-06 广州市金其利信息科技有限公司 External device adaptation method and device, intelligent terminal and readable storage medium
CN117950751A (en) * 2024-01-29 2024-04-30 深圳市科曼医疗设备有限公司 Method, device, equipment and medium for adapting embedded product of kernel

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5586268A (en) * 1995-03-03 1996-12-17 Advanced System Products, Inc. Multiple peripheral adapter device driver architecture
CN202548828U (en) * 2012-04-10 2012-11-21 苏州朗昇通信科技有限公司 Debugging device
CN109508202A (en) * 2018-09-27 2019-03-22 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Drive development system, method and medium for embedded operating system
CN110502283A (en) * 2019-08-19 2019-11-26 深圳大趋智能科技有限公司 A kind of product peripheral hardware compatibility method and system
CN114706620A (en) * 2022-02-25 2022-07-05 瑞芯微电子股份有限公司 Parameter configuration method and device and computer readable medium
CN115576612A (en) * 2022-09-02 2023-01-06 广州市金其利信息科技有限公司 External device adaptation method and device, intelligent terminal and readable storage medium
CN117950751A (en) * 2024-01-29 2024-04-30 深圳市科曼医疗设备有限公司 Method, device, equipment and medium for adapting embedded product of kernel

Also Published As

Publication number Publication date
CN118820120B (en) 2024-12-17

Similar Documents

Publication Publication Date Title
WO2022105595A1 (en) Method and apparatus for upgrading system of embedded device, and embedded device
US20220244931A1 (en) Image file obtaining method and apparatus
CN111142896A (en) A method, device and readable medium for upgrading storage device firmware
CN114201360A (en) AER function management method, device, server and storage medium
CN102722382B (en) Method and the emulator of list item is loaded in simulation process
CN104035757A (en) MIPS-based (microprocessor without interlocked piped stages-based) U-boot (universal boot loader) transplantation implementing method
CN114546934A (en) File system migration method, device, device and storage medium
JP2008198060A (en) Information processing apparatus, patch code mounting system, electronic device, and patch code mounting method
CN115437700A (en) Method, device, system and medium for automatically configuring hardware resources of driver
CN107908418B (en) Method for upgrading logic program of fiber channel node card and fiber channel bus equipment
CN118760404A (en) Method for enabling optional read-only memory function, computer device and medium
CN111831539B (en) A test method and related products
CN118820120A (en) Peripheral device adaptation method, computer equipment and medium for product verification
CN113741954A (en) System software generation method and device, electronic equipment and storage medium
US12197316B2 (en) Automated decoupling of unit tests
CN112464596B (en) Regression testing method, system, device and readable storage medium
CN116414797A (en) Method, device, equipment and medium for copying system files
WO2022052739A1 (en) Device tree repair method and system, and computer-readable storage medium
CN112765924A (en) Chip verification method, device and system
CN112860314A (en) Code modeling method and device
CN111949278B (en) A method, system, terminal and storage medium for automatically installing MCS system
CN118409735B (en) YAT automation framework integrated extension method, device, terminal and storage medium
US11973651B1 (en) Enhanced hierarchical network automation
CN114328237A (en) Game debugging method, device, equipment and computer readable medium
CN118093062A (en) Interface calling method, chip and computing device

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