CN112631825A - Production line diagnosis function implementation method of embedded equipment - Google Patents

Production line diagnosis function implementation method of embedded equipment Download PDF

Info

Publication number
CN112631825A
CN112631825A CN202011619296.7A CN202011619296A CN112631825A CN 112631825 A CN112631825 A CN 112631825A CN 202011619296 A CN202011619296 A CN 202011619296A CN 112631825 A CN112631825 A CN 112631825A
Authority
CN
China
Prior art keywords
production line
program
chip
function
ram
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.)
Pending
Application number
CN202011619296.7A
Other languages
Chinese (zh)
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.)
Bertek Automotive Electronics Wuhu Co ltd
Bitech Automotive Wuhu Co Ltd
Original Assignee
Bertek Automotive Electronics Wuhu 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 Bertek Automotive Electronics Wuhu Co ltd filed Critical Bertek Automotive Electronics Wuhu Co ltd
Priority to CN202011619296.7A priority Critical patent/CN112631825A/en
Publication of CN112631825A publication Critical patent/CN112631825A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for realizing the production line diagnosis function of embedded equipment, which downloads a production line program for realizing the diagnosis function into an RAM of a corresponding chip of the embedded equipment and runs the production line program to finish the diagnosis function. The invention has the advantages that: and the production line program for the diagnosis function is downloaded to the RAM to run, so that the production line program is automatically erased after the diagnosis and detection are finished, and the storage space of the chip is not occupied.

Description

Production line diagnosis function implementation method of embedded equipment
Technical Field
The invention relates to the field of production detection of embedded equipment, in particular to a method for realizing a production line diagnosis function of the embedded equipment.
Background
In the production of embedded equipment, various tests are required on a production line to ensure that components work normally or some differentiated data are calibrated, and the traditional implementation method mainly considers the requirements of the production line in the implementation process in the software development process. The PCB manufacturer records the software which realizes the production line test function into the chip, then conveys the chip to an assembly factory, sends an instruction by production line equipment, and operates the diagnosis function to achieve the aim. According to the method, after the project is produced in a large scale, the part of functions can be continuously kept in the chip and exist together with the conventional functions, firstly, the production line diagnosis function can occupy a storage space ROM, secondly, for equipment with the function safety certification requirement, the CRC of software is inconsistent due to the updating of the production line diagnosis function, the work can be carried out again for safety certification, and the defects of the two methods cause that the implementation method of the diagnosis function in the prior art cannot well meet the requirement of production iteration updating.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method for realizing the production line diagnosis function of an embedded device, wherein the diagnosis function software of the method is not stored in a ROM after testing.
In order to achieve the purpose, the invention adopts the technical scheme that: a production line diagnosis function realization method of an embedded device downloads a production line program for realizing the diagnosis function into a RAM of a corresponding chip of the embedded device and operates the production line program to finish the diagnosis function.
And downloading the production line program into the RAM through the bootstrap program to run.
On an assembly line of the embedded equipment, the production line equipment sends a corresponding diagnosis instruction to the chip through the CAN bus, triggers a corresponding diagnosis function, downloads and runs a production line program, and completes the detection of the function and the calibration of data by matching with the operation of the production line.
The production line program in the RAM is downloaded to the RAM when the power is on, and the production line program is erased when the power of the chip is off.
And downloading program software required by the chip to realize the work except the production line program in the ROM of the chip.
The invention has the advantages that: the production line program for the diagnosis function is downloaded to the RAM to run, so that the production line program is automatically erased after the diagnosis and detection are finished, the storage space of the chip is not occupied, the application software of the chip is not changed, the defect and cost that the application software of the chip needs to be repeatedly authenticated are reduced, the cost is reduced, and the realization is convenient and reliable.
Drawings
The contents of the expressions in the various figures of the present specification and the labels in the figures are briefly described as follows:
FIG. 1 is a schematic diagram of ROM and RAM of an embedded device chip;
FIG. 2 is a diagram illustrating the RAM and ROM detection functions of an embedded device chip according to the prior art;
FIG. 3 is a schematic diagram of the product line software program of the present invention.
Detailed Description
The following description of preferred embodiments of the invention will be made in further detail with reference to the accompanying drawings.
As shown in fig. 3, a method for implementing a production line diagnostic function of an embedded device downloads a production line program for implementing the diagnostic function into a RAM of a corresponding chip of the embedded device and runs the production line program to complete the diagnostic function, where the downloading method is as follows: downloading a production line program into an RAM for operation through a bootstrap program; before downloading, the chip is in a power-on state, and a production line program is downloaded into the chip of the embedded equipment; on an assembly line of the embedded equipment, the production line equipment sends a corresponding diagnosis instruction to the chip through the CAN bus, triggers a corresponding diagnosis function, runs a production line program, and completes the detection of the function and the calibration of data by matching with the production line operation.
The production line program of the chip in the RAM is downloaded to the RAM when the chip is powered on, and the production line program can be erased when the chip is powered off. Because the RAM is generally erased in a power-off mode, programs cannot be stored, the diagnostic detection programs in the detection production line are deleted after running, the storage of the chip cannot be occupied, application programs corresponding to the normal functions of the chip cannot be changed, and therefore function safety authentication cannot be conducted every time slowly. And downloading program software required by the chip to realize the work except the production line program in the ROM of the chip. The ROM stores the application software and embedded program software of the chip, and the diagnosis program runs in the RAM, so that the separation of the normal function and the diagnosis function of the chip is ensured.
As shown in fig. 1 and 2, the chip includes a RAM and a ROM, and a conventional implementation method brings another significant problem that the function security is for the authentication of software, and needs the CRC check of the software and is embodied in a certificate. If the production line diagnostic function needs to be expanded on the certified software, the software needs to be re-certified, which brings huge certification cost and occupies the ROM memory.
In the application, the functions required by the production line are separated from the conventional functions, and the functions required by the production line are realized in the independent software, so that the software after mass production only comprises the conventional functions, the use of ROM is saved, the feasibility of the function expansion of the production line is further improved, and the possible authentication cost is saved.
As shown in fig. 1, a chip used in an embedded device generally includes an < a > ROM and a < B > RAM, which are used for storing a program and data, respectively, where the program includes various instructions, an instruction execution mechanism obtains instructions to be executed from the ROM and data from the RAM, and the chip operates various peripherals of the chip through a series of processes.
As shown in fig. 2, in the conventional implementation method, <1> embedded software is composed of a <2> bootstrap program and a <3> application program, and the bootstrap program is mainly used to control the software to enter a corresponding working state, update mode, and normal working mode. The line diagnostics function is implemented in the <3> application. The equipment is on the assembly line, and the production line equipment sends a corresponding diagnosis instruction to the equipment through the CAN bus, triggers a corresponding diagnosis function, and is matched with the production line operation to finish the purposes of function detection and data calibration.
In the implementation method, firstly, the diagnosis function of the production line must be included in the application program, and the diagnosis function still remains after mass production, thereby occupying the ROM space. Secondly, the authentication of function security generally aims at the <3> application program, the change of any instruction will cause the change of the CRC result of the secondary part, if the change of the production line diagnosis function causes the need of updating the software of the part, but the conventional function is not changed, in this case, the <3> application program still needs to be authenticated again.
As shown in fig. 3, the production line diagnostic function is separated from the <3> application program, and is implemented independently in the <4> production line program, on the production line, the <2> bootstrap program downloads and runs the part of the program into the RAM, and on the assembly line, the production line equipment sends a corresponding diagnostic instruction to the equipment through the CAN bus, triggers the corresponding diagnostic function, and cooperates with the production line operation to accomplish the purpose of function detection and data calibration. Because of the characteristics of the RAM, the part of the program will not be saved after the power of the equipment is cut off, so the ROM space is not occupied, in addition, even if the function of the production line is changed, because the part of the program is not realized in the <3> application program together with the conventional function, even if the requirement of the function safety and the update of the production line program do not influence the authentication result, the re-authentication is not needed, and the cost is saved.
It is clear that the specific implementation of the invention is not restricted to the above-described embodiments, but that various insubstantial modifications of the inventive process concept and technical solutions are within the scope of protection of the invention.

Claims (5)

1. A production line diagnosis function realization method of embedded equipment is characterized by comprising the following steps: and downloading the production line program for realizing the diagnosis function into the RAM of the corresponding chip of the embedded equipment and operating the production line program to finish the diagnosis function.
2. The method for implementing the production line diagnostic function of the embedded device as claimed in claim 1, wherein: and downloading the production line program into the RAM through the bootstrap program to run.
3. The method for implementing the production line diagnostic function of the embedded device as claimed in claim 1 or 2, wherein: on an assembly line of the embedded equipment, the production line equipment sends a corresponding diagnosis instruction to the chip through the CAN bus, triggers a corresponding diagnosis function, runs a production line program, and completes the detection of the function and the calibration of data by matching with the production line operation.
4. The method for implementing the production line diagnostic function of the embedded device as claimed in claim 1 or 2, wherein: the production line program in the RAM is downloaded to the RAM when the power is on, and the production line program is erased when the power of the chip is off.
5. The method for implementing the production line diagnostic function of the embedded device as claimed in claim 1, wherein: and downloading program software required by the chip to realize the work except the production line program in the ROM of the chip.
CN202011619296.7A 2020-12-31 2020-12-31 Production line diagnosis function implementation method of embedded equipment Pending CN112631825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011619296.7A CN112631825A (en) 2020-12-31 2020-12-31 Production line diagnosis function implementation method of embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011619296.7A CN112631825A (en) 2020-12-31 2020-12-31 Production line diagnosis function implementation method of embedded equipment

Publications (1)

Publication Number Publication Date
CN112631825A true CN112631825A (en) 2021-04-09

Family

ID=75287396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011619296.7A Pending CN112631825A (en) 2020-12-31 2020-12-31 Production line diagnosis function implementation method of embedded equipment

Country Status (1)

Country Link
CN (1) CN112631825A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107728597A (en) * 2016-08-10 2018-02-23 大陆汽车电子(连云港)有限公司 A kind of automotive diagnostic system and method
CN107863755A (en) * 2016-09-21 2018-03-30 通用电器技术有限公司 Machine upkeep and diagnostic system and method
CN109814531A (en) * 2019-01-28 2019-05-28 深圳市元征科技股份有限公司 A kind of automatic diagnosis method based on cloud platform, system and relevant device
CN110389576A (en) * 2019-07-16 2019-10-29 青岛海尔科技有限公司 The execution method of alarm operation, smart machine, storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107728597A (en) * 2016-08-10 2018-02-23 大陆汽车电子(连云港)有限公司 A kind of automotive diagnostic system and method
CN107863755A (en) * 2016-09-21 2018-03-30 通用电器技术有限公司 Machine upkeep and diagnostic system and method
CN109814531A (en) * 2019-01-28 2019-05-28 深圳市元征科技股份有限公司 A kind of automatic diagnosis method based on cloud platform, system and relevant device
CN110389576A (en) * 2019-07-16 2019-10-29 青岛海尔科技有限公司 The execution method of alarm operation, smart machine, storage medium

Similar Documents

Publication Publication Date Title
EP4239469A2 (en) Gateway device, firmware update method, and control program
CN101526919B (en) Method for generating script files to test Web application software and device thereof
WO2021203604A1 (en) Update test method and apparatus for vehicle component, and computer device and storage medium
JP2006065857A (en) Method and device for forcibly downloading program in mobile communication terminal
CN105120259A (en) Detection method and apparatus for digital television
CN108132876B (en) Embedded software object code unit testing method based on injection mode
CN113010190A (en) MAC address burning method, device, equipment and storage medium
CN112231228A (en) Firmware upgrade test method, device, platform, equipment and storage medium
CN112068530A (en) ECU (electronic control Unit) automatic testing method, system, storage medium and device
WO2023103712A1 (en) Ecu upgrade method and device, and readable storage medium
CN107450953B (en) Method and device for updating BIOS
CN114780319A (en) Chip testing method, system, storage medium, equipment and chip
CN111414182B (en) SPI-based FPGA remote upgrading method
CN112631825A (en) Production line diagnosis function implementation method of embedded equipment
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN112799683A (en) Terminal device program programming and testing method
CN114675862A (en) OTA (over the air) upgrading method and device
KR20210046390A (en) AUTOSAR BSW testing automation system and testing method thereof
US20040177344A1 (en) Debugging method for the keyboard controller code
CN115878144A (en) Terminal equipment program upgrading system and method
CN108039984A (en) A kind of automatic identification method of automobile engine communications protocol
CN113791869A (en) Method for acquiring shell permission of terminal equipment based on android system
CN111176682B (en) Online updating and debugging method for remote network of equipment
CN111142954B (en) Startup control method and device and computer readable storage medium
CN117724920B (en) Test method and device of embedded equipment, upper computer and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210409