WO2021146877A1 - Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium - Google Patents

Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium Download PDF

Info

Publication number
WO2021146877A1
WO2021146877A1 PCT/CN2020/073348 CN2020073348W WO2021146877A1 WO 2021146877 A1 WO2021146877 A1 WO 2021146877A1 CN 2020073348 W CN2020073348 W CN 2020073348W WO 2021146877 A1 WO2021146877 A1 WO 2021146877A1
Authority
WO
WIPO (PCT)
Prior art keywords
refresh
refreshed
file
controller
controllers
Prior art date
Application number
PCT/CN2020/073348
Other languages
French (fr)
Chinese (zh)
Inventor
沈亮
王挺
张瑞柳
梅小龙
邹华健
Original Assignee
上海华东汽车信息技术有限公司
上海欧菲智能车联科技有限公司
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 上海华东汽车信息技术有限公司, 上海欧菲智能车联科技有限公司 filed Critical 上海华东汽车信息技术有限公司
Priority to PCT/CN2020/073348 priority Critical patent/WO2021146877A1/en
Publication of WO2021146877A1 publication Critical patent/WO2021146877A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Definitions

  • This application relates to a method, device, computer equipment and storage medium for parallel refreshing of vehicle controllers.
  • the inventor realizes that automakers urgently need a fast and optimized solution, whether it is the upgrade of after-sales 4S stores or the remote OTA upgrade of the Internet of Vehicles, the speed will be increased to improve efficiency.
  • a method, device, computer device, and storage medium for parallel refreshing of a vehicle controller are provided.
  • a parallel refresh method for vehicle controllers, applied to configuration tools includes:
  • the configured refresh file is sent to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
  • a parallel refresh method for a vehicle controller which is applied to a refresh terminal connected to a vehicle through a high-speed communication link, and includes:
  • the configured refresh file is grouped according to the bus type, the controller to be refreshed corresponding to the refresh file of different groups is in parallel refresh mode, and the refresh file in each group corresponds to The controller to be refreshed is in sequential refresh mode;
  • the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially.
  • a parallel refresh device for a vehicle controller, applied to a configuration tool including:
  • the first receiving module is used to receive refresh files of each controller to be refreshed of the vehicle
  • the grouping module is used to group the refresh files according to the bus type of each controller to be refreshed;
  • the configuration module is used to configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and to configure the controllers to be refreshed corresponding to the refresh files in each group to be in sequential refresh mode;
  • the sending module is used to send the configured refresh file to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file .
  • a parallel refresh device for a vehicle controller which is applied to a refresh terminal connected to a vehicle through a high-speed communication link, and includes:
  • the second receiving module is configured to receive the configured refresh file sent by the configuration tool. After the configured refresh file is grouped according to the bus type, the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode. The controller to be refreshed corresponding to the refresh file in a group is in sequential refresh mode; and
  • the difference in refresh time corresponding to each refresh file is large, for example, If there is a refresh file with a refresh time of 1 hour, while the refresh time of other refresh files is only 5 minutes, then the sequential refresh of different controllers on the same bus can be refreshed in sequence, for example, refresh file A after refreshing, and then refresh B Refresh the files until they are all refreshed, and if the refresh time of each refresh file is not much different, you can configure the controller to be refreshed corresponding to each refresh file in each group to be time-division multiplexed according to the non-data transmission time in the refresh process Refresh mode.
  • the refresh terminal can send a refresh file to the forwarding engine.
  • the forwarding engine is used for the conversion between DOIP protocol ISO-13400 and CAN TP CANFD TP ISO-15765. This engine The requirement is high forwarding efficiency, which can be a dedicated conversion device or a software module based on the in-car gateway.
  • the refresh terminal refreshes the controllers to be refreshed of different bus types in parallel according to the grouping of the new files, and refreshes the controllers to be refreshed of the same bus type sequentially, thereby improving the efficiency of refreshing.
  • the first receiving module 100 is configured to receive refresh files of each controller to be refreshed of the vehicle;
  • the save module is used to generate and save the refresh log.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 7.
  • the computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the database of the computer equipment is used to store refresh files.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer readable instruction is executed by the processor to realize a parallel refresh method of the vehicle controller.
  • a computer device including a memory and a processor, and computer-readable instructions are stored in the memory.
  • the processor executes the computer-readable instructions, the following steps are implemented: receiving each controller to be refreshed in the vehicle Refresh files; group the refresh files according to the bus type of each controller to be refreshed; configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and configure the controller to be refreshed corresponding to the refresh files in each group as Sequential refresh mode; and sending the configured refresh file to the refresh terminal.
  • the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
  • the processor further implements the following steps when executing the computer-readable instructions: when there is no difference greater than the preset value, configure each refresh in each group according to the non-data transmission time in the refresh process The controller to be refreshed corresponding to the file is in the time division multiplexing refresh mode.
  • the calculation of the refresh time of each controller to be refreshed according to the refresh file implemented when the processor executes the computer-readable instruction includes: according to the size of the refresh file and the single block erasing time of the controller to be refreshed, Calculate the data erasure time; calculate the total number of data packets according to the size of the refresh file and the single data packet in transmission; calculate the data transmission time according to the total number of data packets, single data packet transmission time, data writing time and mandatory waiting time; The data verification time is calculated according to the size of the refresh file and the verification speed; and the data erasure time, data transmission time, and data verification time are counted to obtain the refresh time.
  • the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially. Including: broadcast to the controller to be refreshed through the addressing of the diagnostic function, so that each controller to be refreshed enters the refresh mode synchronously.
  • the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files. After the controllers to be refreshed of the same bus type are refreshed sequentially, Including: Generate refresh log and save it.
  • the following steps are also implemented: when there is no difference greater than the preset value, configure each group in each group according to the non-data transmission time in the refresh process
  • the controller to be refreshed corresponding to the refresh file is in the time division multiplexing refresh mode.
  • a computer-readable storage medium is provided, and computer-readable instructions are stored thereon.
  • the computer-readable instructions are executed by a processor, the following steps are implemented: receiving a configured refresh file sent by a server, and configuring After the completed refresh files are grouped according to the bus type, the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode, and the controllers to be refreshed corresponding to the refresh files in each group are in sequential refresh mode; and according to the refresh file
  • the controllers to be refreshed of different bus types are refreshed in groups in parallel, and the controllers to be refreshed of the same bus type are refreshed sequentially.
  • the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files.
  • the controllers to be refreshed of the same bus type are sequentially refreshed, It also includes: obtaining the current state of the vehicle; judging whether the current state of the vehicle meets the refresh condition; and when the current state of the vehicle satisfies the refresh condition, refresh the controllers to be refreshed of different bus types in parallel according to the grouping of the refresh files.
  • the bus-type to-be-refreshed controller performs sequential refresh.
  • the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files. Before the controllers to be refreshed of the same bus type are sequentially refreshed, It also includes: broadcasting to the controller to be refreshed through the addressing of the diagnostic function, so that each controller to be refreshed enters the refresh mode synchronously.
  • the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files. After the controllers to be refreshed of the same bus type are refreshed sequentially, It also includes: generating a refresh log and saving it.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

A parallel refreshing method for vehicle controllers, comprising: receiving refresh files of controllers to be refreshed of a vehicle; grouping the refresh files according to the bus types of the controllers; configuring the controllers corresponding to the refresh files of different groups to be in a parallel refresh mode, and configuring the controllers corresponding to the refresh files in each group to be in a sequential refresh mode; sending the configured refresh files to a refresh terminal, wherein the configured refresh files are used to instruct the refresh terminal to refresh the controllers of the vehicle in parallel according to the configured refresh files.

Description

车辆控制器并行刷新方法、装置、计算机设备和存储介质Parallel refresh method, device, computer equipment and storage medium for vehicle controller 技术领域Technical field
本申请涉及一种车辆控制器并行刷新方法、装置、计算机设备和存储介质。This application relates to a method, device, computer equipment and storage medium for parallel refreshing of vehicle controllers.
背景技术Background technique
现代汽车工业飞速发展,自从上世纪90年代开始大量采用CAN总线通信,一直到现如今汽车以太网和CANFD的更新换代,总线技术也在飞速发展,传输速率也在快速提升。同时自近10年以来国内汽车诊断维修,控制器程序升级的业务也得到了全面普及,汽车与互联网的结合引入了“迭代”理念,对于汽车的远程升级需求大增,而传统的CAN总线受到带宽的限制,软件更新的速度较慢,短则几分钟长的要超过1小时,这个对于稳定性可靠性,对于整车的蓄电池供电都是挑战,对于用户体验。The modern automobile industry is developing rapidly. Since the beginning of the 1990s, a large number of CAN bus communication has been adopted, and the bus technology has also been developing rapidly, and the transmission rate has also been rapidly increasing. At the same time, since the past 10 years, the business of domestic automobile diagnosis and maintenance and controller program upgrade has also been fully popularized. The combination of automobiles and the Internet has introduced the "iteration" concept, and the demand for remote upgrades of automobiles has greatly increased. The bandwidth limitation, the software update speed is relatively slow, as short as a few minutes, it takes more than 1 hour, which is a challenge to the stability and reliability, to the battery power supply of the entire vehicle, and to the user experience.
所以发明人意识到,整车厂迫切需要一种快速的优化的方案,无论是在售后4S店的升级,车联网远程OTA的升级的速度提上去,提升效率。Therefore, the inventor realizes that automakers urgently need a fast and optimized solution, whether it is the upgrade of after-sales 4S stores or the remote OTA upgrade of the Internet of Vehicles, the speed will be increased to improve efficiency.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种车辆控制器并行刷新方法、装置、计算机设备和存储介质。According to various embodiments disclosed in the present application, a method, device, computer device, and storage medium for parallel refreshing of a vehicle controller are provided.
一种车辆控制器并行刷新方法,应用于配置工具,包括:A parallel refresh method for vehicle controllers, applied to configuration tools, includes:
接收车辆的各个待刷新控制器的刷新文件;Receiving the refresh file of each controller to be refreshed of the vehicle;
根据各个待刷新控制器的总线类型对所述刷新文件进行分组;Grouping the refresh files according to the bus type of each controller to be refreshed;
配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及Configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and configure the controller to be refreshed corresponding to the refresh files in each group to be in sequential refresh mode; and
将配置完成的刷新文件发送至刷新终端,所述配置完成的刷新文件用于指示所述刷新终端按照所述配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。The configured refresh file is sent to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
一种车辆控制器并行刷新方法,应用于与车辆通过高速通信链路连接的刷新终端,包括:A parallel refresh method for a vehicle controller, which is applied to a refresh terminal connected to a vehicle through a high-speed communication link, and includes:
接收配置工具发送的配置完成的刷新文件,所述配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及Receive the configured refresh file sent by the configuration tool, the configured refresh file is grouped according to the bus type, the controller to be refreshed corresponding to the refresh file of different groups is in parallel refresh mode, and the refresh file in each group corresponds to The controller to be refreshed is in sequential refresh mode; and
按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。The controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially.
一种车辆控制器并行刷新装置,应用于配置工具,包括:A parallel refresh device for a vehicle controller, applied to a configuration tool, including:
第一接收模块,用于接收车辆的各个待刷新控制器的刷新文件;The first receiving module is used to receive refresh files of each controller to be refreshed of the vehicle;
分组模块,用于根据各个待刷新控制器的总线类型对所述刷新文件进行分组;The grouping module is used to group the refresh files according to the bus type of each controller to be refreshed;
配置模块,用于配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及The configuration module is used to configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and to configure the controllers to be refreshed corresponding to the refresh files in each group to be in sequential refresh mode; and
发送模块,用于将配置完成的刷新文件发送至刷新终端,所述配置完成的刷新文件用于指示所述刷新终端按照所述配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。The sending module is used to send the configured refresh file to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file .
一种车辆控制器并行刷新装置,应用于与车辆通过高速通信链路连接的刷新终端,包括:A parallel refresh device for a vehicle controller, which is applied to a refresh terminal connected to a vehicle through a high-speed communication link, and includes:
第二接收模块,用于接收配置工具发送的配置完成的刷新文件,所述配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及The second receiving module is configured to receive the configured refresh file sent by the configuration tool. After the configured refresh file is grouped according to the bus type, the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode. The controller to be refreshed corresponding to the refresh file in a group is in sequential refresh mode; and
刷新模块,用于按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。The refresh module is used to refresh controllers to be refreshed of different bus types in parallel according to the grouping of refresh files, and refresh controllers to be refreshed of the same bus type in order.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述中任一项所述方法的步骤。A computer device includes a memory and a processor, the memory stores computer readable instructions, and the processor implements the steps of any one of the above methods when the computer readable instructions are executed.
一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述任一项所述的方法的步骤。A computer-readable storage medium has computer-readable instructions stored thereon, and when the computer-readable instructions are executed by a processor, the steps of any one of the above-mentioned methods are implemented.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features and advantages of this application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. A person of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1为根据一个或多个实施例中车辆控制器并行刷新方法的应用环境图。Fig. 1 is an application environment diagram of a parallel refresh method for a vehicle controller according to one or more embodiments.
图2为根据一个或多个实施例中车辆控制器并行刷新方法的流程示意图。Fig. 2 is a schematic flowchart of a parallel refresh method for a vehicle controller according to one or more embodiments.
图3为根据另一个或多个实施例中车辆控制器并行刷新的流程示意图。Fig. 3 is a schematic diagram of a parallel refresh flow of vehicle controllers according to another or more embodiments.
图4为根据一个或多个实施例中车辆控制器并行刷新方法的完整流程示意图。Fig. 4 is a schematic diagram of a complete flow of a parallel refresh method for a vehicle controller according to one or more embodiments.
图5为根据一个或多个实施例中车辆控制器并行刷新装置的框图。Fig. 5 is a block diagram of a parallel refresh device for a vehicle controller according to one or more embodiments.
图6为根据另一个或多个实施例中车辆控制器并行刷新装置的框图。Fig. 6 is a block diagram of a parallel refresh device for a vehicle controller according to another or more embodiments.
图7为根据一个或多个实施例中计算机设备的框图。Figure 7 is a block diagram of a computer device according to one or more embodiments.
图8为根据另一个或多个实施例中计算机设备的框图。Figure 8 is a block diagram of a computer device according to another or more embodiments.
具体实施方式Detailed ways
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进 行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
本申请提供的车辆控制器并行刷新方法,可以应用于如图1所示的应用环境中。配置工具102通过网络与刷新终端104通信,刷新终端104通过网络与车辆上安装的转发引擎106通信。具体地,使用者需要将刷新文件加载到配置工具102中,这样配置工具102根据各个待刷新控制器的总线类型对刷新文件进行分组,从而可以配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式,配置工具102将配置完成的刷新文件发送至刷新终端104,从而刷新终端104按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新,即刷新终端104通过转发引擎106来将对应的刷新文件刷新至对应的待刷新控制器中,这样不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式,这样刷新时可以充分利用高速通信链路的传输速率,并通过并行刷新模式提高了刷新的效率。刷新终端104可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,刷新终端104支持linux,也可以支持Android,IOS等各种运行环境,用于工程阶段,产线灌装,售后,OTA升级各个环节和设备载体。配置工具102可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The parallel refresh method of the vehicle controller provided in this application can be applied to the application environment as shown in FIG. 1. The configuration tool 102 communicates with the refresh terminal 104 through the network, and the refresh terminal 104 communicates with the forwarding engine 106 installed on the vehicle through the network. Specifically, the user needs to load the refresh file into the configuration tool 102, so that the configuration tool 102 groups the refresh files according to the bus type of each controller to be refreshed, so that the controller to be refreshed corresponding to the refresh files of different groups can be configured as In parallel refresh mode, the controller to be refreshed corresponding to the refresh file in each group is configured in sequential refresh mode. The configuration tool 102 sends the configured refresh file to the refresh terminal 104, so that the refresh terminal 104 groups different bus types according to the refresh file group. The controllers to be refreshed are refreshed in parallel, and the controllers to be refreshed of the same bus type are refreshed sequentially, that is, the refresh terminal 104 refreshes the corresponding refresh file to the corresponding controller to be refreshed through the forwarding engine 106, so that different groups of refreshes are refreshed. The controller to be refreshed corresponding to the file is in parallel refresh mode, and the controller to be refreshed corresponding to the refresh file in each group is in sequential refresh mode, so that the transmission rate of the high-speed communication link can be fully utilized when refreshing, and the parallel refresh mode improves Refresh efficiency. The refresh terminal 104 can be, but is not limited to, various personal computers, laptops, smart phones, tablets, and portable wearable devices. The refresh terminal 104 supports linux, and can also support various operating environments such as Android and IOS for use in the engineering phase. Production line filling, after-sales, OTA upgrades all links and equipment carriers. The configuration tool 102 may be implemented by an independent server or a server cluster composed of multiple servers.
在其中一个实施例中,如图2所示,提供了一种车辆控制器并行刷新方法,以该方法应用于图1中的配置工具为例进行说明,包括以下步骤:In one of the embodiments, as shown in FIG. 2, a parallel refresh method for vehicle controllers is provided. Taking the method applied to the configuration tool in FIG. 1 as an example for description, the method includes the following steps:
S202:接收车辆的各个待刷新控制器的刷新文件。S202: Receive a refresh file of each controller to be refreshed of the vehicle.
具体地址,待刷新控制器是指车辆上各个程序需要变化的控制器ECU,包括发动机ECU、车身电器ECU、变速器ECU以及后辅助驻车ECU等等。刷新文件是指刷新入控制器的目标文件,例如S19文件、HEX文件、MOT文件等。For specific addresses, the controller to be refreshed refers to the controller ECU that needs to be changed in various programs on the vehicle, including engine ECU, body electrical ECU, transmission ECU, and rear auxiliary parking ECU, etc. The refresh file refers to the target file refreshed into the controller, such as S19 file, HEX file, MOT file, etc.
使用者将需要升级的各个待刷新控制器的刷新文件导入或者是发送至配置工具中,以便于配置工具根据各个待刷新控制器的刷新文件来生成对应的刷新策略。且可选地,配置工具可以对刷新文件进行预处理,例如进行格式转换,参数提取(包括刷新文件对应的待刷新控制器、总线类型,波特率等)等,以方便刷新策略的生成。The user imports or sends the refresh file of each controller to be refreshed that needs to be upgraded to the configuration tool, so that the configuration tool can generate a corresponding refresh strategy according to the refresh file of each controller to be refreshed. And optionally, the configuration tool can preprocess the refresh file, such as format conversion, parameter extraction (including the controller to be refreshed corresponding to the refresh file, bus type, baud rate, etc.) to facilitate the generation of the refresh strategy.
S204:根据各个待刷新控制器的总线类型对刷新文件进行分组。S204: Group the refresh files according to the bus type of each controller to be refreshed.
S206:配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式。S206: Configure the to-be-refreshed controllers corresponding to the refresh files of different groups to the parallel refresh mode, and configure the to-be-refreshed controllers corresponding to the refresh files in each group to the sequential refresh mode.
具体地,总线类型包括以太网总线、CANFD总线、CAN总线等,在此不做具体的限制,并行刷新模式是指各个刷新文件对应的控制器可以同时被刷新,顺序刷新模式是指各个刷新文件对应的控制器可以按照一定的顺序被刷新进待刷新控制器中,例如按照刷新文件的大小进行排序,这样可以优先刷新文件小的文件,然后刷新文件大的文件,其中若一个待刷新控制器对应有多个刷新文件,则需要刷新完该控制器对应的所有的刷新文件后, 再刷新下一个控制器。且可选地顺序刷新模式下还可以获取到当前刷新时间以及用户的用车习惯,根据用户的用车习惯和当前刷新时间预测车辆当前可能处于的不使用的时间阶段,若用户不使用的时间阶段不足以刷新所有的待刷新控制器,则可以按照从小到大的顺序对每个待刷新控制器对应的刷新文件进行排序,然后按照排序优先获取到刷新文件的总大小较小的待刷新控制器进行刷新,这样可以预先刷新完成一部分,而在判断剩余时间不足时,则可以停止刷新,以便于后续时间充足时再刷新,例如在深夜进行刷新,而若时间充足时,则可以随机顺序进行刷新,或者是仍可以优先待刷新控制器的刷新文件小的文件,然后在刷新待刷新控制器的刷新文件大的。Specifically, the bus types include Ethernet bus, CANFD bus, CAN bus, etc. There are no specific restrictions here. The parallel refresh mode means that the controller corresponding to each refresh file can be refreshed at the same time, and the sequential refresh mode refers to each refresh file. Corresponding controllers can be refreshed into the controllers to be refreshed in a certain order, for example, sorted according to the size of the refreshed files, so that files with small files can be refreshed first, and then files with large files are refreshed. If one of the controllers is to be refreshed If there are multiple refresh files, you need to refresh all the refresh files corresponding to the controller before refreshing the next controller. And optionally, in sequential refresh mode, the current refresh time and the user's car usage habits can be obtained. According to the user's car usage habits and current refresh time, predict the current unused time stage of the vehicle. If the user does not use the time If the stage is not enough to refresh all the controllers to be refreshed, you can sort the refresh files corresponding to each controller to be refreshed in ascending order, and then obtain the control to be refreshed with the smaller total size of the refresh files according to the priority of the order. Refresh, so that part of the refresh can be completed in advance, and when it is judged that the remaining time is insufficient, the refresh can be stopped, so that it can be refreshed when the subsequent time is sufficient, such as refreshing in the middle of the night, and if the time is sufficient, it can be performed in random order Refresh, or it is still possible to give priority to the small file of the controller to be refreshed, and then the large file of the controller to be refreshed.
由于汽车以太网的传输速率可达到100Mbps,而CAN的波特率是500kbps,所以以太网类似一条高速公路,CAN或者CANFD是分支路线,这就形成了并行刷新的可行性。其次每个控制器的刷新文件大小不同,执行效率不同,所在总线的传输速率也不同,因此经过配置可以将并行效率提升到最优化,从而将进一步提升刷新速度。Since the transmission rate of automotive Ethernet can reach 100Mbps, and the baud rate of CAN is 500kbps, Ethernet is similar to a highway, and CAN or CANFD is a branch route, which forms the feasibility of parallel refresh. Secondly, the size of the refresh file of each controller is different, the execution efficiency is different, and the transmission rate of the bus where it is located is also different. Therefore, the parallel efficiency can be optimized to optimize the refresh speed after configuration.
由于车辆上的控制器是通过不同的总线来连接的,有的是通过以太网总线连接,有的是通过CANFD总线连接,有的是通过CAN总线连接,这样不同的总线的传输速率不同,且不同的总线可以并行传输数据,因此配置工具可以按照总线类型对刷新文件进行分组,这是因为刷新文件是与待刷新控制器对应的,而待刷新控制器是与总线类型对应的,因此配置工具可以首先获取到刷新文件对应的待刷新控制器,然后根据待刷新控制器对应的总线类型对刷新文件进行分组。这样不同分组的刷新文件可以是并行刷新模式,而相同分组的刷新文件即可以是顺序刷新模式。Because the controllers on the vehicle are connected through different buses, some are connected through the Ethernet bus, some are connected through the CANFD bus, and some are connected through the CAN bus, so that the transmission rate of different buses is different, and different buses can be transmitted in parallel Therefore, the configuration tool can group the refresh files according to the bus type. This is because the refresh file corresponds to the controller to be refreshed, and the controller to be refreshed corresponds to the bus type, so the configuration tool can first obtain the refresh file The corresponding controller to be refreshed is then grouped according to the bus type corresponding to the controller to be refreshed. In this way, refresh files in different groups can be in parallel refresh mode, and refresh files in the same group can be in sequential refresh mode.
S208:将配置完成的刷新文件发送至刷新终端,配置完成的刷新文件用于指示刷新终端按照配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。S208: Send the configured refresh file to the refresh terminal, where the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
具体地,在配置完成刷新文件后,配置工具将配置完成的刷新文件发送至刷新终端,可以选地配置工具可以生成一个任务包,然后将该任务包下发至刷新终端,从而刷新终端根据配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新,例如不同总线的控制器并行同时刷新,相同总线的不同控制器按照顺序进行刷新。Specifically, after the configuration of the refresh file is completed, the configuration tool sends the configured refresh file to the refresh terminal. Optionally, the configuration tool can generate a task package, and then deliver the task package to the refresh terminal, so that the refresh terminal is configured according to the configuration. The completed refresh file refreshes each controller to be refreshed in the vehicle in parallel, for example, controllers on different buses are refreshed in parallel at the same time, and different controllers on the same bus are refreshed in order.
上述车辆控制器并行刷新方法,根据待刷新控制器的总线类型对刷新文件进行分组,这样不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式,这样刷新时可以充分利用高速通信链路的传输速率,并通过并行刷新模式提高了刷新的效率。In the parallel refresh method for vehicle controllers, the refresh files are grouped according to the bus type of the controller to be refreshed, so that the controllers to be refreshed corresponding to the refresh files in different groups are in parallel refresh mode, and the refresh file in each group corresponds to the control to be refreshed. The device is in a sequential refresh mode, so that the transmission rate of the high-speed communication link can be fully utilized when refreshing, and the refresh efficiency is improved through the parallel refresh mode.
在其中一个实施例中,上述车辆控制器并行刷新方法还包括:接收车辆的各个待刷新控制器的刷新流程。其中配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式之前,还包括:根据刷新文件计算各个待刷新控制器的刷新时间;判断各个待刷新控制器的刷新时间的差值是否大于预设值;当存在大于预设值的差值时,则配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式。且在其中一个实施例中,方法还包括:当不存在大于预设值的差值时,则根据刷新流程中非数据传输时间,配置每一分组中的各个刷新文 件对应的待刷新控制器为时分复用刷新模式。In one of the embodiments, the aforementioned method for parallel refreshing of vehicle controllers further includes: receiving a refresh process of each controller to be refreshed of the vehicle. Before configuring the controller to be refreshed corresponding to the refresh file in each group to the sequential refresh mode, it also includes: calculating the refresh time of each controller to be refreshed according to the refresh file; judging whether the difference in the refresh time of each controller to be refreshed is greater than The preset value; when there is a difference greater than the preset value, the controller to be refreshed corresponding to the refresh file in each group is configured as a sequential refresh mode. And in one of the embodiments, the method further includes: when there is no difference greater than the preset value, configuring the controller to be refreshed corresponding to each refresh file in each group according to the non-data transmission time in the refresh process as Time division multiplexing refresh mode.
具体地,刷新流程可以包括刷新前、刷新中和刷新后,其中刷新前包括会话切换、安全访问以及物流数据读取,刷新中包括刷新和校验,具体包括数据擦除、数据传输、传输退出、完整性校验和兼容性校验,刷新后主要包括物流数据灰度以及重启结束刷新流程。Specifically, the refresh process may include before refresh, during refresh, and after refresh. Before refresh, it includes session switching, secure access, and logistics data reading. Refresh includes refresh and verification, including data erasure, data transmission, and transmission exit. , Integrity check and compatibility check, after refreshing, it mainly includes the gray scale of logistics data and restarting to end the refreshing process.
对于相同总线不同控制器的顺序刷新可以采用时分复用的刷新模式,配置工具可以根据刷新文件和刷新流程计算各个待刷新控制器对应的刷新时间,并计算各个刷新时间之间的差值,例如假设存在A~E五个刷新文件,其分别对应五个待刷新控制器,可以分别计算该五个刷新文件对应的刷新时间,然后计算刷新时间之间的差值。配置工具然后判断所计算得到的差值是否大于预设值,其中预设值是用来衡量各个刷新文件对应的刷新时间的差别的,若各个刷新文件对应的刷新时间的差值较大,例如存在一个刷新文件的刷新时间为1小时,而其他的刷新文件的刷新时间仅为5分钟,则相同总线不同控制器的顺序刷新则可以按照顺序刷新进行,例如刷新完A刷新文件,再刷新B刷新文件,直至都刷新完成,而若各个刷新文件的刷新时间差别不大,则可以根据刷新流程中非数据传输时间,配置每一分组中的各个刷新文件对应的待刷新控制器为时分复用刷新模式。For the sequential refresh of different controllers on the same bus, the time division multiplexing refresh mode can be used. The configuration tool can calculate the refresh time of each controller to be refreshed according to the refresh file and refresh process, and calculate the difference between the refresh times, for example Assuming there are five refresh files from A to E, which respectively correspond to five controllers to be refreshed, the refresh times corresponding to the five refresh files can be calculated respectively, and then the difference between the refresh times can be calculated. The configuration tool then determines whether the calculated difference is greater than the preset value, where the preset value is used to measure the difference in refresh time corresponding to each refresh file. If the difference in refresh time corresponding to each refresh file is large, for example, If there is a refresh file with a refresh time of 1 hour, while the refresh time of other refresh files is only 5 minutes, then the sequential refresh of different controllers on the same bus can be refreshed in sequence, for example, refresh file A after refreshing, and then refresh B Refresh the files until they are all refreshed, and if the refresh time of each refresh file is not much different, you can configure the controller to be refreshed corresponding to each refresh file in each group to be time-division multiplexed according to the non-data transmission time in the refresh process Refresh mode.
其中非数据传输时间可以是强制等待时间、数据校验时间和/或数据擦除时间等。时分复用模式则是在其中一个待刷新控制器的刷新流程处于上述非数据传输流程时,则控制另一个待刷新控制器的刷新流程处于数据传输流程,即在这个时间间隙尽可能多的给其它控制器传数据,这样可以使得以太网一直在进行数据传输,使得以太网传输的效率最高。The non-data transmission time can be the mandatory waiting time, the data verification time, and/or the data erasing time. In the time division multiplexing mode, when the refresh flow of one of the controllers to be refreshed is in the above non-data transmission flow, the refresh flow of the other to be refreshed controller is controlled to be in the data transmission flow, that is, as much as possible during this time interval. Other controllers transmit data, so that the Ethernet can always carry on data transmission, making the transmission efficiency of the Ethernet the highest.
上述实施例中,在配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式之前,还计算各个待刷新控制器的刷新时间,这样可以判断是否存在刷新时间较长的待刷新控制器,如果存在的话,则由于该待刷新控制器刷新时间长,因此各个并行刷新的分组中每个待刷新控制器顺序刷新即可,保证刷新效率的前提下,充分考虑到个各个待刷新控制器的差异性。如果不存在的话,则由于该待刷新控制器刷新时间基本一致,因此为了进一步提高刷新效率,可以根据刷新流程中非数据传输时间,配置每一分组中的各个刷新文件对应的待刷新控制器为时分复用刷新模式,这样通过时分复用刷新模式,复用各个总线,进一步提高效率。In the above embodiment, before the controller to be refreshed corresponding to the refresh file in each group is configured in sequential refresh mode, the refresh time of each controller to be refreshed is also calculated, so that it can be judged whether there is a controller to be refreshed with a longer refresh time. If it exists, the refresh time of the controller to be refreshed is long, so each controller to be refreshed in each parallel refresh group can be refreshed sequentially. Under the premise of ensuring refresh efficiency, full consideration of each controller to be refreshed The difference. If it does not exist, the refresh time of the controller to be refreshed is basically the same. Therefore, in order to further improve the refresh efficiency, you can configure the controller to be refreshed corresponding to each refresh file in each group according to the non-data transmission time in the refresh process. Time-division multiplexing refresh mode, so that through the time-division multiplexing refresh mode, each bus is multiplexed to further improve efficiency.
在其中一个实施例中,根据刷新文件计算各个待刷新控制器的刷新时间,包括:根据刷新文件的大小以及待刷新控制器的单块擦除时间,计算得到数据擦除时间;根据刷新文件的大小以及传输中单数据包计算总数据包数量;根据总数据包数量、单数据包传输时间、数据写入时间以及强制等待时间计算得到数据传输时间;根据刷新文件的大小以及校验速度计算得到数据校验时间;统计数据擦除时间、数据传输时间以及数据校验时间得到刷新时间。In one of the embodiments, calculating the refresh time of each controller to be refreshed according to the refresh file includes: calculating the data erasing time according to the size of the refresh file and the single block erasing time of the controller to be refreshed; Calculate the total number of data packets based on the size and the single data packet in transmission; calculate the data transmission time based on the total number of data packets, single data packet transmission time, data writing time, and mandatory waiting time; calculate based on the size of the refresh file and the check speed Data verification time; statistics data erasure time, data transmission time and data verification time get the refresh time.
具体地,配置工具可以根据待刷新控制器的配置流程的刷新文件的大小计算出刷新时间,例如按照以下公式进行:Specifically, the configuration tool can calculate the refresh time according to the size of the refresh file of the configuration process of the controller to be refreshed, for example, according to the following formula:
T1(数据擦除时间)=刷新文件的总字节数/单块擦时间。T1 (data erasing time) = total number of bytes to refresh the file/single block erasing time.
T2(数据传输时间)=(刷新文件的总字节数/单包数据长度)×((单个传输时间+单个写时间)+P3(两个数据包之间的延时控制))。T2 (data transmission time) = (total bytes of the refresh file/single packet data length) x ((single transmission time + single write time) + P3 (delay control between two data packets)).
T3(数据校验时间)=刷新文件的总字节数/校验速度。T3 (data verification time) = total number of bytes of the refresh file/verification speed.
T(刷新时间)=T1+T2+T3。T (refresh time)=T1+T2+T3.
上述实施例中,在计算刷新时间的时候,仅考虑到各个待刷新控制器的耗时不同的地方,也即刷新文件的大小,可以提高计算的效率。In the foregoing embodiment, when calculating the refresh time, only the time-consuming difference of each controller to be refreshed, that is, the size of the refresh file, is considered, which can improve the efficiency of calculation.
在一个实施例中,如图3所示,提供了一种车辆控制器并行刷新方法,以该方法应用于图1中的刷新终端为例进行说明,其中刷新终端与车辆通过高速通信链路连接,该高速通信链路可以是以太网链路,包括以下步骤:In one embodiment, as shown in FIG. 3, a parallel refresh method for vehicle controllers is provided. The method is applied to the refresh terminal in FIG. 1 as an example for description, where the refresh terminal is connected to the vehicle through a high-speed communication link. , The high-speed communication link may be an Ethernet link, including the following steps:
S302:接收配置工具发送的配置完成的刷新文件,配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式。S302: Receive the configured refresh file sent by the configuration tool. After the configured refresh file is grouped according to the bus type, the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode, and the refresh file in each group corresponds to the refresh file. The controller to be refreshed is in sequential refresh mode.
具体地,刷新终端在接收到配置工具发送的配置完成的刷新文件后,读取到相应的控制器的通信参数,例如对应的哪一路CAN、CANFD总线、总线波特率、ECU的诊断request ID和Response ID等,然后进行会话切换,例如将待刷新控制器均设置为刷新模式,即控制器的刷新模式的同步,同步就是让整车所有控制器都能同时进入刷新会话,并且在并行过程中维持会话,完成之后统一退出会话。Specifically, after the refresh terminal receives the configured refresh file sent by the configuration tool, it reads the communication parameters of the corresponding controller, such as the corresponding CAN, CANFD bus, bus baud rate, and ECU diagnosis request ID And Response ID, etc., and then perform session switching, for example, set the controllers to be refreshed to refresh mode, that is, the synchronization of the refresh mode of the controllers. Synchronization is to allow all controllers in the vehicle to enter the refresh session at the same time, and in parallel process Maintain the session in the middle, and exit the session uniformly after completion.
S304:按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。S304: Perform parallel refresh on the controllers to be refreshed of different bus types according to the grouping of the refresh files, and perform sequential refresh on the controllers to be refreshed of the same bus type.
具体地,在车辆的各个控制器进入刷新模式后,则刷新终端可以向转发引擎发送刷新文件,该转发引擎时用于DOIP协议ISO-13400与CAN TP CANFD TP的ISO-15765的转换,这个引擎的要求是转发效率要高,可以是专用转换设备也可以是以车内网关为载体的软件模块。刷新终端按照新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新,从而提高了刷新的效率。Specifically, after each controller of the vehicle enters the refresh mode, the refresh terminal can send a refresh file to the forwarding engine. The forwarding engine is used for the conversion between DOIP protocol ISO-13400 and CAN TP CANFD TP ISO-15765. This engine The requirement is high forwarding efficiency, which can be a dedicated conversion device or a software module based on the in-car gateway. The refresh terminal refreshes the controllers to be refreshed of different bus types in parallel according to the grouping of the new files, and refreshes the controllers to be refreshed of the same bus type sequentially, thereby improving the efficiency of refreshing.
可选地,按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之后,还包括:生成刷新日志,并保存。这样在刷新完成后,还生成刷新日志,以便于进行追述。Optionally, refreshing controllers to be refreshed of different bus types in parallel according to the grouping of refresh files, after sequential refreshing of the controllers to be refreshed of the same bus type, further includes: generating and saving a refresh log. In this way, after the refresh is completed, a refresh log is also generated to facilitate the follow-up.
上述车辆控制器并行刷新方法,根据待刷新控制器的总线类型对刷新文件进行分组,这样不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式,这样刷新时可以充分利用高速通信链路的传输速率,并通过并行刷新模式提高了刷新的效率。此外,上述车辆控制器并行刷新方法通用性强,无须改变原有控制器的软件,或者针对并行机制进行修改就可以使用;兼容性强,可用于多种平台运行,传统电脑,诊断仪,车联网都可以部署;速度快,以太网本身并行优化,以太网转CAN,CANFD的并行效率的优化,充分提升刷新效率,缩短时间,为整车厂提升服务和用户体验。The aforementioned vehicle controller parallel refresh method groups the refresh files according to the bus type of the controllers to be refreshed, so that the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode, and the refresh files in each group correspond to the control to be refreshed. The device is in a sequential refresh mode, so that the transmission rate of the high-speed communication link can be fully utilized when refreshing, and the refresh efficiency is improved through the parallel refresh mode. In addition, the aforementioned vehicle controller parallel refresh method is highly versatile, and can be used without changing the original controller software or modifying the parallel mechanism; it has strong compatibility and can be used for multiple platforms, such as traditional computers, diagnostics, and vehicles. Networking can be deployed; fast speed, parallel optimization of Ethernet itself, optimization of parallel efficiency of Ethernet to CAN, CANFD, fully improve refresh efficiency, shorten time, and improve service and user experience for OEMs.
在其中一个实施例中,按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:获取照刷新文件分组对应的总线类型的通信协议;将通过高速通信链路传输的刷新文件转换为通信协议对应的刷新文件。In one of the embodiments, the controllers to be refreshed of different bus types are refreshed in parallel according to the group of refresh files. Before the controllers to be refreshed of the same bus type are sequentially refreshed, the method further includes: obtaining the bus type corresponding to the group of the refresh files. The communication protocol; convert the refresh file transmitted through the high-speed communication link into the refresh file corresponding to the communication protocol.
具体地,该部分是刷新引擎的工作,即DOIP协议ISO-13400与CAN TP CANFD TP的ISO-15765的转换。刷新引擎可以按照刷新文件分组对应的总线类型的通信协议,然后将通过高速通信链路传输的刷新文件转换为通信协议对应的刷新文件,即以太网通信协议转换为CAN、CANFD通信协议,或者是将CAN、CANFD通信协议转换为以太网通信协议,例如将DOIP的ISO-13400转换为CAN TP CANFD TP的ISO-15765,或者是将CAN TP CANFD TP的ISO-15765转换为DOIP的ISO-13400。Specifically, this part is the job of refreshing the engine, that is, the conversion of DOIP protocol ISO-13400 and CAN TP CANFD TP ISO-15765. The refresh engine can group the corresponding bus type communication protocol according to the refresh file, and then convert the refresh file transmitted through the high-speed communication link into the refresh file corresponding to the communication protocol, that is, convert the Ethernet communication protocol to CAN, CANFD communication protocol, or Convert CAN and CANFD communication protocols to Ethernet communication protocols, for example, convert ISO-13400 of DOIP to ISO-15765 of CAN TP CANFD TP, or convert ISO-15765 of CAN TP CANFD TP to ISO-13400 of DOIP.
上述实施例中,通过对高速通信链路传输的刷新文件转换为通信协议对应的刷新文件,然后再传输至各个总线,以便于传输至各个待刷新控制器,通过预先协议转换,可以提高后续的刷新效率。In the above embodiment, the refresh file transmitted through the high-speed communication link is converted into a refresh file corresponding to the communication protocol, and then transmitted to each bus to facilitate transmission to each controller to be refreshed. Through pre-protocol conversion, the subsequent processing can be improved. Refresh efficiency.
在其中一个实施例中,按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:获取车辆的当前状态;判断车辆的当前状态是否满足刷新条件;当车辆的当前状态满足刷新条件时,则按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。In one of the embodiments, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of the refresh files. Before the controllers to be refreshed of the same bus type are sequentially refreshed, the method further includes: obtaining the current state of the vehicle; Whether the current state meets the refresh condition; when the current state of the vehicle meets the refresh condition, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of the refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially.
具体地车辆的当前状态可以是根据车辆的各个传感器采集的数据来进行判断,例如根据车速、档位或蓄电池电压来进行判断。例如判断车辆是否处于行驶状态,若车辆处于行驶状态,则不满足刷新条件,否则满足刷新条件,若车辆满足刷新条件时,则可以按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。Specifically, the current state of the vehicle may be judged based on data collected by various sensors of the vehicle, for example, based on vehicle speed, gear, or battery voltage. For example, to determine whether the vehicle is in a driving state, if the vehicle is in a driving state, the refresh condition is not met, otherwise, the refresh condition is met. If the vehicle meets the refresh condition, the controllers to be refreshed of different bus types can be paralleled according to the grouping of the refresh files. Refresh, the controller to be refreshed of the same bus type performs sequential refresh.
上述实施例中,在刷新之前,还对车辆状态进行判断,这样可以防止车辆运行过程中刷新导致危险或者是造成控制器损坏等情况的发生。In the above-mentioned embodiment, before refreshing, the state of the vehicle is also judged, which can prevent the refreshing during the operation of the vehicle from causing danger or causing damage to the controller.
在其中一个实施例中,按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:通过诊断功能寻址的方式向待刷新控制器进行广播,以使得各个待刷新控制器同步进入刷新模式。In one of the embodiments, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of the refresh files. Before the controllers to be refreshed of the same bus type are sequentially refreshed, it further includes: The refresh controller broadcasts so that each controller to be refreshed enters the refresh mode synchronously.
具体地,在总线上往往有着众多ECU设备,作为诊断设备既可以与所有的ECU一起沟通,也可以指定某一个ECU单独沟通。所以寻址方式就有功能寻址(Functionally Addressed)和物理寻址(Physically Addressed)两种。功能寻址可以广播诊断请求Request,同时等待总线上的ECU给与响应。物理寻址指定发送特定诊断请求Request,等待指定ECU给与响应。刷新终端可以通过功能寻址或者是物理寻址的方式向待刷新控制器进行广播,例如进入刷新模式的广播,从而使得各个待刷新控制器同步进入刷新模式,且在刷新完成后,则可以进行物流数据回读,从而结束刷新,并进行重启以使得各个控制器正常 工作。Specifically, there are often many ECU devices on the bus. As a diagnostic device, it can communicate with all ECUs or designate a certain ECU to communicate alone. Therefore, there are two addressing modes: Functionally Addressed and Physically Addressed. The functional addressing can broadcast the diagnostic request Request, while waiting for the response from the ECU on the bus. Physical addressing specifies to send a specific diagnosis request Request, and wait for the specified ECU to give a response. The refresh terminal can broadcast to the controller to be refreshed through functional addressing or physical addressing, for example, a broadcast to enter the refresh mode, so that each controller to be refreshed enters the refresh mode synchronously, and after the refresh is completed, it can proceed. The logistics data is read back to end the refresh and restart to make each controller work normally.
上述实施例中,通过诊断功能寻址的方式保证各个待刷新控制器同步进入刷新模式,然后再进行并行刷新,提高刷新效率。In the foregoing embodiment, the diagnostic function addressing method is used to ensure that each controller to be refreshed enters the refresh mode synchronously, and then refreshes in parallel, which improves refresh efficiency.
参见图4,图4为一个实施例中的车辆控制器并行刷新方法的完整流程图,在该实施例中,用户将刷新流程和刷新文件导入至配置工具,配置工具进行计算以得到刷新策略,例如根据各个待刷新控制器的总线类型对刷新文件进行分组,然后配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式,这样得到刷新策略,配置工具将刷新策略加载到刷新终端,其中可选地配置工具还可以安装在刷新终端中,这样可以方便运行,刷新终端接收到刷新策略后,首先判断当前车辆状态是否允许刷新,若允许刷新,则刷新终端按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新,最后刷新完成后生成日志进行保存,以便于追踪。Refer to Figure 4, which is a complete flow chart of a parallel refresh method for vehicle controllers in an embodiment. In this embodiment, the user imports the refresh process and the refresh file into the configuration tool, and the configuration tool performs calculations to obtain the refresh strategy. For example, the refresh files are grouped according to the bus type of each controller to be refreshed, and then the controllers to be refreshed corresponding to the refresh files of different groups are configured as parallel refresh mode, and the controller to be refreshed corresponding to the refresh files in each group is configured as sequential refresh. In this way, the refresh strategy is obtained. The configuration tool loads the refresh strategy to the refresh terminal. Optionally, the configuration tool can also be installed in the refresh terminal, which can facilitate operation. After the refresh terminal receives the refresh strategy, it first judges whether the current vehicle state is Refresh is allowed. If the refresh is allowed, the refresh terminal refreshes the controllers to be refreshed of different bus types in parallel according to the grouping of the refresh files. The controllers to be refreshed of the same bus type are refreshed sequentially. After the refresh is completed, a log is generated for saving. For tracking.
上述车辆控制器并行刷新方法通用性强,无须改变原有控制器的软件,或者针对并行机制进行修改就可以使用;兼容性强,可用于多种平台运行,传统电脑,诊断仪,车联网都可以部署;速度快,以太网本身并行优化,以太网转CAN,CANFD的并行效率的优化,充分提升刷新效率,缩短时间,为整车厂提升服务和用户体验。The aforementioned vehicle controller parallel refresh method is highly versatile and can be used without changing the software of the original controller or modifying the parallel mechanism; it has strong compatibility and can be used for multiple platform operations, traditional computers, diagnostics, and Internet of Vehicles. Can be deployed; fast speed, parallel optimization of Ethernet itself, optimization of parallel efficiency of Ethernet to CAN, CANFD, fully improve refresh efficiency, shorten time, and improve service and user experience for OEMs.
应该理解的是,虽然图2-4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 2-4 are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-4 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or stages The execution order of is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
在其中一个实施例中,如图5所示,提供了一种车辆控制器并行刷新装置,应用于服务器,包括:第一接收模块100、分组模块200、配置模块300和发送模块400,其中:In one of the embodiments, as shown in FIG. 5, a parallel refresh device for vehicle controllers is provided, which is applied to a server and includes: a first receiving module 100, a grouping module 200, a configuration module 300, and a sending module 400, wherein:
第一接收模块100,用于接收车辆的各个待刷新控制器的刷新文件;The first receiving module 100 is configured to receive refresh files of each controller to be refreshed of the vehicle;
分组模块200,用于根据各个待刷新控制器的总线类型对刷新文件进行分组;The grouping module 200 is used to group the refresh files according to the bus type of each controller to be refreshed;
配置模块300,用于配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;The configuration module 300 is used to configure the controllers to be refreshed corresponding to the refresh files of different groups to the parallel refresh mode, and configure the controllers to be refreshed corresponding to the refresh files in each group to the sequential refresh mode;
发送模块400,用于将配置完成的刷新文件发送至刷新终端,配置完成的刷新文件用于指示刷新终端按照配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。The sending module 400 is configured to send the configured refresh file to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
在其中一个实施例中,上述的第一接收模块100还用于接收车辆的各个待刷新控制器的刷新流程;In one of the embodiments, the above-mentioned first receiving module 100 is also used to receive the refresh process of each controller to be refreshed of the vehicle;
上述的车辆控制器并行刷新装置还可以包括:The aforementioned parallel refresh device for vehicle controllers may further include:
刷新时间计算模块,用于根据刷新文件计算各个待刷新控制器的刷新时间;The refresh time calculation module is used to calculate the refresh time of each controller to be refreshed according to the refresh file;
第一判断模块,用于判断各个待刷新控制器的刷新时间的差值是否大于预设值;The first judging module is used to judge whether the difference of the refresh time of each controller to be refreshed is greater than a preset value;
配置模块300还用于当存在大于预设值的差值时,则配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式。The configuration module 300 is further configured to configure the to-be-refreshed controller corresponding to the refresh file in each group to the sequential refresh mode when there is a difference greater than the preset value.
在其中一个实施例中,配置模块300还用于当不存在大于预设值的差值时,则根据刷新流程中非数据传输时间,配置每一分组中的各个刷新文件对应的待刷新控制器为时分复用刷新模式。In one of the embodiments, the configuration module 300 is also used to configure the controller to be refreshed corresponding to each refresh file in each group according to the non-data transmission time in the refresh process when there is no difference greater than the preset value. Refresh mode for time division multiplexing.
在其中一个实施例中,刷新时间计算模块可以包括:In one of the embodiments, the refresh time calculation module may include:
数据擦除时间计算单元,用于根据刷新文件的大小以及待刷新控制器的单块擦除时间,计算得到数据擦除时间;The data erasing time calculation unit is used to calculate the data erasing time according to the size of the refresh file and the single block erasing time of the controller to be refreshed;
数据包数量计算单元,用于根据刷新文件的大小以及传输中单数据包计算总数据包数量;The data packet quantity calculation unit is used to calculate the total data packet quantity according to the size of the refreshed file and the single data packet in transmission;
数据传输时间计算单元,用于根据总数据包数量、单数据包传输时间、数据写入时间以及强制等待时间计算得到数据传输时间;The data transmission time calculation unit is used to calculate the data transmission time according to the total number of data packets, single data packet transmission time, data writing time and mandatory waiting time;
数据校验时间计算单元,用于根据刷新文件的大小以及校验速度计算得到数据校验时间;The data verification time calculation unit is used to calculate the data verification time according to the size of the refresh file and the verification speed;
刷新时间计算单元,用于统计数据擦除时间、数据传输时间以及数据校验时间得到刷新时间。The refresh time calculation unit is used to calculate the data erasure time, data transmission time, and data verification time to obtain the refresh time.
在其中一个实施例中,如图6所示,提供了一种车辆控制器并行刷新装置,应用于与车辆通过高速通信链路连接的刷新终端,包括:第二接收模块500和刷新模块600,其中:In one of the embodiments, as shown in FIG. 6, a parallel refresh device for a vehicle controller is provided, which is applied to a refresh terminal connected to a vehicle through a high-speed communication link, and includes: a second receiving module 500 and a refresh module 600, in:
第二接收模块500,用于接收服务器发送的配置完成的刷新文件,配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;The second receiving module 500 is used to receive the configured refresh file sent by the server. After the configured refresh file is grouped according to the bus type, the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode. The controller to be refreshed corresponding to the refreshed file in the middle is in sequential refresh mode;
刷新模块600,用于按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。The refresh module 600 is used to refresh controllers to be refreshed of different bus types in parallel according to the grouping of refresh files, and refresh controllers to be refreshed of the same bus type in order.
在其中一个实施例中,上述的车辆控制器并行刷新装置还包括:In one of the embodiments, the aforementioned parallel refresh device for vehicle controllers further includes:
通信协议获取模块,用于获取照刷新文件分组对应的总线类型的通信协议;The communication protocol acquisition module is used to acquire the communication protocol of the bus type corresponding to the photo refresh file grouping;
转换模块,用于将通过高速通信链路传输的刷新文件转换为通信协议对应的刷新文件。The conversion module is used to convert the refresh file transmitted through the high-speed communication link into a refresh file corresponding to the communication protocol.
在其中一个实施例中,上述的车辆控制器并行刷新装置还包括:In one of the embodiments, the aforementioned parallel refresh device for vehicle controllers further includes:
当前状态获取模块,用于获取车辆的当前状态;The current state acquisition module is used to acquire the current state of the vehicle;
第二判断模块,用于判断车辆的当前状态是否满足刷新条件;The second judgment module is used to judge whether the current state of the vehicle satisfies the refresh condition;
刷新模块600还用于当车辆的当前状态满足刷新条件时,则按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。The refresh module 600 is also used to refresh the controllers to be refreshed of different bus types in parallel according to the grouping of the refresh files when the current state of the vehicle meets the refresh conditions, and refresh the controllers to be refreshed of the same bus type in sequence.
在其中一个实施例中,上述的车辆控制器并行刷新装置还包括:In one of the embodiments, the aforementioned parallel refresh device for vehicle controllers further includes:
刷新模式进入模块,用于通过诊断功能寻址的方式向待刷新控制器进行广播,以使得各个待刷新控制器同步进入刷新模式。The refresh mode entry module is used to broadcast to the controller to be refreshed through the addressing of the diagnostic function, so that each controller to be refreshed enters the refresh mode synchronously.
在其中一个实施例中,上述的车辆控制器并行刷新装置还包括:In one of the embodiments, the aforementioned parallel refresh device for vehicle controllers further includes:
保存模块,用于生成刷新日志,并保存。The save module is used to generate and save the refresh log.
关于车辆控制器并行刷新装置的具体限定可以参见上文中对于车辆控制器并行刷新方法的限定,在此不再赘述。上述车辆控制器并行刷新装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the parallel refresh device of the vehicle controller, please refer to the above definition of the parallel refresh method of the vehicle controller, which will not be repeated here. Each module in the aforementioned vehicle controller parallel refresh device can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储刷新文件。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种车辆控制器并行刷新方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 7. The computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The database of the computer equipment is used to store refresh files. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer readable instruction is executed by the processor to realize a parallel refresh method of the vehicle controller.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机可读指令。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种车辆控制器并行刷新方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8. The computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer readable instruction is executed by the processor to realize a parallel refresh method of the vehicle controller. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, or it can be a button, a trackball or a touch pad set on the housing of the computer equipment , It can also be an external keyboard, touchpad, or mouse.
本领域技术人员可以理解,图7和图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structures shown in FIG. 7 and FIG. 8 are only block diagrams of part of the structure related to the solution of the present application, and do not constitute a limitation on the computer equipment to which the solution of the present application is applied. The computer device may include more or fewer components than shown in the figures, or combine certain components, or have a different component arrangement.
在其中一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机可读指令,该处理器执行计算机可读指令时实现以下步骤:接收车辆的各个待刷新控制器的刷新文件;根据各个待刷新控制器的总线类型对刷新文件进行分组;配置不同 分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及将配置完成的刷新文件发送至刷新终端,配置完成的刷新文件用于指示刷新终端按照配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。In one of the embodiments, a computer device is provided, including a memory and a processor, and computer-readable instructions are stored in the memory. When the processor executes the computer-readable instructions, the following steps are implemented: receiving each controller to be refreshed in the vehicle Refresh files; group the refresh files according to the bus type of each controller to be refreshed; configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and configure the controller to be refreshed corresponding to the refresh files in each group as Sequential refresh mode; and sending the configured refresh file to the refresh terminal. The configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:接收车辆的各个待刷新控制器的刷新流程;处理器执行计算机可读指令时所实现的配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式之前,还包括:根据刷新文件计算各个待刷新控制器的刷新时间;判断各个待刷新控制器的刷新时间的差值是否大于预设值;及当存在大于预设值的差值时,则配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式。In one of the embodiments, the processor further implements the following steps when executing the computer-readable instruction: receiving the refresh process of each controller to be refreshed of the vehicle; configuring the refresh file in each group implemented when the processor executes the computer-readable instruction Before the corresponding controller to be refreshed is in the sequential refresh mode, it also includes: calculating the refresh time of each controller to be refreshed according to the refresh file; judging whether the difference in the refresh time of each controller to be refreshed is greater than the preset value; and when there is greater than When the preset value is different, the controller to be refreshed corresponding to the refresh file in each group is configured as a sequential refresh mode.
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:当不存在大于预设值的差值时,则根据刷新流程中非数据传输时间,配置每一分组中的各个刷新文件对应的待刷新控制器为时分复用刷新模式。In one of the embodiments, the processor further implements the following steps when executing the computer-readable instructions: when there is no difference greater than the preset value, configure each refresh in each group according to the non-data transmission time in the refresh process The controller to be refreshed corresponding to the file is in the time division multiplexing refresh mode.
在其中一个实施例中,处理器执行计算机可读指令时所实现的根据刷新文件计算各个待刷新控制器的刷新时间,包括:根据刷新文件的大小以及待刷新控制器的单块擦除时间,计算得到数据擦除时间;根据刷新文件的大小以及传输中单数据包计算总数据包数量;根据总数据包数量、单数据包传输时间、数据写入时间以及强制等待时间计算得到数据传输时间;根据刷新文件的大小以及校验速度计算得到数据校验时间;及统计数据擦除时间、数据传输时间以及数据校验时间得到刷新时间。In one of the embodiments, the calculation of the refresh time of each controller to be refreshed according to the refresh file implemented when the processor executes the computer-readable instruction includes: according to the size of the refresh file and the single block erasing time of the controller to be refreshed, Calculate the data erasure time; calculate the total number of data packets according to the size of the refresh file and the single data packet in transmission; calculate the data transmission time according to the total number of data packets, single data packet transmission time, data writing time and mandatory waiting time; The data verification time is calculated according to the size of the refresh file and the verification speed; and the data erasure time, data transmission time, and data verification time are counted to obtain the refresh time.
在其中一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机可读指令,该处理器执行计算机可读指令时实现以下步骤:接收服务器发送的配置完成的刷新文件,配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。In one of the embodiments, a computer device is provided, including a memory and a processor, and computer-readable instructions are stored in the memory. When the processor executes the computer-readable instructions, the following steps are implemented: receiving a configuration refresh from a server After the configured refresh files are grouped according to the bus type, the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode, and the controllers to be refreshed corresponding to the refresh files in each group are in sequential refresh mode; and The grouping of refresh files performs parallel refresh for the controllers to be refreshed of different bus types, and the controllers to be refreshed of the same bus type are refreshed sequentially.
在其中一个实施例中,处理器执行计算机可读指令时所实现的按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:获取照刷新文件分组对应的总线类型的通信协议;及将通过高速通信链路传输的刷新文件转换为通信协议对应的刷新文件。In one of the embodiments, when the processor executes the computer-readable instructions, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially. It includes: obtaining the communication protocol of the bus type corresponding to the group of the refreshing files; and converting the refreshing file transmitted through the high-speed communication link into the refreshing file corresponding to the communication protocol.
在其中一个实施例中,处理器执行计算机可读指令时所实现的按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:获取车辆的当前状态;判断车辆的当前状态是否满足刷新条件;及当车辆的当前状态满足刷新条件时,则按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。In one of the embodiments, when the processor executes the computer-readable instructions, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially. Including: obtaining the current state of the vehicle; judging whether the current state of the vehicle meets the refresh condition; and when the current state of the vehicle satisfies the refresh condition, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of the refresh files, and the same bus The type of controller to be refreshed is refreshed sequentially.
在其中一个实施例中,处理器执行计算机可读指令时所实现的按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新 之前,还包括:通过诊断功能寻址的方式向待刷新控制器进行广播,以使得各个待刷新控制器同步进入刷新模式。In one of the embodiments, when the processor executes the computer-readable instructions, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially. Including: broadcast to the controller to be refreshed through the addressing of the diagnostic function, so that each controller to be refreshed enters the refresh mode synchronously.
在其中一个实施例中,处理器执行计算机可读指令时所实现的按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之后,还包括:生成刷新日志,并保存。In one of the embodiments, when the processor executes the computer-readable instructions, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files. After the controllers to be refreshed of the same bus type are refreshed sequentially, Including: Generate refresh log and save it.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现以下步骤:接收车辆的各个待刷新控制器的刷新文件;根据各个待刷新控制器的总线类型对刷新文件进行分组;配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及将配置完成的刷新文件发送至刷新终端,配置完成的刷新文件用于指示刷新终端按照配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。In one embodiment, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the following steps are implemented: receiving refresh files of each controller to be refreshed of the vehicle; The refresh files are grouped according to the bus type of each controller to be refreshed; the controllers to be refreshed corresponding to the refresh files of different groups are configured in parallel refresh mode, and the controller to be refreshed corresponding to the refresh files in each group is configured in sequential refresh mode; And send the configured refresh file to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:接收车辆的各个待刷新控制器的刷新流程;计算机可读指令被处理器执行时所实现的配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式之前,还包括:根据刷新文件计算各个待刷新控制器的刷新时间;判断各个待刷新控制器的刷新时间的差值是否大于预设值;及当存在大于预设值的差值时,则配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式。In one of the embodiments, when the computer-readable instruction is executed by the processor, the following steps are also implemented: receiving the refresh flow of each controller to be refreshed of the vehicle; the configuration implemented when the computer-readable instruction is executed by the processor in each group Before the controller to be refreshed corresponding to the refresh file is in the sequential refresh mode, it also includes: calculating the refresh time of each controller to be refreshed according to the refresh file; judging whether the difference in the refresh time of each controller to be refreshed is greater than the preset value; and When there is a difference greater than the preset value, the controller to be refreshed corresponding to the refresh file in each group is configured as a sequential refresh mode.
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:当不存在大于预设值的差值时,则根据刷新流程中非数据传输时间,配置每一分组中的各个刷新文件对应的待刷新控制器为时分复用刷新模式。In one of the embodiments, when the computer-readable instructions are executed by the processor, the following steps are also implemented: when there is no difference greater than the preset value, configure each group in each group according to the non-data transmission time in the refresh process The controller to be refreshed corresponding to the refresh file is in the time division multiplexing refresh mode.
在其中一个实施例中,计算机可读指令被处理器执行时所实现的根据刷新文件计算各个待刷新控制器的刷新时间,包括:根据刷新文件的大小以及待刷新控制器的单块擦除时间,计算得到数据擦除时间;根据刷新文件的大小以及传输中单数据包计算总数据包数量;根据总数据包数量、单数据包传输时间、数据写入时间以及强制等待时间计算得到数据传输时间;根据刷新文件的大小以及校验速度计算得到数据校验时间;及统计数据擦除时间、数据传输时间以及数据校验时间得到刷新时间。In one of the embodiments, the calculation of the refresh time of each controller to be refreshed according to the refresh file implemented when the computer-readable instruction is executed by the processor includes: according to the size of the refresh file and the single block erasing time of the controller to be refreshed , Calculate the data erasure time; calculate the total number of data packets according to the size of the refresh file and the single data packet in transmission; calculate the data transmission time according to the total number of data packets, single data packet transmission time, data writing time and mandatory waiting time ; The data verification time is calculated according to the size of the refresh file and the verification speed; and the data erasure time, data transmission time and data verification time are counted to obtain the refresh time.
在其中一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现以下步骤:接收服务器发送的配置完成的刷新文件,配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。In one of the embodiments, a computer-readable storage medium is provided, and computer-readable instructions are stored thereon. When the computer-readable instructions are executed by a processor, the following steps are implemented: receiving a configured refresh file sent by a server, and configuring After the completed refresh files are grouped according to the bus type, the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode, and the controllers to be refreshed corresponding to the refresh files in each group are in sequential refresh mode; and according to the refresh file The controllers to be refreshed of different bus types are refreshed in groups in parallel, and the controllers to be refreshed of the same bus type are refreshed sequentially.
在其中一个实施例中,计算机可读指令被处理器执行时所实现的按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:获取照刷新文件分组对应的总线类型的通信协议;及将通过高速通信链 路传输的刷新文件转换为通信协议对应的刷新文件。In one of the embodiments, when the computer-readable instructions are executed by the processor, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files. Before the controllers to be refreshed of the same bus type are sequentially refreshed, It also includes: acquiring the communication protocol of the bus type corresponding to the group of refreshing files; and converting the refreshing file transmitted through the high-speed communication link into the refreshing file corresponding to the communication protocol.
在其中一个实施例中,计算机可读指令被处理器执行时所实现的按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:获取车辆的当前状态;判断车辆的当前状态是否满足刷新条件;及当车辆的当前状态满足刷新条件时,则按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。In one of the embodiments, when the computer-readable instructions are executed by the processor, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files. Before the controllers to be refreshed of the same bus type are sequentially refreshed, It also includes: obtaining the current state of the vehicle; judging whether the current state of the vehicle meets the refresh condition; and when the current state of the vehicle satisfies the refresh condition, refresh the controllers to be refreshed of different bus types in parallel according to the grouping of the refresh files. The bus-type to-be-refreshed controller performs sequential refresh.
在其中一个实施例中,计算机可读指令被处理器执行时所实现的按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:通过诊断功能寻址的方式向待刷新控制器进行广播,以使得各个待刷新控制器同步进入刷新模式。In one of the embodiments, when the computer-readable instructions are executed by the processor, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files. Before the controllers to be refreshed of the same bus type are sequentially refreshed, It also includes: broadcasting to the controller to be refreshed through the addressing of the diagnostic function, so that each controller to be refreshed enters the refresh mode synchronously.
在其中一个实施例中,计算机可读指令被处理器执行时所实现的按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之后,还包括:生成刷新日志,并保存。In one of the embodiments, when the computer-readable instructions are executed by the processor, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files. After the controllers to be refreshed of the same bus type are refreshed sequentially, It also includes: generating a refresh log and saving it.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile computer. In a readable storage medium, when the computer-readable instructions are executed, they may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database, or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (19)

  1. 一种车辆控制器并行刷新方法,应用于配置工具,包括:A parallel refresh method for vehicle controllers, applied to configuration tools, includes:
    接收车辆的各个待刷新控制器的刷新文件;Receiving the refresh file of each controller to be refreshed of the vehicle;
    根据各个待刷新控制器的总线类型对所述刷新文件进行分组;Grouping the refresh files according to the bus type of each controller to be refreshed;
    配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及Configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and configure the controller to be refreshed corresponding to the refresh files in each group to be in sequential refresh mode; and
    将配置完成的刷新文件发送至刷新终端,所述配置完成的刷新文件用于指示所述刷新终端按照所述配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。The configured refresh file is sent to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    接收车辆的各个待刷新控制器的刷新流程;Receiving the refresh process of each controller to be refreshed in the vehicle;
    所述配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式之前,还包括:Before the configuration of the controller to be refreshed corresponding to the refresh file in each group to the sequential refresh mode, the method further includes:
    根据所述刷新文件计算所述各个待刷新控制器的刷新时间;Calculating the refresh time of each controller to be refreshed according to the refresh file;
    判断各个待刷新控制器的刷新时间的差值是否大于预设值;及Determine whether the difference between the refresh times of the controllers to be refreshed is greater than the preset value; and
    当存在大于预设值的差值时,则配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式。When there is a difference greater than the preset value, the controller to be refreshed corresponding to the refresh file in each group is configured to be in the sequential refresh mode.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    当不存在大于预设值的差值时,则根据所述刷新流程中非数据传输时间,配置每一分组中的各个刷新文件对应的待刷新控制器为时分复用刷新模式。When there is no difference greater than the preset value, the controller to be refreshed corresponding to each refresh file in each group is configured in the time division multiplexing refresh mode according to the non-data transmission time in the refresh process.
  4. 根据权利要求2或3所述的方法,其特征在于,所述根据所述刷新文件计算所述各个待刷新控制器的刷新时间,包括:The method according to claim 2 or 3, wherein the calculating the refresh time of each controller to be refreshed according to the refresh file comprises:
    根据所述刷新文件的大小以及待刷新控制器的单块擦除时间,计算得到数据擦除时间;According to the size of the refresh file and the single block erasing time of the controller to be refreshed, the data erasing time is calculated;
    根据所述刷新文件的大小以及传输中单数据包计算总数据包数量;Calculating the total number of data packets according to the size of the refresh file and the single data packet in transmission;
    根据所述总数据包数量、单数据包传输时间、数据写入时间以及强制等待时间计算得到数据传输时间;Calculating the data transmission time according to the total number of data packets, the transmission time of a single data packet, the data writing time and the mandatory waiting time;
    根据所述刷新文件的大小以及校验速度计算得到数据校验时间;及The data verification time is calculated according to the size of the refresh file and the verification speed; and
    统计所述数据擦除时间、数据传输时间以及数据校验时间得到刷新时间。The data erasure time, data transmission time, and data verification time are counted to obtain the refresh time.
  5. 一种车辆控制器并行刷新方法,应用于与车辆通过高速通信链路连接的刷新终端,包括:A parallel refresh method for a vehicle controller, which is applied to a refresh terminal connected to a vehicle through a high-speed communication link, and includes:
    接收配置工具发送的配置完成的刷新文件,所述配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及Receive the configured refresh file sent by the configuration tool, the configured refresh file is grouped according to the bus type, the controller to be refreshed corresponding to the refresh file of different groups is in parallel refresh mode, and the refresh file in each group corresponds to The controller to be refreshed is in sequential refresh mode; and
    按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。The controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially.
  6. 根据权利要求5所述的方法,其特征在于,所述按照刷新文件的分组对不同总线 类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:The method according to claim 5, wherein the parallel refresh of the controllers to be refreshed of different bus types according to the grouping of the refresh files, and before the controllers to be refreshed of the same bus type are sequentially refreshed, the method further comprises:
    获取照刷新文件分组对应的总线类型的通信协议;及Obtain the communication protocol of the bus type corresponding to the photo refresh file group; and
    将通过所述高速通信链路传输的刷新文件转换为所述通信协议对应的刷新文件。The refresh file transmitted through the high-speed communication link is converted into a refresh file corresponding to the communication protocol.
  7. 根据权利要求5所述的方法,其特征在于,所述按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:The method according to claim 5, wherein the parallel refresh of the controllers to be refreshed of different bus types according to the grouping of the refresh files, and before the controllers to be refreshed of the same bus type are sequentially refreshed, the method further comprises:
    获取车辆的当前状态;Get the current state of the vehicle;
    判断所述车辆的当前状态是否满足刷新条件;及Determine whether the current state of the vehicle satisfies the refresh condition; and
    当所述车辆的当前状态满足刷新条件时,则按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。When the current state of the vehicle satisfies the refresh condition, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of the refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially.
  8. 根据权利要求5所述的方法,其特征在于,所述按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:The method according to claim 5, wherein the parallel refresh of the controllers to be refreshed of different bus types according to the grouping of the refresh files, and before the controllers to be refreshed of the same bus type are sequentially refreshed, the method further comprises:
    通过诊断功能寻址的方式向待刷新控制器进行广播,以使得各个待刷新控制器同步进入刷新模式。Broadcast to the controller to be refreshed through the addressing of the diagnostic function, so that each controller to be refreshed enters the refresh mode synchronously.
  9. 根据权利要求5所述的方法,其特征在于,所述按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之后,还包括:The method according to claim 5, wherein the parallel refresh of the controllers to be refreshed of different bus types according to the grouping of the refresh files, and after the controllers to be refreshed of the same bus type are sequentially refreshed, the method further comprises:
    生成刷新日志,并保存。Generate a refresh log and save it.
  10. 一种车辆控制器并行刷新装置,应用于配置工具,所述装置包括:A parallel refresh device for a vehicle controller, applied to a configuration tool, the device comprising:
    第一接收模块,用于接收车辆的各个待刷新控制器的刷新文件;The first receiving module is used to receive refresh files of each controller to be refreshed of the vehicle;
    分组模块,用于根据各个待刷新控制器的总线类型对所述刷新文件进行分组;The grouping module is used to group the refresh files according to the bus type of each controller to be refreshed;
    配置模块,用于配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及The configuration module is used to configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and to configure the controllers to be refreshed corresponding to the refresh files in each group to be in sequential refresh mode; and
    发送模块,用于将配置完成的刷新文件发送至刷新终端,所述配置完成的刷新文件用于指示所述刷新终端按照所述配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。The sending module is used to send the configured refresh file to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file .
  11. 一种车辆控制器并行刷新装置,应用于与车辆通过高速通信链路连接的刷新终端,包括:A parallel refresh device for a vehicle controller, which is applied to a refresh terminal connected to a vehicle through a high-speed communication link, and includes:
    第二接收模块,用于接收配置工具发送的配置完成的刷新文件,所述配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及The second receiving module is configured to receive the configured refresh file sent by the configuration tool. After the configured refresh file is grouped according to the bus type, the controllers to be refreshed corresponding to the refresh files of different groups are in parallel refresh mode. The controller to be refreshed corresponding to the refresh file in a group is in sequential refresh mode; and
    刷新模块,用于按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。The refresh module is used to refresh controllers to be refreshed of different bus types in parallel according to the grouping of refresh files, and refresh controllers to be refreshed of the same bus type in order.
  12. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Each processor performs the following steps:
    接收车辆的各个待刷新控制器的刷新文件;Receiving the refresh file of each controller to be refreshed of the vehicle;
    根据各个待刷新控制器的总线类型对所述刷新文件进行分组;Grouping the refresh files according to the bus type of each controller to be refreshed;
    配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及Configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and configure the controller to be refreshed corresponding to the refresh files in each group to be in sequential refresh mode; and
    将配置完成的刷新文件发送至刷新终端,所述配置完成的刷新文件用于指示所述刷新终端按照所述配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。The configured refresh file is sent to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file.
  13. 根据权利要求12所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 12, wherein the processor further executes the following steps when executing the computer-readable instruction:
    接收车辆的各个待刷新控制器的刷新流程;Receiving the refresh process of each controller to be refreshed in the vehicle;
    所述配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式之前,还包括:Before the configuration of the controller to be refreshed corresponding to the refresh file in each group to the sequential refresh mode, the method further includes:
    根据所述刷新文件计算所述各个待刷新控制器的刷新时间;Calculating the refresh time of each controller to be refreshed according to the refresh file;
    判断各个待刷新控制器的刷新时间的差值是否大于预设值;及Determine whether the difference between the refresh times of the controllers to be refreshed is greater than the preset value; and
    当存在大于预设值的差值时,则配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式。When there is a difference greater than the preset value, the controller to be refreshed corresponding to the refresh file in each group is configured to be in the sequential refresh mode.
  14. 根据权利要求13所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 13, wherein the processor further executes the following steps when executing the computer-readable instruction:
    当不存在大于预设值的差值时,则根据所述刷新流程中非数据传输时间,配置每一分组中的各个刷新文件对应的待刷新控制器为时分复用刷新模式。When there is no difference greater than the preset value, the controller to be refreshed corresponding to each refresh file in each group is configured in the time division multiplexing refresh mode according to the non-data transmission time in the refresh process.
  15. 根据权利要求13或14所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时所实现的所述根据所述刷新文件计算所述各个待刷新控制器的刷新时间,包括:The computer device according to claim 13 or 14, wherein the calculation of the refresh time of the respective controllers to be refreshed according to the refresh file implemented when the processor executes the computer-readable instruction, include:
    根据所述刷新文件的大小以及待刷新控制器的单块擦除时间,计算得到数据擦除时间;According to the size of the refresh file and the single block erasing time of the controller to be refreshed, the data erasing time is calculated;
    根据所述刷新文件的大小以及传输中单数据包计算总数据包数量;Calculating the total number of data packets according to the size of the refresh file and the single data packet in transmission;
    根据所述总数据包数量、单数据包传输时间、数据写入时间以及强制等待时间计算得到数据传输时间;Calculating the data transmission time according to the total number of data packets, the transmission time of a single data packet, the data writing time and the mandatory waiting time;
    根据所述刷新文件的大小以及校验速度计算得到数据校验时间;及The data verification time is calculated according to the size of the refresh file and the verification speed; and
    统计所述数据擦除时间、数据传输时间以及数据校验时间得到刷新时间。The data erasure time, data transmission time, and data verification time are counted to obtain the refresh time.
  16. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Each processor performs the following steps:
    接收配置工具发送的配置完成的刷新文件,所述配置完成的刷新文件为根据总线类型 进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及Receive the configured refresh file sent by the configuration tool, the configured refresh file is grouped according to the bus type, the controller to be refreshed corresponding to the refresh file of different groups is in parallel refresh mode, and the refresh file in each group corresponds to The controller to be refreshed is in sequential refresh mode; and
    按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。The controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially.
  17. 根据权利要求16所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时所实现的所述按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:The computer device according to claim 16, wherein the processor implements parallel refreshing of controllers to be refreshed of different bus types according to the grouping of refresh files when the processor executes the computer-readable instructions, and the same Before the bus-type to-be-refreshed controller performs sequential refresh, it also includes:
    获取照刷新文件分组对应的总线类型的通信协议;及Obtain the communication protocol of the bus type corresponding to the photo refresh file group; and
    将通过所述高速通信链路传输的刷新文件转换为所述通信协议对应的刷新文件。The refresh file transmitted through the high-speed communication link is converted into a refresh file corresponding to the communication protocol.
  18. 根据权利要求17所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时所述按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新之前,还包括:The computer device according to claim 17, wherein when the processor executes the computer-readable instruction, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers of the same bus type Before the refresh controller performs sequential refresh, it also includes:
    获取车辆的当前状态;Get the current state of the vehicle;
    判断所述车辆的当前状态是否满足刷新条件;及Determine whether the current state of the vehicle satisfies the refresh condition; and
    当所述车辆的当前状态满足刷新条件时,则按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。When the current state of the vehicle satisfies the refresh condition, the controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of the refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially.
  19. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the following steps:
    接收车辆的各个待刷新控制器的刷新文件;Receiving the refresh file of each controller to be refreshed of the vehicle;
    根据各个待刷新控制器的总线类型对所述刷新文件进行分组;Grouping the refresh files according to the bus type of each controller to be refreshed;
    配置不同分组的刷新文件对应的待刷新控制器为并行刷新模式,配置每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及Configure the controllers to be refreshed corresponding to the refresh files of different groups to be in parallel refresh mode, and configure the controller to be refreshed corresponding to the refresh files in each group to be in sequential refresh mode; and
    将配置完成的刷新文件发送至刷新终端,所述配置完成的刷新文件用于指示所述刷新终端按照所述配置完成的刷新文件,对车辆的各个待刷新控制器进行并行刷新。20、一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:The configured refresh file is sent to the refresh terminal, and the configured refresh file is used to instruct the refresh terminal to refresh each controller to be refreshed in the vehicle in parallel according to the configured refresh file. 20. One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to execute the following step:
    接收配置工具发送的配置完成的刷新文件,所述配置完成的刷新文件为根据总线类型进行分组后,不同分组的刷新文件对应的待刷新控制器为并行刷新模式,每一分组中刷新文件对应的待刷新控制器为顺序刷新模式;及Receive the configured refresh file sent by the configuration tool, the configured refresh file is grouped according to the bus type, the controller to be refreshed corresponding to the refresh file of different groups is in parallel refresh mode, and the refresh file in each group corresponds to The controller to be refreshed is in sequential refresh mode; and
    按照刷新文件的分组对不同总线类型的待刷新控制器进行并行刷新,同一总线类型的待刷新控制器进行顺序刷新。The controllers to be refreshed of different bus types are refreshed in parallel according to the grouping of refresh files, and the controllers to be refreshed of the same bus type are refreshed sequentially.
PCT/CN2020/073348 2020-01-21 2020-01-21 Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium WO2021146877A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/073348 WO2021146877A1 (en) 2020-01-21 2020-01-21 Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/073348 WO2021146877A1 (en) 2020-01-21 2020-01-21 Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium

Publications (1)

Publication Number Publication Date
WO2021146877A1 true WO2021146877A1 (en) 2021-07-29

Family

ID=76991903

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/073348 WO2021146877A1 (en) 2020-01-21 2020-01-21 Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium

Country Status (1)

Country Link
WO (1) WO2021146877A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5557578A (en) * 1995-05-01 1996-09-17 Apple Computer, Inc. Dynamic memory refresh controller and method
CN108021516A (en) * 2017-12-19 2018-05-11 联芸科技(杭州)有限公司 The command scheduling management system and method for a kind of parallel memorizing media storage controller
CN109407656A (en) * 2018-12-29 2019-03-01 深圳市道通科技股份有限公司 The scan method and its automotive diagnostic installation of electronic control unit in vehicle
CN109581997A (en) * 2017-09-29 2019-04-05 上海欧菲智能车联科技有限公司 The offline method for refreshing of batch and system and offline refreshing a device
CN110221842A (en) * 2019-05-06 2019-09-10 北京汽车股份有限公司 Data write with a brush dipped in Chinese ink method, apparatus, equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5557578A (en) * 1995-05-01 1996-09-17 Apple Computer, Inc. Dynamic memory refresh controller and method
CN109581997A (en) * 2017-09-29 2019-04-05 上海欧菲智能车联科技有限公司 The offline method for refreshing of batch and system and offline refreshing a device
CN108021516A (en) * 2017-12-19 2018-05-11 联芸科技(杭州)有限公司 The command scheduling management system and method for a kind of parallel memorizing media storage controller
CN109407656A (en) * 2018-12-29 2019-03-01 深圳市道通科技股份有限公司 The scan method and its automotive diagnostic installation of electronic control unit in vehicle
CN110221842A (en) * 2019-05-06 2019-09-10 北京汽车股份有限公司 Data write with a brush dipped in Chinese ink method, apparatus, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109828935B (en) Parallel flash method based on CAN FD bus
CN111399884A (en) Vehicle component upgrading method and device and electronic equipment
WO2021098212A1 (en) Software upgrade method, apparatus and system
CN111163179A (en) System and method for remotely upgrading automobile terminal electronic control module software
CN110297608B (en) Data processing method, device and storage medium
US10764372B2 (en) Vehicular communication device
CN110990034A (en) ECU upgrading method and system, electronic equipment and storage medium
CN111488165A (en) Method and system for upgrading vehicle ECU through script
WO2021146877A1 (en) Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium
CN113220317A (en) Vehicle controller parallel refreshing method and device, computer equipment and storage medium
CN111114326B (en) Power system integrated control system, method and storage medium
CN113741936A (en) Parallel flashing method and device based on UDS protocol, vehicle and computer readable storage medium
CN113505056A (en) Vehicle diagnosis method, system, device and storage medium
CN112835598B (en) Automobile ECU (electronic control Unit) refreshing method and system and computer readable storage medium thereof
CN116166302A (en) Vehicle-mounted central gateway system, software refreshing method thereof and computer storage medium
CN111142806A (en) Vehicle data storage method, device, equipment and storage medium
CN114895947A (en) Software upgrading method, device, equipment and storage medium of vehicle-mounted controller
CN103112363A (en) Control method and system of automobile drive motor
CN112181464A (en) Off-vehicle upgrading method, system, medium and device
EP3637262B1 (en) Verification device for vehicle control device and vehicle control device
CN111459519A (en) MCU upgrading method and device
JP2021149605A (en) Electronic control device and program re-write control method
WO2024109535A1 (en) Communication interaction method and apparatus, device, and storage medium
CN112445496A (en) Flash method and system for vehicle electric control unit, mobile terminal and vehicle-mounted interactive terminal
CN114584590B (en) Data transmission method, system, device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20915318

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20915318

Country of ref document: EP

Kind code of ref document: A1