WO2018225461A1 - 処理装置及びコンピュータプログラム - Google Patents

処理装置及びコンピュータプログラム Download PDF

Info

Publication number
WO2018225461A1
WO2018225461A1 PCT/JP2018/018631 JP2018018631W WO2018225461A1 WO 2018225461 A1 WO2018225461 A1 WO 2018225461A1 JP 2018018631 W JP2018018631 W JP 2018018631W WO 2018225461 A1 WO2018225461 A1 WO 2018225461A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
unit
processing
storage unit
cpu
Prior art date
Application number
PCT/JP2018/018631
Other languages
English (en)
French (fr)
Inventor
松本 真
靖弘 藪内
剛志 萩原
前田 英樹
一郎 神田
隼人 四方
博史 浦山
Original Assignee
株式会社オートネットワーク技術研究所
住友電装株式会社
住友電気工業株式会社
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 株式会社オートネットワーク技術研究所, 住友電装株式会社, 住友電気工業株式会社 filed Critical 株式会社オートネットワーク技術研究所
Publication of WO2018225461A1 publication Critical patent/WO2018225461A1/ja

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Definitions

  • the present invention relates to a vehicle processing apparatus and a computer program.
  • the vehicle is equipped with an ECU (Electronic Control Unit) that controls the vehicle (see, for example, Patent Document 1).
  • the ECU described in Patent Document 1 is equipped with a microcomputer (hereinafter referred to as a microcomputer).
  • the microcomputer includes a CPU (Central Processing Unit), a RAM (Random Access Memory), and a storage unit. The CPU executes processing according to the computer program stored in the storage unit.
  • a CPU equipped with an MMU Memory Management Unit
  • MMU Memory Management Unit
  • the CPU includes a processing unit that executes processing and a data management unit that manages data.
  • the data management unit writes and reads data according to instructions from the processing unit.
  • the processing unit specifies a logical address and instructs the data management unit to write data.
  • the data management unit determines a physical address in the data area of the storage unit, writes data to the determined physical address, and stores a correspondence relationship between the logical address specified by the processing unit and the physical address where the data is written.
  • the processing unit designates a logical address and instructs reading of data.
  • the data management unit searches for a physical address corresponding to the designated logical address, and reads data stored in the searched physical address.
  • the processing unit does not need to manage data, and therefore can perform processing efficiently.
  • the data management unit determines an area (physical address) for storing data. For this reason, when the data management unit is operating, there is a problem that it is difficult to inspect the storage unit because data cannot be easily written into the inspection area.
  • the present invention has been made in view of such circumstances, and an object of the present invention is to provide a processing device and a computer program capable of easily inspecting a storage unit.
  • a processing apparatus is a processing apparatus for a vehicle including a processing element that executes processing and a storage unit that writes and reads data by the processing element. And a data management unit that writes data to the storage unit and reads data from the storage unit in accordance with instructions from the processing unit.
  • the data management unit operates as the processing unit. Data is directly written to the storage unit, the written data is read directly from the storage unit, and the storage unit is inspected based on the written data and the read data.
  • the processing unit causes the data management unit to perform the writing and reading when the data management unit is operating.
  • the processing unit loads a computer program related to an operating system after inspecting the storage unit, executes processing according to the loaded computer program, and the processing unit performs processing according to the computer program.
  • the data management unit is operating.
  • the number of the storage units is two or more, and the two or more storage units temporarily store a storage unit that stores a computer program related to an operating system. And a storage unit.
  • the processing device is characterized in that the processing unit inspects at least one of a communication unit that performs communication and a sensor mounted on a vehicle while the data management unit is operating. To do.
  • a computer program includes a processing unit that executes processing, a storage unit that stores data, and writing of data to the storage unit in accordance with instructions from the processing unit, and data storage from the storage unit
  • a computer program for causing a processing unit of a vehicle processing apparatus to perform processing to perform processing, wherein the data management unit is configured to read out data while the operation of the data management unit is stopped. And writing the data directly from the storage unit while the operation of the data management unit is stopped, and processing for inspecting the storage unit based on the written data and the read data
  • the processing unit is executed.
  • the processing unit directly writes data to the storage unit and reads data from the storage unit while the operation of the data management unit is stopped.
  • the storage unit is inspected by determining whether the written data and the read data match. For this reason, since the processing unit can easily write the data in the inspection area set in advance in the data area of the storage unit, it is possible to easily inspect the storage unit.
  • the processing unit inspects the storage unit and then loads the computer program related to the operating system.
  • the data management unit operates while the processing unit executes processing according to the computer program related to the operating system.
  • the processing unit inspects at least a storage unit in which a computer program related to the operating system is stored and a storage unit in which data is temporarily stored.
  • the processing unit inspects at least one of the communication unit and the sensor while the data management unit is operating.
  • the storage unit can be easily inspected.
  • FIG. 2 is a block diagram showing a main part configuration of an ECU in the first embodiment. It is explanatory drawing of the access to a 2nd memory
  • FIG. 6 is a block diagram showing a main part configuration of an ECU in a second embodiment. It is a flowchart which shows the procedure of a 1st test
  • FIG. 1 is a block diagram illustrating a main configuration of the ECU according to the first embodiment.
  • the ECU 1 functions as a processing device and is suitably mounted on the vehicle.
  • the ECU 1 is connected to an electric device (not shown) mounted on the vehicle.
  • ECU1 controls operation
  • the communication lines L1 and L2 are connected to the ECU 1 separately.
  • An external ECU (not shown) is further connected to the communication line L1.
  • the ECU 1 and the external ECU are mounted on the same vehicle.
  • An electric device mounted on the vehicle is also connected to the external ECU.
  • the external ECU also controls the operation of the electrical equipment connected to itself.
  • the ECU 1 communicates with an external ECU via the communication line L1. Communication via the communication line L1 is performed, for example, according to a CAN (Controller-Area-Network) protocol.
  • the ECU 1 and the external ECU cause the electric devices connected to the ECU 1 and the external ECU to perform a cooperative operation by communicating with each other.
  • the ECU 1 is connected to a second electric device (not shown) mounted on the vehicle by a communication line L2.
  • the ECU 1 receives data from the second electric device. Further, the ECU 1 transmits data instructing a specific operation via the communication line L2.
  • the second electric device is, for example, a camera that photographs the outside of the vehicle. In this case, the ECU 1 transmits data for instructing photographing to the second electric device, and receives data based on an image photographed by the second electric device from the second electric device.
  • Communication via the communication line L2 is performed according to a communication protocol related to Ethernet (registered trademark), for example.
  • the ECU 1 includes a microcomputer 20, a memory 21, a first communication unit 22, a first sensor 23, and a notification unit 24.
  • the memory 21, the first communication unit 22, the first sensor 23, and the notification unit 24 are connected to the microcomputer 20 separately.
  • the first communication unit 22 is connected to the communication line L1 in addition to the microcomputer 20.
  • the microcomputer 20 includes a first CPU 30, a first storage unit 31, a first RAM 32, and an interface 33. These are connected to the bus 34 separately.
  • the interface 33 is connected to the memory 21, the first communication unit 22, the first sensor 23, and the notification unit 24.
  • the first CPU 30 writes data to the memory 21 and reads data from the memory 21 via the interface 33.
  • the first CPU 30 instructs the first communication unit 22 to transmit data via the interface 33.
  • the first communication unit 22 transmits data in accordance with an instruction from the first CPU 30.
  • the first communication unit 22 receives data via the communication line L1.
  • the first CPU 30 acquires the data received by the first communication unit 22 from the first communication unit 22 via the interface 33.
  • the first sensor 23 is mounted on the vehicle and detects a physical quantity related to the vehicle. This physical quantity is vehicle speed, brightness outside the vehicle, or the like.
  • the first CPU 30 acquires information indicating the physical quantity detected by the first sensor 23 from the first sensor 23 via the interface 33.
  • the first CPU 30 outputs first request data for requesting a response to the first communication unit 22 and the first sensor 23 via the interface 33.
  • Each of the first communication unit 22 and the first sensor 23 outputs, to the interface 33, first response data indicating the input of the first request data when the first request data is input from the first CPU 30 via the interface 33.
  • the first CPU 30 acquires first response data from the interface 33.
  • the first CPU 30 outputs the first request data to the first communication unit 22, and the first communication unit 22 fails based on whether or not the first response data is input from the first communication unit 22 to the interface 33. It is determined whether or not.
  • the first CPU 30 outputs the first request data to the first sensor 23, and the first sensor 23 fails based on whether or not the first response data is input from the first sensor 23 to the interface 33. It is determined whether or not.
  • the first CPU 30 instructs the notification unit 24 to notify the failure via the interface 33.
  • the notification unit 24 outputs a notification signal instructing notification to a display device (not shown), and causes the display device to display a message indicating a failure of the ECU 1.
  • reporting part 24 lights the lamp which is not shown in figure as another example. As a result, the user is notified of the failure of the ECU 1.
  • the first storage unit 31 is, for example, a nonvolatile memory.
  • the first storage unit 31 stores a control program P1.
  • the first CPU 30 executes various processes including the first inspection process by executing the control program P1 stored in the first storage unit 31.
  • the first inspection process is a process for inspecting the memory 21, the first communication unit 22, the first sensor 23, the first storage unit 31, and the first RAM 32.
  • the control program P1 is a computer program for causing the first CPU 30 to execute various processes including the first inspection process.
  • the control program P1 may be stored in the storage medium E1 so that the computer (first CPU 30) can read it.
  • the control program P1 read from the storage medium E1 by a reading device (not shown) is stored in the first storage unit 31.
  • the storage medium E1 is an optical disk, a flexible disk, a magnetic disk, a magnetic optical disk, a semiconductor memory, or the like.
  • the optical disc is a CD (Compact Disc) -ROM (Read Only Memory), a DVD (Digital Versatile Disc) -ROM, or a BD (Blu-ray (registered trademark) Disc).
  • the magnetic disk is, for example, a hard disk.
  • the control program P1 may be downloaded from an external device (not shown) connected to a communication network (not shown), and the control program P1 may be stored in the first storage unit 31.
  • the process executed by the first CPU 30 according to the control program P1 includes a process of writing data to the first storage unit 31 or the first RAM 32 and a process of reading data from the first storage unit 31 or the first RAM 32.
  • the first RAM 32 is a memory that temporarily stores data. For this reason, when the microcomputer 20 stops its operation, the data stored in the first RAM 32 is erased.
  • the ECU 1 further includes a second CPU 40, a second storage unit 41, a second RAM 42, an interface 43, a second communication unit 44, and a second sensor 45.
  • the second CPU 40, the second storage unit 41, the second RAM 42 and the interface 43 are connected to the bus 46 separately.
  • the interface 43 is further connected to the interface 33 of the microcomputer 20, the second communication unit 44, and the second sensor 45.
  • the second communication unit 44 is further connected to the communication line L2.
  • the second CPU 40 instructs the second communication unit 44 through the interface 43 to transmit data instructing a specific operation.
  • the 2nd communication part 44 transmits the data which instruct
  • the second communication unit 44 receives data from the second electric device.
  • the second CPU 40 acquires data received by the second communication unit 44 from the second communication unit 44 via the interface 43.
  • the second electrical device is, for example, a camera that photographs the outside of the vehicle.
  • the second CPU 40 instructs the second communication unit 44 to transmit data for instructing photographing.
  • the second communication unit 44 transmits data instructing photographing to the second electric device.
  • the second electric device photographs the outside of the vehicle and transmits data based on the photographed image to the second communication unit 44.
  • the second communication unit 44 receives data from the second electric device.
  • the second CPU 40 acquires data received by the second communication unit 44.
  • the second sensor 45 is mounted on the vehicle and detects a physical quantity related to the vehicle. This physical quantity is vehicle speed, brightness outside the vehicle, or the like.
  • the second CPU 40 acquires information indicating the physical quantity detected by the second sensor 45 from the second sensor 45 via the interface 43.
  • the first CPU 30 outputs inspection data instructing inspection of the second storage unit 41, the second RAM 42, the second communication unit 44, and the second sensor 45 to the interface 43 through the interface 33.
  • the second CPU 40 is activated.
  • the second storage unit 41 is, for example, a nonvolatile memory.
  • the second storage unit 41 stores a startup program B1, a basic program B2, and an application program B3.
  • the second CPU 40 executes the startup process according to the startup program B1 stored in the second storage unit 41.
  • the startup process is a process of inspecting the second storage unit 41 and the second RAM 42 and loading the startup program B1 stored in the second storage unit 41 into the second RAM 42.
  • the activation program B1 is a computer program for causing the second CPU 40 to execute activation processing.
  • the second storage unit 41 also stores data other than the startup program B1, the basic program B2, and the application program B3.
  • the basic program B2 is a computer program related to the operating system.
  • the second CPU 40 executes various processes including the second inspection process according to the basic program B2.
  • the second inspection process is a process for inspecting the second communication unit 44 and the second sensor 45.
  • the processing executed by the second CPU 40 according to the basic program B2 includes processing for loading the application program B3 into the second RAM 42.
  • the second CPU 40 executes processing according to the basic program B2 and the application program B3.
  • the second CPU 40 functions as a processing element.
  • the basic program B2 is a computer program for causing the second CPU 40 to execute various processes including the second inspection process.
  • the application program B3 is a computer program for causing the second CPU 40 to execute various processes.
  • each of the start program B1, the basic program B2, and the application program B3 may be stored in the storage medium E2 so that the computer (second CPU 40) can read the program.
  • the activation program B1, the basic program B2, and the application program B3 read from the storage medium E2 by a reading device (not shown) are stored in the second storage unit 41.
  • the storage medium E2 is an optical disk, a flexible disk, a magnetic disk, a magnetic optical disk, a semiconductor memory, or the like.
  • the startup program B1, the basic program B2, and the application program B3 are downloaded from an external device (not shown) connected to a communication network (not shown), and the startup program B1, the basic program B2, and the application program B3 are stored in the second storage unit 41. May be.
  • the second CPU 40 executes processing in accordance with the activation program B1, the basic program B2, or the application program B3.
  • the process executed by the second CPU 40 includes a process of writing data to the second storage unit 41, a process of writing data to the second RAM 42, a process of reading data from the second storage unit 41, and a process of reading data from the second RAM 42. It is.
  • the second RAM 42 is a memory that temporarily stores data. For this reason, when the microcomputer 20 stops its operation, the data stored in the second RAM 42 is erased.
  • the MMU is mounted on the second CPU 40, and the second CPU 40 has a processing unit 50 and a data management unit 51.
  • the processing unit 50 executes processing according to the activation program B1, the basic program B2, and the application program B3.
  • the data management unit 51 writes data to the second storage unit 41, writes data to the second RAM 42, reads data from the second storage unit 41, and reads data from the second RAM 42.
  • FIG. 2 is an explanatory diagram of access to the second storage unit 41 and the second RAM 42.
  • the processing unit 50 When the processing unit 50 is executing processing according to the activation program B1, that is, when the data management unit 51 is not operating, the processing unit 50 stores data in the second storage unit 41 and the second RAM 42, respectively. Direct access to the specified data area. Therefore, the processing unit 50 directly writes and reads data to and from the second storage unit 41 and the second RAM 42 without using the data management unit 51.
  • An inspection area is provided in advance in each data area of the second storage unit 41 and the second RAM 42. The inspection area is an area where data is written and read in the inspection. When the data management unit 51 stops operating, the processing unit 50 can write data in the inspection area.
  • the processing unit 50 When the processing unit 50 is executing processing according to the basic program B2, that is, when the data management unit 51 is operating, the processing unit 50 designates a logical address and writes data to the designated logical address.
  • the data management unit 51 is instructed.
  • the data management unit 51 determines the physical address of the second storage unit 41 or the second RAM 42 to which data is to be written in the data areas of the second storage unit 41 and the second RAM 42, and writes the data to the determined physical address.
  • the logical address is a virtual address
  • the physical address is an actual address.
  • the data management unit 51 stores a correspondence relationship between the logical address designated by the processing unit 50 and the physical address where data is actually written.
  • the data management unit 51 determines an area (physical address) in which data is to be written, so the processing unit 50 cannot easily write data to the inspection area.
  • the processing unit 50 when the processing unit 50 is executing processing according to the basic program B2, the processing unit 50 designates a logical address and instructs the data management unit 51 to read data relating to the designated logical address.
  • the data management unit 51 searches the physical address of the second storage unit 41 or the second RAM 42 corresponding to the designated logical address, and reads the data stored in the searched physical address. Data read by the data management unit 51 is acquired by the processing unit 50.
  • the processing unit 50 when the processing unit 50 is executing processing according to the basic program B2, that is, when the data management unit 51 is operating, the data management unit 51 writes data according to the instruction of the processing unit 50. And reading. For this reason, since the processing unit 50 does not need to manage data, the processing can be executed efficiently.
  • the processing unit 50 of the second CPU 40 illustrated in FIG. 1 outputs second request data for requesting a response to the second communication unit 44 and the second sensor 45 via the interface 43.
  • the second communication unit 44 and the second sensor 45 each output second response data indicating the input of the second request data to the interface 43. To do.
  • the processing unit 50 acquires second response data from the interface 43.
  • the processing unit 50 outputs the second request data to the second communication unit 44, and the second communication unit 44 fails based on whether or not the second response data is input from the second communication unit 44 to the interface 43. It is determined whether or not.
  • the processing unit 50 outputs the second request data to the second sensor 45, and the second sensor 45 fails based on whether or not the second response data is input from the second sensor 45 to the interface 43. It is determined whether or not.
  • the processing unit 50 of the second CPU 40 performs inspection according to the activation program B1 and the basic program B2, and outputs result data indicating normality or failure to the interface 33 of the microcomputer 20 via the interface 43.
  • “Normal” in the result data means that the second storage unit 41, the second RAM 42, the second communication unit 44, and the second sensor 45 are all normal.
  • “Failure” in the result data means that at least one of the second storage unit 41, the second RAM 42, the second communication unit 44, and the second sensor 45 has failed.
  • the first CPU 30 obtains result data via the interface 33.
  • FIG 3 and 4 are flowcharts showing the procedure of the first inspection process.
  • the first CPU 30 After the first CPU 30 is activated, the first CPU 30 first executes the first inspection process according to the control program P1. For example, the first CPU 30 is activated when the ignition switch of the vehicle is turned on and the power supply to the ECU 1 is started.
  • the first CPU 30 writes data in the first storage unit 31 (step S1).
  • the first CPU 30 writes data in a preset inspection area in the data area of the first storage unit 31.
  • the first CPU 30 reads the data written in step S1 from the first storage unit 31 (step S2).
  • step S3 the first CPU 30 determines whether or not the first storage unit 31 has failed.
  • step S3 the first CPU 30 determines that the first storage unit 31 has not failed, that is, is normal when the data written in step S1 matches the data read in step S2.
  • the first CPU 30 determines that the first storage unit 31 has failed when the data written in step S1 and the data read in step S2 do not match.
  • the first CPU 30 determines that the first storage unit 31 has not failed (S3: NO)
  • the first CPU 30 writes data in the first RAM 32 (step S4).
  • the first CPU 30 writes data in a preset inspection area in the data area of the first RAM 32.
  • the first CPU 30 reads the data written in step S4 from the first RAM 32 (step S5).
  • step S6 the first CPU 30 determines whether or not the first RAM 32 is out of order.
  • step S6 the first CPU 30 determines that the first RAM 32 has not failed, that is, is normal when the data written in step S4 matches the data read in step S5.
  • step S5 the data written in step S4 and the data read in step S5 do not match, the first CPU 30 determines that the first RAM 32 has failed.
  • the first CPU 30 determines that the first RAM 32 has not failed (S6: NO)
  • the first CPU 30 writes data to the memory 21 via the interface 33 (step S7).
  • the first CPU 30 writes data in the inspection area set in advance in the data area of the memory 21.
  • the first CPU 30 reads the data written in step S7 from the memory 21 via the interface 33 (step S8).
  • step S9 determines whether or not the memory 21 has failed.
  • step S9 if the data written in step S7 matches the data read in step S8, the first CPU 30 determines that the memory 21 has not failed, that is, is normal. The first CPU 30 determines that the memory 21 has failed when the data written in step S7 does not match the data read in step S8.
  • step S10 When the first CPU 30 determines that the memory 21 has not failed (S9: NO), the first CPU 30 outputs the first request data to the first communication unit 22 via the interface 33 (step S10).
  • step S11 the first CPU 30 determines whether or not the first communication unit 22 has failed (step S11).
  • step S ⁇ b> 11 when the first response data is input from the first communication unit 22 to the interface 33 before the first reference time elapses after the execution of step S ⁇ b> 10, the first CPU 30 It is determined that there is no failure, that is, normal. If the first response data is not input from the first communication unit 22 to the interface 33 before the first reference time elapses after the execution of step S10, the first CPU 30 breaks down. It is determined that The first reference time is constant and set in advance.
  • the first CPU 30 When it is determined that the first communication unit 22 has not failed (S11: NO), the first CPU 30 outputs the first request data to the first sensor 23 via the interface 33 (step S12). Next, the first CPU 30 determines whether or not the first sensor 23 has failed (step S13). In step S13, when the first response data is input from the first sensor 23 to the interface 33 before the second reference time elapses after the execution of step S12, the first CPU 30 breaks down the first sensor 23. Not determined, that is, determined to be normal. When the first response data is not input from the first sensor 23 to the interface 33 before the second reference time elapses after the execution of step S12, the first CPU 30 determines that the first sensor 23 has failed. judge. The second reference time is constant and set in advance.
  • the interface The notification unit 24 is instructed to notify the failure via the step 33 (step S14).
  • the notification unit 24 displays at least one message in the memory 21, the first communication unit 22, the first sensor 23, the first storage unit 31, and the first RAM 32 by displaying a message on the display device or lighting a lamp. Notify that one has failed. At this time, the component that has failed may be notified.
  • the first CPU 30 determines that the first sensor 23 has not failed (S13: NO)
  • the first CPU 30 outputs the inspection data to the interface 43 via the interface 33 (step S15).
  • the second CPU 40 is activated, sequentially executes the activation process and the second inspection process, and outputs the result data to the interface 33 of the microcomputer 20 via the interface 43.
  • the configuration for outputting data between the interfaces 33 and 43 may be a configuration for serially outputting a plurality of packets constituting the data. Further, when the interfaces 33 and 43 are connected by a plurality of conductors, the configuration for outputting data between the interfaces 33 and 43 may be a configuration for outputting a plurality of packets constituting the data in parallel. Good.
  • the first CPU 30 determines whether or not the result data has been input to the interface 33 after executing Step S15 (Step S16). When the first CPU 30 determines that the result data is not input (S16: NO), the first CPU 30 executes step S16 again and waits until the result data is input to the interface 33.
  • the result data input to the interface 33 is at least one of the second storage unit 41, the second RAM 42, the second communication unit 44, and the second sensor 45. It is determined whether or not one failure is indicated (step S17).
  • the first CPU 30 instructs the notification unit 24 to notify the failure via the interface 33 (step S18).
  • the notification unit 24 displays a message on the display device or turns on a lamp, so that at least one of the second storage unit 41, the second RAM 42, the second communication unit 44, and the second sensor 45 has failed. Notify that there is.
  • reporting part 24 may alert
  • the first CPU 30 ends the first inspection process.
  • the first CPU 30 executes various processes different from the first inspection process, and controls the operation of the electrical equipment connected to the ECU 1.
  • the first CPU 30 ends the first inspection process after executing Step S18. In this case, the first CPU 30 ends the operation.
  • the first CPU 30 inspects the memory 21, the first communication unit 22, the first sensor 23, the first storage unit 31, and the first RAM 32.
  • FIG. 5 is a flowchart showing the procedure of the startup process.
  • the second CPU 40 is activated. Specifically, in the second CPU 40, the processing unit 50 is activated while the data management unit 51 is stopped.
  • the processing unit 50 first executes the activation process according to the activation program B1. While the startup process is being executed, the data management unit 51 stops operating.
  • the processing unit 50 writes data in the second storage unit 41 (step S21). Specifically, the processing unit 50 writes the data directly in the inspection area set in advance in the data area of the second storage unit 41 without using the data management unit 51. Since the data management unit 51 is stopped, the processing unit 50 can directly write data in the inspection area of the second storage unit 41. Next, the processing unit 50 reads the data written in step S21 directly from the second storage unit 41 without using the data management unit 51 (step S22).
  • step S23 determines whether or not the second storage unit 41 has failed.
  • step S23 when the data written in step S21 matches the data read in step S22, the processing unit 50 determines that the second storage unit 41 has not failed, that is, is normal. . If the data written in step S21 and the data read in step S22 do not match, the processing unit 50 determines that the second storage unit 41 is out of order. As described above, the processing unit 50 inspects the second storage unit 41 based on the data written in step S21 and the data read in step S22.
  • the processing unit 50 determines that the second storage unit 41 has not failed (S23: NO)
  • the processing unit 50 writes data in the second RAM 42 (step S24). Specifically, the processing unit 50 directly writes data in the inspection area set in advance in the data area of the second RAM 42 without using the data management unit 51. Since the data management unit 51 is stopped, the processing unit 50 can directly write data in the inspection area of the second RAM 42.
  • the processing unit 50 reads the data written in step S24 directly from the second RAM 42 without using the data management unit 51 (step S25).
  • step S26 determines whether or not the second RAM 42 has failed.
  • step S26 when the data written in step S24 matches the data read in step S25, the processing unit 50 determines that the second RAM 42 has not failed, that is, is normal.
  • the processing unit 50 determines that the second RAM 42 has failed.
  • the processing unit 50 inspects the second RAM 42 based on the data written in step S24 and the data read in step S25.
  • the processing unit 50 determines that the second storage unit 41 is malfunctioning (S23: YES) or when it is determined that the second RAM 42 is malfunctioning (S26: YES), the result data indicating the malfunction is displayed.
  • the data is output to the interface 33 of the microcomputer 20 via the interface 43 (step S27).
  • 1st CPU30 of the microcomputer 20 performs step S18 of a 1st test
  • the result data indicating the failure may include information indicating the component that has failed.
  • the notification unit 24 may notify the failure and may notify the component that has failed.
  • the process part 50 complete finishes a starting process, after performing step S27. In this case, the processing unit 50 ends the operation.
  • the processing unit 50 loads the basic program B2 stored in the second storage unit 41 into the second RAM 42 (step S28). After executing step S28, the processing unit 50 ends the activation process. Thereafter, the data management unit 51 is activated, and the processing unit 50 executes the second inspection process according to the basic program B2 loaded in step S28. As described above, when the processing unit 50 is executing processing according to the basic program B2, the data management unit 51 writes and reads data, and the processing unit 50 stores the data area in the second storage unit 41 or the second RAM 42. There is no direct access to.
  • FIG. 6 is a flowchart showing the procedure of the second inspection process.
  • the processing unit 50 of the second CPU 40 executes the second inspection process according to the basic program B2. While the second inspection process is being executed, the data management unit 51 is operating. In the second inspection process, first, the processing unit 50 outputs the second request data to the second communication unit 44 via the interface 43 (step S31), and determines whether or not the second communication unit 44 is out of order. Determination is made (step S32).
  • step S32 when the second response data is input from the second communication unit 44 to the interface 43 before the third reference time elapses after the execution of step S31, the processing unit 50 performs the second communication unit 44. Is determined not to be faulty, that is, normal.
  • the processing unit 50 breaks down the second communication unit 44. It is determined that The third reference time is constant and set in advance. Thus, the processing unit 50 inspects the second communication unit 44.
  • step S34 when it is determined that the second communication unit 44 has not failed (S32: NO), the processing unit 50 outputs the second request data to the second sensor 45 via the interface 43 (step S33). Then, it is determined whether or not the second sensor 45 has failed (step S34).
  • step S ⁇ b> 34 when the second response data is input from the second sensor 45 to the interface 43 before the fourth reference time elapses after the execution of step S ⁇ b> 33, the processing unit 50 fails in the second sensor 45. It is not determined, that is, it is determined to be normal. When the second response data is not input from the second sensor 45 to the interface 43 before the fourth reference time elapses after the execution of step S33, the processing unit 50 has failed. Is determined.
  • the fourth reference time is constant and set in advance. As described above, the processing unit 50 inspects the second sensor 45.
  • the processing unit 50 determines that the second communication unit 44 is malfunctioning (S32: YES) or when it is determined that the second sensor 45 is malfunctioning (S34: YES), the result indicating the malfunction Data is output to the interface 33 of the microcomputer 20 through the interface 43 (step S35).
  • 1st CPU30 of the microcomputer 20 performs step S18 of a 1st test
  • the result data may include information indicating a component that has failed.
  • the notification unit 24 may notify the failure and may notify the component that has failed.
  • the processing unit 50 ends the second inspection process after executing Step S35. In this case, the processing unit 50 ends the operation.
  • the processing unit 50 When it is determined that the second sensor 45 has not failed (S34: NO), the processing unit 50 outputs the result data indicating normality to the interface 33 of the microcomputer 20 via the interface 43 (step S36). Thus, the first CPU 30 of the microcomputer 20 determines that the result data does not indicate a failure in step S17 of the first inspection process, and ends the first inspection process.
  • the process part 50 complete
  • the processing unit 50 of the second CPU 40 executes various processes different from the second inspection process according to the basic program B2 and the application program B3.
  • the processing unit 50 of the second CPU 40 directly writes data to the second storage unit 41 and reads data from the second storage unit 41 while the operation of the data management unit 51 is stopped.
  • the second storage unit 41 is inspected by determining whether the written data matches the read data.
  • the processing unit 50 of the second CPU 40 directly writes data to the second RAM 42 and reads data from the second RAM 42 while the operation of the data management unit 51 is stopped.
  • the second RAM 42 is inspected by determining whether the read data matches the read data. For this reason, since the processing unit 50 can easily write data in the inspection areas of the second storage unit 41 and the second RAM 42, it is possible to easily inspect the second storage unit 41 and the second RAM 42, respectively.
  • the processing unit 50 inspects the second communication unit 44 and the second sensor 45.
  • FIG. 7 is a block diagram showing a main configuration of the ECU according to the second embodiment.
  • the differences between the second embodiment and the first embodiment will be described. Since the configuration other than the configuration described later is the same as that in the first embodiment, the same reference numerals as those in the first embodiment are given to the components common to the first embodiment, and the description thereof is omitted. To do.
  • the ECU 1 in the second embodiment includes the microcomputer 20, the memory 21, the first communication unit 22, the first sensor 23, the second CPU 40, the second storage unit 41, the second RAM 42, the interface 43, and the second.
  • a communication unit 44 and a second sensor 45 are provided.
  • the ECU 1 according to the second embodiment further includes an internal connector 60 instead of the notification unit 24.
  • the internal connector 60 is connected to the interface 33 of the microcomputer 20.
  • the internal connector 60 is detachably connected to the external connector 70.
  • the external connector 70 is connected to the inspection device 71.
  • the inspection device 71 When the internal connector 60 is connected to the external connector 70, the inspection device 71 outputs the second inspection data to the interface 33 of the microcomputer 20 via the external connector 70 and the internal connector 60.
  • the second inspection data includes the memory 21, the first communication unit 22, the first sensor 23, the first storage unit 31, the first RAM 32, the second storage unit 41, the second RAM 42, the second communication unit 44, and the second sensor 45. Data for instructing inspection.
  • the first CPU 30 executes the first inspection process when the second inspection data is input to the interface 33.
  • the inspection data is interfaced via the interface 33 as in the first embodiment.
  • the second CPU 40 performs a startup process and a second inspection process, and outputs the result data to the interface 33 of the microcomputer 20 via the interface 43.
  • the first CPU 30 outputs second result data indicating normality or failure to the inspection device 71 to the inspection device 71 via the interface 33, the internal connector 60, and the external connector 70.
  • “Normal” of the second result data indicates that the memory 21, the first communication unit 22, the first sensor 23, the first storage unit 31, the first RAM 32, the second storage unit 41, the second RAM 42, the second communication unit 44, and the second This means that all of the two sensors 45 are normal.
  • the “failure” of the second result data includes the memory 21, the first communication unit 22, the first sensor 23, the first storage unit 31, the first RAM 32, the second storage unit 41, the second RAM 42, the second communication unit 44, and the second This means that at least one of the two sensors 45 has failed. For example, the user inspects the ECU 1 using the inspection device 71 before shipping the ECU 1.
  • the configuration for outputting data between the interface 33 and the inspection device 71 may be a configuration for serially outputting a plurality of packets constituting the data.
  • the configuration for outputting data between the interface 33 and the inspection device 71 is a configuration for outputting a plurality of packets constituting the data in parallel. It may be.
  • Step 8 and 9 are flowcharts showing the procedure of the first inspection process.
  • the first CPU 30 executes the first inspection process when the second inspection data is input to the interface 33.
  • Steps S41 to S53, S55, and S56 of the first inspection process in the second embodiment are the same as steps S1 to S13, S15, and S16 of the first inspection process in the first embodiment. Therefore, detailed description of steps S41 to S53, S55, and S56 is omitted.
  • the first CPU 30 determines that the first storage unit 31 has failed (S43: YES), determines that the first RAM 32 has failed (S46: YES), determines that the memory 21 has failed. If it is determined (S49: YES), if it is determined that the first communication unit 22 has failed (S51: YES), or if it is determined that the first sensor 23 has failed (S53: YES), the interface 33, the second result data indicating the failure is output to the inspection device 71 via the internal connector 60 and the external connector 70 (step S54). At this time, the second result data may include information indicating the component that has failed.
  • the first CPU 30 determines that the first sensor 23 has not failed (S53: NO)
  • the first CPU 30 outputs inspection data to the interface 43 via the interface 33 (step S55).
  • the first CPU 30 stands by until result data is input from the second CPU 40 to the interface 43 via the interface 43.
  • step S57 when the result data input to the interface 33 indicates normality, the first CPU 30 outputs second result data indicating normality.
  • the first CPU 30 outputs second result data indicating the failure.
  • the second result data output in step S57 has a failure. It may include information indicating a component that is present.
  • the first CPU 30 ends the first inspection process after executing Step S54.
  • the processing unit 50 of the second CPU 40 ends the operation when the second inspection process is completed.
  • the first inspection process is a process executed when second inspection data is input to the interface 33.
  • the activation process and the second inspection process are processes that are executed when inspection data is input to the interface 43.
  • the condition for starting the second CPU 40 is not only that the inspection data is input to the interface 33.
  • the second CPU 40 executes a second activation process when activated under other conditions different from the condition that the inspection data is input to the interface 33.
  • the processing unit 50 of the second CPU 40 loads the activation program B1 stored in the second storage unit 41 into the second RAM 42. Thereafter, the processing unit 50 ends the second activation process.
  • the processing unit 50 does not execute the second inspection process and performs other processes except the second inspection process according to the basic program B2. Execute.
  • the ECU 1 in the second embodiment has the same effects as the ECU 1 in the first embodiment.
  • the ECU 1 may not include all of the memory 21, the first communication unit 22, and the first sensor 23.
  • the configuration of the ECU 1 may be a configuration including one or two of the memory 21, the first communication unit 22, and the first sensor 23. In this case, the number of objects to be inspected is reduced to one or two. Similarly, the ECU 1 does not need to include both the second communication unit 44 and the second sensor 45.
  • the configuration of the ECU 1 may be a configuration including one of the second communication unit 44 and the second sensor 45. In this case, in the second inspection process, one of the second communication unit 44 and the second sensor 45 is inspected.
  • both the first storage unit 31 and the first RAM 32 it is not necessary to inspect both the first storage unit 31 and the first RAM 32, and only one of the first storage unit 31 and the first RAM may be inspected.
  • both the second storage unit 41 and the second RAM 42 need not be inspected, and only one of the second storage unit 41 and the second RAM 42 may be inspected.
  • the configuration for inspecting the first communication unit 22 is a configuration in which the first request data is output to the first communication unit 22 and the determination is made based on whether or not the first response data is input from the first communication unit 22. It is not limited.
  • the first communication unit 22 is instructed to cause the external ECU connected to the communication line L1 to transmit data instructing transmission to the first communication unit 22. Then, the first communication unit 22 may be inspected based on whether or not the first communication unit 22 has received data from the external ECU before the first reference time has elapsed since the data was transmitted.
  • the configuration for inspecting the second communication unit 44 is a configuration in which the second request data is output to the second communication unit 44 and the determination is made based on whether or not the second response data is input from the second communication unit 44. It is not limited to.
  • the second communication unit 44 is instructed to cause the second electrical device connected to the communication line L2 to transmit data instructing transmission to the second communication unit 44. Then, the second communication unit 44 is inspected based on whether or not the second communication unit 44 has received data from the second electric device before the third reference time has elapsed since the data was transmitted. Also good.
  • the configuration for inspecting the first sensor 23 is not limited to the configuration for outputting the first request data to the first sensor 23 and determining whether or not the first response data is input from the first sensor 23. For example, when the first sensor 23 detects brightness, the first sensor 23 is irradiated with light. Then, the first sensor 23 may be inspected by determining whether or not the physical quantity detected by the first sensor 23 is a value within a predetermined range.
  • the configuration for inspecting the second sensor 45 is not limited to the configuration for outputting the second request data to the second sensor 45 and determining whether or not the second response data is input from the second sensor 45. For example, when the second sensor 45 detects brightness, the second sensor 45 is irradiated with light. Then, the second sensor 45 may be inspected by determining whether or not the physical quantity detected by the second sensor 45 is a value within a predetermined range.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Stored Programmes (AREA)

Abstract

ECU(1)において、第2CPU(40)は処理部(50)及びデータ管理部(51)を有する。データ管理部(51)は、処理部(50)の指示に従って、第2記憶部(41)及び第2RAM(42)夫々にデータを書き込むとともに、第2記憶部(41)及び第2RAM(42)夫々からデータを読み出す。処理部(50)は、データ管理部(51)が動作を停止している間に、データの書き込み及び読み出しを行い、第2記憶部(41)及び第2RAM(42)夫々を検査する。処理部(50)は、データ管理部(51)が作動している場合、データ管理部(51)にデータの書き込み及び読み出しを行わせる。

Description

処理装置及びコンピュータプログラム
 本発明は車両用の処理装置及びコンピュータプログラムに関する。
 車両には、車両に関する制御を行うECU(Electronic Control Unit)が搭載されている(例えば、特許文献1を参照)。特許文献1に記載のECUには、マイクロコンピュータ(以下、マイコンという)が搭載されている。マイコンは、CPU(Central Processing Unit)、RAM(Random Access Memory)及び記憶部を有する。CPUは、記憶部に記憶されているコンピュータプログラムに従って処理を実行する。
特開2016-51916号公報
 現在、大量のデータを生成する電気機器、例えばカメラが搭載された車両が普及している。このような電気機器から取得した大量のデータに基づいて車両に関する制御を行うECUでは、CPUは、記憶部へのデータの書き込みと、記憶部からのデータの読み出しとを頻繁に行う。
 記憶部へのデータの書き込みと、記憶部からのデータの読み出しとを頻繁に行うCPUとして、例えば、MMU(Memory Management Unit)が搭載されたCPUが用いられる。このCPUは、処理を実行する処理部と、データを管理するデータ管理部とを有する。データ管理部は、処理部の指示に従って、データの書き込み及び読み出しを行う。
 処理部は、論理アドレスを指定し、データ管理部にデータの書き込みを指示する。データ管理部は、記憶部のデータ領域において物理アドレスを決定し、決定した物理アドレスにデータを書き込み、処理部によって指定された論理アドレスと、データを書き込んだ物理アドレスとの対応関係を記憶する。
 また、処理部は、論理アドレスを指定し、データの読み出しを指示する。データ管理部は、指定された論理アドレスに対応する物理アドレスを検索し、検索した物理アドレスに記憶されているデータを読み出す。
 データ管理部が作動している場合、処理部は、データを管理する必要がないため、処理を効率的に実行することができる。
 記憶部を検査する構成として、記憶部のデータ領域において、予め設定された検査領域にデータを書き込み、書き込んだデータを検査領域から読み出し、書き込んだデータが読み出したデータと一致するか否かを判定する構成が考えられる。
 しかしながら、処理部とデータ管理部とを有するCPUが用いられている場合、データを記憶する領域(物理アドレス)はデータ管理部が決定する。このため、データ管理部が作動している場合、データを検査領域に容易に書き込むことができないので、記憶部を検査することが難しいという問題がある。
 本発明は斯かる事情に鑑みてなされたものであり、その目的とするところは、記憶部を容易に検査することができる処理装置及びコンピュータプログラムを提供することにある。
 本発明に係る処理装置は、処理を実行する処理素子と、該処理素子によってデータの書き込み及び読み出しが行われる記憶部とを備える車両用の処理装置において、前記処理素子は、処理を実行する処理部と、該処理部の指示に従って、前記記憶部へのデータの書き込み、及び、該記憶部からのデータの読み出しを行うデータ管理部とを有し、前記処理部は、該データ管理部が動作を停止している間に、前記記憶部にデータを直接に書き込み、書き込んだデータを前記記憶部から直接に読み出し、書き込んだデータと、読み出したデータとに基づいて前記記憶部を検査し、前記処理部は、前記データ管理部が作動している場合、前記データ管理部に前記書き込み及び読み出しを行わせることを特徴とする。
 本発明に係る処理装置は、前記処理部は、前記記憶部を検査した後にオペレーティングシステムに係るコンピュータプログラムをロードし、ロードしたコンピュータプログラムに従って処理を実行し、前記処理部が該コンピュータプログラムに従って処理を実行している間、前記データ管理部は作動していることを特徴とする。
 本発明に係る処理装置は、前記記憶部の数は2以上であり、2以上の該記憶部には、オペレーティングシステムに係るコンピュータプログラムが記憶される記憶部と、データが一時的に記憶される記憶部とが含まれることを特徴とする。
 本発明に係る処理装置は、前記処理部は、前記データ管理部が作動している間に、通信を行う通信部、及び、車両に搭載されたセンサ中の少なくとも一方を検査することを特徴とする。
 本発明に係るコンピュータプログラムは、処理を実行する処理部と、データが記憶される記憶部と、該処理部の指示に従って、前記記憶部へのデータの書き込み、及び、前記記憶部からのデータの読み出しを行うデータ管理部とを備える車両用の処理装置の前記処理部に処理を実行させるコンピュータプログラムであって、前記データ管理部が動作を停止している間に、前記記憶部にデータを直接に書き込み、前記データ管理部が動作を停止している間に、書き込んだデータを前記記憶部から直接に読み出し、書き込んだデータと、読み出したデータとに基づいて前記記憶部を検査する処理を前記処理部に実行させることを特徴とする。
 本発明に係る処理装置及びコンピュータプログラムにあっては、処理部は、データ管理部が動作を停止している間に、記憶部へのデータの書き込みと、記憶部からのデータの読み出しとを直接に行い、書き込んだデータと読み出したデータとが一致するか否かを判定することによって記憶部を検査する。このため、処理部は、記憶部のデータ領域において、予め設定されている検査領域にデータを容易に書き込むことができるので、記憶部を容易に検査することが可能である。
 本発明に係る処理装置にあっては、処理部は、記憶部を検査した後、オペレーティングシステムに係るコンピュータプログラムをロードする。オペレーティングシステムに係るコンピュータプログラムに従って、処理部が処理を実行している間、データ管理部は作動している。
 本発明に係る処理装置にあっては、処理部は、少なくとも、オペレーティングシステムに係るコンピュータプログラムが記憶されている記憶部と、データが一時的に記憶される記憶部とを検査する。
 本発明に係る処理装置にあっては、処理部は、データ管理部が作動している間に、通信部及びセンサ中の少なくとも一方を検査する。
 本発明によれば、記憶部を容易に検査することができる。
実施の形態1におけるECUの要部構成を示すブロック図である。 第2記憶部及び第2RAMへのアクセスの説明図である。 第1検査処理の手順を示すフローチャートである。 第1検査処理の手順を示すフローチャートである。 起動処理の手順を示すフローチャートである。 第2検査処理の手順を示すフローチャートである。 実施の形態2におけるECUの要部構成を示すブロック図である。 第1検査処理の手順を示すフローチャートである。 第1検査処理の手順を示すフローチャートである。
 以下、本発明をその実施の形態を示す図面に基づいて詳述する。
(実施の形態1)
 図1は、実施の形態1におけるECUの要部構成を示すブロック図である。ECU1は、処理装置として機能し、車両に好適に搭載されている。ECU1には、車両に搭載された図示しない電気機器が接続されている。ECU1は、自身に接続されている電気機器の動作を制御する。
 ECU1には、通信線L1,L2が各別に接続されている。通信線L1には、更に、図示しない外部ECUが接続されている。ECU1及び外部ECUは同一の車両に搭載される。外部ECUにも、車両に搭載された電気機器が接続されている。外部ECUも、自身に接続されている電気機器の動作を制御する。ECU1は、通信線L1を介して、外部ECUと通信する。通信線L1を介した通信は、例えば、CAN(Controller Area Network)プロトコルに従って行われる。ECU1及び外部ECUは、相互に通信することによって、ECU1及び外部ECUに接続されている電気機器に協調動作を行わせる。
 ECU1は、通信線L2によって、車両に搭載された図示しない第2の電気機器に接続されている。ECU1は、第2の電気機器からデータを受信する。また、ECU1は、通信線L2を介して、特定の動作を指示するデータを送信する。第2の電気機器が、例えば、車外を撮影するカメラであると仮定する。この場合、ECU1は、撮影を指示するデータを第2の電気機器に送信し、第2の電気機器が撮影した画像に基づくデータを第2の電気機器から受信する。通信線L2を介した通信は、例えば、イーサネット(登録商標)に係る通信プロトコルに従って行われる。
 ECU1は、マイコン20、メモリ21、第1通信部22、第1センサ23及び報知部24を備える。メモリ21、第1通信部22、第1センサ23及び報知部24は、マイコン20に各別に接続されている。第1通信部22は、マイコン20の他に通信線L1に接続されている。マイコン20は、第1CPU30、第1記憶部31、第1RAM32及びインタフェース33を有する。これらは、バス34に各別に接続されている。インタフェース33は、バス34の他に、メモリ21、第1通信部22、第1センサ23及び報知部24に接続されている。
 第1CPU30は、インタフェース33を介して、メモリ21へのデータの書き込みと、メモリ21からのデータの読み出しとを行う。第1CPU30は、インタフェース33を介して、第1通信部22にデータの送信を指示する。第1通信部22は、第1CPU30の指示に従って、データを送信する。第1通信部22は、通信線L1を介して、データを受信する。第1CPU30は、第1通信部22が受信したデータを、インタフェース33を介して、第1通信部22から取得する。
 第1センサ23は、車両に搭載されており、車両に関する物理量を検出する。この物理量は、車速、又は、車外の明るさ等である。第1CPU30は、第1センサ23が検出した物理量を示す情報を、インタフェース33を介して、第1センサ23から取得する。
 第1CPU30は、インタフェース33を介して、応答を要求する第1要求データを第1通信部22及び第1センサ23に出力する。第1通信部22及び第1センサ23夫々は、第1CPU30からインタフェース33を介して第1要求データが入力された場合、第1要求データの入力を示す第1応答データを、インタフェース33に出力する。第1CPU30は、インタフェース33から第1応答データを取得する。
 第1CPU30は、第1要求データを第1通信部22に出力し、第1通信部22からインタフェース33に第1応答データが入力されたか否かに基づいて、第1通信部22が故障しているか否かを判定する。同様に、第1CPU30は、第1要求データを第1センサ23に出力し、第1センサ23からインタフェース33に第1応答データが入力されたか否かに基づいて、第1センサ23が故障しているか否かを判定する。
 第1CPU30は、インタフェース33を介して、報知部24に故障の報知を指示する。報知部24は、第1CPU30の指示に従って、報知を行う。報知部24は、一例として、報知を指示する報知信号を図示しない表示装置に出力し、表示装置に、ECU1の故障を示すメッセージを表示させる。また、報知部24は、他例として、図示しないランプを点灯させる。これにより、使用者に、ECU1の故障が報知される。
 第1記憶部31は、例えば、不揮発性メモリである。第1記憶部31には、制御プログラムP1が記憶されている。第1CPU30は、第1記憶部31に記憶されている制御プログラムP1を実行することによって、第1検査処理を含む種々の処理を実行する。第1検査処理は、メモリ21、第1通信部22、第1センサ23、第1記憶部31及び第1RAM32を検査する処理である。制御プログラムP1は、第1CPU30に第1検査処理を含む種々の処理を実行させるためのコンピュータプログラムである。
 なお、制御プログラムP1は、コンピュータ(第1CPU30)が読み取り可能に、記憶媒体E1に記憶されていてもよい。この場合、図示しない読み出し装置によって記憶媒体E1から読み出された制御プログラムP1が第1記憶部31に記憶される。記憶媒体E1は、光ディスク、フレキシブルディスク、磁気ディスク、磁気光ディスク又は半導体メモリ等である。光ディスクは、CD(Compact Disc)-ROM(Read Only Memory)、DVD(Digital Versatile Disc)-ROM、又は、BD(Blu-ray(登録商標) Disc)等である。磁気ディスクは、例えばハードディスクである。また、図示しない通信網に接続されている図示しない外部装置から制御プログラムP1をダウンロードし、制御プログラムP1を第1記憶部31に記憶してもよい。
 第1CPU30が制御プログラムP1に従って実行する処理には、第1記憶部31又は第1RAM32にデータを書き込む処理と、第1記憶部31又は第1RAM32からデータを読み出す処理とが含まれる。第1RAM32は、一時的にデータを記憶するメモリである。このため、マイコン20が動作を停止した場合、第1RAM32に記憶されているデータは消去される。
 ECU1は、更に、第2CPU40、第2記憶部41、第2RAM42、インタフェース43、第2通信部44及び第2センサ45を備える。第2CPU40、第2記憶部41、第2RAM42及びインタフェース43はバス46に各別に接続されている。インタフェース43は、更に、マイコン20のインタフェース33、第2通信部44及び第2センサ45に接続されている。第2通信部44は、更に、通信線L2に接続されている。
 第2CPU40は、インタフェース43を介して、第2通信部44に、特定の動作を指示するデータの送信を指示する。第2通信部44は、第2CPU40の指示に従って、特定の動作を指示するデータを第2の電気機器に送信する。第2通信部44は第2の電気機器からデータを受信する。第2CPU40は、第2通信部44が受信したデータを、インタフェース43を介して、第2通信部44から取得する。
 第2の電気機器が、例えば、車外を撮影するカメラであると仮定する。この場合、第2CPU40は、第2通信部44に、撮影を指示するデータの送信を指示する。第2通信部44は、撮影を指示するデータを第2の電気機器に送信する。第2の電気機器は、車外を撮影し、撮影した画像に基づくデータを第2通信部44に送信する。第2通信部44は、第2の電気機器からデータを受信する。第2CPU40は、第2通信部44が受信したデータを取得する。
 第2センサ45は、車両に搭載されており、車両に関する物理量を検出する。この物理量は、車速、又は、車外の明るさ等である。第2CPU40は、第2センサ45が検出した物理量を示す情報を、インタフェース43を介して、第2センサ45から取得する。
 マイコン20において、第1CPU30は、第2記憶部41、第2RAM42、第2通信部44及び第2センサ45の検査を指示する検査データを、インタフェース33介して、インタフェース43に出力する。インタフェース43に検査データが入力された場合、第2CPU40は起動する。
 第2記憶部41は、例えば、不揮発性メモリである。第2記憶部41には、起動プログラムB1、基本プログラムB2及びアプリケーションプログラムB3が記憶されている。第2CPU40は、第2記憶部41に記憶されている起動プログラムB1に従って、起動処理を実行する。起動処理は、第2記憶部41及び第2RAM42を検査するとともに、第2記憶部41に記憶されている起動プログラムB1を第2RAM42にロードする処理である。起動プログラムB1は、第2CPU40に起動処理を実行させるためのコンピュータプログラムである。第2記憶部41には、起動プログラムB1、基本プログラムB2及びアプリケーションプログラムB3以外の他のデータも記憶される。
 基本プログラムB2は、オペレーティングシステムに係るコンピュータプログラムである。第2CPU40は、基本プログラムB2に従って、第2検査処理を含む種々の処理を実行する。第2検査処理は、第2通信部44及び第2センサ45を検査する処理である。第2CPU40が基本プログラムB2に従って実行する処理には、アプリケーションプログラムB3を第2RAM42にロードする処理が含まれる。第2CPU40は、基本プログラムB2及びアプリケーションプログラムB3に従って処理を実行する。第2CPU40は処理素子として機能する。
 基本プログラムB2は、第2CPU40に、第2検査処理を含む種々の処理を実行させるためのコンピュータプログラムである。アプリケーションプログラムB3は、第2CPU40に種々の処理を実行させるためのコンピュータプログラムである。
 なお、起動プログラムB1、基本プログラムB2及びアプリケーションプログラムB3夫々は、コンピュータ(第2CPU40)が読み取り可能に、記憶媒体E2に記憶されていてもよい。この場合、図示しない読み出し装置によって記憶媒体E2から読み出された起動プログラムB1、基本プログラムB2及びアプリケーションプログラムB3が第2記憶部41に記憶される。記憶媒体E2は、光ディスク、フレキシブルディスク、磁気ディスク、磁気光ディスク又は半導体メモリ等である。また、図示しない通信網に接続されている図示しない外部装置から起動プログラムB1、基本プログラムB2及びアプリケーションプログラムB3をダウンロードし、起動プログラムB1、基本プログラムB2及びアプリケーションプログラムB3を第2記憶部41に記憶してもよい。
 前述したように、第2CPU40は、起動プログラムB1、基本プログラムB2又はアプリケーションプログラムB3に従って処理を実行する。第2CPU40が実行する処理には、第2記憶部41にデータを書き込む処理、第2RAM42にデータを書き込む処理、第2記憶部41からデータを読み出す処理、及び、第2RAM42からデータを読み出す処理が含まれる。第2RAM42は、一時的にデータを記憶するメモリである。このため、マイコン20が動作を停止した場合、第2RAM42に記憶されているデータは消去される。
 第2CPU40にはMMUが搭載されており、第2CPU40は処理部50及びデータ管理部51を有する。処理部50は、起動プログラムB1、基本プログラムB2及びアプリケーションプログラムB3に従って処理を実行する。データ管理部51は、第2記憶部41へのデータの書き込み、第2RAM42へのデータの書き込み、第2記憶部41からのデータの読み出し、及び、第2RAM42からのデータの読み出しを行う。
 図2は、第2記憶部41及び第2RAM42へのアクセスの説明図である。処理部50が起動プログラムB1に従って処理を実行している場合、データ管理部51は動作を停止している。処理部50が基本プログラムB2に従って処理を実行している間、データ管理部51は作動している。
 処理部50が起動プログラムB1に従って処理を実行している場合、即ち、データ管理部51が動作を停止している場合、処理部50は、第2記憶部41及び第2RAM42夫々において、データが記憶されているデータ領域に直接にアクセスする。従って、処理部50は、第2記憶部41及び第2RAM42夫々に対して、データ管理部51を介さずに、データの書き込み及び読み出しを直接に行う。第2記憶部41及び第2RAM42夫々のデータ領域には、検査領域が予め設けられている。検査領域は、検査において、データの書き込み及び読み出しを行う領域である。データ管理部51が動作を停止している場合、処理部50は、検査領域にデータを書き込むことができる。
 処理部50が基本プログラムB2に従って処理を実行している場合、即ち、データ管理部51が作動している場合、処理部50は、論理アドレスを指定し、指定した論理アドレスへのデータの書き込みをデータ管理部51に指示する。データ管理部51は、第2記憶部41及び第2RAM42のデータ領域において、データを書き込むべき第2記憶部41又は第2RAM42の物理アドレスを決定し、決定した物理アドレスにデータを書き込む。論理アドレスは仮想的なアドレスであり、物理アドレスは実際のアドレスである。データ管理部51は、処理部50によって指定された論理アドレスと、実際にデータを書き込んだ物理アドレスとの対応関係を記憶している。データ管理部51が作動している場合、データ管理部51が、データを書き込む領域(物理アドレス)を決定するため、処理部50はデータを検査領域に容易に書き込むことができない。
 また、処理部50が基本プログラムB2に従って処理を実行している場合、処理部50は、論理アドレスを指定し、指定した論理アドレスに係るデータの読み出しをデータ管理部51に指示する。データ管理部51は、指定された論理アドレスに対応する第2記憶部41又は第2RAM42の物理アドレスを検索し、検索した物理アドレスに記憶されているデータを読み出す。データ管理部51が読み出したデータは、処理部50によって取得される。
 以上のように、処理部50が基本プログラムB2に従って処理を実行している場合、即ち、データ管理部51が作動している場合、データ管理部51は、処理部50の指示に従って、データの書き込み及び読み出しを行う。このため、処理部50は、データを管理する必要がないので、処理を効率的に実行することができる。
 図1に示す第2CPU40の処理部50は、インタフェース43を介して、応答を要求する第2要求データを第2通信部44及び第2センサ45に出力する。第2通信部44及び第2センサ45夫々は、処理部50からインタフェース43を介して第2要求データが入力された場合、第2要求データの入力を示す第2応答データを、インタフェース43に出力する。処理部50は、インタフェース43から第2応答データを取得する。
 処理部50は、第2要求データを第2通信部44に出力し、第2通信部44からインタフェース43に第2応答データが入力されたか否かに基づいて、第2通信部44が故障しているか否かを判定する。同様に、処理部50は、第2要求データを第2センサ45に出力し、第2センサ45からインタフェース43に第2応答データが入力されたか否かに基づいて、第2センサ45が故障しているか否かを判定する。
 第2CPU40の処理部50は、起動プログラムB1及び基本プログラムB2に従って検査を行い、正常又は故障を示す結果データを、インタフェース43を介して、マイコン20のインタフェース33に出力する。結果データの「正常」は、第2記憶部41、第2RAM42、第2通信部44及び第2センサ45の全てが正常であることを意味する。結果データの「故障」は、第2記憶部41、第2RAM42、第2通信部44及び第2センサ45の少なくとも1つが故障していることを意味する。第1CPU30は、インタフェース33を介して結果データを取得する。
 図3及び図4は第1検査処理の手順を示すフローチャートである。第1CPU30が起動した後、第1CPU30は制御プログラムP1に従って第1検査処理を最初に実行する。例えば、車両のイグニッションスイッチがオンとなり、ECU1への給電が開始された場合に第1CPU30は起動する。
 まず、第1CPU30は、第1記憶部31にデータを書き込む(ステップS1)。ここで、第1CPU30は、第1記憶部31のデータ領域において、予め設定されている検査領域にデータを書き込む。次に、第1CPU30は、ステップS1で書き込んだデータを第1記憶部31から読み出す(ステップS2)。
 次に、第1CPU30は、第1記憶部31が故障しているか否かを判定する(ステップS3)。ステップS3では、第1CPU30は、ステップS1で書き込んだデータと、ステップS2で読み出したデータとが一致している場合、第1記憶部31は故障していない、即ち、正常であると判定する。第1CPU30は、ステップS1で書き込んだデータと、ステップS2で読み出したデータとが一致していない場合、第1記憶部31は故障していると判定する。
 第1CPU30は、第1記憶部31が故障していないと判定した場合(S3:NO)、第1RAM32にデータを書き込む(ステップS4)。ここで、第1CPU30は、第1RAM32のデータ領域において、予め設定されている検査領域にデータを書き込む。次に、第1CPU30は、ステップS4で書き込んだデータを第1RAM32から読み出す(ステップS5)。
 次に、第1CPU30は、第1RAM32が故障しているか否かを判定する(ステップS6)。ステップS6では、第1CPU30は、ステップS4で書き込んだデータと、ステップS5で読み出したデータとが一致している場合、第1RAM32は故障していない、即ち、正常であると判定する。第1CPU30は、ステップS4で書き込んだデータと、ステップS5で読み出したデータとが一致していない場合、第1RAM32は故障していると判定する。
 第1CPU30は、第1RAM32が故障していないと判定した場合(S6:NO)、インタフェース33を介して、メモリ21にデータを書き込む(ステップS7)。ここで、第1CPU30は、メモリ21のデータ領域において、予め設定されている検査領域にデータを書き込む。次に、第1CPU30は、ステップS7で書き込んだデータを、インタフェース33を介してメモリ21から読み出す(ステップS8)。
 次に、第1CPU30は、メモリ21が故障しているか否かを判定する(ステップS9)。ステップS9では、第1CPU30は、ステップS7で書き込んだデータと、ステップS8で読み出したデータとが一致している場合、メモリ21は故障していない、即ち、正常であると判定する。第1CPU30は、ステップS7で書き込んだデータと、ステップS8で読み出したデータとが一致していない場合、メモリ21は故障していると判定する。
 第1CPU30は、メモリ21が故障していないと判定した場合(S9:NO)、インタフェース33を介して、第1要求データを第1通信部22に出力する(ステップS10)。次に、第1CPU30は、第1通信部22が故障しているか否かを判定する(ステップS11)。ステップS11では、第1CPU30は、ステップS10を実行してから第1基準時間が経過するまでに、第1通信部22からインタフェース33に第1応答データが入力された場合、第1通信部22が故障していない、即ち、正常であると判定する。第1CPU30は、ステップS10を実行してから第1基準時間が経過するまでに、第1通信部22からインタフェース33に第1応答データが入力されなかった場合、第1通信部22が故障していると判定する。第1基準時間は、一定であり、予め設定されている。
 第1CPU30は、第1通信部22が故障していないと判定した場合(S11:NO)、インタフェース33を介して、第1要求データを第1センサ23に出力する(ステップS12)。次に、第1CPU30は、第1センサ23が故障しているか否かを判定する(ステップS13)。ステップS13では、第1CPU30は、ステップS12を実行してから第2基準時間が経過するまでに、第1センサ23からインタフェース33に第1応答データが入力された場合、第1センサ23が故障していない、即ち、正常であると判定する。第1CPU30は、ステップS12を実行してから第2基準時間が経過するまでに、第1センサ23からインタフェース33に第1応答データが入力されなかった場合、第1センサ23が故障していると判定する。第2基準時間は、一定であり、予め設定されている。
 第1CPU30は、第1記憶部31が故障していると判定した場合(S3:YES)、第1RAM32が故障していると判定した場合(S6:YES)、メモリ21が故障していると判定した場合(S9:YES)、第1通信部22が故障していると判定した場合(S11:YES)、又は、第1センサ23が故障していると判定した場合(S13:YES)、インタフェース33を介して、報知部24に故障の報知を指示する(ステップS14)。報知部24は、表示装置へのメッセージの表示、又は、ランプの点灯等を行うことにより、メモリ21、第1通信部22、第1センサ23、第1記憶部31及び第1RAM32中の少なくとも1つが故障している旨を報知する。このとき、故障している構成部を報知していもよい。
 第1CPU30は、ステップS14を実行した後、第1検査処理を終了する。その後、第1CPU30は、インタフェース33を介して検査データを送信することなく、即ち、第2CPU40を起動させることなく、動作を終了する。
 第1CPU30は、第1センサ23が故障していないと判定した場合(S13:NO)、インタフェース33を介して、検査データをインタフェース43に出力する(ステップS15)。これにより、第2CPU40は起動し、起動処理及び第2検査処理を順次実行し、インタフェース43を介して結果データをマイコン20のインタフェース33に出力する。
 インタフェース33,43間において、データを出力する構成は、データを構成する複数のパケットをシリアルに出力する構成であってもよい。また、インタフェース33,43が複数の導線によって接続されている場合においては、インタフェース33,43間において、データを出力する構成は、データを構成する複数のパケットをパラレルに出力する構成であってもよい。
 第1CPU30は、ステップS15を実行した後、インタフェース33に結果データが入力されたか否を判定する(ステップS16)。第1CPU30は、結果データが入力されていないと判定した場合(S16:NO)、ステップS16を再び実行し、インタフェース33に結果データが入力されるまで待機する。
 第1CPU30は、結果データが入力されたと判定した場合(S16:YES)、インタフェース33に入力された結果データが、第2記憶部41、第2RAM42、第2通信部44及び第2センサ45の少なくとも1つの故障を示しているか否かを判定する(ステップS17)。第1CPU30は、結果データが故障を示していると判定した場合(S17:YES)、インタフェース33を介して、報知部24に故障の報知を指示する(ステップS18)。報知部24は、表示装置へのメッセージの表示、又は、ランプの点灯等を行うことにより、第2記憶部41、第2RAM42、第2通信部44及び第2センサ45の少なくとも1つが故障している旨を報知する。
 なお、結果データに、故障している構成部を示す情報が含まれている場合には、報知部24は、故障している構成部も報知してもよい。
 第1CPU30は、結果データが故障を示していない、即ち、正常を示している場合(S17:NO)、第1検査処理を終了する。この場合、第1CPU30は、第1検査処理とは異なる種々の処理を実行し、ECU1に接続されている電気機器の動作を制御する。
 第1CPU30は、ステップS18を実行した後、第1検査処理を終了する。この場合、第1CPU30は動作を終了する。
 以上のように、第1検査処理では、第1CPU30は、メモリ21、第1通信部22、第1センサ23、第1記憶部31及び第1RAM32を検査する。
 図5は起動処理の手順を示すフローチャートである。前述したように、マイコン20のインタフェース33からインタフェース43に検査データが入力された場合、第2CPU40は起動する。具体的には、第2CPU40において、データ管理部51が停止している状態で処理部50が起動する。処理部50は、起動した場合、最初に起動プログラムB1に従って起動処理を実行する。起動処理が実行されている間、データ管理部51は動作を停止している。
 起動処理では、まず、処理部50は、第2記憶部41にデータを書き込む(ステップS21)。具体的には、処理部50は、データ管理部51を介さずに、第2記憶部41のデータ領域において予め設定されている検査領域にデータを直接に書き込む。データ管理部51が停止しているため、処理部50は第2記憶部41の検査領域にデータを直接に書き込むことができる。次に、処理部50は、データ管理部51を介さずに、ステップS21で書き込んだデータを第2記憶部41から直接に読み出す(ステップS22)。
 次に、処理部50は、第2記憶部41が故障しているか否かを判定する(ステップS23)。ステップS23では、処理部50は、ステップS21で書き込んだデータと、ステップS22で読み出したデータとが一致している場合、第2記憶部41は故障していない、即ち、正常であると判定する。処理部50は、ステップS21で書き込んだデータと、ステップS22で読み出したデータとが一致していない場合、第2記憶部41は故障していると判定する。
 このように、処理部50は、ステップS21で書き込んだデータと、ステップS22で読み出したデータとに基づいて、第2記憶部41を検査する。
 処理部50は、第2記憶部41が故障していないと判定した場合(S23:NO)、第2RAM42にデータを書き込む(ステップS24)。具体的には、処理部50は、データ管理部51を介さずに、第2RAM42のデータ領域において予め設定されている検査領域にデータを直接に書き込む。データ管理部51が停止しているため、処理部50は、第2RAM42の検査領域にデータを直接に書き込むことができる。次に、処理部50は、データ管理部51を介さずに、ステップS24で書き込んだデータを第2RAM42から直接に読み出す(ステップS25)。
 次に、処理部50は、第2RAM42が故障しているか否かを判定する(ステップS26)。ステップS26では、処理部50は、ステップS24で書き込んだデータと、ステップS25で読み出したデータとが一致している場合、第2RAM42は故障していない、即ち、正常であると判定する。処理部50は、ステップS24で書き込んだデータと、ステップS25で読み出したデータとが一致していない場合、第2RAM42は故障していると判定する。
 このように、処理部50は、ステップS24で書き込んだデータと、ステップS25で読み出したデータとに基づいて、第2RAM42を検査する。
 処理部50は、第2記憶部41が故障していると判定した場合(S23:YES)、又は、第2RAM42が故障していると判定した場合(S26:YES)、故障を示す結果データを、インタフェース43を介して、マイコン20のインタフェース33に出力する(ステップS27)。これにより、マイコン20の第1CPU30は、第1検査処理のステップS18を実行し、報知部24に報知を指示する。
 なお、故障を示す結果データに、故障している構成部を示す情報が含まれていてもよい。この場合においては、第1CPU30が第1検査処理のステップS18を実行したとき、報知部24は、故障を報知するとともに、故障している構成部を報知してもよい。
 処理部50は、ステップS27を実行した後、起動処理を終了する。この場合、処理部50は動作を終了する。
 処理部50は、第2RAM42が故障していないと判定した場合(S26:NO)、第2記憶部41に記憶されている基本プログラムB2を第2RAM42にロードする(ステップS28)。処理部50は、ステップS28を実行した後、起動処理を終了する。その後、データ管理部51が起動し、処理部50は、ステップS28でロードした基本プログラムB2に従って、第2検査処理を実行する。前述したように、処理部50が基本プログラムB2に従って、処理を実行している場合、データ管理部51がデータの書き込み及び読み出しを行い、処理部50が第2記憶部41又は第2RAM42のデータ領域に直接にアクセスすることはない。
 図6は第2検査処理の手順を示すフローチャートである。第2CPU40の処理部50が、基本プログラムB2に従って、第2検査処理を実行する。第2検査処理が実行されている間、データ管理部51は作動している。
 第2検査処理では、まず、処理部50は、インタフェース43を介して、第2要求データを第2通信部44に出力し(ステップS31)、第2通信部44が故障しているか否かを判定する(ステップS32)。
 ステップS32では、処理部50は、ステップS31を実行してから第3基準時間が経過するまでに、第2通信部44からインタフェース43に第2応答データが入力された場合、第2通信部44が故障していない、即ち、正常であると判定する。処理部50は、ステップS31を実行してから第3基準時間が経過するまでに、第2通信部44からインタフェース43に第2応答データが入力されなかった場合、第2通信部44が故障していると判定する。第3基準時間は、一定であり、予め設定されている。このように、処理部50は、第2通信部44を検査する。
 次に、処理部50は、第2通信部44が故障していないと判定した場合(S32:NO)、インタフェース43を介して、第2要求データを第2センサ45に出力し(ステップS33)、第2センサ45が故障しているか否かを判定する(ステップS34)。ステップS34では、処理部50は、ステップS33を実行してから第4基準時間が経過するまでに、第2センサ45からインタフェース43に第2応答データが入力された場合、第2センサ45が故障していない、即ち、正常であると判定する。処理部50は、ステップS33を実行してから第4基準時間が経過するまでに、第2センサ45からインタフェース43に第2応答データが入力されなかった場合、第2センサ45が故障していると判定する。第4基準時間は、一定であり、予め設定されている。このように、処理部50は、第2センサ45を検査する。
 処理部50は、第2通信部44が故障していると判定した場合(S32:YES)、又は、第2センサ45が故障していると判定した場合(S34:YES)、故障を示す結果データを、インタフェース43を介して、マイコン20のインタフェース33に出力する(ステップS35)。これにより、マイコン20の第1CPU30は、第1検査処理のステップS18を実行し、報知部24に報知を指示する。
 なお、結果データに、故障している構成部を示す情報が含まれていてもよい。この場合においては、第1CPU30が第1検査処理のステップS18を実行したとき、報知部24は、故障を報知するとともに、故障している構成部を報知してもよい。
 処理部50は、ステップS35を実行した後、第2検査処理を終了する。この場合、処理部50は動作を終了する。
 処理部50は、第2センサ45が故障していないと判定した場合(S34:NO)、正常を示す結果データを、インタフェース43を介して、マイコン20のインタフェース33に出力する(ステップS36)。これにより、マイコン20の第1CPU30は、第1検査処理のステップS17において、結果データは故障を示していないと判定し、第1検査処理を終了する。
 処理部50は、ステップS36を実行した後、第2検査処理を終了する。この場合、第2CPU40の処理部50は、基本プログラムB2及びアプリケーションプログラムB3に従って、第2検査処理とは異なる種々の処理を実行する。
 ECU1では、第2CPU40の処理部50は、データ管理部51が動作を停止している間に、第2記憶部41へのデータの書き込みと、第2記憶部41からのデータの読み出しとを直接に行い、書き込んだデータと読み出したデータとが一致するか否かを判定することによって、第2記憶部41を検査する。
 同様に、第2CPU40の処理部50は、データ管理部51が動作を停止している間に、第2RAM42へのデータの書き込みと、第2RAM42からのデータの読み出しとを直接に行い、書き込んだデータと読み出したデータとが一致するか否かを判定することによって、第2RAM42を検査する。このため、処理部50は、第2記憶部41及び第2RAM42夫々の検査領域にデータを容易に書き込むことができるので、第2記憶部41及び第2RAM42夫々を容易に検査することができる。
 また、データ管理部51が作動している間、即ち、処理部50が基本プログラムB2に従って処理を実行している間、処理部50は、第2通信部44及び第2センサ45を検査する。
(実施の形態2)
 図7は、実施の形態2におけるECUの要部構成を示すブロック図である。
 以下では、実施の形態2について、実施の形態1と異なる点を説明する。後述する構成を除く他の構成については、実施の形態1と共通しているため、実施の形態1と共通する構成部には実施の形態1と同一の参照符号を付してその説明を省略する。
 実施の形態2におけるECU1は、実施の形態1と同様に、マイコン20、メモリ21、第1通信部22、第1センサ23、第2CPU40、第2記憶部41、第2RAM42、インタフェース43、第2通信部44及び第2センサ45を備える。実施の形態2におけるECU1は、報知部24の代わりに、内部コネクタ60を更に備える。
 内部コネクタ60は、マイコン20のインタフェース33に接続している。内部コネクタ60は、外部コネクタ70に着脱可能に接続される。外部コネクタ70は、検査装置71に接続されている。
 内部コネクタ60が外部コネクタ70に接続されている場合において、検査装置71は、第2の検査データを、外部コネクタ70及び内部コネクタ60を介して、マイコン20のインタフェース33に出力する。第2の検査データは、メモリ21、第1通信部22、第1センサ23、第1記憶部31、第1RAM32、第2記憶部41、第2RAM42、第2通信部44及び第2センサ45の検査を指示するデータである。
 第1CPU30は、インタフェース33に第2の検査データが入力された場合に第1検査処理を実行し、第1検査処理で、実施の形態1と同様に、インタフェース33を介して、検査データをインタフェース43に出力する。第2CPU40は、実施の形態1と同様に、起動処理及び第2検査処理を行い、インタフェース43を介して、結果データをマイコン20のインタフェース33に出力する。
 第1CPU30は、インタフェース33、内部コネクタ60及び外部コネクタ70を介して、検査装置71に、正常又は故障を示す第2の結果データを検査装置71に出力する。第2の結果データの「正常」は、メモリ21、第1通信部22、第1センサ23、第1記憶部31、第1RAM32、第2記憶部41、第2RAM42、第2通信部44及び第2センサ45の全てが正常であることを意味する。第2の結果データの「故障」は、メモリ21、第1通信部22、第1センサ23、第1記憶部31、第1RAM32、第2記憶部41、第2RAM42、第2通信部44及び第2センサ45の少なくとも1つが故障していることを意味する。
 使用者は、例えば、検査装置71を用いて、ECU1を出荷する前に、ECU1を検査する。
 インタフェース33及び検査装置71間において、データを出力する構成は、データを構成する複数のパケットをシリアルに出力する構成であってもよい。また、インタフェース33及び検査装置71が複数の導線によって接続されている場合においては、インタフェース33及び検査装置71間において、データを出力する構成は、データを構成する複数のパケットをパラレルに出力する構成であってもよい。
 図8及び図9は、第1検査処理の手順を示すフローチャートである。前述したように、実施の形態2では、第1CPU30は、インタフェース33に第2の検査データが入力された場合に第1検査処理を実行する。
 実施の形態2における第1検査処理のステップS41~S53,S55,S56は、実施の形態1における第1検査処理のステップS1~S13,S15,S16と同様である。このため、ステップS41~S53,S55,S56の詳細な説明を省略する。
 第1CPU30は、第1記憶部31が故障していると判定した場合(S43:YES)、第1RAM32が故障していると判定した場合(S46:YES)、メモリ21が故障していると判定した場合(S49:YES)、第1通信部22が故障していると判定した場合(S51:YES)、又は、第1センサ23が故障していると判定した場合(S53:YES)、インタフェース33、内部コネクタ60及び外部コネクタ70を介して、検査装置71に、故障を示す第2の結果データを出力する(ステップS54)。このとき、第2の結果データに、故障している構成部を示す情報が含まれていてもよい。
 第1CPU30は、ステップS54を実行した後、第1検査処理を終了する。その後、第1CPU30は、インタフェース33を介して検査データを出力することなく、即ち、第2CPU40を起動させることなく、動作を終了する。
 第1CPU30は、実施の形態1と同様に、第1センサ23が故障していないと判定した場合(S53:NO)、インタフェース33を介して、インタフェース43に検査データを出力する(ステップS55)。第1CPU30は、第2CPU40からインタフェース43を介して、インタフェース43に結果データが入力されるまで待機する。
 第1CPU30は、インタフェース33に結果データが入力されたと判定した場合(S56:YES)、インタフェース33、内部コネクタ60及び外部コネクタ70を介して、検査装置71に、正常又は故障を示す第2の結果データを検査装置71に出力する(ステップS57)。ステップS57では、第1CPU30は、インタフェース33に入力された結果データが正常を示す場合、正常を示す第2の結果データを出力する。第1CPU30は、インタフェース33に入力された結果データが故障を示す場合、故障を示す第2の結果データを出力する。
 故障を示す結果データがインタフェース33に入力された場合において、結果データに、故障している構成部を示す情報が含まれているとき、ステップS57で出力する第2の結果データに、故障している構成部を示す情報を含めてもよい。
 第1CPU30は、ステップS54を実行した後、第1検査処理を終了する。
 第2CPU40の処理部50は、第2検査処理を終了した場合、動作を終了する。第1検査処理は、第2の検査データがインタフェース33に入力された場合に実行される処理である。起動処理及び第2検査処理は、検査データがインタフェース43に入力された場合に実行される処理である。第2CPU40が起動する条件は、検査データがインタフェース33に入力されることだけではない。第2CPU40は、検査データがインタフェース33に入力されるという条件とは異なる他の条件で起動した場合、第2の起動処理を実行する。
 第2の起動処理では、第2CPU40の処理部50は、第2記憶部41に記憶されている起動プログラムB1を第2RAM42にロードする。その後、処理部50は、第2の起動処理を終了する。第2の起動処理が終了して、データ管理部51が作動した場合においては、処理部50は、第2検査処理を実行せず、基本プログラムB2に従って、第2検査処理を除く他の処理を実行する。
 実施の形態2におけるECU1は、実施の形態1におけるECU1が奏する効果を同様に奏する。
 なお、実施の形態1,2において、ECU1は、メモリ21、第1通信部22及び第1センサ23の全てを備えていなくてもよい。ECU1の構成は、メモリ21、第1通信部22及び第1センサ23中の1つ又は2つを備える構成であってもよい。この場合、検査する対象の数が1つ又は2つに減少する。同様に、ECU1は、第2通信部44及び第2センサ45の両方を備える必要はない。ECU1の構成は、第2通信部44及び第2センサ45の一方を備える構成であってもよい。この場合、第2検査処理では、第2通信部44及び第2センサ45の一方が検査される。
 また、第1検査処理において、第1記憶部31及び第1RAM32の両方を検査しなくてもよく、第1記憶部31及び第1RAMの一方のみを検査してもよい。同様に、起動処理において、第2記憶部41及び第2RAM42の両方を検査しなくてもよく、第2記憶部41及び第2RAM42の一方のみを検査してもよい。
 更に、第1通信部22を検査する構成は、第1通信部22に第1要求データを出力し、第1通信部22から第1応答データが入力されたか否かに基づいて判定する構成に限定されない。例えば、第1通信部22に指示して、通信線L1に接続されている外部ECUに、第1通信部22への送信を指示するデータを送信させる。そして、データが送信されてから第1基準時間が経過するまでに第1通信部22が外部ECUからデータを受信したか否かに基づいて、第1通信部22を検査してもよい。
 同様に、第2通信部44を検査する構成は、第2通信部44に第2要求データを出力し、第2通信部44から第2応答データが入力されたか否かに基づいて判定する構成に限定されない。例えば、第2通信部44に指示して、通信線L2に接続されている第2の電気機器に、第2通信部44への送信を指示するデータを送信させる。そして、データが送信されてから第3基準時間が経過するまでに、第2通信部44が第2の電気機器からデータを受信したか否かに基づいて、第2通信部44を検査してもよい。
 また、第1センサ23を検査する構成は、第1センサ23に第1要求データを出力し、第1センサ23から第1応答データが入力されたか否かを判定する構成に限定されない。例えば、第1センサ23が明るさを検出する場合、第1センサ23に光を照射する。そして、第1センサ23が検出した物理量が所定の範囲内の値であるか否かを判定することによって、第1センサ23を検査してもよい。
 同様に、第2センサ45を検査する構成は、第2センサ45に第2要求データを出力し、第2センサ45から第2応答データが入力されたか否かを判定する構成に限定されない。例えば、第2センサ45が明るさを検出する場合、第2センサ45に光を照射する。そして、第2センサ45が検出した物理量が所定の範囲内の値であるか否かを判定することによって、第2センサ45を検査してもよい。
 開示された実施の形態1,2はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上述した意味ではなく、請求の範囲によって示され、請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。
 1 ECU(処理装置)
 40 第2CPU(処理素子)
 41 第2記憶部
 42 第2RAM(記憶部)
 44 第2通信部
 45 第2センサ
 50 処理部
 51 データ管理部
 B1 起動プログラム
 B2 基本プログラム

Claims (5)

  1.  処理を実行する処理素子と、該処理素子によってデータの書き込み及び読み出しが行われる記憶部とを備える車両用の処理装置において、
     前記処理素子は、
     処理を実行する処理部と、
     該処理部の指示に従って、前記記憶部へのデータの書き込み、及び、該記憶部からのデータの読み出しを行うデータ管理部と
     を有し、
     前記処理部は、該データ管理部が動作を停止している間に、前記記憶部にデータを直接に書き込み、書き込んだデータを前記記憶部から直接に読み出し、書き込んだデータと、読み出したデータとに基づいて前記記憶部を検査し、
     前記処理部は、前記データ管理部が作動している場合、前記データ管理部に前記書き込み及び読み出しを行わせること
     を特徴とする処理装置。
  2.  前記処理部は、前記記憶部を検査した後にオペレーティングシステムに係るコンピュータプログラムをロードし、ロードしたコンピュータプログラムに従って処理を実行し、
     前記処理部が該コンピュータプログラムに従って処理を実行している間、前記データ管理部は作動していること
     を特徴とする請求項1に記載の処理装置。
  3.  前記記憶部の数は2以上であり、
     2以上の該記憶部には、オペレーティングシステムに係るコンピュータプログラムが記憶される記憶部と、データが一時的に記憶される記憶部とが含まれること
     を特徴とする請求項1又は請求項2に記載の処理装置。
  4.  前記処理部は、前記データ管理部が作動している間に、通信を行う通信部、及び、車両に搭載されたセンサ中の少なくとも一方を検査すること
     を特徴とする請求項1から請求項3のいずれか1つに記載の処理装置。
  5.  処理を実行する処理部と、データが記憶される記憶部と、該処理部の指示に従って、前記記憶部へのデータの書き込み、及び、前記記憶部からのデータの読み出しを行うデータ管理部とを備える車両用の処理装置の前記処理部に処理を実行させるコンピュータプログラムであって、
     前記データ管理部が動作を停止している間に、前記記憶部にデータを直接に書き込み、
     前記データ管理部が動作を停止している間に、書き込んだデータを前記記憶部から直接に読み出し、
     書き込んだデータと、読み出したデータとに基づいて前記記憶部を検査する
     処理を前記処理部に実行させることを特徴とするコンピュータプログラム。
PCT/JP2018/018631 2017-06-05 2018-05-15 処理装置及びコンピュータプログラム WO2018225461A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017110978A JP2018206075A (ja) 2017-06-05 2017-06-05 処理装置及びコンピュータプログラム
JP2017-110978 2017-06-05

Publications (1)

Publication Number Publication Date
WO2018225461A1 true WO2018225461A1 (ja) 2018-12-13

Family

ID=64566607

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/018631 WO2018225461A1 (ja) 2017-06-05 2018-05-15 処理装置及びコンピュータプログラム

Country Status (2)

Country Link
JP (1) JP2018206075A (ja)
WO (1) WO2018225461A1 (ja)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021192936A1 (ja) * 2020-03-27 2021-09-30 日立Astemo株式会社 車両用作動機構の制御装置及び制御方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0293847A (ja) * 1988-09-30 1990-04-04 Toshiba Corp 初期診断時のメモリテスト方式
JPH03147042A (ja) * 1989-11-01 1991-06-24 Fujitsu Ltd 仮想メモリシステムの試験方式
JP2013109392A (ja) * 2011-11-17 2013-06-06 Toyota Motor Corp 情報処理装置およびメモリ管理装置の動作確認方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0293847A (ja) * 1988-09-30 1990-04-04 Toshiba Corp 初期診断時のメモリテスト方式
JPH03147042A (ja) * 1989-11-01 1991-06-24 Fujitsu Ltd 仮想メモリシステムの試験方式
JP2013109392A (ja) * 2011-11-17 2013-06-06 Toyota Motor Corp 情報処理装置およびメモリ管理装置の動作確認方法

Also Published As

Publication number Publication date
JP2018206075A (ja) 2018-12-27

Similar Documents

Publication Publication Date Title
JP3138709B2 (ja) 車両用電子制御装置の自己故障診断方法及び装置
JP2010092127A (ja) コンピュータ装置、プロセッサ診断方法、及びプロセッサ診断制御プログラム
US20080103650A1 (en) Fault information management system and a method for implementing a fault information management system for a vehicle
TW201715245A (zh) 半導體裝置及診斷測試方法
JP2018088177A (ja) 情報処理装置、情報処理システム、情報処理方法、および情報処理プログラム
KR102401882B1 (ko) 메모리의 신뢰성을 향상시킬 수 있는 메모리 시스템 및 그 메모리 관리 방법
WO2018225461A1 (ja) 処理装置及びコンピュータプログラム
US20130167132A1 (en) System, electronic device with firmware updating function and method therefor
JP2010218510A (ja) 状態監視システムおよび状態監視方法
JP2018194336A (ja) 異常検知装置および異常検知方法
KR20150019836A (ko) 부팅 시 오류 검출 기능을 갖는 멀티미디어 장치 및 그 동작 방법
JP2009251936A (ja) プログラマブル表示器の画面プログラム自動試験システム
JP2015190956A (ja) 車載装置の検査システム、車載装置の検査用装置、車載装置、および、可搬型の記憶媒体
JP2013115521A (ja) 表示装置、及びそのプログラム
JP5419761B2 (ja) デバイス制御装置およびcpu
JP6466743B2 (ja) 警報器の調整方法及び警報器
JP4207722B2 (ja) 集積回路とその検査システム、検査装置、ならびに検査方法
US11892923B2 (en) Testing electronic products for determining abnormality
JP2015041253A (ja) 情報処理システム、制御装置、制御方法、および制御プログラム
JP2005215832A (ja) 情報処理装置および情報処理装置の検査方法
JP7281658B2 (ja) 車両用表示システムおよび車両用表示システムの画像表示方法
TW201928669A (zh) 電腦設備、診斷方法以及非暫時性電腦可讀儲存媒體
JP2002002419A (ja) 車両用電子制御ユニット
JPH08278924A (ja) アダプタ診断システム
JP2017076358A (ja) 情報処理装置、情報処理装置の制御方法及びそのプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18813881

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18813881

Country of ref document: EP

Kind code of ref document: A1