Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and device for preventing interference on application program caused by reprogramming program

A technology of application program and application program identification, which is applied in the field of anti-interference, and can solve problems such as application program running errors and interference

Inactive Publication Date: 2012-08-29
BEIJING JINGWEI HIRAIN TECH CO INC
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the present invention provides a method and device for preventing the reprogramming program from interfering with the application program, so as to solve the interference caused by the reprogramming program to the application program when the application program is updated in the prior art, and avoid switching from the reprogramming mode When going to the application, the application has a problem with running errors

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for preventing interference on application program caused by reprogramming program
  • Method and device for preventing interference on application program caused by reprogramming program
  • Method and device for preventing interference on application program caused by reprogramming program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] Please refer to the attached figure 1 , which is a flowchart of a method for preventing the reprogramming program from interfering with the application program disclosed in this embodiment:

[0046] S101: Initialize the hardware environment and software environment of the controller;

[0047] Specifically, initializing the hardware environment of the controller includes initializing the CAN module and the clock module, assigning a certain value to the register of the timer, and setting the EEPROM at the initial read page position. Initialize the software environment of the controller, including assigning initial values ​​to some variables.

[0048] S102: Obtain the reprogramming flag, and judge whether the reprogramming flag is valid; if the reprogramming flag is valid, execute step S103, otherwise, execute step S104;

[0049] In step S102, the reprogramming flag is an flag for judging whether there is currently a reprogramming request. In this embodiment, the reprog...

Embodiment 2

[0069] See figure 2 , this embodiment provides a device for preventing the reprogramming program from interfering with the application program, the device comprising:

[0070] The initialization module 201 is used to initialize the hardware environment and software environment of the controller;

[0071] The reprogramming identification acquisition and judgment module 202 is used to obtain the reprogramming identification and determine whether the reprogramming identification is valid;

[0072] The reprogramming program module 203 is used to run the reprogramming program when the reprogramming flag is valid;

[0073] The application identification acquisition and judgment module 204 is used to obtain the application identification when the reprogramming identification is invalid, and determine whether the application identification is valid;

[0074] An application program module 205, configured to run the application program when the application program identification is v...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for preventing the interference on an application program caused by a reprogramming program. The method comprises the following steps of: initializing a hardware environment and a software environment of a controller; acquiring a reprogramming identification and judging whether the reprogramming identification is valid or not; if the reprogramming identification is valid, running the reprogramming program; if the reprogramming identification is invalid, acquiring an application program identification and judging whether the application program identification is valid or not; and if the application program identification is valid, reversely initializing the hardware environment of the controller and running the application program. According to the method and device disclosed by the invention, before a reprogramming mode is switched to an application program mode, the hardware environment and the software environment of the controller are initialized, and thus the mistake appearing in the running process of the application program is avoided and the interference on the application program caused by the reprogramming program is eliminated.

Description

technical field [0001] The present invention relates to an anti-interference technology in the updating process of application programs, and more specifically relates to a method and device for preventing reprogramming programs from interfering with application programs. Background technique [0002] ECU (Electronic Control Unit, electronic control unit), also known as "driving computer", is a special microcomputer controller for automobiles. When the application program in the vehicle-mounted ECU has defects or needs to be upgraded, the application program in the ECU can be updated by online reprogramming. In addition to the application program, the ECU with online reprogramming function also has a reprogramming program, from The new application program is received on the vehicle bus and written into the ECU. [0003] Therefore, ECU has two operating modes: reprogramming mode and application program mode; in reprogramming mode, the application program does not run, and the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F9/45
Inventor 胡娜陈昆盛
Owner BEIJING JINGWEI HIRAIN TECH CO INC
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More