Movatterモバイル変換


[0]ホーム

URL:


CN113741390B - Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service - Google Patents

Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service
Download PDF

Info

Publication number
CN113741390B
CN113741390BCN202111007028.4ACN202111007028ACN113741390BCN 113741390 BCN113741390 BCN 113741390BCN 202111007028 ACN202111007028 ACN 202111007028ACN 113741390 BCN113741390 BCN 113741390B
Authority
CN
China
Prior art keywords
message
online
diagnosis
sending
brushing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111007028.4A
Other languages
Chinese (zh)
Other versions
CN113741390A (en
Inventor
谢伯林
杨雪莹
易源东
王忠才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co LtdfiledCriticalChongqing Changan Automobile Co Ltd
Priority to CN202111007028.4ApriorityCriticalpatent/CN113741390B/en
Publication of CN113741390ApublicationCriticalpatent/CN113741390A/en
Application grantedgrantedCritical
Publication of CN113741390BpublicationCriticalpatent/CN113741390B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention relates to a method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal Serial bus) diagnosis service, which comprises the following specific steps: the method comprises the steps of diagnosing overtime of an online message timer T1, wherein the online message is a timing period message, checking a transmission mark F1 of a brushing message, judging whether the message 1 is set, and executing the next step if the message 1 is not set; setting a forbidden transmission mark F2 of the brushing message, and transmitting a diagnosis online message; after the online diagnosis message is successfully generated, starting a delay transmission timer T2 for the message to be written; the delayed transmission timer T2 of the refresh message is timed out, the forbidden transmission flag F2 of the refresh message is cleared, and the diagnostic online message Wen Dingshi device T1 is reset. The invention can ensure that the vehicle controller is not interfered by the diagnosis on-line message in the process of flashing, thereby improving the flashing success rate of the vehicle controller.

Description

Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service
Technical Field
The invention belongs to the technical field of vehicle controller upgrading, and particularly relates to a FBL (FBL flash memory) vehicle controller technology based on UDS (Universal diagnosis service).
Background
When the FBL (flash bootloader) flushing of the vehicle controller is performed by using the UDS diagnostic service, the upper computer generally needs to send a diagnostic online message in a period of less than 5s by using a function addressing mode in the flushing process in addition to sending a diagnostic message for normal flushing to the flushed controller, so that other non-flushed controllers maintain the forbidden communication and forbidden recording DTC states. For the brushed controller, both physical addressing messages and functional addressing messages are received, wherein the physical addressing messages are event messages, and the functional addressing messages are periodic messages. Because of the different ways of processing by the brush controller, the following problems may occur: firstly, the diagnosis online message reaches a brushed controller before the brushing message, and the interval time between the diagnosis online message and the brushing message reaching the brushed controller is very short, so that the brushed controller can only process the diagnosis online message and not process the brushing message; secondly, the message is a long frame and in the process of sending, the diagnosis online message is also sent because of reaching the sending period, so that the brushed controller is doped with a frame of diagnosis online message in the middle of the received long frame message, thereby discarding the message.
Disclosure of Invention
The invention aims to provide a method for brushing a vehicle controller by an FBL based on a UDS diagnosis service, which solves the technical problems: the FBL is disturbed by the diagnosis online message in the process of writing the vehicle controller, so that the vehicle controller is failed to be written.
In order to solve the technical problems, the invention adopts the following technical scheme: a method for FBL to flush a vehicle controller based on UDS diagnostic services, the method comprising the steps of transmitting a flush message, the specific message comprising:
a1, checking a forbidden mark F2 of the refreshing message, judging whether the F2 is set, if not, setting a sending mark F1 of the refreshing message;
step A2, the brushing message is sent;
and step A3, after the brushing message is successfully sent, clearing a sending identifier F1 of the brushing message.
Preferably, the method comprises the steps of,
in the step A1, if yes, that is, the F2 is set, the forbidden transmission flag F2 of the brushing message needs to be checked again, where the F2 set indicates that the diagnostic online message is being sent or that the diagnostic online message is sent but the brushing message is in a delayed sending period.
Preferably, the method comprises the steps of,
the delay time of the brushing message in the delay sending period is 20ms.
The invention also provides a method for brushing the vehicle controller by the FBL based on the UDS diagnosis service, which comprises the following specific steps of sending the diagnosis online message:
step B1: b2, judging whether the F1 is set or not, if not, executing the step T1, wherein the diagnosis online message timer T1 is overtime, the diagnosis online message is a timing period message, checking the transmission mark F1 of the brushing message;
step B2: setting a forbidden mark F2 of the brushing message and sending the diagnosis online message;
step B3: after the online diagnosis message is successfully generated, starting a delay transmission timer T2 of the brushing message;
step B4: and when the delay sending timer T2 of the refreshing message is overtime, the forbidden sending mark F2 of the refreshing message is cleared, and the diagnosis online message timer T1 is reset.
Preferably, the method comprises the steps of,
in the step B1, if the F1 is set, the sending identifier F1 of the refresh message is checked again, where the F1 is set to indicate that the refresh message is being sent.
Preferably, the method comprises the steps of,
in the step B1, the timing duration of the diagnostic online report Wen Dingshi T1 is 3s.
Preferably, the method comprises the steps of,
in the step B3, the delay duration of the delay transmission timer T2 of the refresh packet is 20ms.
By adopting the technical scheme, the invention has the following beneficial technical effects:
in the process of the controller to be refreshed, the refresh message is sent to the controller in a long frame form continuously, and the diagnosis online message is sent to the controller in a frame form periodically, so that the refreshed controller has a diagnosis online message of one frame in the middle of the received long frame refresh message, thereby discarding the refresh message, meanwhile, the fact that the diagnosis online message reaches the refreshed controller before the refresh message at a certain moment is guaranteed, and the interval time is too short, so that the refreshed controller can only process the diagnosis online message and ignore the refresh message. In order to solve the problem that the diagnosis on-line message affects the controller to write, the invention adopts the following technical scheme: from the perspective of sending the refreshing message, checking a forbidden transmission mark F2 of the refreshing message, judging whether F2 is set, if F2 is set, diagnosing that the online message is being sent or diagnosing that the online message is sent but the refreshing message is in a delay sending period, wherein the delay time of the refreshing message in the delay sending period is 20ms, rechecking the forbidden transmission mark F2 of the refreshing message, if F2 is not set, setting a sending mark F1 of the refreshing message, sending the refreshing message, and clearing the sending mark F1 of the refreshing message after the refreshing message is successfully sent. From the perspective of sending the diagnosis online message, after the diagnosis online message Wen Dingshi device T1 overtakes, checking the sending identifier F1 of the refreshing message, judging whether F1 is set, if F1 is set, namely that the refreshing message is being sent, rechecking the sending identifier F1 of the refreshing message, if not, setting the forbidden sending identifier F2 of the refreshing message, sending the diagnosis online message, starting a delay sending timer T2 of the refreshing message after the diagnosis online message is successfully sent, and starting the delay sending timer T2 of the refreshing message to overtime, so as to clearly forbidden sending identifier F2 of the refreshing message, and resetting the diagnosis online message Wen Dingshi device T1. The time for sending the brushing message and the time for sending the diagnosis on-line message are staggered, namely in sequence, from the perspective of sending the brushing message or from the perspective of sending the diagnosis on-line message, so that the brushed controller can be effectively ensured to avoid being interfered by the diagnosis on-line message in the brushing process, and the brushing success rate of the vehicle controller is improved.
Drawings
FIG. 1 is a flow chart of a message transmission for flushing;
fig. 2 is a flow chart of diagnostic online messaging.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
For ease of understanding, some of the terms used in the present invention are explained as follows:
UDS: all Unified Siagnostic Services, unified diagnostic service, is commonly used in the automotive industry.
Functional addressing (term in the background): in the UDS diagnostic service, a client issues diagnostic requests of the same function to a plurality of servers.
Physical addressing (term in the background): in the UDS diagnosis service, one-to-one diagnosis is performed between a client and a server.
In the process of the controller to be refreshed, the refresh message is sent to the controller in a long frame form without interruption, and the diagnosis online message is sent to the controller in a frame form periodically, so that the controller has one frame of diagnosis online message in the middle of the received long frame refresh message, thereby discarding the refresh message, meanwhile, the condition that the diagnosis online message reaches the refreshed controller before the refresh message at a certain moment is guaranteed, and the interval time is too short, so that the refreshed controller can only process the diagnosis online message and ignore the refresh message.
The present invention provides a method for FBL to flush a vehicle controller based on UDS diagnostic services, which solves the above-mentioned problems, and generally as described below, the method is such that the diagnostic online message is timed at 3s cycles to allow enough time to handle the message "collision" phenomenon (interference phenomenon) in which the flush message is sent exactly simultaneously with the diagnostic online message. After the timing time of the on-line message is up, entering a sending waiting state; in the send wait state, a loop check is made to see if a flush message is being sent. If the brushing message is not in transmission, diagnosing the online message to be sent immediately; if the refresh message is in the process of sending, the message still stays in a waiting state for sending. After the on-line message is successfully sent, the delay mark of the brushing message is set, and meanwhile, a delay sending timer T2 of the brushing message is started, wherein the delay time is 20ms. After the timer T2 expires, the diagnostic on-line report Wen Dingshi timer T1 is restarted.
Specifically, as shown in fig. 1, in order to provide a flow chart for sending a refresh message according to the present invention, the specific steps for sending the refresh message include:
and A1, checking a forbidden mark F2 of the refreshing message, judging whether F2 is set, if not, setting a sending mark F1 of the refreshing message.
And step A2, sending a refreshing message.
And step A3, after the message is successfully sent, the sending identification F1 of the message is cleared.
Optionally, in step A1, if yes, that is, F2 is set, the forbidden flag F2 of the refresh message needs to be checked again, where the F2 set indicates that the online message is being sent or that the online message is already sent but the refresh message is in a delayed sending period.
Optionally, the delay time of the refresh message in the delay transmission period is 20ms.
As shown in fig. 2, for a diagnostic online message transmission flowchart, the specific steps for transmitting a diagnostic online message include:
step B1: b2, judging whether F1 is set or not, if not, executing the step T1, wherein the diagnosis online message timer T1 is overtime, and the diagnosis online message is a timing period message, checking the transmission mark F1 of the brushing message;
step B2: setting a forbidden transmission mark F2 of the brushing message, and transmitting a diagnosis online message;
step B3: after the online message is successfully diagnosed, starting a delay sending timer T2 for the message to be written;
step B4: the delayed transmission timer T2 of the refresh message is timed out, the forbidden transmission flag F2 of the refresh message is cleared, and the diagnostic online message Wen Dingshi device T1 is reset.
Optionally, in step B1, if F1 is set, the transmission flag F1 of the brushed message is checked again, where F1 is set to indicate that the brushed message is being transmitted.
Optionally, in step B1, the timing duration of the diagnostic online message timer T1 is 3s.
Optionally, in step B3, the delay duration of the delayed transmission timer T2 of the refresh packet is 20ms.
The invention has the advantages that: the time for sending the brushing message and the time for sending the diagnosis on-line message are staggered, namely in sequence, from the perspective of sending the brushing message or from the perspective of sending the diagnosis on-line message, so that the brushed controller can be effectively ensured to avoid being interfered by the diagnosis on-line message in the brushing process, and the brushing success rate of the vehicle controller is improved.

Claims (3)

1. A method for FBL (remote control unit) flashing vehicle controller based on UDS (Universal diagnostic service) is characterized in that after the timing time of a diagnosis on-line message is up, the method enters a transmission waiting state, and the timing time is 3s; in the transmission waiting state, checking and checking circularly to see whether the refreshing message is being transmitted, and if the refreshing message is not being transmitted, diagnosing the on-line message to be transmitted immediately; if the refreshing message is in the process of sending, the refreshing message still stays in a sending waiting state; after the diagnosis online message is successfully sent, setting a delay identifier of the brushing message, starting a delay sending timer T2 of the brushing message, wherein the delay time is 20ms, and restarting the diagnosis online message Wen Dingshi after the timer T2 is overtime;
CN202111007028.4A2021-08-302021-08-30Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic serviceActiveCN113741390B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111007028.4ACN113741390B (en)2021-08-302021-08-30Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111007028.4ACN113741390B (en)2021-08-302021-08-30Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service

Publications (2)

Publication NumberPublication Date
CN113741390A CN113741390A (en)2021-12-03
CN113741390Btrue CN113741390B (en)2023-10-13

Family

ID=78734053

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111007028.4AActiveCN113741390B (en)2021-08-302021-08-30Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service

Country Status (1)

CountryLink
CN (1)CN113741390B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5161739A (en)*1989-12-081992-11-10Kabushiki Kaisha ToshibaMulti-type air heating apparatus utilizing phase variation of heating medium
CN103616830A (en)*2013-12-022014-03-05北京经纬恒润科技有限公司Car controller flash control method and device and car bus system
CN104917696A (en)*2015-06-082015-09-16北京云迹科技有限公司Periodic and non-periodic mixed communication method and system used for low-speed serial bus
CN106375175A (en)*2016-11-182017-02-01广州汽车集团股份有限公司 A method and system for auto diagnostic flashing electronic control unit
CN108549362A (en)*2018-03-302018-09-18北京新能源汽车股份有限公司Information processing method and device of automobile controller
CN108819833A (en)*2018-06-142018-11-16重庆长安汽车股份有限公司A kind of Vehicular turn lamp control method, device and automobile
CN109213113A (en)*2017-07-042019-01-15百度在线网络技术(北京)有限公司Vehicular diagnostic method and system
CN109343872A (en)*2018-08-012019-02-15宝沃汽车(中国)有限公司The software of vehicle writes with a brush dipped in Chinese ink method and apparatus
CN110501995A (en)*2019-08-282019-11-26肇庆小鹏汽车有限公司A kind of vehicle diagnosing system and method
CN112286801A (en)*2020-10-222021-01-29深圳市云伽智能技术有限公司Vehicle programming method, vehicle programming device, vehicle fault diagnosis device and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
DE102004038731A1 (en)*2004-08-102006-02-23Robert Bosch Gmbh Method and device for operating an internal combustion engine
DE102012202914A1 (en)*2012-02-272013-08-29Robert Bosch Gmbh Diagnostic method and diagnostic device for a vehicle component of a vehicle

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5161739A (en)*1989-12-081992-11-10Kabushiki Kaisha ToshibaMulti-type air heating apparatus utilizing phase variation of heating medium
CN103616830A (en)*2013-12-022014-03-05北京经纬恒润科技有限公司Car controller flash control method and device and car bus system
CN104917696A (en)*2015-06-082015-09-16北京云迹科技有限公司Periodic and non-periodic mixed communication method and system used for low-speed serial bus
CN106375175A (en)*2016-11-182017-02-01广州汽车集团股份有限公司 A method and system for auto diagnostic flashing electronic control unit
CN109213113A (en)*2017-07-042019-01-15百度在线网络技术(北京)有限公司Vehicular diagnostic method and system
CN108549362A (en)*2018-03-302018-09-18北京新能源汽车股份有限公司Information processing method and device of automobile controller
CN108819833A (en)*2018-06-142018-11-16重庆长安汽车股份有限公司A kind of Vehicular turn lamp control method, device and automobile
CN109343872A (en)*2018-08-012019-02-15宝沃汽车(中国)有限公司The software of vehicle writes with a brush dipped in Chinese ink method and apparatus
CN110501995A (en)*2019-08-282019-11-26肇庆小鹏汽车有限公司A kind of vehicle diagnosing system and method
CN112286801A (en)*2020-10-222021-01-29深圳市云伽智能技术有限公司Vehicle programming method, vehicle programming device, vehicle fault diagnosis device and medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Ma R .A Secure Authentication Scheme for Remote Diagnosis and Maintenance in Internet of Vehicles.《IEEE WCNC》.2020,全文.*
喻尚.基于车联网的控制器远程诊断与刷写.《汽车实用技术》.2016,全文.*
李娇娇 ; 张宏伟 ; 陈金干 ; .基于LabVIEW的新能源汽车控制器刷写软件设计.软件工程.2020,(02),全文.*
李辉,刘百玉,欧阳娴,刘进元,蒋军敏,张宜群.激光打靶装置中的集散式数字同步系统的研究.光子学报.2004,(07),全文.*

Also Published As

Publication numberPublication date
CN113741390A (en)2021-12-03

Similar Documents

PublicationPublication DateTitle
CN108833122B (en)Wake-up method and device for vehicle-mounted communication controller and storage medium
CN112953775B (en)Vehicle machine upgrading system and method
CN111901076B (en) A vehicle diagnostic data forwarding method, device and gateway
CN107704274B (en)Method, storage medium, equipment and the system waken up for Android application host process
US8780772B2 (en)Communication protocol for wireless enhanced controller area networks
JP4766160B2 (en) Communication system and communication node
KR102707737B1 (en)Controller diagnostic device and method thereof
CN111224837B (en)Method and system for automatically identifying CAN communication baud rate of vehicle ECU
CN110022369A (en)Message treatment method, device, electronic equipment and computer readable storage medium
CN114827206B (en)Remote upgrading method, device, system and equipment end connector
EP4270882A1 (en)Detecting an error in a can system
CN113852445B (en)Method, system, equipment and storage medium for improving data transmission reliability
CN113741390B (en)Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service
CN111600758A (en) Message reporting method and platform, intelligent gateway and storage medium
CN108924485B (en)Client real-time video stream interrupt processing method and system and monitoring system
US20140297913A1 (en)Slave control device and method for programming a slave control device
CN107317731A (en)A kind of detection method of client and server connection state
CN104917696A (en)Periodic and non-periodic mixed communication method and system used for low-speed serial bus
CN116048595A (en)Intelligent terminal noninductive upgrading method and system and electric forklift
CN116760793A (en) Message polling reissue method, device, server and storage medium
CN114598944A (en)Periodic signal processing system, method, computer device and storage medium
JP4098434B2 (en) Broadcast transmission system
US20200026254A1 (en)Method for modifying a configuration and industrial plant system
CN101505269A (en)Processing method and apparatus for video server congestion
CN108600044B (en)Interface state acquisition method, device and equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp