Movatterモバイル変換


[0]ホーム

URL:


CN113741390A - Method for writing vehicle controller by FBL (fiber Bragg Grating) based on UDS (UDS) diagnosis service - Google Patents

Method for writing vehicle controller by FBL (fiber Bragg Grating) based on UDS (UDS) diagnosis service
Download PDF

Info

Publication number
CN113741390A
CN113741390ACN202111007028.4ACN202111007028ACN113741390ACN 113741390 ACN113741390 ACN 113741390ACN 202111007028 ACN202111007028 ACN 202111007028ACN 113741390 ACN113741390 ACN 113741390A
Authority
CN
China
Prior art keywords
message
flash
sending
diagnostic
uds
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111007028.4A
Other languages
Chinese (zh)
Other versions
CN113741390B (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

Images

Classifications

Landscapes

Abstract

The invention relates to a method for writing a vehicle controller by an FBL (fiber Bragg Grating) based on a UDS (Universal data System) diagnostic service, which comprises the following specific steps of sending a diagnostic online message: the diagnosis online message timer T1 is overtime, wherein the diagnosis online message is a timing period message, the sending identification F1 of the flash message is checked, whether the message 1 is set is judged, and if not, the next step is executed; setting a forbidden identifier F2 of the flash message, and sending a diagnosis online message; after the diagnosis online message is successfully generated, starting a delay sending timer T2 of the flash message; the delayed sending timer T2 of the flash message is overtime, the forbidden identification F2 of the flash message is cleared, and the diagnosis online message timer T1 is reset. The method and the device can ensure that the vehicle controller is not interfered by the diagnostic online message in the process of flashing, and improve the success rate of flashing of the vehicle controller.

Description

Method for writing vehicle controller by FBL (fiber Bragg Grating) based on UDS (UDS) diagnosis service
Technical Field
The invention belongs to the technical field of vehicle controller upgrading, and particularly relates to a technology of an FBL (fiber Bragg Grating) vehicle controller based on UDS (UDS) diagnosis service.
Background
When the UDS diagnostic service is used for performing fbl (flash bootloader) flash of the vehicle controller, the upper computer not only sends a diagnostic message of normal flash to the controller to be flushed by using a physical addressing mode, but also usually sends a diagnostic online message by using a functional addressing mode in a cycle less than 5s in the flash process so that other controllers not to be flushed maintain the states of forbidding communication and forbidding recording of DTC. For the controller to be brushed, the physical addressing message and the functional addressing message are received, the physical addressing message is an event message, and the functional addressing message is a periodic message. Due to different processing modes of the brushed controllers, the following problems may occur: firstly, the diagnostic online message reaches the controller to be refreshed before the refresh message, and the interval time between the diagnostic online message and the refresh message reaching the controller to be refreshed is very short, so that the controller to be refreshed can only process the diagnostic online message and does not process the refresh message; secondly, the flash message is a long frame and is being sent, and the diagnostic on-line message is also sent when the sending period is reached, so that the flash controller adulterates a frame of diagnostic on-line message in the middle of the received long frame flash message, thereby discarding the flash message.
Disclosure of Invention
The invention aims to provide a method for writing a vehicle controller by an FBL (fiber Bragg Grating) based on a UDS (UDS) diagnosis service, which solves the technical problems that: the FBL is interfered by the diagnostic online message in the process of flashing the vehicle controller, so that the flashing vehicle controller is out of order.
In order to solve the technical problems, the invention adopts the following technical scheme: a method for writing a vehicle controller by an FBL (fiber Bragg Grating) based on a UDS (UDS) diagnostic service comprises the steps of sending a writing message, wherein the step of sending the writing message comprises the following specific steps:
step A1, checking the forbidden identifier F2 of the flash message, judging whether the F2 is set, if not, setting the sending identifier F1 of the flash message;
step A2, sending the flash message;
and A3, after the brushing message is successfully sent, clearing the sending identification F1 of the brushing message.
Preferably, the first and second electrodes are formed of a metal,
in the step a1, if yes, that is, the F2 is set, the disable flag of the flush message needs to be rechecked, which is F2, wherein the F2 setting indicates that the diagnostic online message is being sent or the diagnostic online message has been sent but the flush message is in a delayed sending period.
Preferably, the first and second electrodes are formed of a metal,
the delay time of the flash message in the delay sending period is 20 ms.
The invention also provides a method for writing a vehicle controller by the FBL based on the UDS diagnostic service, which comprises the steps of sending a diagnostic online message, wherein the specific step of sending the diagnostic online message comprises the following steps:
step B1: if the diagnostic online message timer T1 is overtime, wherein the diagnostic online message is a timing cycle message, checking a sending identifier F1 of a flash message, judging whether the F1 is set, and if not, executing the step B2;
step B2: setting a forbidden identifier F2 of the flash message, and sending the diagnosis online message;
step B3: after the diagnosis online message is successfully generated, starting a delay sending timer T2 of the flash message;
step B4: and when the delayed sending timer T2 of the flash message is overtime, clearing the forbidden identification F2 of the flash message, and resetting the diagnostic online message timer T1.
Preferably, the first and second electrodes are formed of a metal,
in the step B1, if the F1 is set, the sending identifier F1 of the flush packet is rechecked, where the F1 is set to indicate that the flush packet is being sent.
Preferably, the first and second electrodes are formed of a metal,
in the step B1, the diagnostic online message timer T1 has a timing duration of 3 s.
Preferably, the first and second electrodes are formed of a metal,
in the step B3, the delay duration of the delay sending timer T2 of the flush message is 20 ms.
By adopting the technical scheme, the beneficial technical effects of the invention are as follows:
in the process of the flash controller, the flash messages are sent to the controller continuously in a long frame mode, and the diagnosis online messages are sent to the controller periodically in a frame mode, so that the flash controller has one frame of diagnosis online messages in the middle of the received long frame flash messages, the flash messages are discarded, meanwhile, the fact that the diagnosis online messages reach the flash controller before the flash messages at a certain moment is determined, the interval time is too short, and the flash controller can only process the diagnosis online messages and ignore the flash messages. In order to solve the problem that the diagnosis online message influences the controller to write in a flashing way, the invention adopts the following technical scheme: from the perspective of sending the flush message, checking a prohibition identifier F2 of the flush message, determining whether F2 is set, if F2 is set, that is, diagnosing that the online message is being sent or that the online message has been sent but the flush message is in a delayed sending period, wherein the delay time of the flush message in the delayed sending period is 20ms, the prohibition identifier F2 of the flush message needs to be rechecked, if F2 is not set, setting a sending identifier F1 of the flush message, sending the flush message, and clearing the sending identifier F1 of the flush message after the flush message is successfully sent. From the perspective of sending the diagnosis online message, after the diagnosis online message timer T1 times out, the sending identifier F1 of the flush message is checked, whether F1 is set is judged, if F1 is set, that is, it indicates that a flush message is being sent, the sending identifier F1 of the flush message is rechecked, if not, the forbidden identifier F2 of the flush message is set, the diagnosis online message is sent, after the diagnosis online message is successfully sent, the delayed sending timer T2 of the flush message is started, the delayed sending timer T2 of the flush message times out, the forbidden identifier F2 of the flush message is clear, and the diagnosis online message timer T1 is reset. The time for sending the flash message and the time for sending the diagnosis online message are staggered from the perspective of sending the flash message or the perspective of sending the diagnosis online message, namely, the flash message and the diagnosis online message are sequenced, so that the flash controller can be effectively prevented from being interfered by the diagnosis online message in the flash process, and the flash success rate of the vehicle controller is improved.
Drawings
FIG. 1 is a flow diagram of a flash message transmission;
FIG. 2 is a diagnostic online messaging flow diagram.
Detailed Description
The invention will be further explained with reference to the drawings.
For ease of understanding, some of the terms used in the present invention are explained as follows:
UDS: all are called as Unified diagnostic Services, which are mainly used in the automobile industry.
Functional addressing (term in background art): in the UDS diagnostic service, a client sends diagnostic requests of the same function to a plurality of servers.
Physical addressing (a term in the background art): in the UDS diagnosis service, one-to-one diagnosis is performed between a client and a server.
In the process of the flash controller, the flash messages are sent to the controller continuously in a long frame mode, the diagnosis online messages are sent to the controller periodically in a frame mode, the controller is caused to have one frame of diagnosis online messages in the middle of the received long frame flash messages, the flash messages are discarded, meanwhile, it is determined that at a certain moment, the diagnosis online messages reach the flash controller before the flash messages, and the interval time is too short, so that the flash controller can only process the diagnosis online messages and ignore the flash messages.
The present invention provides a method for FBL flash vehicle controller based on UDS diagnostic service to solve the above problems, which is generally described as follows, the diagnostic online messages are timed with a 3s cycle to leave enough time to handle the "collision" phenomenon (interference phenomenon) of the messages sent just at the same time as the diagnostic online messages. Entering a sending waiting state after the timing time of the diagnosis online message is reached; and circularly checking to see whether the flash message is being sent or not in the sending waiting state. If the flash message is not in sending, the diagnosis online message is sent out immediately; and if the flash message is in the sending process, the flash message still stays in a sending waiting state. After the online message is successfully transmitted, setting the delay identifier of the flash message, and simultaneously starting a delay transmission timer T2 of the flash message, wherein the delay time is 20 ms. And after the timer T2 is overtime, restarting the diagnosis online message timer T1.
Specifically, as shown in fig. 1, which is a flow chart of sending a flush message according to the present invention, the specific step of sending the flush message includes:
step A1, checking the forbidden identifier F2 of the flash message, judging whether F2 is set, if not, setting the sending identifier F1 of the flash message.
And step A2, sending a flash message.
And step A3, after the brushing message is successfully sent, clearing the sending identification F1 of the brushing message.
Optionally, in step a1, if yes, that is, if F2 is set, the disable flag of the flush message needs to be checked again, F2 is set, where F2 is set to indicate that the diagnostic online message is being sent or the diagnostic online message has been sent but the flush message is in the delayed sending period.
Optionally, the delay time of the flash message in the delayed sending period is 20 ms.
As shown in fig. 2, a diagnostic online message sending flowchart is shown, and the specific steps of sending the diagnostic online message include:
step B1: the diagnosis online message timer T1 is overtime, wherein the diagnosis online message is a timing cycle message, the sending identification of the flash message is checked, F1 is judged, whether F1 is set or not is judged, and if not, the step B2 is executed;
step B2: setting a forbidden identifier F2 of the flash message, and sending a diagnosis online message;
step B3: after the diagnosis online message is successfully generated, starting a delay sending timer T2 of the flash message;
step B4: the delayed sending timer T2 of the flash message is overtime, the forbidden identification F2 of the flash message is cleared, and the diagnosis online message timer T1 is reset.
Optionally, in step B1, if F1 is set, the sending identifier of the flush message is rechecked F1, where F1 is set to indicate that the flush message is being sent.
Optionally, in step B1, the diagnostic online message timer T1 has a timing duration of 3 s.
Optionally, in step B3, the delay duration of the delayed sending timer T2 of the flash message is 20 ms.
The invention has the advantages that: the time for sending the flash message and the time for sending the diagnosis online message are staggered from the perspective of sending the flash message or the perspective of sending the diagnosis online message, namely, the flash message and the diagnosis online message are sequenced, so that the flash controller can be effectively prevented from being interfered by the diagnosis online message in the flash process, and the flash success rate of the vehicle controller is improved.

Claims (7)

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
CN113741390Atrue CN113741390A (en)2021-12-03
CN113741390B 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 (12)

* 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
US20060032213A1 (en)*2004-08-102006-02-16Christoph WollMethod and device for operating an internal combustion engine
US20130226391A1 (en)*2012-02-272013-08-29Robert Bosch GmbhDiagnostic method and diagnostic device for a vehicle component of a vehicle
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

Patent Citations (12)

* 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
US20060032213A1 (en)*2004-08-102006-02-16Christoph WollMethod and device for operating an internal combustion engine
US20130226391A1 (en)*2012-02-272013-08-29Robert Bosch GmbhDiagnostic method and diagnostic device for a vehicle component of a vehicle
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》*
喻尚: "基于车联网的控制器远程诊断与刷写", 《汽车实用技术》*
李娇娇;张宏伟;陈金干;: "基于LabVIEW的新能源汽车控制器刷写软件设计", 软件工程, no. 02*
李辉, 刘百玉, 欧阳娴, 刘进元, 蒋军敏, 张宜群: "激光打靶装置中的集散式数字同步系统的研究", 光子学报, no. 07*

Also Published As

Publication numberPublication date
CN113741390B (en)2023-10-13

Similar Documents

PublicationPublication DateTitle
CN107704274B (en)Method, storage medium, equipment and the system waken up for Android application host process
CN111901076B (en) A vehicle diagnostic data forwarding method, device and gateway
US20150220401A1 (en)New approach for controller area network bus off handling
CN112034811B (en)Controller diagnosis device and method
CN113608792B (en)Intelligent optimization method and device for wake-up decision, electronic equipment and storage medium
CN111148159B (en) Data transmission method, device, equipment and computer-readable storage medium
CN114385378B (en) Active data processing method, device and storage medium of Internet of Things devices
CN114442598A (en)Diagnosis conflict coordination method and device, computer equipment and storage medium
CN108924485B (en)Client real-time video stream interrupt processing method and system and monitoring system
CN117544441A (en)Message sending control method and device, vehicle and storage medium
CN113741390A (en)Method for writing vehicle controller by FBL (fiber Bragg Grating) based on UDS (UDS) diagnosis service
Olufowobi et al.Work-in-progress: Real-time modeling for intrusion detection in automotive controller area network
CN107926061A (en)A kind of back-off method, transmission message approach and device
CN118192492A (en)Remote diagnosis method and device for vehicle, server, vehicle and storage medium
CN117915309A (en) A method for processing remote number writing of vSIM module
CN116455964B (en)Device registration method, system and medium
CN116501465A (en)Automatic driving task execution method and device, electronic equipment and storage medium
CN111443682A (en)Safety protection device and method based on vehicle CAN bus structure
CN112688826B (en)Link diagnosis method, terminal device, link diagnosis system, and storage medium
CN116760793A (en) Message polling reissue method, device, server and storage medium
CN111443623A (en) Safety protection device and method based on vehicle CAN bus structure
CN114598944A (en)Periodic signal processing system, method, computer device and storage medium
CN108600044B (en)Interface state acquisition method, device and equipment
Klehmet et al.Real-time guarantees for CAN traffic
CN117406698B (en)ECU fault processing method and device in brushing process

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