CN115396941A - OTA stress test method, system, electronic device, storage medium - Google Patents
OTA stress test method, system, electronic device, storage medium Download PDFInfo
- Publication number
- CN115396941A CN115396941A CN202211054955.6A CN202211054955A CN115396941A CN 115396941 A CN115396941 A CN 115396941A CN 202211054955 A CN202211054955 A CN 202211054955A CN 115396941 A CN115396941 A CN 115396941A
- Authority
- CN
- China
- Prior art keywords
- test
- ota
- upgrade
- tests
- configuration file
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/10—Scheduling measurement reports ; Arrangements for measurement reports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/44—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明提供一种OTA压力测试方法、系统、电子设备、存储介质,涉及OTA压力测试领域。包括,响应测试启动程序,读取所述测试启动程序的测试配置文件;根据所述测试配置文件参数生成多个升级任务包,分别下发给所述升级任务包所指定的被测模块;根据所述升级任务包进行ECU重复刷写,直至累计测试次数达到预设测试次数;获取各所述被测模块测试结果,根据所述测试结果生成测试报告。本申请的方法在测试过程中,可以实现写入一次配置文件,对多个被测模块同时进行独立的测试,测试人员不需要对每个被测模块进行分别操作,降低测试人员的工作任务,有效的提高测试数量,满足OTA压力测试的样本数量要求。
The invention provides an OTA stress testing method, system, electronic equipment, and storage medium, and relates to the field of OTA stress testing. Including, responding to the test startup program, reading the test configuration file of the test startup program; generating a plurality of upgrade task packages according to the parameters of the test configuration file, and sending them to the modules under test specified by the upgrade task package respectively; The upgrade task package is repeatedly written to the ECU until the cumulative number of tests reaches the preset number of tests; the test results of each of the tested modules are obtained, and a test report is generated according to the test results. In the testing process, the method of the present application can write a configuration file once, and independently test multiple tested modules at the same time. The tester does not need to operate each tested module separately, reducing the work tasks of the tester. Effectively increase the number of tests to meet the sample size requirements of the OTA stress test.
Description
技术领域technical field
本发明涉及OTA压力测试领域,具体涉及一种OTA压力测试方法、系统、电子设备、存储介质。The invention relates to the field of OTA stress testing, in particular to an OTA stress testing method, system, electronic equipment, and storage medium.
背景技术Background technique
随着物联网大数据时代的到来,汽车的"属性"正在发生变化,这种改变源于智能的崛起。汽车开始变得不再是一个简单的代步交通工具,它在不断变化,不断成长。车主会时不时地发现汽车给自己带来的小惊喜,它变得更加贴心、安全,甚至有一天它不再需要你的操控就能够自己行驶,从而进一步给驾驶员带来科技感、智能感的提升,而让这一切实现的就是OTA(Over-the-Air Technology,空中下载技术)。在国家大力发展新能源汽车的背景下,车载OTA技术将在汽车电动化、智能化发展过程中加速普及,整车OTA技术的发展是促进网联汽车快速迭代更新的必然趋势。汽车OTA最早出现于2012年推出的某些车型上,其更新范围涉及自动驾驶、人机交互、动力、电池系统等领域,通过OTA的方式完成钥匙卡漏洞续航里程提升提高最高速度、提升乘坐舒适度等功能或者漏洞的修复。OTA带来汽车商业模式变革,OTA不仅是车端的能力标配,更是车厂新盈利模式的运营标配。为保证OTA系统的测试覆盖度并降低测试的耦合度,同时,提高车辆上市后,用户的体验感,技术的可靠性与稳定性必须在投放市场前得到充分的验证,包括关键控制器的部件验证以及系统的集成验证,而保证的唯一方式就是通过对OTA方案进行完整的测试验证。With the advent of the big data era of the Internet of Things, the "attributes" of cars are changing, and this change stems from the rise of intelligence. The car is no longer a simple means of transportation, it is constantly changing and growing. From time to time, car owners will discover the small surprises that the car brings to them. It becomes more caring and safe, and one day it will be able to drive by itself without your control, thus further bringing a sense of technology and intelligence to the driver. Improvement, and what makes all this come true is OTA (Over-the-Air Technology, over-the-air download technology). In the context of the country's vigorous development of new energy vehicles, vehicle-mounted OTA technology will accelerate its popularization in the process of vehicle electrification and intelligent development. The development of vehicle OTA technology is an inevitable trend to promote the rapid iterative update of connected vehicles. Car OTA first appeared on some models launched in 2012. Its update scope involves automatic driving, human-computer interaction, power, battery system and other fields. Through OTA, the cruising range of key card loopholes can be improved, the maximum speed can be improved, and the ride comfort can be improved. Degree and other functions or bug fixes. OTA has brought about changes in the automotive business model. OTA is not only a standard configuration for the capabilities of the vehicle end, but also a standard configuration for the operation of the new profit model of the car factory. In order to ensure the test coverage of the OTA system and reduce the coupling of the test, at the same time, to improve the user experience after the vehicle is launched, the reliability and stability of the technology must be fully verified before it is put on the market, including the components of the key controller Verification and system integration verification, and the only way to guarantee it is through a complete test verification of the OTA solution.
当前的OTA的测试方案存在诸多的限制及瓶颈,首先,当前方案基本采用的都是非自动化测试验证方式,即:通过投入人力资源进行手动的测试验证,这样做不仅带来大量的人力成本,且由于OTA的链路测试均涉及下载和安装的,这两个步骤需要耗费大量的时间,从几十分钟到几个小时不等,如此带来的后果将是投入与产出不成正比。There are many limitations and bottlenecks in the current OTA testing scheme. First of all, the current scheme basically adopts non-automated test verification methods, that is, manual test verification is performed by investing human resources, which not only brings a lot of labor costs, but also Since the OTA link test involves downloading and installation, these two steps take a lot of time, ranging from tens of minutes to several hours, and the result will be that the input will not be directly proportional to the output.
其次,当前OTA的测试是通过手动或者半自动的测试来完成,每次测试仅能针对一个被测模块进行测试,测试的覆盖度和效率不够高,远远无法满足压力测试的样本数量。Secondly, the current OTA testing is done through manual or semi-automatic testing. Each test can only be tested for one module under test. The coverage and efficiency of the test are not high enough to meet the sample size of the stress test.
发明内容Contents of the invention
鉴于以上现有技术的缺点,本发明提供一种OTA压力测试方法,以改善现有的OTA测试采用非自动化测试验证,耗费大量的人力物力,且测试覆盖度和效率不够高,无法满足压力测试样本数量的技术问题。In view of the above shortcomings of the prior art, the present invention provides an OTA stress test method to improve the existing OTA test using non-automated test verification, which consumes a lot of manpower and material resources, and the test coverage and efficiency are not high enough to meet the stress test requirements. Technical issues with sample size.
为实现上述目的及其它相关目的,本发明提供一种OTA压力测试方法。包括:响应测试启动程序,读取所述测试启动程序的测试配置文件;To achieve the above object and other related objects, the present invention provides an OTA stress testing method. including: responding to a test launcher, reading a test configuration file of the test launcher;
根据所述测试配置文件参数生成多个升级任务包,分别下发给所述升级任务包所指定的被测模块;Generate a plurality of upgrade task packages according to the test configuration file parameters, and send them to the modules under test specified by the upgrade task packages respectively;
根据所述升级任务包进行ECU(Electronic Control Unit,电子控制单元)重复刷写,直至累计测试次数达到预设测试次数;Carry out ECU (Electronic Control Unit, electronic control unit) flashing repeatedly according to described upgrading task package, until the cumulative number of tests reaches the preset number of tests;
获取各所述被测模块测试结果,根据所述测试结果生成测试报告。Obtain the test results of each of the tested modules, and generate a test report according to the test results.
于本申请一实施例中,根据所述测试配置文件参数生成多个升级任务包,分别下发给所述升级任务包所指定的被测模块,包括:根据所述测试配置文件参数生成多个具有编码的所述升级任务包;根据所述升级任务包的编码,将不同编码的所述升级任务包分别下发给预设有不同编号的所述被测模块。In an embodiment of the present application, generating multiple upgrade task packages according to the parameters of the test configuration file, and sending them to the modules under test specified by the upgrade task packages respectively, including: generating multiple upgrade task packages according to the parameters of the test configuration file The upgrade task package with codes; according to the codes of the upgrade task packages, the upgrade task packages with different codes are delivered to the modules under test preset with different numbers respectively.
于本申请一实施例中,根据所述升级任务包进行ECU重复刷写,直至累计测试次数达到预设测试次数,包括:触发版本同步诊断服务请求;获得下载授权许可,获取安装说明书和软件升级包;获得安装授权许可,根据安装说明书,对各对应的ECU进行刷写;获取回滚操作请求,进行本地回滚的ECU刷写,所述累计测试次数加一;获取累计测试次数,根据所述累计测试次数,重复上述步骤,直至所述累计测试次数达到预设测试次数In an embodiment of the present application, the ECU is repeatedly flashed according to the upgrade task package until the cumulative number of tests reaches the preset number of tests, including: triggering a version synchronization diagnosis service request; obtaining a download authorization license, obtaining installation instructions and software upgrades package; obtain the installation authorization license, and flash each corresponding ECU according to the installation manual; obtain the rollback operation request, perform local rollback ECU flashing, and add one to the cumulative test times; obtain the cumulative test times, according to the The cumulative number of tests, repeat the above steps until the cumulative number of tests reaches the preset number of tests
于本申请一实施例中,触发版本同步诊断服务请求,指令过程包括:网关控制器复位请求;进入扩展会话请求;网关的版本同步指令操作;刹车踏板踩下;档位置位D档;P档按键按下;上述状态维持至预设时间。In one embodiment of the present application, the version synchronization diagnosis service request is triggered, and the command process includes: a gateway controller reset request; a request to enter an extended session; a version synchronization command operation of the gateway; stepping on the brake pedal; Press the button; the above state is maintained until the preset time.
于本申请一实施例中,开辟新的线程,周期轮回查看版本同步状态,若版本同步查看时间内查询结果为同步NOK的状态,认定无法版本同步,发出具体异常提示。In one embodiment of the present application, a new thread is created to periodically check the version synchronization status. If the query result is a synchronization NOK status within the version synchronization check time, it is determined that the version synchronization cannot be performed, and a specific exception prompt is issued.
于本申请一实施例中,获得安装授权许可,包括:接收软件升级包;激活DHU上的更新升级按钮;通过ADB控制DHU自动触发更新升级按钮按下。In an embodiment of the present application, obtaining the installation authorization includes: receiving the software upgrade package; activating the update and upgrade button on the DHU; controlling the DHU to automatically trigger the press of the update and upgrade button through ADB.
于本申请一实施例中,接收软件升级包,包括:接收软件升级包前进行通信加密的安全验证;接收软件升级包时进行数据帧异常检测;接收软件升级包后进行OTA升级包验签的安全验证。In one embodiment of the present application, receiving the software upgrade package includes: performing communication encryption security verification before receiving the software upgrade package; performing data frame anomaly detection when receiving the software upgrade package; performing OTA upgrade package signature verification after receiving the software upgrade package safety verification.
本申请还提供一种OTA压力测试系统,包括:The present application also provides an OTA stress testing system, including:
测试管理模块,所述测试管理模块读取测试配置文件,根据所述测试配置文件控制生成多个升级任务包,并将所述升级任务包分别下发给所述升级任务包指定的被测模块;A test management module, wherein the test management module reads the test configuration file, controls and generates multiple upgrade task packages according to the test configuration file, and sends the upgrade task packages to the modules under test specified by the upgrade task package respectively ;
被测模块,一个所述测试管理模块对应一个或多个被测模块;所述被测模块触发版本同步诊断服务请求,获得下载授权许可后获取安装说明书和软件升级包,获取安装授权许可后根据安装说明书对各对应的ECU进行刷写;获取回滚操作请求后进行本地回滚,累计测试次数加一;获取所述累计测试次数,进行重复测试;The module under test, one of the test management modules corresponds to one or more modules under test; the module under test triggers a version synchronization diagnostic service request, obtains the installation manual and software upgrade package after obtaining the download authorization license, and obtains the installation authorization according to the The installation manual flashes each corresponding ECU; performs local rollback after obtaining the rollback operation request, and adds one to the accumulated test times; obtains the accumulated test times and repeats the test;
各所述被测模块的所述累计测试次数分别达到各预设测试次数后,测试管理模块获取各所述被测模块的测试结果,根据所述测试结果生成测试报告。After the accumulative test times of each of the modules under test respectively reach the preset test times, the test management module acquires the test results of each of the modules under test, and generates a test report according to the test results.
本申请还提供一种电子设备,所述电子设备包括:The present application also provides an electronic device, the electronic device comprising:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述电子设备实现如上述任一项所述的OTA压力测试方法。A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the OTA stress testing method as described in any one of the above .
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序被计算机的处理器执行时,使计算机执行上述任一项所述的OTA压力测试方法。The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor of the computer, the computer is made to execute the OTA stress testing method described in any one of the above.
本发明的有益效果在于:The beneficial effects of the present invention are:
本申请提供的OTA压力测试方法,自动化的完成OTA的压力测试,根据测试项目执行对应的测试脚本,一键输出测试报告,整个测试过程自动化,减少测试人员时间占用,提高测试效率。The OTA stress test method provided by this application can automatically complete the OTA stress test, execute the corresponding test script according to the test item, output the test report with one key, and automate the entire test process, reducing the time occupied by testers and improving test efficiency.
本申请的方法在测试过程中,可以实现写入一次配置文件,对多个被测模块同时进行独立的测试,测试人员不需要对每个被测模块进行分别操作,降低测试人员的工作任务,有效的提高测试数量,满足OTA压力测试的样本数量要求。The method of the present application can write a configuration file once during the test process, and independently test multiple tested modules at the same time. The tester does not need to operate each tested module separately, reducing the work tasks of the tester. Effectively increase the number of tests to meet the sample size requirements of the OTA stress test.
本申请的方法在测试过程中,根据设定自动化的选定测试用例,通过协同云端和车端同步恢复OTA初始状态,保证下一用例的执行不受上一条测试用例中遗留任务的干扰,保证每一条测试用例都是独立运行的,从而满足OTA的压力测试要求。During the testing process, the method of the present application restores the initial state of the OTA synchronously by cooperating with the cloud and the vehicle terminal according to the selected test cases set automatically, so as to ensure that the execution of the next use case will not be disturbed by the tasks left in the previous test case, and ensure that Each test case is run independently to meet the OTA's stress test requirements.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为现有的OTA测试示例性示意图;Fig. 1 is an exemplary schematic diagram of an existing OTA test;
图2为一种OTA自动化测试系统示意图;Fig. 2 is a schematic diagram of an OTA automated testing system;
图3为一种示例性1对N的测试系统框架;Fig. 3 is an exemplary 1-to-N test system framework;
图4为本申请一示例性OTA压力测试方法示意图;FIG. 4 is a schematic diagram of an exemplary OTA stress testing method of the present application;
图5为本申请图4中步骤S430一示例性的示意图;FIG. 5 is an exemplary schematic diagram of step S430 in FIG. 4 of the present application;
图6为本申请图5中步骤S510一示例性的版本同步诊断服务请求示意图;FIG. 6 is a schematic diagram of an exemplary version synchronization diagnosis service request in step S510 in FIG. 5 of the present application;
图7为本申请图5中步骤S530一示例性的获得安装授权许可示意图;FIG. 7 is a schematic diagram of an exemplary step S530 in FIG. 5 of the present application for obtaining an installation authorization license;
图8为本申请图7中步骤S710一示例性示意图;FIG. 8 is an exemplary schematic diagram of step S710 in FIG. 7 of the present application;
图9为本申请图5中步骤S530一示例性示意图;FIG. 9 is an exemplary schematic diagram of step S530 in FIG. 5 of the present application;
图10示出了一种示例性OTA压力测试方法的硬件架构图;Fig. 10 shows a hardware architecture diagram of an exemplary OTA stress testing method;
图11示出了一种示例性OTA压力测试任务执行示意图;FIG. 11 shows a schematic diagram of an exemplary OTA stress test task execution;
图12示出了适于用来实现本申请实施例的计算机系统的结构示意图。FIG. 12 shows a schematic structural diagram of a computer system suitable for implementing the embodiments of the present application.
具体实施方式Detailed ways
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其它优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。还应当理解,本发明实施例中使用的术语是为了描述特定的具体实施方案,而不是为了限制本发明的保护范围。下列实施例中未注明具体条件的试验方法,通常按照常规条件,或者按照各制造商所建议的条件。Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other. It should also be understood that the terminology used in the embodiments of the present invention is for describing specific implementations, not for limiting the protection scope of the present invention. The test methods for which specific conditions are not indicated in the following examples are usually in accordance with conventional conditions, or in accordance with the conditions suggested by each manufacturer.
当实施例给出数值范围时,应理解,除非本发明另有说明,每个数值范围的两个端点以及两个端点之间任何一个数值均可选用。除非另外定义,本发明中使用的所有技术和科学术语与本技术领域的技术人员对现有技术的掌握及本发明的记载,还可以使用与本发明实施例中所述的方法、设备、材料相似或等同的现有技术的任何方法、设备和材料来实现本发明。When the examples give numerical ranges, it should be understood that, unless otherwise stated in the present invention, the two endpoints of each numerical range and any value between the two endpoints can be selected. Unless otherwise defined, all technical and scientific terms used in the present invention are consistent with those skilled in the art's grasp of the prior art and the description of the present invention, and can also be used with the methods, equipment, and materials described in the embodiments of the present invention Any methods, apparatus and materials of the prior art similar or equivalent to the practice of the present invention.
须知,本说明书中所引用的如“上”、“下”、“左”、“右”、“中间”及“一”等的用语,亦仅为便于叙述的明了,而非用以限定本发明可实施的范围,其相对关系的改变或调整,在无实质变更技术内容下,当亦视为本发明可实施的范畴。It should be noted that terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description and are not used to limit this specification. The practicable scope of the invention and the change or adjustment of its relative relationship shall also be regarded as the practicable scope of the present invention without any substantial change in the technical content.
OTA是指空中下载技术,汽车OTA可以通过移动通信的接口实现对软件的远程管理。早期时,OTA技术广泛应用于智能手机的软件的升级,后来汽车ota技术在2012年被推出,促进了汽车行业的发展。OTA refers to over-the-air download technology, and car OTA can realize remote management of software through the interface of mobile communication. In the early days, OTA technology was widely used to upgrade the software of smartphones. Later, the automotive OTA technology was launched in 2012, which promoted the development of the automotive industry.
汽车OTA的升级类似于电脑视窗系统的升级或者手机系统的升级,每一次的升级都可以改进、修补漏洞或者获得更多的功能、性能以及视觉效果的提升。自从汽车OTA技术出现以后,4s店在汽车升级的环节里就不再是必选题。The upgrade of the car OTA is similar to the upgrade of the computer window system or the upgrade of the mobile phone system. Each upgrade can improve, fix bugs or obtain more functions, performance and visual effects. Since the emergence of car OTA technology, 4S stores are no longer a mandatory topic in car upgrades.
现在很多的车企都很重视汽车OTA技术,现在的汽车OTA技术还运用于各种地图、运用程序以及娱乐信息系统等地方,甚至还发展到了电子控制单元。但汽车行业不像其他行业,汽车需要有一定的安全性,如果OTA技术出现问题就很有可能导致严重的安全事故,技术的可靠性与稳定性必须在投放市场前得到充分的验证,包括关键控制器的部件验证以及系统的集成验证,而保证的唯一方式就是通过对OTA方案进行完整的测试验证。Nowadays, many car companies attach great importance to the OTA technology of automobiles. The OTA technology of automobiles is also used in various maps, application programs, entertainment information systems, etc., and has even been developed into electronic control units. However, the automotive industry is not like other industries. Automobiles need to have a certain degree of safety. If there is a problem with OTA technology, it is likely to cause serious safety accidents. The reliability and stability of the technology must be fully verified before it is put on the market, including key The component verification of the controller and the integration verification of the system, and the only way to guarantee it is through a complete test verification of the OTA solution.
请参考图1,图1现有技术OTA系统测试的示例性示意图。Please refer to FIG. 1 , which is an exemplary schematic diagram of OTA system testing in the prior art.
汽车OTA升级是通过无线信号传输获取升级包后,对汽车的娱乐或电子控制单元进行修改升级。现有的OTA测试方案存在诸多的限制和瓶颈,当前方案基本采用的都是非自动化测试验证方式,即:通过投入人力资源进行手动的测试验证,这样做补不仅带来大量的人力成本,且由于OTA的链路测试均涉及下载和安装的,这两个步骤需要耗费大量的时间,从几十分钟到几个小时不等,如此带来的后果将是投入与产出不成正比。其次,当前OTA的测试是通过手动或者半自动的测试来完成,其覆盖度低且结果的可靠性差,无法覆盖实车中的各种场景,一些特定的场景在手动测试或者半自动测试的环境下无法满足,只有通过仿真的方式进行自动化的测试来实现,另外,测试过程中的许多测试参数精度需要通过精确的定时器来完成,无法通过手动或者半自动的方式来实现。Car OTA upgrade is to modify and upgrade the entertainment or electronic control unit of the car after obtaining the upgrade package through wireless signal transmission. There are many limitations and bottlenecks in the existing OTA testing schemes. The current schemes basically adopt non-automated testing and verification methods, that is, manual testing and verification is performed by investing human resources, which not only brings a lot of labor costs, but also due to OTA link testing involves downloading and installation. These two steps take a lot of time, ranging from tens of minutes to several hours. The consequence of this is that the input will not be directly proportional to the output. Secondly, the current OTA test is completed through manual or semi-automatic testing, which has low coverage and poor reliability of the results, and cannot cover various scenarios in real vehicles. Satisfaction can only be achieved through automated testing in the form of simulation. In addition, the accuracy of many test parameters in the testing process needs to be completed by precise timers, which cannot be achieved by manual or semi-automatic methods.
本申请能够自动的实现OTA压力测试,在一次测试中,只需要写入一次测试文件,实现对不同的台架的ECU((Electronic Control Unit,电子控制单元))进行不同版本的刷写,也可以对同一个台架的ECU进行多次重复刷写,还可以对同一个ECU进行不同版本的刷写,从而满足OTA系统压力测试的要求。This application can realize the OTA pressure test automatically, in a test, only need to write a test file once, realize to carry out different versions of flashing to the ECU ((Electronic Control Unit, electronic control unit)) of different benches, also The ECU of the same bench can be flashed multiple times, and different versions of the same ECU can be flashed, so as to meet the requirements of the OTA system stress test.
请参阅图2,图2为一种OTA自动化测试系统示意图,详述如下:Please refer to Figure 2, Figure 2 is a schematic diagram of an OTA automated testing system, detailed as follows:
OTA自动化测试系统包括测试管理系统、测试执行系统、被测系统、无线仿真系统;OTA automated test system includes test management system, test execution system, system under test, and wireless simulation system;
测试管理系统是用户实施自动化测试操作的窗口,具有登录功能、权限控制、用例选择、参数配置、测试报告及测试日志管理等功能;测试执行系统主要负责测试用例执行,包括电源控制、I/O信号仿真、消息监控、报文仿真、故障注入以及对HMI的操作控制等;被测系统是由构成OTA功能逻辑的T-Box、CGW、HMI、ETH/CAN节点及其附属ECU构成,它们被集成到台架上;无线信号仿真系统是由Keysight UXM综测仪和信道仿真仪构成,主要目的是将外界真实的无线网络信号“搬到”实验室以替代实车路测。The test management system is a window for users to implement automated test operations, with functions such as login function, authority control, use case selection, parameter configuration, test report and test log management; the test execution system is mainly responsible for test case execution, including power control, I/O Signal simulation, message monitoring, message simulation, fault injection, and HMI operation control, etc.; the system under test is composed of T-Box, CGW, HMI, ETH/CAN nodes and their attached ECUs that constitute the OTA functional logic. Integrated into the bench; the wireless signal simulation system is composed of Keysight UXM comprehensive tester and channel simulator, the main purpose is to "move" the real wireless network signal from the outside world to the laboratory to replace the real vehicle road test.
从OTA压力测试的整理效率角度触发,现有的一套HIL台架只能对接1个Boxcar,采用的Vector设备在硬件配置上通过1个VN1670、1个VN7572和1个5650的组合来实现CAN/CANFD/LIN/FlexRay/ETH的仿真和检测功能。而1个VN1670、1个VN7572和1个5650的组合共分配12路CAN总线、2路CANFD总线、10路LIN总线、1路FlexRay总线和12路100BASE-T1兼容1000BASE-T1接口的以太网总线。此配置对于市面上大多数车企来说,只能实现对一辆车或一个Boxcar的大部分数据进行录取和存储,覆盖度和效率依然不够高,远远无法满足压力测试的样本数量。Triggered from the perspective of finishing efficiency of the OTA stress test, the existing set of HIL bench can only be connected to one Boxcar, and the Vector device used in the hardware configuration realizes CAN through a combination of one VN1670, one VN7572 and one 5650 Simulation and detection functions of /CANFD/LIN/FlexRay/ETH. The combination of 1 VN1670, 1 VN7572 and 1 5650 distributes 12 CAN buses, 2 CAN FD buses, 10 LIN buses, 1 FlexRay bus and 12 100BASE-T1 compatible Ethernet buses with 1000BASE-T1 interface . For most car companies on the market, this configuration can only record and store most of the data of a car or a Boxcar. The coverage and efficiency are still not high enough to meet the sample size of the stress test.
请参阅图3,图3示出了一种1对N的测试系统框架。图3通过增加被测目标的硬件设施,但不扩大HIL本身的台架数量,让1套HIL台架可以对接N个被测目标Boxcar,实现并行测试,从而扩大压力测试的样本数量,提高压测效率。这里只举例极氪OTA自动化压测方案,即1套HIL台架对接5个Boxcar,本发明方案对应的每个Boxcar采用的Vector设备在硬件配置上通过1个VN5650和2个VN7572的组合来实现CAN/CANFD/LIN/FlexRay/ETH的仿真和检测功能。1个VN5650和2个VN7572共分配10路CAN总线、2路CANFD总线、5路LIN总线和1路FlexRay总线和12路100BASE-T1兼容1000BASE-T1接口的以太网总线。再将5个Boxcar的数据并行抓取到CANoe Agent中,通过CANoe Agent进行同步处理并上传到测试管理软件,在测试管理软件中体现整体压测的结果,最终实现并行测试并输出测试报告。请参阅图4,图4为本申请一示例性OTA压力测试方法示意图,具体介绍如下:Please refer to FIG. 3 , which shows a 1-to-N test system framework. Figure 3 By increasing the hardware facilities of the target to be tested, but not expanding the number of HIL benches, one set of HIL benches can be connected to N target Boxcars to achieve parallel testing, thereby expanding the number of stress test samples and increasing the pressure. Measure efficiency. Here is just an example of the extreme krypton OTA automated pressure measurement solution, that is, one set of HIL bench docking with five Boxcars, the Vector device used by each Boxcar corresponding to the solution of the present invention is realized by a combination of one VN5650 and two VN7572 in terms of hardware configuration Simulation and detection functions of CAN/CANFD/LIN/FlexRay/ETH. One VN5650 and two VN7572 distribute 10 CAN buses, 2 CAN FD buses, 5 LIN buses, 1 FlexRay bus and 12 Ethernet buses with 100BASE-T1 compatible 1000BASE-T1 interface. Then capture the data of 5 Boxcars into CANoe Agent in parallel, process them synchronously through CANoe Agent and upload them to the test management software, reflect the results of the overall pressure test in the test management software, and finally realize the parallel test and output the test report. Please refer to Figure 4, Figure 4 is a schematic diagram of an exemplary OTA stress testing method of the present application, and the details are as follows:
步骤S410,响应测试启动程序,读取所述测试启动程序的测试配置文件。Step S410, responding to the test initiation program, reading the test configuration file of the test initiation program.
在进行测试前,写入测试配置文件,测试配置文件包括本次测试的所有配置参数,如本次测试需要对哪几个被测模块进行测试、每个被测模块的测试用例、配置ECU组合、测试基线等等,写入一次测试配置文件,可以任意组合多个被测模块,从而提高OTA测试数量,满足OTA压力测试的样本要求。Before the test, write the test configuration file. The test configuration file includes all the configuration parameters of this test, such as which tested modules need to be tested in this test, the test cases of each tested module, and the configuration ECU combination , test baseline, etc., write a test configuration file once, and multiple tested modules can be combined arbitrarily, thereby increasing the number of OTA tests and meeting the sample requirements of OTA stress tests.
步骤S420,根据所述测试配置文件参数生成多个升级任务包,分别下发给所述升级任务包所指定的被测模块。Step S420, generating a plurality of upgrade task packages according to the parameters of the test configuration file, and sending them to the modules under test specified by the upgrade task packages respectively.
根据测试配置文件的参数生成多个升级任务包,每个升级任务包对应一个被测模块,将每个升级任务包发给相对应的被测模块,从而方便对多个被测模块同时进行相同或不同的测试。Generate multiple upgrade task packages according to the parameters of the test configuration file, each upgrade task package corresponds to a module under test, and send each upgrade task package to the corresponding module under test, so that it is convenient to perform the same test on multiple modules under test at the same time or a different test.
在本申请的一示例性实施例中,测试配置文件参数由测试管理软件读取,测试管理软件根据测试配置文件参数,根据控制OTA服务器生成多个相对应的升级任务包,并将升级任务包分别下发给相对应的被测模块,从而实现一次对多个被测模块进行分别测试,有效的提高了测试的样本数量。In an exemplary embodiment of the present application, the test configuration file parameters are read by the test management software, and the test management software generates a plurality of corresponding upgrade task packages according to the control OTA server according to the test configuration file parameters, and the upgrade task package They are distributed to the corresponding modules under test, so as to realize separate tests on multiple modules under test at one time, effectively increasing the number of test samples.
步骤S430,根据所述升级任务包进行ECU重复刷写,直至累计测试次数达到预设测试次数。Step S430, perform repeated flashing of the ECU according to the upgrade task package until the cumulative number of tests reaches the preset number of tests.
需要说明的是,每个升级任务包分别对应一个被测模块,每个被测模块独立进行ECU重复刷写,各被测模块之间相互独立,任意被测模块刷写失败对其他被测模块不造成影响,刷写失败原因会在测试报告中说明。It should be noted that each upgrade task package corresponds to a module under test, and each module under test performs repeated flashing of the ECU independently, and the modules under test are independent of each other. No impact, the reason for flashing failure will be explained in the test report.
请参考图5,图5为本申请图4中步骤S430一示例性的示意图,对ECU重复刷写的方法进行了如下介绍:Please refer to Fig. 5, Fig. 5 is an exemplary schematic diagram of step S430 in Fig. 4 of the present application, and the method for repeatedly brushing the ECU is introduced as follows:
步骤S510,触发版本同步诊断服务请求。Step S510, triggering a version synchronization diagnosis service request.
在被测模块进行刷写之前,需要首先进行版本同步诊断,只有在版本一致的情况下才可以进行刷写测试。Before the module under test is flashed, version synchronization diagnosis needs to be performed first, and the flashing test can only be performed when the versions are consistent.
请参阅图6,图6本申请图5中步骤S510一示例性的版本同步诊断服务请求示意图,图6介绍了一种示例性的版本同步诊断服务请求,具体过程如下:Please refer to FIG. 6, which is a schematic diagram of step S510 in FIG. 5 of this application—an exemplary version synchronization diagnosis service request. FIG. 6 introduces an exemplary version synchronization diagnosis service request, and the specific process is as follows:
首先是网关控制器复位请求;The first is the gateway controller reset request;
进入扩展会话请求;Enter extended session request;
网关的版本同步操作指令;The version synchronization operation instruction of the gateway;
刹车踏板踩下;brake pedal depressed;
档位置位D挡;The gear position is D gear;
P挡按键按下,需要注意的是,对于某些车型P挡与手刹为同一按键,对于某些车型,P挡与手刹为不同按键,对于不同按键的车型,此时还需要增加手刹按键按下这一程序。Press the P gear button. It should be noted that for some models, the P gear and the handbrake are the same button. For some models, the P gear and the handbrake are different buttons. For models with different buttons, you need to add the handbrake button. Download this program.
上述状态维持至预设时间,为了方便测试,预设时间可以选择2~5分钟,优选3分钟。The above state is maintained for a preset time. For the convenience of testing, the preset time can be selected from 2 to 5 minutes, preferably 3 minutes.
在本申请一示例性实施例中,触发版本同步诊断服务请求后,上位机会开辟新的线程,周期轮回的查看WEB服务器版本同步状态,若版本同步查看时间内查询结果为同步NOK的状态,认定车端与云端无法版本同步,发出具体异常提示,异常提示如Reset复位失败、无法进入扩展诊断会话、例程控制否定响应等。版本同步查看时间由系统自由设定,为了提高测试效率,可以选择3~5分钟。In an exemplary embodiment of the present application, after the version synchronization diagnosis service request is triggered, the host machine opens a new thread to periodically check the version synchronization status of the WEB server. The car end and the cloud cannot synchronize versions, and specific exception prompts are issued, such as Reset reset failure, failure to enter the extended diagnostic session, and negative response to routine control. Version synchronization viewing time is freely set by the system, in order to improve test efficiency, you can choose 3 to 5 minutes.
步骤S520,获得下载授权许可,获取安装说明书和软件升级包。Step S520, obtaining a download authorization license, obtaining an installation manual and a software upgrade package.
在本申请一实施例中,被测模块获得下载授权许可包括激活DHU(Driver HeadUnit,娱乐主机和仪表的集成机器)上的授权下载按钮,通过ADB(Android Debug Bridge安卓调试桥)控制DHU自动触发授权下载按钮按下,相当于用户按下授权下载按钮,即用户给与了下载授权许可。获得下载授权许可后,由OTA服务器下载安装说明书和软件升级包,软件升级包为升级任务包中的一项。In one embodiment of the present application, obtaining the download authorization permission for the module under test includes activating the authorized download button on the DHU (Driver HeadUnit, the integrated machine of the entertainment host and instrument), and controlling the automatic triggering of the DHU through the ADB (Android Debug Bridge). Pressing the authorized download button is equivalent to the user pressing the authorized download button, that is, the user has given the download authorization permission. After obtaining the download authorization license, the OTA server downloads the installation manual and the software upgrade package, which is one of the upgrade task packages.
步骤S530,获得安装授权许可,根据安装说明书,对各对应的ECU进行刷写。In step S530, the installation authorization is obtained, and each corresponding ECU is flashed according to the installation manual.
需要首先说明的是,将软件升级包刷写入ECU,从而实现ECU的版本更迭。What needs to be explained first is that the software upgrade package is written into the ECU, so as to realize the version change of the ECU.
请参阅图7,图7为本申请图5中步骤S530一示例性的获得安装授权许可示意图。Please refer to FIG. 7 . FIG. 7 is an exemplary schematic diagram of obtaining installation authorization in step S530 in FIG. 5 of the present application.
步骤S710,接收软件升级包。Step S710, receiving a software upgrade package.
被测模块首先获得下发的软件升级包。在获得软件升级包过程中需要进行安全验证,以保证用户或厂商的信息安全,具体包括接收软件升级包前进行通信加密的安全验证;The tested module first obtains the issued software upgrade package. In the process of obtaining the software upgrade package, security verification is required to ensure the information security of users or manufacturers, specifically including the security verification of communication encryption before receiving the software upgrade package;
接收软件升级包时进行数据帧异常检测;Perform data frame anomaly detection when receiving software upgrade packages;
接收软件升级包后进行OTA升级包验签的安全验证,从而确保信息时安全的。After receiving the software upgrade package, the security verification of the OTA upgrade package signature verification is performed to ensure that the information is always safe.
步骤S720,激活DHU上的更新升级按钮。Step S720, activate the update and upgrade button on the DHU.
在本申请实施例中,激活DHU上的更新升级按钮,相当于在实际的OTA升级中,向客户发出更新升级的提示,若客户点击更新升级按钮,则代表用户许可进行更新升级,若用户未点击或点击否,则代表用户暂时不需要升级,保留升级提醒指令。In the embodiment of this application, activating the update and upgrade button on the DHU is equivalent to sending an update and upgrade prompt to the customer in the actual OTA upgrade. If the customer clicks the update and upgrade button, it represents the user's permission to perform the update and upgrade. If the user does not Click or click No, it means that the user does not need to upgrade temporarily, and the upgrade reminder instruction is reserved.
步骤S730,通过ADB控制DHU自动触发更新升级按钮按下。In step S730, the DHU is controlled by the ADB to automatically trigger the pressing of the update and upgrade button.
上位机通过ADB控制DHU自动触发更新升级按钮按下,等同于用户按下,给与授权安装许可。The upper computer controls the DHU through ADB to automatically trigger the update and upgrade button to be pressed, which is equivalent to the user pressing and giving the authorized installation permission.
还需要说明的是,ECU的刷写中需要进行各项处理,请参阅图9,图9为本申请图5中步骤S530一示例性示意图,具体的刷写处理过程如下;It should also be noted that various processes need to be performed during the flashing of the ECU. Please refer to FIG. 9, which is an exemplary schematic diagram of step S530 in FIG. 5 of the present application. The specific flashing process is as follows;
步骤S910,刷写前条件验证,所述条件验证包括正向条件验证、逆向条件验证。Step S910, condition verification before flashing, the condition verification includes forward condition verification and reverse condition verification.
步骤S920,刷写中处理过程,所述刷写中处理过程包括有诊断请求格式及序列验证、刷写条件反转、故障注入、刷写异常处理机制验证。Step S920, the process of flashing, which includes diagnostic request format and sequence verification, flashing condition reversal, fault injection, and flashing exception handling mechanism verification.
步骤S930,刷写后处理过程,所述刷写后处理过程包括ECU状态确认、休眠机制记录。Step S930, post-flashing processing process, the post-flashing processing process includes ECU status confirmation and dormancy mechanism recording.
上述处理过程均为可以写入到测试报告中,以供测试人员参考。All the above-mentioned processing procedures can be written into the test report for reference by testers.
请继续参阅图5,步骤S540,获取回滚操作请求,进行本地回滚的ECU刷写,所述累计测试次数加一。Please continue to refer to FIG. 5 , step S540 , obtain a rollback operation request, perform local rollback ECU flashing, and add one to the accumulated test times.
当单次的测试完成后,获取回滚操作请求,进行本地回滚的ECU刷写,从而使得ECU恢复到初始状态,以保证在下次测试过程中是版本同步的,避免此次测试用例影响下次测试。After a single test is completed, get the rollback operation request, and perform local rollback ECU flashing, so as to restore the ECU to the initial state, so as to ensure that the version is synchronized during the next test, and avoid the impact of this test case tests.
步骤S550,获取累计测试次数,根据所述累计测试次数,重复上述步骤,直至所述累计测试次数达到预设测试次数。In step S550, the cumulative number of tests is acquired, and the above steps are repeated according to the cumulative number of tests until the cumulative number of tests reaches a preset number of tests.
在下发升级任务包时,对每个测试台架的测试用例、测试次数、测试组合均已说明,当累计测试次数达到预设测试次数时,结束此测试台架的测试。When the upgrade task package is issued, the test cases, test times, and test combinations of each test bench have been explained. When the accumulated test times reach the preset test times, the test of this test bench will end.
需要说明的是,预设测试次数可以为一个,即到达此次数就停止测试,预设测试次数也可以为多个,不同预设测试次数代表着不同的升级,假定此测试台架处于A版本,预设测试次数两个分别为500、1000,假定当累计测试次数小于500时,此测试台架的ECU由A版本升级到B版本,当累计测试次数大于等于500,小于1000时,此测试台架的ECU由A版本升级到C版本,当累计测试次数等于1000时,停止测试。从而可以实现测试版本的改变,仅需要一次测试,即可满足多种测试的组合,方便简单,节约测试时间,提高测试样本数量。It should be noted that the number of preset tests can be one, that is, the test will be stopped when this number is reached, and the number of preset tests can also be multiple. Different preset times of tests represent different upgrades. Assume that the test bench is in version A , the two preset test times are 500 and 1000 respectively. It is assumed that when the cumulative test times are less than 500, the ECU of this test bench is upgraded from version A to version B. When the cumulative test times are greater than or equal to 500 and less than 1000, this test The ECU of the bench is upgraded from version A to version C, and when the cumulative number of tests is equal to 1000, the test is stopped. Therefore, the test version can be changed, and only one test is required to meet the combination of multiple tests, which is convenient and simple, saves test time, and increases the number of test samples.
请继续参阅图4,步骤S440,获取各所述被测模块测试结果,根据所述测试结果生成测试报告。Please continue to refer to FIG. 4 , step S440 is to obtain the test results of each tested module, and generate a test report according to the test results.
需要说明的是,各被测模块的测试结果是独立的,可以每个被测模块独立生成测试报告,也可以由多个被测模块生成一份测试报告,本申请对此不做限定。It should be noted that the test results of each tested module are independent, and each tested module can generate a test report independently, or a test report can be generated by multiple tested modules, which is not limited in this application.
本申请一实施例行实施例中,测试过程中的总线测试数据、诊断测试数据、电气测试数据等可通过文件传输的方式传送服务器,将数据与具体任务、用例关联。从服务器请求查看测试当前报文,代理引擎进行接受请求并读取数据,再通过CANoe调用CAPL脚本实现数据的解析,然后反馈解析结果。监听报文和终止监听也是同样的方式。In an embodiment of the present application, bus test data, diagnostic test data, electrical test data, etc. during the test process can be transmitted to the server through file transfer, and the data is associated with specific tasks and use cases. Request from the server to view and test the current message, the proxy engine accepts the request and reads the data, then calls the CAPL script through CANoe to analyze the data, and then feeds back the analysis result. The same method is used to monitor packets and terminate monitoring.
本申请一实施例还示出一种OTA压力测试系统,包括测试管理模块,所述测试管理模块读取测试配置文件,根据所述测试配置文件控制生成多个升级任务包,并将所述升级任务包分别下发给所述升级任务包指定的被测模块。An embodiment of the present application also shows an OTA stress testing system, including a test management module, the test management module reads the test configuration file, controls and generates multiple upgrade task packages according to the test configuration file, and updates the upgrade The task packages are delivered to the tested modules specified by the upgrade task package respectively.
被测模块,一个所述测试管理模块对应一个或多个被测模块;所述被测模块触发版本同步诊断服务请求,获得下载授权许可后获取安装说明书和软件升级包,获取安装授权许可后根据安装说明书对各对应的ECU进行刷写;获取回滚操作请求后进行本地回滚,累计测试次数加一;获取所述累计测试次数,进行重复测试;The module under test, one of the test management modules corresponds to one or more modules under test; the module under test triggers a version synchronization diagnostic service request, obtains the installation manual and software upgrade package after obtaining the download authorization license, and obtains the installation authorization according to the The installation manual flashes each corresponding ECU; performs local rollback after obtaining the rollback operation request, and adds one to the accumulated test times; obtains the accumulated test times and repeats the test;
各所述被测模块的所述累计测试次数分别达到各预设测试次数后,测试管理模块获取各所述被测模块的测试结果,根据所述测试结果生成测试报告。After the accumulative test times of each of the modules under test respectively reach the preset test times, the test management module acquires the test results of each of the modules under test, and generates a test report according to the test results.
在本身一实施例中,还包括有无线信息仿真模块,无线信号仿真模块是由Keysight UXM综测仪和信道仿真仪构成,主要目的是将外界真实的无线网络信号“搬到”实验室以替代实车路测。In an embodiment of itself, it also includes a wireless information simulation module. The wireless signal simulation module is composed of a Keysight UXM comprehensive tester and a channel simulator. The main purpose is to "move" the real wireless network signal from the outside to the laboratory to replace Real vehicle road test.
需要说明的是,上述实施例所提供的OTA压力测试系统与上述实施例所提供的OTA压力测试方法属于同一构思,其中各个模块和单元执行操作的具体方式已经在方法实施例中进行了详细描述,此处不再赘述。上述实施例所提供的OTA压力测试系统在实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能,本处也不对此进行限制。It should be noted that the OTA stress testing system provided in the above-mentioned embodiments and the OTA stress testing method provided in the above-mentioned embodiments belong to the same concept, and the specific ways in which each module and unit perform operations have been described in detail in the method embodiments , which will not be repeated here. In actual application of the OTA stress testing system provided by the above embodiments, the above function allocation can be completed by different functional modules according to the needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above description function, which is not limited here.
请参阅图10,图10示出了一种实现OTA压力测试方法的硬件架构图。通过上位机,通过上位机,HIL台架根据下发的序列和配置动态进行测试,进而自动化并行控制,实现多种/多个实车配置和场景的模拟测试,高效的达到一定压测目标,实现OTA链路问题的暴露。测试完成后,利用CANoe系统变量监控测试用例的执行数量,通过系统读取CANoe系统变量达到监控测试用例执行情况的效果,并将最终数据回传到系统。Please refer to FIG. 10 , which shows a hardware architecture diagram for implementing an OTA stress testing method. Through the upper computer, through the upper computer, the HIL bench performs dynamic testing according to the issued sequence and configuration, and then automates parallel control to realize the simulation test of multiple/multiple real vehicle configurations and scenarios, and efficiently achieve a certain pressure test target. Realize the exposure of OTA link problems. After the test is completed, the CANoe system variables are used to monitor the execution quantity of the test cases, and the CANoe system variables are read through the system to achieve the effect of monitoring the execution of the test cases, and the final data is returned to the system.
请参阅阅图11,图11示出了一种OTA压力测试任务执行示意图,通过实际测试计划执行测试任务,在测试执行前,需要选择测试工程,系统Please refer to Figure 11. Figure 11 shows a schematic diagram of an OTA stress test task execution. The test task is executed through the actual test plan. Before the test is executed, the test project needs to be selected, and the system
会根据对应的关系,调用代理引擎,执行测试。在测试执行结束时,服务端在收到测试结果数据时,将结果数据生成测试报告,同时记录测试过程数据和结果数据,用于统计分析。According to the corresponding relationship, the proxy engine will be called to execute the test. At the end of the test execution, when the server receives the test result data, it generates a test report with the result data, and records the test process data and result data for statistical analysis.
测试过程中的总线测试数据、诊断测试数据、电气测试数据等可通过文件传输的方式传送服务器,将数据与具体任务、用例关联。从服务器请求查看测试当前报文,代理引擎进行接受请求并读取数据,再通过CANoe调用CAPL脚本实现数据的解析,然后反馈解析结果。监听报文和终止监听也是同样的方式。Bus test data, diagnostic test data, electrical test data, etc. during the test process can be transmitted to the server through file transfer, and the data can be associated with specific tasks and use cases. Request from the server to view and test the current message, the proxy engine accepts the request and reads the data, then calls the CAPL script through CANoe to analyze the data, and then feeds back the analysis result. The same method is used to monitor packets and terminate monitoring.
本申请一实施例还示出了一种电子设备,所述电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述电子设备实现如上述任一项所述的OTA压力测试方法。An embodiment of the present application also shows an electronic device, the electronic device includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the When executed by one or more processors, the electronic device is made to implement the OTA stress testing method described in any one of the above.
图12示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。需要说明的是,图12示出的电子设备的计算机系统仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Fig. 12 shows a schematic structural diagram of a computer system suitable for implementing the electronic device of the embodiment of the present application. It should be noted that the computer system of the electronic device shown in FIG. 12 is only an example, and should not impose any limitation on the functions and application scope of the embodiments of the present application.
如图12所示,计算机系统1200包括中央处理单元(Central Processing Unit,CPU)1201,其可以根据存储在只读存储器(Read-Only Memory,ROM)1202中的程序或者从储存部分12012加载到随机访问存储器(Random Access Memory,RAM)1203中的程序而执行各种适当的动作和处理,例如执行上述实施例中所述的方法。在RAM 1203中,还存储有系统操作所需的各种程序和数据。CPU 1201、ROM 1202以及RAM 1203通过总线1204彼此相连。输入/输出(Input/Output,I/O)接口1205也连接至总线1204。As shown in FIG. 12 , a computer system 1200 includes a central processing unit (Central Processing Unit, CPU) 1201, which can be stored in a program in a read-only memory (Read-Only Memory, ROM) 1202 or loaded from a storage part 12012 to a random It accesses the programs in the memory (Random Access Memory, RAM) 1203 to execute various appropriate actions and processes, for example, executes the methods described in the above-mentioned embodiments. In
以下部件连接至I/O接口1205:包括键盘、鼠标等的输入部分1206;包括诸如阴极射线管(Cathode Ray Tube,CRT)、液晶显示器(Liquid Crystal Display,LCD)等以及扬声器等的输出部分1207;包括硬盘等的储存部分12012;以及包括诸如LAN(Local AreaNetwork,局域网)卡、调制解调器等的网络接口卡的通信部分1209。通信部分1209经由诸如因特网的网络执行通信处理。驱动器1210也根据需要连接至I/O接口1205。可拆卸介质1211,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1210上,以便于从其上读出的计算机程序根据需要被安装入储存部分1208。The following components are connected to the I/O interface 1205: an
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的计算机程序。在这样的实施例中,该计算机程序可以通过通信部分1209从网络上被下载和安装,和/或从可拆卸介质1211被安装。在该计算机程序被中央处理单元(CPU)1201执行时,执行本申请的系统中限定的各种功能。In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via
本申请一实施例示出了一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序被计算机的处理器执行时,使计算机执行上述任一项所述的OTA压力测试方法。An embodiment of the present application shows a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor of a computer, the computer is made to execute the OTA stress testing method described in any one of the above.
本申请一种OTA压力测试方法,OTA自动化测试的特性体现在测试人员可以灵活选择一组测试用例提交到测试系统,测试系统能够根据测试人员提交的测试用例自动执行对应的测试脚本,最后输出测试报告,报告中包含测试前提条件、详细的测试步骤及每一步的预期结果。如果遇到测试失败项,则可以根据测试步骤和该步骤返回的信息给出可能的失败原因,以帮助测试人员定界问题边界,甚至定位问题根因。This application is an OTA stress testing method. The characteristics of OTA automated testing are reflected in that testers can flexibly select a group of test cases to submit to the test system, and the test system can automatically execute the corresponding test scripts according to the test cases submitted by the testers, and finally output the test Report, which contains test prerequisites, detailed test steps and expected results for each step. If you encounter a test failure item, you can give possible failure reasons based on the test steps and the information returned by the steps to help testers demarcate the problem boundary and even locate the root cause of the problem.
为了确保测试用例能够独立运行,需要协同云端和车端同步恢复OTA初始状态,以确保下一个用例的执行不受上一条用例中遗留任务的干扰,使得每一条用例都是独立运行的。In order to ensure that the test cases can run independently, it is necessary to cooperate with the cloud and the vehicle to restore the initial state of the OTA synchronously, so as to ensure that the execution of the next use case is not disturbed by the tasks left in the previous use case, so that each use case runs independently.
不同阶段的OTA测试内容区分较大,可能涉及单件测试、系统测试、软件包压力测试等,通过对测试系统配置条件更改以及部分软件模块的适配能够在不同阶段衔接OTA测试。The content of OTA testing at different stages is quite different, and may involve unit testing, system testing, software package stress testing, etc. By changing the test system configuration conditions and adapting some software modules, OTA testing can be connected at different stages.
所以,本发明有效克服了现有技术中的一些实际问题从而有很高的利用价值和使用意义。上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。Therefore, the present invention effectively overcomes some practical problems in the prior art and thus has high utilization value and use significance. The above-mentioned embodiments only illustrate the principles and effects of the present invention, but are not intended to limit the present invention. Anyone skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those skilled in the art without departing from the spirit and technical ideas disclosed in the present invention should still be covered by the claims of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211054955.6A CN115396941B (en) | 2022-08-30 | 2022-08-30 | OTA pressure testing method, system, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211054955.6A CN115396941B (en) | 2022-08-30 | 2022-08-30 | OTA pressure testing method, system, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115396941A true CN115396941A (en) | 2022-11-25 |
| CN115396941B CN115396941B (en) | 2025-05-20 |
Family
ID=84125025
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211054955.6A Active CN115396941B (en) | 2022-08-30 | 2022-08-30 | OTA pressure testing method, system, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115396941B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106790330A (en) * | 2015-11-23 | 2017-05-31 | 上海汽车集团股份有限公司 | The method for remote updating of vehicle-mounted ECU, vehicle-mounted ECU and vehicle |
| CN110083374A (en) * | 2019-03-25 | 2019-08-02 | 深圳猛犸电动科技有限公司 | A kind of upgrading rollback method, system and terminal device |
| CN112733132A (en) * | 2021-01-05 | 2021-04-30 | 潍柴动力股份有限公司 | Method and system for upgrading ECU (electronic control Unit) data |
| CN114328186A (en) * | 2021-12-07 | 2022-04-12 | 一汽奔腾轿车有限公司 | A test system and method for OTA upgrade of automobile controller |
| CN114880211A (en) * | 2022-04-15 | 2022-08-09 | 智马达汽车有限公司 | Pressure testing method and device for vehicle-mounted software upgrading |
-
2022
- 2022-08-30 CN CN202211054955.6A patent/CN115396941B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106790330A (en) * | 2015-11-23 | 2017-05-31 | 上海汽车集团股份有限公司 | The method for remote updating of vehicle-mounted ECU, vehicle-mounted ECU and vehicle |
| CN110083374A (en) * | 2019-03-25 | 2019-08-02 | 深圳猛犸电动科技有限公司 | A kind of upgrading rollback method, system and terminal device |
| CN112733132A (en) * | 2021-01-05 | 2021-04-30 | 潍柴动力股份有限公司 | Method and system for upgrading ECU (electronic control Unit) data |
| CN114328186A (en) * | 2021-12-07 | 2022-04-12 | 一汽奔腾轿车有限公司 | A test system and method for OTA upgrade of automobile controller |
| CN114880211A (en) * | 2022-04-15 | 2022-08-09 | 智马达汽车有限公司 | Pressure testing method and device for vehicle-mounted software upgrading |
Non-Patent Citations (1)
| Title |
|---|
| 李志涛: "FOTA 功能测试的研究与分析", 《汽车电器》, 31 July 2020 (2020-07-31) * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115396941B (en) | 2025-05-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109039824B (en) | Automatic test system and method for wireless remote communication protocol of vehicle-mounted terminal | |
| CN107861871B (en) | A grayscale publishing method, device, server and storage medium | |
| WO2022120717A1 (en) | Simulation task scheduling method, execution method, simulation implementation method and device | |
| CN107608901B (en) | Jmeter-based testing method and device, storage medium and electronic equipment | |
| KR102141287B1 (en) | Fault injection test method and system for vehicle software based on autosar | |
| CN112860559B (en) | Upgrade test system and method | |
| WO2021203604A1 (en) | Update test method and apparatus for vehicle component, and computer device and storage medium | |
| CN115268964A (en) | Data reinjection method and system, electronic device and readable storage medium | |
| CN112765028B (en) | Android application testing method and system based on group control mechanism | |
| CN113532872A (en) | A vehicle-machine road test method, device, system and storage medium | |
| CN112631919A (en) | Comparison test method and device, computer equipment and storage medium | |
| CN115963810A (en) | Automated testing method, device, equipment and medium based on remote control vehicle | |
| CN109932588B (en) | Avionics equipment verification test engine | |
| CN114356760A (en) | A CANFD controller software remote upgrade test method and system based on L3 vehicle architecture | |
| CN115408279A (en) | OTA system automatic test method, device, system, equipment and storage medium | |
| CN115982043A (en) | Vehicle interface testing method, device, equipment and storage medium | |
| CN118708488A (en) | Virtual simulation method, device and equipment based on Autosar architecture | |
| CN117331565B (en) | Software generation method, device, computer equipment and storage medium | |
| CN115396941A (en) | OTA stress test method, system, electronic device, storage medium | |
| CN116775498A (en) | Software testing method and device, electronic equipment and storage medium | |
| CN116126710A (en) | A vehicle-mounted software simulation method, device, equipment and medium | |
| CN115755852A (en) | Vehicle remote lock simulation test system and method | |
| CN116483693A (en) | Vehicle-mounted controller software debugging method and system, electronic equipment, storage medium | |
| CN116107903A (en) | Method, device, equipment and medium for testing vehicle-end service function | |
| CN115469640A (en) | Test system and test method of automobile instrument system |
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 |