[go: up one dir, main page]

CN118277229A - Vehicle upgrade test method and device, electronic equipment and storage medium - Google Patents

Vehicle upgrade test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN118277229A
CN118277229A CN202211696398.8A CN202211696398A CN118277229A CN 118277229 A CN118277229 A CN 118277229A CN 202211696398 A CN202211696398 A CN 202211696398A CN 118277229 A CN118277229 A CN 118277229A
Authority
CN
China
Prior art keywords
controller
test
information
upgrade
simulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211696398.8A
Other languages
Chinese (zh)
Inventor
翟跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Co Wheels Technology Co Ltd
Original Assignee
Beijing Co Wheels Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Co Wheels Technology Co Ltd filed Critical Beijing Co Wheels Technology Co Ltd
Priority to CN202211696398.8A priority Critical patent/CN118277229A/en
Publication of CN118277229A publication Critical patent/CN118277229A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3698Environments for analysis, debugging or testing of software
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

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

Abstract

本申请涉及一种车辆升级测试方法、装置、电子设备及存储介质,涉及测试技术领域,其中方法包括:首先获取车辆升级测试所需的目标控制器的控制器信息;再根据所述控制器信息,将预先创建的至少一个虚拟机分别配置为与所述目标控制器对应的仿真控制器;然后利用配置得到的至少一个所述仿真控制器构建测试环境;进而在所述测试环境中进行车辆升级测试。通过应用本申请的技术方案,可有效节省车辆FOTA升级测试的成本,减少了对真实控制器的资源占用,并且减少了工程师搭建测试台架控制器安装布线的时间。由于不受真实控制器的资源限制。

The present application relates to a vehicle upgrade test method, device, electronic device and storage medium, and relates to the field of testing technology, wherein the method comprises: first obtaining the controller information of the target controller required for the vehicle upgrade test; then, according to the controller information, respectively configuring at least one pre-created virtual machine as a simulation controller corresponding to the target controller; then using the configured at least one simulation controller to build a test environment; and then performing a vehicle upgrade test in the test environment. By applying the technical solution of the present application, the cost of vehicle FOTA upgrade testing can be effectively saved, the resource occupation of the real controller can be reduced, and the time for engineers to build the test bench controller installation and wiring can be reduced. Because it is not limited by the resources of the real controller.

Description

车辆升级测试方法、装置、电子设备及存储介质Vehicle upgrade test method, device, electronic equipment and storage medium

技术领域Technical Field

本申请涉及测试技术领域,具体涉及一种车辆升级测试方法、装置、电子设备及存储介质。The present application relates to the field of testing technology, and in particular to a vehicle upgrade testing method, device, electronic equipment and storage medium.

背景技术Background technique

车辆可以通过网络来更新车辆的固件系统,如通过固件的空中下载软件升级(FOTA,Firmware Over-The-Air)技术。因此需要进行车辆的FOTA升级测试,以保证该功能的正确运转。The vehicle can update the vehicle's firmware system through the network, such as through the firmware over-the-air (FOTA) technology. Therefore, the vehicle's FOTA upgrade test is required to ensure the correct operation of this function.

目前,FOTA升级测试需要使用真实车辆进行测试,或者构建包含全部真实控制器的车辆测试台架进行测试,会造成车辆FOTA升级测试的成本较高。Currently, FOTA upgrade testing requires the use of real vehicles for testing, or the construction of a vehicle test bench containing all real controllers for testing, which will result in high costs for vehicle FOTA upgrade testing.

发明内容Summary of the invention

有鉴于此,本申请提供了一种车辆升级测试方法、装置、电子设备及存储介质,主要目的在于改善目前现有技术会造成车辆FOTA升级测试的成本较高的技术问题。In view of this, the present application provides a vehicle upgrade test method, device, electronic device and storage medium, the main purpose of which is to improve the technical problem that the current existing technology will cause high cost of vehicle FOTA upgrade testing.

第一方面,本申请提供了一种车辆升级测试方法,包括:In a first aspect, the present application provides a vehicle upgrade test method, comprising:

获取车辆升级测试所需的目标控制器的控制器信息;Obtain controller information of a target controller required for vehicle upgrade testing;

根据所述控制器信息,将预先创建的至少一个虚拟机分别配置为与所述目标控制器对应的仿真控制器;According to the controller information, at least one pre-created virtual machine is configured as a simulation controller corresponding to the target controller;

利用配置得到的至少一个所述仿真控制器构建测试环境;Using at least one of the simulation controllers obtained by configuration to build a test environment;

在所述测试环境中进行车辆升级测试。A vehicle upgrade test is performed in the test environment.

第二方面,本申请提供了一种车辆升级测试装置,包括:In a second aspect, the present application provides a vehicle upgrade test device, comprising:

获取模块,被配置为获取车辆升级测试所需的目标控制器的控制器信息;An acquisition module configured to acquire controller information of a target controller required for a vehicle upgrade test;

配置模块,被配置为根据所述控制器信息,将预先创建的至少一个虚拟机分别配置为与所述目标控制器对应的仿真控制器;a configuration module configured to configure at least one pre-created virtual machine as a simulation controller corresponding to the target controller according to the controller information;

构建模块,被配置为利用配置得到的至少一个所述仿真控制器构建测试环境;A construction module, configured to construct a test environment using at least one of the simulation controllers obtained by configuration;

测试模块,被配置为在所述测试环境中进行车辆升级测试。The test module is configured to perform a vehicle upgrade test in the test environment.

第三方面,本申请提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的车辆升级测试方法。In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the vehicle upgrade test method described in the first aspect.

第四方面,本申请提供了一种电子设备,包括存储介质、处理器及存储在存储介质上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现第一方面所述的车辆升级测试方法。In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the vehicle upgrade test method described in the first aspect when executing the computer program.

借由上述技术方案,本申请提供的一种车辆升级测试方法、装置、电子设备及存储介质,与目前现有技术相比,本申请可使用虚拟机配置的仿真控制器,来代替部分真实控制器进行升级测试。具体可首先获取车辆升级测试所需的目标控制器的控制器信息;再根据该控制器信息,将预先创建的至少一个虚拟机分别配置为与目标控制器各自对应的仿真控制器;然后利用配置得到的至少一个仿真控制器构建测试环境;进而可在该测试环境中进行车辆的升级测试。通过应用本申请的技术方案,可有效节省车辆FOTA升级测试的成本,减少了对真实控制器的资源占用,并且减少了工程师搭建测试台架控制器安装布线的时间。由于不受真实控制器的资源限制,因此可以配置更多的测试台架以增加测试时长,以及提高测试的次数,进而可发现更多的产品问题。By means of the above technical scheme, the present application provides a vehicle upgrade test method, device, electronic device and storage medium. Compared with the current prior art, the present application can use a simulation controller configured by a virtual machine to replace part of the real controller for upgrade testing. Specifically, the controller information of the target controller required for the vehicle upgrade test can be obtained first; then, according to the controller information, at least one pre-created virtual machine is configured as a simulation controller corresponding to each target controller; then, a test environment is constructed using the configured at least one simulation controller; and then the vehicle upgrade test can be performed in the test environment. By applying the technical scheme of the present application, the cost of vehicle FOTA upgrade testing can be effectively saved, the resource occupation of the real controller can be reduced, and the time for engineers to build the test bench controller installation and wiring can be reduced. Since it is not limited by the resources of the real controller, more test benches can be configured to increase the test time and increase the number of tests, so that more product problems can be discovered.

上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

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

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

图1示出了本申请实施例提供的一种车辆升级测试方法的流程示意图;FIG1 is a schematic diagram showing a flow chart of a vehicle upgrade test method provided in an embodiment of the present application;

图2示出了本申请实施例提供的另一种车辆升级测试方法的流程示意图;FIG2 is a schematic diagram showing a flow chart of another vehicle upgrade test method provided in an embodiment of the present application;

图3示出了本申请实施例提供的一种示例通信结构的示意图;FIG3 is a schematic diagram showing an exemplary communication structure provided in an embodiment of the present application;

图4示出了本申请实施例提供的虚拟仿真节点功能的示意图;FIG4 is a schematic diagram showing a virtual simulation node function provided by an embodiment of the present application;

图5示出了本申请实施例提供的一种车辆升级测试装置的结构示意图。FIG5 shows a schematic structural diagram of a vehicle upgrade test device provided in an embodiment of the present application.

具体实施方式Detailed ways

为了能够更清楚地理解本申请的上述目的、特征和优点,下面将对本申请的方案进行进一步描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

为了改善目前现有技术会造成车辆FOTA升级测试的成本较高的技术问题。本实施例提供了一种车辆升级测试方法,如图1所示,该方法包括:In order to improve the technical problem that the existing technology causes high cost of vehicle FOTA upgrade test, this embodiment provides a vehicle upgrade test method, as shown in FIG1 , the method includes:

步骤101、获取车辆升级测试所需的目标控制器的控制器信息。Step 101: Obtain controller information of a target controller required for a vehicle upgrade test.

目标控制器可为车辆升级测试所需的真实控制器。该目标控制器的控制器信息可为目标控制器的配置信息文件,具体可包括:目标控制器的固件系统信息、通信数据库(可存储有控制器的数据和与其他控制器交互的数据等)和数据处理规则信息(如系统版本升级时的处理规则、与其他控制器之间的信息交互处理规则等)等。The target controller may be a real controller required for vehicle upgrade testing. The controller information of the target controller may be a configuration information file of the target controller, which may specifically include: firmware system information of the target controller, communication database (which may store controller data and data interacting with other controllers, etc.), and data processing rule information (such as processing rules for system version upgrades, information interaction processing rules with other controllers, etc.).

例如,可从预设数据库中,通过该目标控制器的标识,获取该目标控制器的控制器信息,其中,预设数据库中保存有各个不同控制器的控制器信息。For example, the controller information of the target controller may be obtained from a preset database through the identifier of the target controller, wherein the preset database stores the controller information of various controllers.

步骤102、根据目标控制器的控制器信息,将预先创建得到的至少一个虚拟机分别配置为与目标控制器对应的仿真控制器。Step 102: According to the controller information of the target controller, at least one pre-created virtual machine is configured as a simulation controller corresponding to the target controller.

本实施例可预先创建至少一个虚拟机。其中,虚拟机是指可以像真实机器一样运行程序的计算机的软件实现。对于本实施例,可在虚拟机中利用虚拟机配置软件工具进行配置得到目标控制器对应的仿真控制器。In this embodiment, at least one virtual machine may be created in advance. A virtual machine refers to a software implementation of a computer that can run programs like a real machine. In this embodiment, a virtual machine configuration software tool may be used in the virtual machine to configure a simulation controller corresponding to the target controller.

例如,针对车辆升级测试所需的这些目标控制器,在测试计算机(工作台)中创建与这些目标控制器分别对应的虚拟机,这些虚拟机可被配置为相应的仿真控制器,其中,一个虚拟机对应一个目标控制器的仿真控制器。这些仿真控制器可认为是虚拟的电子控制单元(Electronic Control Unit,ECU)。在对虚拟机进行配置的过程中,可根据目标控制器的控制器信息,即真实控制器的数据处理逻辑进行相应的配置操作。配置得到的仿真控制器,可在车辆FOTA升级中模拟出对应真实控制器的数据处理行为,进而可实现利用该仿真控制器,来代替对应真实控制器进行车辆FOTA升级测试。For example, for the target controllers required for vehicle upgrade testing, virtual machines corresponding to these target controllers are created in the test computer (workbench), and these virtual machines can be configured as corresponding simulation controllers, wherein one virtual machine corresponds to a simulation controller of a target controller. These simulation controllers can be considered as virtual electronic control units (ECUs). In the process of configuring the virtual machines, corresponding configuration operations can be performed according to the controller information of the target controller, that is, the data processing logic of the real controller. The configured simulation controller can simulate the data processing behavior of the corresponding real controller in the vehicle FOTA upgrade, and then the simulation controller can be used to replace the corresponding real controller for vehicle FOTA upgrade testing.

步骤103、利用配置得到的至少一个仿真控制器构建测试环境。Step 103: construct a test environment using at least one simulation controller obtained through configuration.

测试环境可包括整车测试台架、小型测试台架、或者是多个测试台架的组合等,具体可根据测试需要选择构建对应的测试环境。在本实施例中,可利用配置得到的仿真控制器来代替部分或者全部真实控制器进行构建测试环境,与目前现有技术相比,可减少工程师搭建测试台架控制器安装布线的时间。The test environment may include a vehicle test bench, a small test bench, or a combination of multiple test benches, etc. The corresponding test environment can be selected according to the test needs. In this embodiment, the configured simulation controller can be used to replace part or all of the real controller to build the test environment, which can reduce the time for engineers to build the test bench controller and install the wiring compared with the current existing technology.

步骤104、在构建得到的测试环境中进行车辆升级测试。Step 104: Perform vehicle upgrade test in the constructed test environment.

车辆FOTA升级测试可包括:目标控制器的更新信息下载流程、升级流程、控制器间的信息交互、状态上报、外设升级、版本管理等测试内容。Vehicle FOTA upgrade testing may include: target controller update information download process, upgrade process, information interaction between controllers, status reporting, peripheral upgrades, version management and other test contents.

与目前现有技术相比,本实施例可使用虚拟机配置的仿真控制器,来代替部分真实控制器进行升级测试。可有效节省车辆FOTA升级测试的成本,减少了对真实控制器的资源占用,并且减少了工程师搭建测试台架控制器安装布线的时间。由于不受真实控制器的资源限制,因此可以配置更多的测试台架以增加测试时长,以及提高测试的次数,进而可发现更多的产品问题。Compared with the current existing technology, this embodiment can use the simulated controller configured by the virtual machine to replace part of the real controller for upgrade testing. It can effectively save the cost of vehicle FOTA upgrade testing, reduce the resource occupation of the real controller, and reduce the time for engineers to build the test bench controller installation and wiring. Since it is not limited by the resources of the real controller, more test benches can be configured to increase the test time and the number of tests, thereby discovering more product problems.

进一步的,作为上述实施例的细化和扩展,为了完整说明本实施例方法的具体实现过程,本实施例提供了如图2所示的具体方法,该方法包括:Further, as a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of this embodiment, this embodiment provides a specific method as shown in FIG. 2, which includes:

步骤201、获取车辆升级测试所需的目标控制器的控制器信息。Step 201: Obtain controller information of a target controller required for a vehicle upgrade test.

可选的,目标控制器可包括域控制器下的控制器局域网络(Controller AreaNetwork,CAN)节点控制器、和/或局域互联网络(Local Interconnect Network,LIN)节点控制器。对于本实施例,可根据升级测试的需要,确定所需的控制器,并从这些控制器中进一步确定哪些可利用仿真控制器来代替,具体可选择域控制器下的CAN节点控制器,和/或LIN节点控制器,这些相对不太主要的控制器可利用仿真控制器来代替。Optionally, the target controller may include a Controller Area Network (CAN) node controller under the domain controller and/or a Local Interconnect Network (LIN) node controller. For this embodiment, the required controllers may be determined according to the needs of the upgrade test, and it may be further determined from these controllers which may be replaced by the simulation controller. Specifically, the CAN node controller under the domain controller and/or the LIN node controller may be selected. These relatively less important controllers may be replaced by the simulation controller.

CAN节点控制器的控制器信息中可包括CAN节点控制器的固件系统信息、通信数据库以及数据处理规则信息等。而LIN节点控制器的控制器信息中可包括LIN节点控制器的节点参数信息、加载升级测试所需的通信数据库以及数据处理规则信息等。The controller information of the CAN node controller may include the firmware system information, communication database, and data processing rule information of the CAN node controller, while the controller information of the LIN node controller may include the node parameter information of the LIN node controller, the communication database and data processing rule information required for loading and upgrading the test, etc.

在本实施例中,车辆升级测试所涉及到的控制器可分为两大部分:真实控制器与仿真控制器。其中,真实控制器可包括:智能座舱域控制器、整车域控制器/边缘计算网关、自动驾驶域控制器、还有若干涉及整车模式切换的主要控制器,比如前车身控制器等。In this embodiment, the controllers involved in the vehicle upgrade test can be divided into two parts: real controllers and simulated controllers. The real controllers may include: smart cockpit domain controller, vehicle domain controller/edge computing gateway, autonomous driving domain controller, and several main controllers involved in vehicle mode switching, such as the front body controller.

而仿真控制器可包括:域控制器下的CAN节点控制器、和/或LIN节点控制器。例如,智能座舱域控制器下的CAN节点控制器、和/或LIN节点控制器;整车域控制器/边缘计算网关下的CAN节点控制器、和/或LIN节点控制器;自动驾驶域控制器下的CAN节点控制器、和/或LIN节点控制器。The simulation controller may include: CAN node controller and/or LIN node controller under the domain controller. For example, CAN node controller and/or LIN node controller under the smart cockpit domain controller; CAN node controller and/or LIN node controller under the vehicle domain controller/edge computing gateway; CAN node controller and/or LIN node controller under the autonomous driving domain controller.

例如,在测试计算机中安装若干个虚拟机,每个虚拟机驱动一个CAN/LIN总线设备,这个CAN/LIN总线设备可以用于仿真车辆中任意一个CAN/LIN节点控制器,即被测节点的仿真控制器。该仿真控制器可认为是虚拟ECU,通过对虚拟ECU进行参数配置来模拟被刷写的CAN/LIN节点控制。For example, several virtual machines are installed in the test computer, each of which drives a CAN/LIN bus device. This CAN/LIN bus device can be used to simulate any CAN/LIN node controller in the vehicle, that is, the simulated controller of the node under test. The simulated controller can be considered as a virtual ECU, and the flashed CAN/LIN node control is simulated by configuring the parameters of the virtual ECU.

步骤202、从目标控制器的控制器信息中读取目标控制器的固件系统信息、通信数据库和数据处理规则信息。Step 202: Read the firmware system information, communication database and data processing rule information of the target controller from the controller information of the target controller.

步骤203、基于目标控制器的固件系统信息、通信数据库和数据处理规则信息,利用虚拟机上预先安装的虚拟机配置软件工具,配置得到与目标控制器对应的仿真控制器。Step 203: Based on the firmware system information, communication database and data processing rule information of the target controller, a simulation controller corresponding to the target controller is configured using a virtual machine configuration software tool pre-installed on the virtual machine.

例如,针对配置一个CAN/LIN节点控制器的仿真控制器的过程,本实施例首先创建一个虚拟机。虚拟机上安装虚拟机配置软件工具,基于该CAN/LIN节点控制器的固件系统信息、通信数据库和数据处理规则信息,利用该虚拟机配置软件工具,配置得到与目标控制器对应的仿真控制器。例如,配置所需要的参数包括:CAN总线类型(CAN或者CAN FD)、CAN/CANFD通信速率、采样点等,其中CAN FD(CAN with Flexible Data rate)为具有灵活数据速率的CAN;然后加载该测试节点的,DBC(Database CAN)数据库(支持导入网段数据库勾选某节点);以及加载诊断CDD数据库(CDD Database)/开放式诊断数据交换(Open DiagnosticData Exchange,ODX)数据库;以及加载安全密钥算法动态链接库(Dynamic Link Library,DLL)文件;以及加载刷写文件(支持*.s19/*.hex/*.bin)等等。For example, for the process of configuring a simulation controller of a CAN/LIN node controller, this embodiment first creates a virtual machine. A virtual machine configuration software tool is installed on the virtual machine, and based on the firmware system information, communication database and data processing rule information of the CAN/LIN node controller, the virtual machine configuration software tool is used to configure a simulation controller corresponding to the target controller. For example, the parameters required for configuration include: CAN bus type (CAN or CAN FD), CAN/CANFD communication rate, sampling point, etc., where CAN FD (CAN with Flexible Data rate) is CAN with flexible data rate; then load the DBC (Database CAN) database of the test node (support importing the network segment database to check a node); and load the diagnostic CDD database (CDD Database)/Open Diagnostic Data Exchange (Open DiagnosticData Exchange, ODX) database; and load the security key algorithm dynamic link library (Dynamic Link Library, DLL) file; and load the flash file (support *.s19/*.hex/*.bin), etc.

步骤204、利用配置得到的至少一个仿真控制器构建测试环境。Step 204: construct a test environment using at least one simulation controller obtained through configuration.

可选的,步骤204具体可包括:首先建立至少一个仿真控制器、预设目标板卡和目标控制器对应的域控制器之间的通信连接,得到测试台架;其中,测试台架中仿真控制器与预设目标板卡连接,预设目标板卡与目标控制器对应的域控制器连接;然后建立至少一个测试台架之间的通信连接,得到测试环境。Optionally, step 204 may specifically include: first establishing a communication connection between at least one simulation controller, a preset target board and a domain controller corresponding to the target controller to obtain a test bench; wherein the simulation controller in the test bench is connected to the preset target board, and the preset target board is connected to the domain controller corresponding to the target controller; then establishing a communication connection between at least one test bench to obtain a test environment.

例如,建立CAN节点控制器的仿真控制器与预设的CAN板卡之间的通信连接,该CAN板卡与CAN节点控制器对应的第一域控制器之间具备通信连接;和/或,建立LIN节点控制器的仿真控制器与预设的LIN板卡之间的通信连接,LIN板卡与LIN测试节点对应的第二域控制器之间具备通信连接。通过这种方式可构建得到测试台架。然后将得到的至少一测试台架进行组合通信,即建立这些测试台架之间的通信连接,以构建得到测试环境。其中。第一域控制器和第二域控制器可包括:智能座舱域控制器、整车域控制器/边缘计算网关、自动驾驶域控制器、还有若干涉及整车模式切换的主要控制器等。For example, a communication connection is established between the simulation controller of the CAN node controller and a preset CAN board, and a communication connection is established between the CAN board and the first domain controller corresponding to the CAN node controller; and/or, a communication connection is established between the simulation controller of the LIN node controller and a preset LIN board, and a communication connection is established between the LIN board and the second domain controller corresponding to the LIN test node. In this way, a test bench can be constructed. Then, at least one test bench obtained is combined for communication, that is, a communication connection is established between these test benches to construct a test environment. Among them. The first domain controller and the second domain controller may include: an intelligent cockpit domain controller, a vehicle domain controller/edge computing gateway, an autonomous driving domain controller, and several main controllers involved in vehicle mode switching.

例如,在测试计算机(工作站)中预先安装若干个虚拟机,每个虚拟机中可以配置成一个虚拟仿真节点,即CAN节点控制器和/或LIN节点控制器的仿真控制器。虚拟仿真节点通过USB接口连接通用的CAN板卡或者LIN板卡,即为单通道的CAN/LIN通信节点,进而后续可通过该USB连接建立相应的通信连接。如图3所示,针对于智能座舱域控制器下的CAN节点控制器和LIN节点控制器,在工作站中安装若干个虚拟机,通过对每个虚拟机进行配置,使得每个虚拟机驱动一个CAN总线设备或者LIN总线设备,其中,CAN总线设备可以用于仿真智能座舱域控制器下的CAN节点控制器,而LIN总线设备可以用于仿真智能座舱域控制器下的LIN节点控制器。For example, several virtual machines are pre-installed in a test computer (workstation), and each virtual machine can be configured as a virtual simulation node, that is, a simulation controller of a CAN node controller and/or a LIN node controller. The virtual simulation node is connected to a general CAN board or LIN board through a USB interface, that is, a single-channel CAN/LIN communication node, and then the corresponding communication connection can be established through the USB connection. As shown in Figure 3, for the CAN node controller and LIN node controller under the smart cockpit domain controller, several virtual machines are installed in the workstation, and each virtual machine is configured so that each virtual machine drives a CAN bus device or a LIN bus device, wherein the CAN bus device can be used to simulate the CAN node controller under the smart cockpit domain controller, and the LIN bus device can be used to simulate the LIN node controller under the smart cockpit domain controller.

同理,针对于整车域控制器/边缘计算网关下的CAN节点控制器和LIN节点控制器,以及自动驾驶域控制器下的CAN节点控制器和LIN节点控制器均可按照此方式进行建立通信连接。后续可将这些连接有CAN板卡(CAN板卡还连接有仿真的CAN节点控制器)/LIN板卡(LIN板卡还连接有仿真的LIN节点控制器)的域控制器进行组合搭配,从而实现构建测试台架,并且根据实际测试需要可构建至少一个测试台架,并建立这些测试台架之间的通信连接,以构建得到测试环境。Similarly, the CAN node controller and LIN node controller under the vehicle domain controller/edge computing gateway, as well as the CAN node controller and LIN node controller under the autonomous driving domain controller, can establish communication connections in this way. Subsequently, these domain controllers connected to the CAN board (the CAN board is also connected to the simulated CAN node controller)/LIN board (the LIN board is also connected to the simulated LIN node controller) can be combined and matched to build a test bench, and at least one test bench can be built according to actual test needs, and communication connections between these test benches can be established to build a test environment.

例如,为了满足具体的升级测试需求,可通过多种台架类型的组合进行FOTA升级流程的验证。如将测试台架a与测试台架b进行组合通信,实现业务1的FOTA升级测试需求;将测试台架m1与测试台架m2、测试台架m3进行组合通信,实现业务2的FOTA升级测试需求等。For example, in order to meet specific upgrade test requirements, the FOTA upgrade process can be verified by combining multiple bench types. For example, test bench a and test bench b are combined to communicate to achieve the FOTA upgrade test requirements of service 1; test bench m1 is combined to communicate with test bench m2 and test bench m3 to achieve the FOTA upgrade test requirements of service 2, etc.

步骤205、在构建得到的测试环境中进行车辆的升级测试。Step 205: Perform a vehicle upgrade test in the constructed test environment.

可选的,步骤205具体可包括:首先在目标控制器对应的仿真控制器中,利用虚拟机配置软件工具接收与目标控制器对应的域控制器发送的升级信息;再基于升级信息更新仿真控制器的固件系统信息、通信数据库和数据处理规则信息,并利用虚拟机配置软件工具调用预设协议栈,驱动发送仿真控制器升级更新所产生的报文信息给与目标控制器对应的域控制器。Optionally, step 205 may specifically include: first, in the simulation controller corresponding to the target controller, using a virtual machine configuration software tool to receive upgrade information sent by the domain controller corresponding to the target controller; then, based on the upgrade information, updating the firmware system information, communication database and data processing rule information of the simulation controller, and using the virtual machine configuration software tool to call a preset protocol stack to drive the sending of message information generated by the simulation controller upgrade to the domain controller corresponding to the target controller.

本实施例中,虚拟机配置软件通过配置参数的形式实现报文仿真、诊断服务等功能。例如,如图4所示,虚拟节点配置软件调用CAN协议栈通过相应CAN驱动发送报文,或者调用LIN协议栈通过相应LIN驱动发送报文,该虚拟节点支持相应的诊断服务,并以虚拟节点的形式支持该节点的BootLoader升级流程。该虚拟节点可认为是虚拟ECU,即虚拟ECU需要实现CAN/LIN的诊断协议栈,需要能够加载通信数据库,能够简单模拟必要的周期报文发送,以满足后续的FOTA升级测试需求。In this embodiment, the virtual machine configuration software implements functions such as message simulation and diagnostic services in the form of configuration parameters. For example, as shown in Figure 4, the virtual node configuration software calls the CAN protocol stack to send messages through the corresponding CAN driver, or calls the LIN protocol stack to send messages through the corresponding LIN driver. The virtual node supports the corresponding diagnostic services and supports the BootLoader upgrade process of the node in the form of a virtual node. The virtual node can be considered as a virtual ECU, that is, the virtual ECU needs to implement the CAN/LIN diagnostic protocol stack, needs to be able to load the communication database, and can simply simulate the necessary periodic message sending to meet the subsequent FOTA upgrade test requirements.

为了满足不同应用场景的测试需求,可选的,步骤204具体还可包括:若该至少一测试台架处于弱网环境(网络环境较差),则获取升级测试所需的升级包文件;然后将升级包文件发送给运行后的至少一测试台架进行升级测试。In order to meet the testing requirements of different application scenarios, optionally, step 204 may further specifically include: if the at least one test bench is in a weak network environment (poor network environment), obtaining the upgrade package file required for the upgrade test; and then sending the upgrade package file to the at least one running test bench for upgrade testing.

例如,在测试台架的FOTA升级测试过程中,如果该测试台架处于网络良好的环境中,测试台架会通过自身的网络通讯模块(如4G或5G无线通讯模块)从云端下载得到完整的升级包文件,然后安装该升级包文件。而如果该测试台架处于弱网环境,升级包文件传输过程中很容易出现数据丢失,进而会造成升级失败,从而无法进行有效的FOTA升级测试。因此,本实施例可在测试台架处于弱网环境的情况下,可在测试计算机(工作台)端侧获取升级测试所需的升级包文件,然后将升级包文件发送给该测试台架进行升级测试,以保证在处于弱网环境下也能实现正常的FOTA升级测试,进而保证FOTA升级测试结果的准确性。For example, during the FOTA upgrade test of the test bench, if the test bench is in a good network environment, the test bench will download a complete upgrade package file from the cloud through its own network communication module (such as a 4G or 5G wireless communication module), and then install the upgrade package file. If the test bench is in a weak network environment, data loss is likely to occur during the transmission of the upgrade package file, which will cause the upgrade to fail, making it impossible to perform an effective FOTA upgrade test. Therefore, in the present embodiment, when the test bench is in a weak network environment, the upgrade package file required for the upgrade test can be obtained on the test computer (workbench) side, and then the upgrade package file is sent to the test bench for upgrade testing, so as to ensure that a normal FOTA upgrade test can be achieved in a weak network environment, thereby ensuring the accuracy of the FOTA upgrade test results.

进一步可选的,在测试环境中进行车辆的升级测试之后,本实施例方法还可包括:获取测试报告信息;然后从该测试报告信息中,获取升级过程中出现运行异常的仿真控制器,如系统版本未准确更新的仿真控制器、升级过程中存在中断连接且中断时长超出一定阈值的仿真控制器等;最后获取出现运行异常的仿真控制器对应的CAN节点控制器信息、和/或LIN节点控制器信息(如CAN节点/LIN节点仿真控制器标识,以及与该仿真控制器对应的域控制器标识,以及与该域控制器对应的测试台架标识等),以便测试人员根据这些信息,及时调整出现运行异常的仿真控制器等,便于下次测试时减少出现测试异常情况的发生。Further optionally, after performing an upgrade test on the vehicle in a test environment, the method of this embodiment may also include: obtaining test report information; then obtaining from the test report information the simulation controller that has an operating abnormality during the upgrade process, such as a simulation controller whose system version is not accurately updated, a simulation controller that has an interruption during the upgrade process and the duration of the interruption exceeds a certain threshold, etc.; finally, obtaining the CAN node controller information and/or LIN node controller information corresponding to the simulation controller that has an operating abnormality (such as a CAN node/LIN node simulation controller identifier, and a domain controller identifier corresponding to the simulation controller, and a test bench identifier corresponding to the domain controller, etc.), so that the tester can adjust the simulation controller that has an operating abnormality in a timely manner based on this information, so as to reduce the occurrence of test abnormalities during the next test.

为了说明上述实施例的具体实现过程,给出如下应用示例,但不限于此:In order to illustrate the specific implementation process of the above embodiment, the following application examples are given, but not limited to these:

FOTA的测试主要包括:FOTA测试环境准备、FOTA功能测试、发版测试、压力测试、性能测试、自动化测试、需求对接等工作。主要的测试环境从复杂到简单主要有以下几类:实车、整车台架、小型台架等几种。FOTA testing mainly includes: FOTA test environment preparation, FOTA functional testing, version testing, stress testing, performance testing, automation testing, demand matching, etc. The main test environments are mainly divided into the following categories from complex to simple: real vehicle, vehicle test bench, small test bench, etc.

其中,实车包括:车机域控制器、整车域控制器、高级驾驶辅助系统(AdvancedDriver Assistance System,ADAS)域控制器、全车所有CAN/LIN节点;整车台架包括:车机域控制器、整车域控制器、ADAS域控制器、部分CAN/LIN节点(保证每路CAN总线有2个以上节点,也要包含LIN节点);小型台架至少包括:车机域控制器、整车域控制器、少数需要关注的CAN/LIN控制器。Among them, the actual vehicle includes: vehicle domain controller, vehicle domain controller, Advanced Driver Assistance System (ADAS) domain controller, and all CAN/LIN nodes in the vehicle; the whole vehicle test bench includes: vehicle domain controller, vehicle domain controller, ADAS domain controller, and some CAN/LIN nodes (ensuring that each CAN bus has more than 2 nodes, and LIN nodes must also be included); the small test bench includes at least: vehicle domain controller, vehicle domain controller, and a few CAN/LIN controllers that need attention.

然而,在前期研发阶段,实车资源是比较有限的,经常出现无测试车辆的问题,这个时候就需要搭建复杂程度从易到难的测试台架;而测试台架的搭建仍然存在控制器依赖,控制器也在开发中且刷写的功能可能不稳定,且控制器不是FOTA测试验证的重点,无控制器可测或控制器状态不佳都会影响FOTA的测试进展。However, in the early stage of research and development, real vehicle resources are relatively limited, and there is often a problem of no test vehicles. At this time, it is necessary to build test benches with varying degrees of complexity from easy to difficult. However, the construction of the test bench still relies on the controller. The controller is also under development and the flashing function may be unstable. In addition, the controller is not the focus of FOTA test verification. No controller to test or poor controller status will affect the progress of FOTA testing.

为了解决上述问题,通过应用本实施例的技术方案,可基于虚拟ECU的方式进行FOTA升级的半实物仿真台架可以节省大量控制器资源和实车资源。具体可首先创建至少一个虚拟机;再将至少一个虚拟机分别配置为车辆升级测试所需的被测节点的仿真控制器;然后利用仿真控制器构建测试环境;再然后将通过仿真控制器构建的至少一测试台架进行组合通信;在完成测试环境准备后,通过多种台架类型的组合进行FOTA升级流程的验证,如向组合通信后的至少一测试台架发送运行指令,并对运行后的至少一测试台架进行升级测试,具体可包括下载流程、升级流程、交互页面、状态上报、外设升级、版本管理等测试内容。In order to solve the above problems, by applying the technical solution of this embodiment, a semi-physical simulation bench that can perform FOTA upgrades based on a virtual ECU can save a lot of controller resources and real vehicle resources. Specifically, at least one virtual machine can be created first; then at least one virtual machine can be configured as a simulation controller of the node under test required for the vehicle upgrade test; then the test environment can be built using the simulation controller; then at least one test bench built by the simulation controller can be combined for communication; after the test environment preparation is completed, the FOTA upgrade process is verified through a combination of multiple bench types, such as sending a running instruction to at least one test bench after the combined communication, and performing an upgrade test on at least one test bench after the operation, which can specifically include download process, upgrade process, interactive page, status reporting, peripheral upgrade, version management and other test contents.

与现有技术方案相比,本实施例提供的技术方案,可提高测试的覆盖度,由于是半实物仿真,仿真节点测试过程中可以根据需要通过软件的方式制造刷写流程的诸多故障;通过仿真平台可以提高测试的时长,由于不受到控制器资源限制,可以配置更多的测试台架以增加测试时长。并且还可提高测试的次数,在前期实车、被测样件数量较少的开发阶段下发现更多的产品问题,从而可提高用户的体验。Compared with the existing technical solutions, the technical solution provided by this embodiment can improve the coverage of the test. Since it is a semi-physical simulation, many faults of the flashing process can be created by software as needed during the simulation node test; the simulation platform can increase the test time. Since it is not limited by the controller resources, more test benches can be configured to increase the test time. In addition, the number of tests can be increased, and more product problems can be discovered in the early development stage when the number of real vehicles and tested samples is small, thereby improving the user experience.

进一步的,作为图1和图2所示方法的具体实现,本实施例提供了一种车辆升级测试装置,如图5所示,该装置包括:获取模块31、配置模块32、构建模块33、测试模块34。Furthermore, as a specific implementation of the method shown in FIG. 1 and FIG. 2 , this embodiment provides a vehicle upgrade test device, as shown in FIG. 5 , which includes: an acquisition module 31 , a configuration module 32 , a construction module 33 , and a test module 34 .

获取模块31,被配置为获取车辆升级测试所需的目标控制器的控制器信息;An acquisition module 31 is configured to acquire controller information of a target controller required for a vehicle upgrade test;

配置模块32,被配置为根据所述控制器信息,将预先创建的至少一个虚拟机分别配置为与所述目标控制器对应的仿真控制器;A configuration module 32 is configured to configure at least one pre-created virtual machine as a simulation controller corresponding to the target controller according to the controller information;

构建模块33,被配置为利用配置得到的至少一个所述仿真控制器构建测试环境;A construction module 33 is configured to construct a test environment using at least one of the simulation controllers obtained by configuration;

测试模块34,被配置为在所述测试环境中进行车辆升级测试。The testing module 34 is configured to perform a vehicle upgrade test in the testing environment.

在具体的应用场景中,配置模块32,具体被配置为从所述控制器信息中读取所述目标控制器的固件系统信息、通信数据库和数据处理规则信息;基于所述固件系统信息、通信数据库和数据处理规则信息,利用虚拟机上预先安装的虚拟机配置软件工具,配置得到与所述目标控制器对应的仿真控制器。In a specific application scenario, the configuration module 32 is specifically configured to read the firmware system information, communication database and data processing rule information of the target controller from the controller information; based on the firmware system information, communication database and data processing rule information, using the virtual machine configuration software tool pre-installed on the virtual machine, a simulation controller corresponding to the target controller is configured.

在具体的应用场景中,构建模块33,具体被配置为建立至少一个所述仿真控制器、预设目标板卡和所述目标控制器对应的域控制器之间的通信连接,得到测试台架;其中,所述测试台架中所述仿真控制器与所述预设目标板卡连接,所述预设目标板卡与所述目标控制器对应的域控制器连接;建立至少一个所述测试台架之间的通信连接,得到所述测试环境。In a specific application scenario, the construction module 33 is specifically configured to establish a communication connection between at least one of the simulation controller, the preset target board and the domain controller corresponding to the target controller to obtain a test bench; wherein the simulation controller in the test bench is connected to the preset target board, and the preset target board is connected to the domain controller corresponding to the target controller; establish a communication connection between at least one of the test benches to obtain the test environment.

在具体的应用场景中,测试模块34,具体被配置为在所述目标控制器对应的仿真控制器中,利用所述虚拟机配置软件工具接收与所述目标控制器对应的域控制器发送的升级信息;基于所述升级信息更新所述仿真控制器的固件系统信息、通信数据库和数据处理规则信息,并利用所述虚拟机配置软件工具调用预设协议栈,驱动发送所述仿真控制器升级更新所产生的报文信息给与所述目标控制器对应的域控制器。In a specific application scenario, the test module 34 is specifically configured to use the virtual machine configuration software tool to receive upgrade information sent by the domain controller corresponding to the target controller in the simulation controller corresponding to the target controller; update the firmware system information, communication database and data processing rule information of the simulation controller based on the upgrade information, and use the virtual machine configuration software tool to call the preset protocol stack to drive the sending of the message information generated by the upgrade and update of the simulation controller to the domain controller corresponding to the target controller.

在具体的应用场景中,测试模块34,具体还被配置为若所述至少一测试台架处于弱网环境,则获取升级测试所需的升级包文件;将所述升级包文件发送给所述至少一测试台架进行升级测试。In a specific application scenario, the test module 34 is further configured to obtain the upgrade package file required for the upgrade test if the at least one test bench is in a weak network environment; and send the upgrade package file to the at least one test bench for the upgrade test.

在具体的应用场景中,测试模块34,还被配置为在所述测试环境中进行车辆的升级测试之后,获取测试报告信息;从所述测试报告信息中,获取升级过程中出现运行异常的仿真控制器;获取所述出现运行异常的仿真控制器对应的目标控制器的控制器信息。In a specific application scenario, the test module 34 is also configured to obtain test report information after performing a vehicle upgrade test in the test environment; obtain a simulation controller that has an operating abnormality during the upgrade process from the test report information; and obtain controller information of a target controller corresponding to the simulation controller that has an operating abnormality.

在具体的应用场景中,可选的,所述目标控制器包括域控制器下的CAN节点控制器和/或LIN节点控制器。In a specific application scenario, optionally, the target controller includes a CAN node controller and/or a LIN node controller under the domain controller.

需要说明的是,本实施例提供的一种车辆升级测试装置所涉及各功能单元的其它相应描述,可以参考图1和图2中的对应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional units involved in the vehicle upgrade test device provided in this embodiment, reference may be made to the corresponding descriptions in FIG. 1 and FIG. 2 , which will not be repeated here.

基于上述如图1和图2所示方法,相应的,本实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述如图1和图2所示的方法。Based on the above method as shown in FIG. 1 and FIG. 2 , accordingly, this embodiment further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above method as shown in FIG. 1 and FIG. 2 is implemented.

基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景的方法。Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.

基于上述如图1和图2所示的方法,以及图5所示的虚拟装置实施例,为了实现上述目的,本申请实施例还提供了一种电子设备,可配置在计算机端侧、或者车辆端侧等,该设备包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述如图1和图2所示的方法。Based on the above-mentioned method as shown in Figures 1 and 2, and the virtual device embodiment shown in Figure 5, in order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device that can be configured on a computer side, or a vehicle side, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the above-mentioned method as shown in Figures 1 and 2.

可选的,上述实体设备还可以包括用户接口、网络接口、摄像头、射频(RadioFrequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)等。Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

本领域技术人员可以理解,本实施例提供的上述实体设备结构并不构成对该实体设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

存储介质中还可以包括操作系统、网络通信模块。操作系统是管理上述实体设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现存储介质内部各组件之间的通信,以及与信息处理实体设备中其它硬件和软件之间通信。The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and/or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。通过应用本实施例的方案,可实现更高的测试台架搭建效率,通过配置的方式很快生成需要的被测节点,减少工程师搭建整车台架控制器安装布线的时间;可实现FOTA升级测试台架的7*24小时连续测试,保证压力测试时间,节约实车资源,控制器资源;并且本实施例方案只要实现通用化CAN/LIN节点配置,即可大量应用于FOTA压力测试、FOTA异常测试、休眠唤醒测试等,使得本实施例的车辆升级测试方法可以更广泛地被应用。Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the solution of this embodiment, a higher test bench construction efficiency can be achieved, and the required tested nodes can be quickly generated by configuration, reducing the time for engineers to install and wire the whole vehicle bench controller; 7*24 hours of continuous testing of the FOTA upgrade test bench can be achieved, ensuring the stress test time, saving real vehicle resources, and controller resources; and as long as the solution of this embodiment realizes the universal CAN/LIN node configuration, it can be widely used in FOTA stress testing, FOTA abnormal testing, sleep wake-up testing, etc., so that the vehicle upgrade test method of this embodiment can be more widely used.

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

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

Claims (10)

1. A vehicle upgrade testing method, comprising:
Acquiring controller information of a target controller required by a vehicle upgrade test;
According to the controller information, respectively configuring at least one virtual machine which is created in advance as a simulation controller corresponding to the target controller;
constructing a test environment by using at least one simulation controller obtained by configuration;
and performing a vehicle upgrade test in the test environment.
2. The method according to claim 1, wherein the configuring the at least one virtual machine created in advance as the emulation controller corresponding to the target controller according to the controller information includes:
Reading firmware system information, a communication database and data processing rule information of the target controller from the controller information;
Based on the firmware system information, the communication database and the data processing rule information, a virtual machine configuration software tool pre-installed on the virtual machine is utilized to obtain the simulation controller corresponding to the target controller.
3. The method of claim 2, wherein said constructing a test environment using said configured at least one of said simulation controllers comprises:
Establishing communication connection among at least one simulation controller, a preset target board card and a domain controller corresponding to the target controller to obtain a test bench; the simulation controller in the test bench is connected with the preset target board card, and the preset target board card is connected with a domain controller corresponding to the target controller;
And establishing communication connection between at least one test bench to obtain the test environment.
4. A method according to claim 3, wherein said performing a vehicle upgrade test in said test environment comprises:
In the simulation controller corresponding to the target controller, receiving upgrading information sent by the domain controller corresponding to the target controller by utilizing the virtual machine configuration software tool;
Updating firmware system information, a communication database and data processing rule information of the simulation controller based on the upgrading information, calling a preset protocol stack by utilizing the virtual machine configuration software tool, and driving to send message information generated by upgrading and updating the simulation controller to a domain controller corresponding to the target controller.
5. A method according to claim 3, wherein said performing a vehicle upgrade test in said test environment comprises: monitoring a network environment in which the at least one test bench is located;
if the network environment of the at least one test bench is a weak network environment, acquiring an upgrade package file required by the upgrade test;
and sending the upgrade package file to the at least one test bench for upgrade testing.
6. The method of claim 1, wherein after the upgrade test of the vehicle in the test environment, the method further comprises:
Acquiring test report information;
Acquiring a simulation controller with abnormal operation in the upgrading process from the test report information;
and obtaining the controller information of the target controller corresponding to the simulation controller with abnormal operation.
7. The method according to any of claims 1-6, wherein the target controller comprises a controller area network, CAN, node controller and/or a local interconnect network, LIN, node controller under a domain controller.
8. A vehicle upgrade test apparatus, comprising:
The system comprises an acquisition module, a control module and a control module, wherein the acquisition module is configured to acquire controller information of a target controller required by a vehicle upgrade test;
The configuration module is configured to configure at least one virtual machine which is created in advance into simulation controllers corresponding to the target controllers according to the controller information;
A building module configured to build a test environment using the configured at least one of the simulation controllers;
And the test module is configured to perform vehicle upgrade tests in the test environment.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1-7.
10. An electronic device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any one of claims 1-7 when executing the computer program.
CN202211696398.8A 2022-12-28 2022-12-28 Vehicle upgrade test method and device, electronic equipment and storage medium Pending CN118277229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211696398.8A CN118277229A (en) 2022-12-28 2022-12-28 Vehicle upgrade test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211696398.8A CN118277229A (en) 2022-12-28 2022-12-28 Vehicle upgrade test method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118277229A true CN118277229A (en) 2024-07-02

Family

ID=91634075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211696398.8A Pending CN118277229A (en) 2022-12-28 2022-12-28 Vehicle upgrade test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118277229A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118795867A (en) * 2024-08-09 2024-10-18 中国第一汽车股份有限公司 Vehicle controller test method, test system, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118795867A (en) * 2024-08-09 2024-10-18 中国第一汽车股份有限公司 Vehicle controller test method, test system, equipment and medium

Similar Documents

Publication Publication Date Title
CN107608901B (en) Jmeter-based testing method and device, storage medium and electronic equipment
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN116681013B (en) Simulation verification method, platform, device, equipment and medium of network chip
CN114138644B (en) BMC debugging method and monitoring method, system, device, equipment, and medium
CN114444423B (en) Data processing method and system based on verification platform and electronic equipment
CN105653338A (en) Application updating method and device
CN115542875A (en) A vehicle detection method and related equipment based on SOA service
CN114967641A (en) A method and system for automatic testing of vehicle controller diagnostic function
US7475164B2 (en) Apparatus, system, and method for automated device configuration and testing
CN108875368A (en) A kind of safety detection method, apparatus and system
CN118277229A (en) Vehicle upgrade test method and device, electronic equipment and storage medium
CN111291443B (en) Method, device and device for automatic generation of I/O module model of vehicle controller software
CN115145381A (en) A method, system, storage medium and device for remotely resetting BMC chip
CN108009086A (en) System automation test method with function study is decomposed based on use-case
CN103685405A (en) Network service system and firmware updating method
CN108400901B (en) Application test method, terminal device and computer-readable storage medium
CN107247661B (en) Method and system for supporting automatic verification of installation package of application
CN116389326A (en) DoIP-based protocol, refreshing test method, system, equipment and medium
CN113986742A (en) Automatic testing method, device, equipment and storage medium
CN114924963A (en) Distributed execution method, device, equipment and medium for webpage compatibility test
CN114338492A (en) Virtual network performance testing method and device, computer equipment and medium
CN115391168A (en) Sandbox testing method, sandbox testing device, sandbox testing equipment and storage medium
CN112257381A (en) AXI Crossbar design circuit verification method and system
CN115114101B (en) Link testing method, device, system and storage medium
US20250208982A1 (en) System and method for managing a test bench for a cross-domain test

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination