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
CN113741390A CN202111007028.4A CN202111007028A CN113741390A CN 113741390 A CN113741390 A CN 113741390A CN 202111007028 A CN202111007028 A CN 202111007028A CN 113741390 A CN113741390 A CN 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 Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202111007028.4A priority Critical patent/CN113741390B/en
Publication of CN113741390A publication Critical patent/CN113741390A/en
Application granted granted Critical
Publication of CN113741390B publication Critical patent/CN113741390B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0262Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

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)

1. A method for an FBL (fiber Bragg Grating) vehicle controller based on a UDS (UDS) diagnostic service is characterized by comprising the following specific steps of sending a brushing message:
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.
2. The UDS diagnostic service-based FBL flash vehicle controller method according to claim 1,
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.
3. The UDS diagnostic service-based FBL flash vehicle controller method according to claim 2,
the delay time of the flash message in the delay sending period is 20 ms.
4. A method for an FBL (fiber Bragg Grating) vehicle controller based on a UDS (UDS) diagnosis service is characterized by comprising the steps of sending a diagnosis online message, wherein the specific step of sending the diagnosis 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.
5. The UDS diagnostic service-based FBL flash vehicle controller method according to claim 4,
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.
6. The UDS diagnostic service-based FBL flash vehicle controller method according to claim 4,
in the step B1, the diagnostic online message timer T1 has a timing duration of 3 s.
7. The UDS diagnostic service-based FBL flash vehicle controller method according to claim 4,
in the step B3, the delay duration of the delay sending timer T2 of the flush message is 20 ms.
CN202111007028.4A 2021-08-30 2021-08-30 Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service Active CN113741390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111007028.4A CN113741390B (en) 2021-08-30 2021-08-30 Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111007028.4A CN113741390B (en) 2021-08-30 2021-08-30 Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service

Publications (2)

Publication Number Publication Date
CN113741390A true CN113741390A (en) 2021-12-03
CN113741390B CN113741390B (en) 2023-10-13

Family

ID=78734053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111007028.4A Active CN113741390B (en) 2021-08-30 2021-08-30 Method for FBL (flash memory controller) to write vehicle controller based on UDS (Universal diagnostic System) diagnostic service

Country Status (1)

Country Link
CN (1) CN113741390B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5161739A (en) * 1989-12-08 1992-11-10 Kabushiki Kaisha Toshiba Multi-type air heating apparatus utilizing phase variation of heating medium
US20060032213A1 (en) * 2004-08-10 2006-02-16 Christoph Woll Method and device for operating an internal combustion engine
US20130226391A1 (en) * 2012-02-27 2013-08-29 Robert Bosch Gmbh Diagnostic method and diagnostic device for a vehicle component of a vehicle
CN103616830A (en) * 2013-12-02 2014-03-05 北京经纬恒润科技有限公司 Car controller flash control method and device and car bus system
CN104917696A (en) * 2015-06-08 2015-09-16 北京云迹科技有限公司 Periodic and non-periodic mixed communication method and system used for low-speed serial bus
CN106375175A (en) * 2016-11-18 2017-02-01 广州汽车集团股份有限公司 Method and system for diagnosing and flashing electronic control unit of vehicle
CN108549362A (en) * 2018-03-30 2018-09-18 北京新能源汽车股份有限公司 Information processing method and device of automobile controller
CN108819833A (en) * 2018-06-14 2018-11-16 重庆长安汽车股份有限公司 A kind of Vehicular turn lamp control method, device and automobile
CN109213113A (en) * 2017-07-04 2019-01-15 百度在线网络技术(北京)有限公司 Vehicular diagnostic method and system
CN109343872A (en) * 2018-08-01 2019-02-15 宝沃汽车(中国)有限公司 The software of vehicle writes with a brush dipped in Chinese ink method and apparatus
CN110501995A (en) * 2019-08-28 2019-11-26 肇庆小鹏汽车有限公司 A kind of vehicle diagnosing system and method
CN112286801A (en) * 2020-10-22 2021-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 number Priority date Publication date Assignee Title
US5161739A (en) * 1989-12-08 1992-11-10 Kabushiki Kaisha Toshiba Multi-type air heating apparatus utilizing phase variation of heating medium
US20060032213A1 (en) * 2004-08-10 2006-02-16 Christoph Woll Method and device for operating an internal combustion engine
US20130226391A1 (en) * 2012-02-27 2013-08-29 Robert Bosch Gmbh Diagnostic method and diagnostic device for a vehicle component of a vehicle
CN103616830A (en) * 2013-12-02 2014-03-05 北京经纬恒润科技有限公司 Car controller flash control method and device and car bus system
CN104917696A (en) * 2015-06-08 2015-09-16 北京云迹科技有限公司 Periodic and non-periodic mixed communication method and system used for low-speed serial bus
CN106375175A (en) * 2016-11-18 2017-02-01 广州汽车集团股份有限公司 Method and system for diagnosing and flashing electronic control unit of vehicle
CN109213113A (en) * 2017-07-04 2019-01-15 百度在线网络技术(北京)有限公司 Vehicular diagnostic method and system
CN108549362A (en) * 2018-03-30 2018-09-18 北京新能源汽车股份有限公司 Information processing method and device of automobile controller
CN108819833A (en) * 2018-06-14 2018-11-16 重庆长安汽车股份有限公司 A kind of Vehicular turn lamp control method, device and automobile
CN109343872A (en) * 2018-08-01 2019-02-15 宝沃汽车(中国)有限公司 The software of vehicle writes with a brush dipped in Chinese ink method and apparatus
CN110501995A (en) * 2019-08-28 2019-11-26 肇庆小鹏汽车有限公司 A kind of vehicle diagnosing system and method
CN112286801A (en) * 2020-10-22 2021-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 number Publication date
CN113741390B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN107872396B (en) Communication method with timeout control, processing device, terminal device and server
US20150220401A1 (en) New approach for controller area network bus off handling
CN104793975B (en) The update method and device of application program in electronic control unit
CN109144545B (en) Data flashing method, device and equipment and computer readable storage medium
CN110532001A (en) Vehicle control device writes with a brush dipped in Chinese ink method, system, diagnostic device and vehicle control device
CN113608792B (en) Intelligent optimization method and device for wake-up decision, electronic equipment and storage medium
CN114827206B (en) Remote upgrading method, device, system and equipment end connector
CN113741390A (en) Method for writing vehicle controller by FBL (fiber Bragg Grating) based on UDS (UDS) diagnosis service
CN117544441A (en) Message sending control method and device, vehicle and storage medium
CN114218513A (en) Method for automatically replying token at web front end
Olufowobi et al. Work-in-progress: Real-time modeling for intrusion detection in automotive controller area network
CN112686415B (en) Method and device for monitoring network taxi appointment behaviors
CN117221037A (en) Message sending method and device, electronic equipment and storage medium
CN110944064A (en) Remote access control system of embedded network
CN116501465A (en) Automatic driving task execution method and device, electronic equipment and storage medium
CN107682439B (en) Data transmission method and device
CN107926061A (en) A kind of back-off method, transmission message approach and device
CN114461308A (en) Method and system for reducing network API repeated request concurrency
CN113190121A (en) Key control method, system and device and computer readable storage medium
CN118444664A (en) Diagnostic brush message processing method, device, equipment, storage medium and vehicle
CN115396258B (en) Self-adaptive polling software processing method, device and storage medium
Klehmet et al. Real-time guarantees for CAN traffic
CN113347272B (en) Message processing method, device, storage medium and equipment
CN117406698B (en) ECU fault processing method and device in brushing process
CN112688826B (en) Link diagnosis method, terminal device, link diagnosis system, and storage medium

Legal Events

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