WO2016046931A1 - 車載用電子機器の制御装置及び制御方法 - Google Patents

車載用電子機器の制御装置及び制御方法 Download PDF

Info

Publication number
WO2016046931A1
WO2016046931A1 PCT/JP2014/075396 JP2014075396W WO2016046931A1 WO 2016046931 A1 WO2016046931 A1 WO 2016046931A1 JP 2014075396 W JP2014075396 W JP 2014075396W WO 2016046931 A1 WO2016046931 A1 WO 2016046931A1
Authority
WO
WIPO (PCT)
Prior art keywords
execution
electronic device
vehicle
control
program
Prior art date
Application number
PCT/JP2014/075396
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 日本精工株式会社
Priority to BR112016003514-3A priority Critical patent/BR112016003514A2/pt
Priority to US14/782,037 priority patent/US9796415B2/en
Priority to EP14886669.2A priority patent/EP3023304B1/en
Priority to CN201480016866.XA priority patent/CN105980214B/zh
Priority to PCT/JP2014/075396 priority patent/WO2016046931A1/ja
Priority to JP2015541355A priority patent/JP5846342B1/ja
Priority to US15/312,306 priority patent/US10017205B2/en
Priority to EP15844897.7A priority patent/EP3199408A4/en
Priority to PCT/JP2015/076625 priority patent/WO2016047575A1/ja
Priority to CN201580051307.7A priority patent/CN106794810B/zh
Priority to CN201580050289.0A priority patent/CN106794809B/zh
Priority to EP15843261.7A priority patent/EP3199407B1/en
Priority to JP2016550164A priority patent/JP6164373B2/ja
Priority to JP2016550165A priority patent/JP6164374B2/ja
Priority to US15/312,275 priority patent/US9889881B2/en
Priority to PCT/JP2015/076626 priority patent/WO2016047576A1/ja
Publication of WO2016046931A1 publication Critical patent/WO2016046931A1/ja
Priority to JP2017121195A priority patent/JP6350724B2/ja
Priority to JP2017121194A priority patent/JP6311829B2/ja
Priority to JP2017121186A priority patent/JP6311827B2/ja
Priority to JP2017121190A priority patent/JP6350723B2/ja
Priority to JP2017121192A priority patent/JP6311828B2/ja

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D5/00Power-assisted or power-driven steering
    • B62D5/04Power-assisted or power-driven steering electrical, e.g. using an electric servo-motor connected to, or forming part of, the steering gear
    • B62D5/0457Power-assisted or power-driven steering electrical, e.g. using an electric servo-motor connected to, or forming part of, the steering gear characterised by control features of the drive means as such
    • B62D5/0481Power-assisted or power-driven steering electrical, e.g. using an electric servo-motor connected to, or forming part of, the steering gear characterised by control features of the drive means as such monitoring the steering system, e.g. failures
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • G06F11/0739Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function in a data processing system embedded in automotive or aircraft systems
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D5/00Power-assisted or power-driven steering
    • B62D5/04Power-assisted or power-driven steering electrical, e.g. using an electric servo-motor connected to, or forming part of, the steering gear
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D5/00Power-assisted or power-driven steering
    • B62D5/04Power-assisted or power-driven steering electrical, e.g. using an electric servo-motor connected to, or forming part of, the steering gear
    • B62D5/0409Electric motor acting on the steering column
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D6/00Arrangements for automatically controlling steering depending on driving conditions sensed and responded to, e.g. control circuits
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D6/00Arrangements for automatically controlling steering depending on driving conditions sensed and responded to, e.g. control circuits
    • B62D6/08Arrangements for automatically controlling steering depending on driving conditions sensed and responded to, e.g. control circuits responsive only to driver input torque
    • B62D6/10Arrangements for automatically controlling steering depending on driving conditions sensed and responded to, e.g. control circuits responsive only to driver input torque characterised by means for sensing or determining torque
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • 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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1489Generic software techniques for error detection or fault masking through recovery blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2603Steering car
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2637Vehicle, car, auto, wheelchair

Definitions

  • the present invention relates to a control device and a control method for an in-vehicle electronic device, and more specifically, includes a program execution monitoring dedicated circuit for monitoring an abnormal execution state of a control program of an electronic device controlled by the control device.
  • the present invention relates to the control device and a control method using the same.
  • a watch dog timer (WDT) is provided, and every predetermined time.
  • WDT watch dog timer
  • the WDT is repeatedly activated and reset so that the abnormal execution state of the program does not continue for a certain period of time.
  • the control unit measures the end time of each task.
  • Patent Document 2 Japanese Patent Laid-Open No. 2006-90356
  • a control device for vehicle control detects a task with a high processing load, and based on a predetermined task congestion criterion, the processing content with a lower processing load is obtained.
  • a technique for suppressing the occurrence of a failure such as missing a task by replacement is disclosed.
  • an abnormality is detected by interrupting, but an abnormal execution state can be detected until a plurality of tasks separated by a predetermined time. Even if it is not possible and it is determined to be abnormal, no alternative processing is performed, and thus there is a problem that the steering assist by the electric power steering device cannot be continued.
  • the present invention monitors the abnormal execution state of the control program for the electronic device controlled by the control device for the in-vehicle electronic device and detects the abnormal execution state. It is an object of the present invention to provide a control device and a control method capable of performing an alternative process and continuously controlling an in-vehicle electronic device.
  • the present invention is a control device for an in-vehicle electronic device, and the control device monitors an execution order and execution time of tasks executed by the control program for the in-vehicle electronic device.
  • a control device for an in-vehicle electronic device which is equipped with a program execution monitoring dedicated circuit.
  • the dedicated program execution monitoring circuit has a case where the execution order of the tasks is different from a preset order, or / and the execution time of the task exceeds a preset threshold value.
  • the program execution monitoring dedicated circuit is provided in an in-vehicle MCU, or the in-vehicle electronic device is an electric power steering device.
  • the present invention controls the on-vehicle electronic device using a dedicated program execution monitoring circuit that monitors the execution order and execution time of tasks executed by the on-vehicle electronic device control program.
  • a control method for an in-vehicle electronic device characterized by monitoring an execution state of a program.
  • the solution of the above problem is that the monitoring of the execution state of the control program of the in-vehicle electronic device is performed when the execution order of the tasks executed by the control program is different from a preset order, and / or the task When the execution time of a time exceeds a preset threshold value, by outputting a preset signal, or when the preset signal is output, by performing an alternative process, or
  • the program execution monitoring dedicated circuit is achieved more effectively by being provided in the in-vehicle MCU or by the in-vehicle electronic device being an electric power steering device.
  • the dedicated program execution monitoring circuit mounted on the control device monitors the execution order and execution time of each task performed by the program, so that the program can be executed more quickly than when monitoring by software.
  • the abnormal execution state can be monitored.
  • the fail-safe process an alternative process can be performed, so that the electronic device can be controlled continuously.
  • the present invention when used in a control device for an in-vehicle electronic device, safety and reliability are further improved. For example, when this is used in a control device for an electric power steering device mounted on a vehicle. Even if an abnormality occurs in the program of the control device, it is possible to continue the steering assist.
  • the electric power steering device applies a steering assist force (assist force) to the steering mechanism of the vehicle by the rotational force of the motor, and transmits the driving force of the motor to a gear or a belt through the speed reduction mechanism.
  • a steering assist force is applied to the steering shaft or the rack shaft by the mechanism.
  • EPS electric power steering device
  • the motor application voltage is adjusted so that the difference between the steering assist command value (current command value) and the motor current detection value becomes small. This is done by adjusting the duty of the (width modulation) control.
  • the column shaft 2 is provided with a torque sensor 10 for detecting the steering torque of the handle 1 and a steering angle sensor 14 for detecting the steering angle ⁇ , and the motor 20 for assisting the steering force of the handle 1 is provided with the speed reduction mechanism 3.
  • a reduction gear gear ratio n
  • a control unit (ECU) 30 for controlling the electric power steering apparatus is configured with a micro control unit (MCU) 31 as a basic component, and is supplied with electric power from the battery 13 and passes through an ignition key 11 and an ignition key. A signal is input.
  • MCU micro control unit
  • the control unit (ECU) 30 configured as described above calculates the current command value of the assist (steering assist) command based on the steering torque Th detected by the torque sensor 10 and the vehicle speed Vel detected by the vehicle speed sensor 12.
  • the current supplied to the motor 20 is controlled by a voltage control command value Vref obtained by compensating the current command value.
  • the steering angle sensor 14 is not essential and may not be provided, and the steering angle can be obtained from a rotational position sensor such as a resolver connected to a motor.
  • control unit (ECU) 30 is connected to a CAN (Controller Area Network) 50 that transmits and receives various types of vehicle information, and the vehicle speed Vel can be received from the CAN 50.
  • the control unit (ECU) 30 is also connected to a non-CAN 51 that exchanges communications other than the CAN 50, analog / digital signals, radio waves, and the like.
  • the control unit (ECU) 30 as described above generally has a basic configuration as shown in FIG. 2, and in addition to the micro control unit (MCU) 31 having a central processing unit (CPU), a motor A drive circuit 35, a motor current detection circuit 37, a steering angle detection circuit 39, a power supply relay 33, and the like are provided.
  • MCU micro control unit
  • the program execution monitoring dedicated circuit 110 of the present invention is mounted in the MCU 31 of the control unit 30 as described above.
  • FIG. 3 shows a schematic configuration of the MCU 31.
  • the MCU 31 includes a CPU 130, a ROM (including an EEPROM, etc.) 150, a RAM 170, A peripheral 190 and the like are provided through an interface and the like, and these are connected by a data bus, an instruction bus, and the like.
  • the ROM 150 stores an electric power steering control program including a plurality of processes, control data, and the like, and the CPU 130 executes the control program to control the electric power steering.
  • the RAM 170 also functions as a work memory when the CPU 130 operates.
  • Registers, program counters, CPU status information, and the like are transmitted between the CPU 130 and the program execution monitoring dedicated circuit 110 of the present invention. Further, the program execution monitoring dedicated circuit 110 transmits information to the CPU 130. Signal lines for interrupt instructions and hardware (HW) alarms to external ports are connected.
  • HW hardware
  • the program execution monitoring dedicated circuit 110 of the present invention further includes an execution order monitoring / comparing circuit 113, an execution time monitoring timer circuit 111, a setting register 115, and other attached circuits 117. ing.
  • the execution order monitoring / comparing circuit 113 is a circuit that monitors whether tasks (processes) executed by the CPU 130 by the control program are performed in order, and whether the processes are executed under a predetermined process. Whether or not the previous task is appropriate is monitored.
  • execution time monitoring timer circuit 111 monitors whether or not each process has been executed after a time equal to or greater than a predetermined threshold predetermined for each process.
  • the setting register 115 records setting information used for the operation of the program execution monitoring dedicated circuit 110 in advance.
  • FIG. 5 shows an example of register setting for a certain process in the program execution monitoring dedicated circuit 110 inside the MCU 31.
  • a time threshold is set.
  • the process refers to a plurality of control procedures constituting a control program.
  • the process is a torque control process for calculating a steering assist torque command value based on the steering torque T and the vehicle speed V, and based on the steering assist torque command value.
  • the current control process for driving the steering assist motor 20 is included.
  • Each process basically executes a plurality of processes periodically, and the number of processes varies from process to process.
  • the setting register 115 as shown in FIG. 6, the type and execution order of processing normally performed by the program and the execution time threshold thereof, the type and execution order of processing when the program performs alternative processing, and the execution thereof are shown.
  • the execution time threshold of the process in the case of performing the alternative process of FIG. 6 is set to half of the execution time threshold of the normal process, but the content of the alternative process and the execution time threshold of the alternative process Is an example and is not limited thereto. Therefore, a plurality of normal processes may be supplemented with one alternative process depending on circumstances, and the execution time threshold value can be set to be not limited to half the execution time threshold value of the normal process.
  • Other accessory circuits 117 include hardware (HW) timers, timer counters, compare registers, etc., interrupt processing and HW alarm generation circuits, execution sequence and execution time read from the CPU 130, and whether or not alternative processing is performed.
  • HW hardware
  • a log register or the like for storing the information is provided as necessary.
  • the execution monitoring of the control program and necessary substitution processing are performed by the following execution procedure.
  • the execution order is monitored by a plurality of processes (1 to n) including a function pointer table or the like registered in advance in the setting register by the execution order monitoring / comparing circuit 113 in the program execution monitoring dedicated circuit 110.
  • a function pointer table or the like registered in advance in the setting register by the execution order monitoring / comparing circuit 113 in the program execution monitoring dedicated circuit 110.
  • the program execution monitoring dedicated circuit 110 reads the processing address of the instruction code transferred to the corresponding register of the CPU 130 from the register in the CPU 130 or the access information to the ROM 150 as shown in FIG. 7 (step S1). .
  • the processing address registered in advance in the setting register 115 in the program execution monitoring dedicated circuit 110 is compared with the processing address of the read instruction code and the same processing address. Is stored as log information in the log register as to what execution order (1 to n) is in the processing address registered in the setting register 115 (step S2).
  • step S3 it is detected from the log information in the log register whether or not the execution order of the processes up to the previous time is recorded. If the execution order is recorded, the process proceeds to the next step S4.
  • next step S4 information indicating the order of execution of the process detected last time is extracted from the log information of the log register, and in the subsequent step S5, the execution order of the process detected this time is the process detected last time. It is determined whether or not the next execution order is applicable.
  • step S5 If it is determined in step S5 that the execution order of the process detected this time corresponds to the execution order next to the process detected last time and there is no abnormality in the process order, the process returns to step S1. On the other hand, when it is determined that there is an abnormality in the processing order, the process proceeds to the next step S6 in which an HW alarm is generated or an alternative process is performed.
  • the CPU 130 is interrupted, and as shown in FIG. 6, based on the current process order, the regular process or the alternative process corresponding to the order is performed, and the process being executed Depending on the importance of the process, such as returning the whole to the initial state and redoing the execution of a series of processes, or starting from the process immediately before the occurrence of an abnormality based on log information etc. It is possible to select an appropriate process.
  • an error information log is recorded in the log register and the same error is detected many times.
  • alternative processing such as skipping processing in which a failure has occurred. Then, after shifting to the alternative process and executing it as described above, the process shifts again to monitoring of the program execution order.
  • the execution order monitoring / comparing circuit 113 in the program execution monitoring dedicated circuit 110 of the present invention executes the control program based on the start addresses (processing addresses) of the plurality of processes (1 to n).
  • the order is monitored, in the program execution monitoring in the present invention, for example, the execution order of each process is read from the program counter of the CPU 130 and registered in the setting register in the program execution monitoring dedicated circuit 110 in advance.
  • a configuration and method for monitoring the validity of selection of the process itself by comparing with the processing address may be adopted.
  • each process constituting the control program is subdivided for each process, and each process (1 to n) is executed for monitoring the execution time.
  • An execution time threshold is set and stored in the setting register 115.
  • an alternative process is set for each of the above processes so as to be paired therewith, and an execution time threshold is also set for the alternative process. Stored.
  • FIG. 8 shows a case where the execution time of the plurality of processes n (process n: where 1 ⁇ n ⁇ N) does not exceed a predetermined execution time threshold, that is, the CPU 130 executes the processes. It is the conceptual diagram which showed the measurement example when abnormality does not arise in time, and the operation
  • the horizontal axis shows the flow of a plurality of processes
  • FIG. 8 also shows the case where there are only N processes in one process and the process shifts to the same process in the next cycle.
  • the vertical axis represents the program counter value or execution time that has elapsed for each process. For this reason, the upward slanting line indicated by a solid line for each process represents the passage of time for each process, and the chain line similarly indicated for each process indicates an execution time threshold set for each process. .
  • each process n is started and monitoring of the execution time by the execution time monitoring timer circuit 111 is started (Start).
  • the execution time is monitored using a timer in the program execution monitoring dedicated circuit.
  • the time measurement may be performed by mutually converting the timer count value of the program execution monitoring circuit 110 or the real time calculation value based on the timer count value.
  • the execution time monitoring timer circuit 111 measures the passage of the execution time and compares it with a preset execution time threshold for each process as described in FIGS.
  • the elapsed time for each process (the solid line rising to the right in FIG. 8A), that is, the execution time, is the execution time threshold preset for each process (the horizontal chain line shown in FIG. 8A).
  • the execution time monitoring by the execution time monitoring timer circuit 111 is stopped.
  • the execution time monitoring dedicated circuit 110 can be automatically performed by the program execution monitoring dedicated circuit 110 based on preset information.
  • setting information such as an execution time threshold value for each process is input to the setting register 115 and the like in advance, and can be read and used as necessary.
  • the hardware timer of the circuit 110 and the CPU clock may be synchronized in advance as necessary.
  • FIG. 9 is a diagram configured in the same manner as described above, but unlike the case of FIG. 8 above, a measurement example when an abnormality occurs in the execution time and the execution time monitoring timer of the present invention corresponding thereto
  • FIG. 6 is a conceptual diagram showing the operation of a circuit 111.
  • the execution time monitoring timer circuit 111 starts each process n and starts monitoring the execution time by the execution time monitoring timer circuit 111 ( Start).
  • the execution time monitoring timer circuit 111 measures the passage of the execution time, compares the execution time with a preset execution time threshold for each process, and performs the elapsed time for each process. (A solid line rising to the right in FIG. 9) That is, it is monitored whether or not the execution time reaches a preset execution time threshold value (horizontal chain line shown in FIG. 9) for each process.
  • the program execution monitoring dedicated circuit interrupts the occurrence of an abnormal execution time. Is notified to the CPU 130 and interrupt processing is performed.
  • the interrupt process is a process executed by replacing the process determined that the abnormality has occurred with an alternative process. Therefore, for example, when the process 2 in FIG. 9 is taken as an example, as shown in FIG. 6, the execution time of the process 2 has reached 120 [ ⁇ S], and it is determined that there is an abnormality in the execution time. In this case, the process 2 is appropriately interrupted, and the alternative process of the process 2 is performed by interruption.
  • the interrupt processing itself is processing by software.
  • the process shifts to the next process 3 as shown in FIG. 9 and shifts to a normal monitoring state.
  • the process in which the substitute process is performed is executed by replacing the process with the substitute process in the process of the next cycle. Therefore, for example, as shown in FIG. 9, for the process 2, in the next execution cycle of the process, an alternative process of the process 2 is performed from the beginning, and the program execution monitoring dedicated circuit 110 monitors the execution time. It is also possible to carry out based on an alternative process execution time threshold shown in FIG.
  • the process N of the CPU 130 is not completed within the time set by the execution time threshold (when the execution time becomes equal to the execution time threshold). Is timed out because the timer of the execution time monitoring timer circuit 111 is not stopped, and interrupt processing is performed.
  • FIG. 10 is a flowchart showing an outline of the flow of such interrupt processing.
  • interrupt prohibition processing is performed (step S20). This is for preventing another interrupt from being instructed to the CPU 130 during the interrupt operation based on the instruction from the program execution monitoring dedicated circuit, and causing multiple interrupts.
  • step S22 it is determined whether or not the process being interrupted is an alternative process. This is to eliminate the possibility that the process falls into an infinite loop by performing the same alternative process when the process being executed is an alternative process. Therefore, if it is determined by the above determination that the process being executed is an alternative process, the interrupt process is terminated as an abnormal end, and a signal for starting a hardware alarm or the like is output to the external port (step S30). . On the other hand, if it is determined that the process being executed is not an alternative process, the process proceeds to the next step S23.
  • Step 23 is a process of rearranging the contents of the instruction code and function execution table of the CPU 130 so that the process being executed is replaced with an alternative process.
  • the alternative process is set in advance for each process, and therefore recombination is performed based on the setting.
  • step 24 the setting register 115 of the program execution monitoring dedicated circuit 110 is reset in order to monitor the execution time and order of the alternative processing. For this reason, information such as the processing address of the next processing after the processing being executed, the processing address of the alternative processing, and the alternative processing execution time threshold is recorded in the setting register 115 or the like for later reference. .
  • step S25 the calculation value of process N is checked (step S25). This is to determine whether or not the calculated value of the process N that has performed the substitute process is abnormal (step S26). The determination is based on a predetermined value that is set in advance as the calculated value of the process N based on the substitute process. It is performed depending on whether or not it is within the threshold value. If it is determined that there is an abnormality in the calculation value of the process N, the calculation value of the process N is replaced with a default value (step S27), and it is determined that there is no abnormality in the calculation value of the process N. In this case, the process proceeds to step S28.
  • step S28 the program counter of the CPU 130 is set at the head of the process N + 1, and an instruction for permitting another interrupt prohibited in step S20 is issued (step 29). The interrupt by the program execution monitoring circuit is terminated. .
  • the execution time is monitored as described above, and if the execution time of the process N exceeds a predetermined execution time threshold, the execution of the program is stopped and the control is performed without stopping the execution of the program. It is possible to continue.
  • the execution monitoring of the program is performed by a dedicated program execution monitoring circuit mounted inside the MCU. The circuit is based on information such as an instruction fetch address from the instruction bus and a program counter in the CPU. It is possible to know which program is currently being executed, and by using this, the timer in the dedicated circuit is used if the start addresses of processing 1 to N and the upper limit threshold of the execution time are registered in advance in the setting register. The execution time can be measured almost automatically.
  • the execution time can be monitored by taking into account processing delays caused by other interrupts. Therefore, when general-purpose interrupt processing is used when acquiring sensor information and the interrupt processing time is not to be included in the processing N, the hardware acquires the CPU information and executes the timer of the execution time during the interrupt. A mechanism for stopping (maintaining) the counter may be implemented, or during the interruption, it may be possible to select whether to stop or continue the timer counter.
  • the execution time is measured from the process N to the process N + 1.
  • the execution time of the process N only or the process N and the process N + 2 are not continuous.
  • “end address” may be added to the register in the program execution monitoring dedicated circuit in addition to the start address of process N, and the measurement may be terminated when the “end address” is reached.
  • the setting register in order to measure the execution time in the interrupt processing, it is possible to configure the setting register so that it can be divided into normal processing (periodic processing) and interrupt processing.
  • the abnormal execution state of the control program for the in-vehicle electronic device as described above is monitored, and the abnormal state is detected. In such a case, it is possible to continue the above control by performing an alternative process.
  • control apparatus and method for an in-vehicle electronic device according to the present invention when used, for example, for control of an electric power steering apparatus, the control apparatus continues even if it is determined that an abnormality has occurred in the control apparatus. Steering assist can be performed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Transportation (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Automation & Control Theory (AREA)
  • Power Steering Mechanism (AREA)
  • Steering Control In Accordance With Driving Conditions (AREA)
  • Debugging And Monitoring (AREA)

Abstract

【課題】車載用電子機器の制御において、前記車載用電子機器の制御プログラムの実行状態を監視して、前記制御プログラムに異常な実行状態が検出された場合であっても、前記車載用電子機器の制御を継続できるようにすること。 【解決手段】車載用電子機器の制御装置のCPUに接続する実行時間監視タイマ回路111と実行順序監視回路113と設定レジスタ115とその他の付属回路117などからなるプログラム実行監視専用回路110を設け、車載用電子機器の制御プログラムが実行するタスクの実行順序、及び/又は、前記制御プログラムが実行するタスクの実行時間の監視を行い、上記実行順序、及び/又は、実行時間に異常を検出した場合には、代替的な処理を行うことにより、電動パワーステアリングなどの車載用電子機器の制御を継続可能とする、装置及び方法を提供する。

Description

車載用電子機器の制御装置及び制御方法
 本発明は、車載用電子機器の制御装置及び制御方法に関するものであり、さらに言えば、前記制御装置が制御する電子機器の制御プログラムの異常な実行状態を監視するプログラム実行監視専用回路を備えた前記制御装置及びこれを用いた制御方法に関するものである。
 今日、車両の電子化が進んでおり、車両の各種装備品や、駆動システム乃至その補助システムなどに、多数の電子機器が備えられ、その制御が行われている。そして、このような車載用電子機器の制御を行う制御装置では、車両の安全な運行や、搭乗者の利便性・快適性の向上のために、高い安全性と信頼性とが要求されている。
 そのため、上記の様な制御装置では、安全性と信頼性の向上のために、上記電子機器の制御プログラムに異常が生じた場合でも、例えば、ウォッチドッグタイマ(WDT)を設けて、所定時間ごとに上記WDTの起動とリセットとを繰り返し、プログラムの異常な実行状態が一定時間以上継続しないようになっている。
 また、上記電子機器として、例えば、電動パワーステアリング装置の場合には、特許文献1(特開2009-113618号)に記載されたように、制御部で、夫々のタスクの終了時間を計測し、計測した各タスクの終了時間に基づいてプログラムの異常な実行状態の検知を行うことにより、上記の様なWDTによって検出不可能なプログラムの異常な実行状態を正確に検出する技術が開示されている。
 更に、特許文献2(特開2006-90356号)では、車両制御用の制御装置において、処理負荷の高いタスクを検出して、所定のタスク混雑基準に基づいて、より処理負荷の低い処理内容に置換えることによって、タスク抜けなどの障害の発生を抑制する技術が開示されている。
特開2009-113618号 特開2006-90356号
 しかし、上記特許文献1に記載された発明では、割込みを行って異常検出を行っているが、所定の時間で区切られた複数のタスクの終了までは、異常な実行状態の検知を行うことが出来ず、異常と判定した場合であっても代替的な処理を行わないため、電動パワーステアリング装置による操舵アシストを継続できないという問題があった。
 また、上記特許文献2に記載された発明では、処理負荷の高いタスク処理を一部簡素化して実行しているが、上記特許文献1の場合と同様に、タスクが終了しない場合には異常を検出できないという課題があった。
 そこで本発明は、上記問題や課題の解決のために、車載用電子機器の制御装置が制御する電子機器の制御プログラムの異常な実行状態を監視すると共に、上記異常な実行状態が検出された場合には代替処理を行って、車載用電子機器の制御を継続して行うことが可能な、制御装置及び制御方法を提供することを課題とする。
 上記課題を解決するために本発明は、車載用電子機器の制御装置であって、前記制御装置には、前記車載用電子機器の制御プログラムが実行するタスクの実行順序と実行時間とを監視するプログラム実行監視専用回路を実装したことを特徴とする車載用電子機器の制御装置を提供する。
 また、上記課題の解決は、前記プログラム実行監視専用回路は、前記タスクの実行順序が予め設定された順序と異なる場合、又は/及び、前記タスクの実行時間が予め設定された閾値を超えた場合に、予め設定された信号を出力することにより、或いは、前記予め設定された信号が出力された場合には、代替処理を行い、前記車載用電子機器の制御を継続することを可能にすることにより、或いは、前記プログラム実行監視専用回路は、車載用MCUに備えられていることにより、或いは、前記車載用電子機器は電動パワーステアリング装置であることにより、より効果的に達成される。
 また、上記課題を解決するために本発明は、車載用電子機器の制御プログラムが実行するタスクの実行順序と実行時間とを監視するプログラム実行監視専用回路を用いて、前記車載用電子機器の制御プログラムの実行状態を監視することを特徴とする車載用電子機器の制御方法を提供する。
 また、上記課題の解決は、前記車載用電子機器の制御プログラムの実行状態の監視は、前記制御プログラムが実行する前記タスクの実行順序が予め設定された順序と異なる場合、又は/及び、前記タスクの実行時間が予め設定された閾値を超えた場合に、予め設定された信号を出力することにより、或いは、前記予め設定された信号が出力された場合には、代替処理を行うことにより、或いは、前記プログラム実行監視専用回路は、車載用MCUに備えられていることにより、或いは、前記車載用電子機器は電動パワーステアリング装置であることにより、より効果的に達成される。
 本発明によれば、上記制御装置に実装されたプログラム実行監視専用回路により、プログラムが行う各タスクの実行順序と実行時間とを監視するため、ソフトウェアにより監視する場合に比較して、迅速にプログラムの異常な実行状態の監視が可能である。
 また、従来のソフトウェアやWDTを用いたプログラムの異常監視と比較して、異常の監視のために、一のタスクの終了を待つ必要が無いことから、異常発生から異常検出までの時間を短縮して、迅速にフェールセーフ処理等を行うことが可能である。
 更に、本発明では、上記フェールセーフ処理として、代替処理を行うことが可能であるため、電子機器の制御を継続して行うことが可能である。
 そのため、本発明を車載用電子機器の制御装置に用いた場合には、安全性と信頼性とが更に向上し、例えばこれを車両に搭載される電動パワーステアリング装置の制御装置に用いた場合には、上記制御装置のプログラムに異常が発生した場合であっても、操舵補助を継続して行うことが可能である。
電動パワーステアリング装置の一般的な構成を示した図である。 コントロールユニット(ECU)の基本構成例を示した図である。 マイクロコントロールユニット(MCU)の概略の構成を示した図である。 本発明のプログラム実行監視専用回路の構成を示す図である。 制御プロセスに関する設定レジスタの処理アドレスと実行時間閾値の設定例を示す図である。 通常処理とその実行時間閾値と、代替処理とその代替処理実行時間閾値の設定レジスタの設定例を示す図である。 実行順序の監視の流れを示す図である。 実行時間に異常が生じない場合の計測例を示す概念図である。 実行時間に異常が生じた場合の計測例を示す概念図である。 実行時間に異常が生じた場合の割込み処理の流れを示すフローチャートである。
 以下に、本発明を車載用電子機器である電動パワーステアリング装置に用いた場合を例として、本発明の実施形態を説明する。
 ここで、上記電動パワーステアリング装置は、車両のステアリング機構にモータの回転力で操舵補助力(アシスト力)を付与するものであり、モータの駆動力を減速機構を介してギア又はベルト等の伝達機構により、ステアリングシャフト或いはラック軸に操舵補助力を付与するようになっている。そして、このような電動パワーステアリング装置(EPS)は、操舵補助力のトルクを正確に発生させるため、モータ電流のフィードバック制御を行っている。
 かかるフィードバック制御は、操舵補助指令値(電流指令値)とモータ電流検出値との差が小さくなるようにモータ印加電圧を調整するものであり、モータ印加電圧の調整は、一般的にPWM(パルス幅変調)制御のデューティ(Duty)の調整で行っている。
 上記の電動パワーステアリング装置の一般的な構成を図1に示して説明すると、ハンドル1のコラム軸(ステアリングシャフト、ハンドル軸)2は減速機構3の減速ギア、ユニバーサルジョイント4a及び4b、ピニオンラック機構5、タイロッド6a,6bを経て、更にハブユニット7a,7bを介して操向車輪8L,8Rに連結されている。また、コラム軸2には、ハンドル1の操舵トルクを検出するトルクセンサ10及び操舵角θを検出する舵角センサ14が設けられており、ハンドル1の操舵力を補助するモータ20が減速機構3の減速ギア(ギア比n)を介してコラム軸2に連結されている。
 そして、上記の電動パワーステアリング装置を制御するコントロールユニット(ECU)30は、マイクロコントロールユニット(MCU)31を基幹部品として構成され、バッテリ13から電力が供給されると共に、イグニションキー11を経てイグニションキー信号が入力される。
 このように構成されるコントロールユニット(ECU)30では、トルクセンサ10で検出された操舵トルクThと車速センサ12で検出された車速Velとに基づいてアシスト(操舵補助)指令の電流指令値の演算を行い、電流指令値に補償等を施した電圧制御指令値Vrefによってモータ20に供給する電流を制御する。なお、舵角センサ14は必須のものではなく、配設されていなくても良く、モータに連結されたレゾルバ等の回転位置センサから操舵角を取得することも可能である。
 また、上記コントロールユニット(ECU)30には、車両の各種情報を授受するCAN(Controller Area Network)50が接続されており、車速VelはCAN50から受信することも可能である。また、コントロールユニット(ECU)30には、CAN50以外の通信、アナログ/ディジタル信号、電波等を授受する非CAN51も接続されている。
 上記の様なコントロールユニット(ECU)30は、概ね、図2に示すような基本構成を有しており、中央演算処理装置(CPU)を備えた上記マイクロコントロールユニット(MCU)31のほか、モータ駆動回路35、モータ電流検出回路37、舵角検出回路39、電源のリレー33などを備えている。
 そして、本発明のプログラム実行監視専用回路110は、上記の様なコントロールユニット30のMCU31の中に実装されている。図3は、上記MCU31の概略の構成を示したものであり、MCU31の内部には、本発明の上記プログラム実行監視専用回路110の他に、CPU130、ROM(EEPROMなどを含む)150、RAM170、インターフェース等を通してペリフェラル190などが備えられ、これらがデータバスや命令バスなどにより接続されている。また、ここで、上記ROM150には複数のプロセスからなる電動パワーステアリングの制御プログラムや、制御データなどが格納されており、上記CPU130は、上記制御プログラムを実行して、電動パワーステアリングの制御を行い、上記RAM170は、上記CPU130の作動に当たりワークメモリとしても機能する。そして、上記CPU130と本発明の上記プログラム実行監視専用回路110との間ではレジスタやプログラムカウンタ、CPUの状態情報などが伝達されており、更に、上記プログラム実行監視専用回路110からは、CPU130への割込み指示や外部ポートへのハードウェア(HW)アラームなどへの信号線が接続されている。
 また、本発明の上記プログラム実行監視専用回路110は、図4に示すように、さらに、実行順序監視比較回路113、実行時間監視タイマ回路111、設定レジスタ115、及びその他の付属回路117により構成されている。
 このうち、実行順序監視比較回路113は上記制御プログラムがCPU130で実行するタスク(処理)が、順番通りに行われているかを監視する回路であり、処理が所定のプロセスの下で実行されているか否か、直前のタスクが適正なものであるか否かなどを監視するものである。
 また、実行時間監視タイマ回路111は、各々の処理が、予め処理ごとに定められた一定の閾値以上の時間を経過して実行されていないか否かを監視するものである。
 また、設定レジスタ115は、上記プログラム実行監視専用回路110の稼働に用いられる設定情報を予め記録してあるものである。例えば、図5は、上記MCU31の内部におけるプログラム実行監視専用回路110の、あるプロセスについてのレジスタ設定例である。ここでは処理アドレスとして、複数の処理(例えば、1~n迄:ここではn=10)のそれぞれの先頭アドレスと、上記それぞれの処理(1~n迄:ここではn=10)の処理の実行時間の閾値とが設定されている。なお、ここで、プロセスとは制御プログラムを構成する複数の制御手順をいい、例えば、操舵トルクTと車速Vに基づいて操舵補助トルク指令値を算出するトルク制御プロセス、操舵補助トルク指令値に基づいて操舵補助モータ20を駆動する電流制御プロセスなどが含まれている。そして、各プロセスは、基本的には、複数の処理を周期的に実行し、その処理の数は、プロセスごとに異なっている。また、上記設定レジスタ115には、図6に示すように、プログラムが通常行う処理の種類と実行順序及びその実行時間閾値と、プログラムが代替処理を行う場合の処理の種類と実行順序及びその実行時間閾値などの設定条件が格納されている。
 なお、ここで、上記図6の代替処理を行う場合の処理の実行時間閾値は通常行う処理の実行時間閾値の半分に設定されているが、代替処理の内容と当該代替処理の実行時間閾値とは、例示したものであって、これに限定されるものではない。そのため、複数の通常処理を、場合によっては一の代替処理で補っても良く、その実行時間閾値も通常行う処理の実行時間閾値の半分に限らない設定とすることが可能である。
 また、その他の付属回路117には、ハードウェア(HW)タイマやタイマカウンタ、コンペアレジスタなどの他、割込み処理やHWアラームの生成回路、CPU130から読み取った実行順序や実行時間、代替処理実行の有無などを格納するログレジスタなどが必要に応じて設けられている。
 上記のように構成されるプログラム実行監視専用回路110では、次のような実行手順により、上記制御プログラムの実行監視と、必要な代替処理が行われる。
 実行順序の監視は、基本的には、上記プログラム実行監視専用回路110内の実行順序監視比較回路113により、設定レジスタに予め登録してある関数ポインタテーブルなどを含む複数の処理(1~n)のそれぞれの先頭アドレス(処理アドレス)と、命令フィッチ時の処理アドレスや、CPU内のプログラムカウンタなどの情報を元に現在どのプログラムを実行しているかの情報を取得し、これと比較することで行われる。
 すなわち、CPU130がタスクを実行する際には、命令コード等をROM150から読みだして、CPU130内のレジスタに転送する。そのため、プログラム実行監視専用回路110では、図7に示すように、CPU130の当該レジスタに転送される命令コードの処理アドレス等をCPU130内のレジスタ又はROM150へのアクセス情報などから読みだす(ステップS1)。
 そして、上記図5で示したように、プログラム実行監視専用回路110内の設定レジスタ115にあらかじめ登録してある処理アドレスと、上記読みだした命令コードの処理アドレス等とを比較し、同じ処理アドレスを有する処理が、設定レジスタ115に登録してある処理アドレス上で何番目の実行順序(1~n)にあるかをログレジスタにログ情報として格納しておく(ステップS2)。
 そして、次に上記ログレジスタのログ情報から、前回までの処理の実行順序の記録の有無を検出し(ステップS3)、前回までに処理の実行順序の記録が無ければステップS1へ戻り、処理の実行順序の記録があれば次のステップS4へ移行する。
 次のステップS4では、上記ログレジスタのログ情報から、前回検出した処理が何番目の実行順序であったかの情報を取り出し、続くステップS5で、今回検出した処理の実行順序が、前回検出した処理の次の実行順序に該当するか否かを判断する。
 そして、上記ステップS5により、今回検出した処理の実行順序が、前回検出した処理の次の実行順序に該当し、処理の順番に異常がないと判断された場合にはステップS1に戻る。また、その一方、処理の順番に異常があると判断される場合には、HWアラームの発生や代替処理などを行う次のステップS6へ移行する。
 上記代替処理としては、例えば、CPU130に割込みを行い、図6に示したように、現在の処理の順番に基づいて、その順番に該当する正規の処理乃至代替処理を行う他、実行中のプロセス全体を初期状態に戻して一連の処理の実行をやり直したり、ログ情報などを基にして、異常が発生する一つ前の処理からやり直したりするなど、プロセスの重要度等に応じて、どのような処理を選択するかが可能である。また、同じ処理で何度も異常が発生し、処理が無限ループに陥る可能性を排除するために、異常情報のログをログレジスタに記録しておき、同一の異常を何度も検出した場合には実行順序の監視に回数制限をかけたり、場合によっては、障害が発生した処理をスキップする等の代替処理を行ったりすることも可能である。そして、上記のように代替処理に移行しこれを実行した後は、再びプログラムの実行順序の監視に移行する。
 以上のように、本発明のプログラム実行監視専用回路110内の実行順序監視比較回路113では、複数の処理(1~n)のそれぞれの先頭アドレス(処理アドレス)に基づいて、上記制御プログラムの実行順序の監視が行われるが、本発明におけるプログラムの実行監視では、例えば、上記CPU130のプログラムカウンタから各プロセスの実行順序を読み取って、プログラム実行監視専用回路110内の設定レジスタにあらかじめ登録してある処理アドレスと比較し、プロセス自体の選択の妥当性などを監視する構成と方法を採用しても良い。
 次に、上記本発明のプログラム実行監視専用回路110において、上記制御プログラムの実行時間の監視と代替処理とを行う場合について、その実行手順を説明する。
 本発明のプログラム実行監視専用回路110では、図5について既に説明した通り、制御プログラムを構成する各プロセスが処理ごとに細分化され、それぞれの処理(1~n)について、実行時間監視のための実行時間閾値が設定され、設定レジスタ115に格納されている。そして、上記図6で示したように、上記それぞれの処理には、これに対となるように代替処理が設定されており、その代替処理についても実行時間閾値が設定され、同じく設定レジスタ115に格納されている。
 図8は、上記の様な複数の処理n(処理n:但し、1≦n≦N)について、当該処理の実行時間が、所定の実行時間閾値を超過しない場合、すなわち、CPU130による処理の実行時間に異常が生じない場合の計測例と、それに合わせた本発明の実行時間監視タイマ回路111の動作を示した概念図である。
 ここで横軸は複数の処理の流れを示しており、上記図8では、一つのプロセスの処理がNだけあるとした場合に、次の周期で更に同じ処理に移行する場合も示している。また、縦軸はそれぞれの処理ごとに経過したプログラムカウンタ値乃至実行時間を示している。そのため、各処理ごとに実線により示した右上がりの斜線は、当該各処理ごとの時間の経過を表し、同じく各処理ごとに示した鎖線は各処理ごとに設定される実行時間閾値を示している。
 上記図8で示すように、実行時間監視タイマ回路111では、各処理nが開始されると共に上記実行時間監視タイマ回路111による実行時間の監視がスタート(Start)する。なお、ここで、上記実行時間の監視は上記プログラム実行監視専用回路内のタイマを用いて行われる。また、上記時間計測はプログラム実行監視回路110のタイマカウント値乃至これに基づいた実時間の演算値を相互に変換して使用するものでも良い。
 そして、上記実行時間監視タイマ回路111では、上記実行時間の経過を測定すると共に、図5乃至図6に記載したような、その処理ごとに予め設定された実行時間閾値との比較を行い、上記各処理ごとの経過時間(上記図8(A)の右上がりの実線)すなわち実行時間が、各処理ごとに予め設定された上記実行時間閾値(上記図8(A)に示した横方向の鎖線)に到達せずに終了した場合には、上記実行時間監視タイマ回路111による実行時間の監視をストップ(Stop)する。
 更に、上記のように実行時間が正常である場合には、同様の処理を一つのプロセスを構成する処理Nだけ繰り返し、次のプロセス乃至次の周期の処理に移行する。また、上記の処理は、全て本プログラム実行監視専用回路110により、予め設定された情報に基づいて、自動的に行うことが可能である。なお、上記実行時間の監視において、上記各処理ごとの実行時間閾値などの設定情報は予め設定レジスタ115等に入力しておき必要に応じてこれを読み取り用いられるものであり、上記プログラム実行監視専用回路110のハードウェアタイマとCPUのクロックとは予め必要に応じて同期をとっておいても良い。
 一方、図9は、上記と同様に構成される図であるが、上記図8の場合とは異なり、実行時間に異常が発生した場合の計測例と、それに合わせた本発明の実行時間監視タイマ回路111の動作を示した概念図である。
 上記図9で示すように、上記図8で示した場合と同様に、実行時間監視タイマ回路111では、各処理nが開始されると共に上記実行時間監視タイマ回路111による実行時間の監視がスタート(Start)する。
 そして、上記実行時間監視タイマ回路111では、上記と同様に、上記実行時間の経過を測定すると共に、その処理ごとに予め設定された実行時間閾値との比較を行い、上記各処理ごとの経過時間(上記図9の右上がりの実線)すなわち実行時間が、各処理ごとに予め設定された実行時間閾値(上記図9に示した横方向の鎖線)に到達するか否かを監視する。
 そして、例えば、上記図9の処理2において示したように、上記処理の実行時間が予め設定された実行時間閾値に達した場合には、実行時間異常発生として本プログラム実行監視専用回路によって、割込みがCPU130に通知され、割込み処理を行う。
 上記割込み処理は、上記異常が生じたと判定された処理を代替処理に置き換えて実行する処理である。そのため、例えば、上記図9の処理2を例にとると、図6に示したように、処理2の処理の実行時間が120[μS]に到達し、実行時間に異常が有ると判断された場合には、上記処理2を適切に中断し、処理2の代替処理が割込みにより行われる。なお、ここで、割込み処理自体はソフトウェアによる処理である。
 そして、上記の代替処理が終了し、割込みを抜けた場合には、図9で示したよう次の処理3に移行し、通常の監視状態に移行する。また、上記のように、代替処理の行われた処理については、次の周期の処理では、当該処理を代替処理に置き換えて実行される。そのため、例えば、上記処理2については、図9で示したように、プロセスの次の実行周期では、最初から処理2の代替処理が行われ、プログラム実行監視専用回路110による実行時間の監視は、当該代替処理について設けられた、例えば図6に示す代替処理実行時間閾値に基づいて行うことも可能である。
 次に、図10を用いて、図9に示したような処理の一つ(例えば処理N)について、当該処理の実行時間が、所定の実行時間閾値を超過した場合、すなわち、異常が生じた場合の実行時間監視タイマ回路111での処理の流れについて説明する。
 上記の図9の場合などのように、上記CPU130での処理Nの処理が、上記実行時間閾値で設定された時間内に終了していない場合(実行時間が実行時間閾値と等しくなった場合)は、上記実行時間監視タイマ回路111のタイマストップが行われないためタイムアウトとなり、割込み処理が行われる。
 図10は、そのような割込み処理の流れの概要を示したフローチャートである。
 上記割込み処理では、最初に、割込み禁止処理を行う(ステップS20)。これは、本プログラム実行監視専用回路による指示に基づいた割込み動作中に、さらに、別の割込みがCPU130に指示され、多重割込みが生ずることを防止するためである。
 そして、上記割込み禁止を行った後には、実行中の処理の検索処理が行われる(ステップS21)。
 これは、割込みを行った処理が、例えば、図6に記載した処理の何番目の処理であるかを設定レジスタ115などから読み出すと共に、あわせて、当該処理が代替処理でないか否かの判断を行うための情報を取得するものである。
 そして、上記読み取った情報をもとに、割込みを行った実行中の処理が代替処理でないか否かの判定を行う(ステップS22)。これは、上記実行中の処理が代替処理の場合に、さらに同じ代替処理を行うことによって、処理が無限ループに陥る可能性を排除するためである。そのため、上記判定により、実行中の処理が代替処理であると判定された場合には、異常終了として割込み処理を終了し、ハードウェアアラームなどを起動する信号を外部ポートに出力する(ステップS30)。一方、実行中の処理が代替処理でないと判定された場合には、次のステップS23へ移行する。
 ステップ23は、実行中の処理を代替処理で置き換えるよう、CPU130の命令コードや関数実行テーブル等の内容を組み替える処理である。上記代替処理は、図6に記載されるように、それぞれの処理ごとに予め設定されているため、上記設定に基づいて組換えが行われる。
 そして、さらにステップ24では、代替処理の実行時間や順序を監視するために、プログラム実行監視専用回路110の設定レジスタ115等の再設定を行うものである。そのためここでは、後の参照のために、実行中であった処理の次の処理の処理アドレスや、代替処理の処理アドレスや代替処理実行時間閾値などの情報が当該設定レジスタ115等に記録される。
 そして、上記の代替処理が行われると、処理Nの演算値のチェック処理が行われる(ステップS25)。これは、代替処理を行った処理Nの演算値が異常かどうかの判断を行うものであり(ステップS26)、その判断は、上記代替処理に基づく処理Nの演算値が、予め設定された所定の閾値内にあるか否かなどにより行われる。そして、上記処理Nの演算値に異常が有ると判断される場合には、上記処理Nの演算値をデフォルト値で置き換え(ステップS27)、上記処理Nの演算値に異常がないと判断される場合にはステップS28へ移行する。
 そして、ステップS28では、CPU130のプログラムカウンタを処理N+1の先頭に設定し、ステップS20で禁止した、他の割込みを許可する指示を行い(ステップ29)上記プログラム実行監視回路による割込みを終了させる。
 本発明では、上記のように実行時間の監視を行うことで、処理Nの実行時間が所定の実行時間閾値を超過した場合には、プログラムの実行を停止することなく、代替処理を行って制御の継続を行うことが可能である。そして、本発明は、上記プログラムの実行監視をMCUの内部に実装したプログラム実行監視専用回路により行っており、上記回路は命令バスからの命令フェッチアドレスやCPU内のプログラムカウンタなどの情報を元に、現在どのプログラムを実行しているかを知ることができると共に、これにより、予め処理1~Nの先頭アドレス及び実行時間の上限閾値を設定レジスタに登録しておくと上記専用回路内のタイマを用いて、ほぼ自動的に実行時間を計測することが可能である。
 なお、本発明の上記実施形態は、本発明の実施例を例示したものでありこれに限定されるものではない。したがって、本発明の趣旨に反しない限り、様々な構成により実施が可能である。
 例えば、上記実行時間の監視について、他の割込みによる処理の遅延を考慮した構成とする事も可能である。そのため、センサ情報取得時などで汎用的な割込み処理を使用する場合で、割込み処理時間を処理Nに含めたくない場合は、ハードウェアがCPUの情報を取得して割込みの間、実行時間のタイマカウンタをストップ(維持)するような仕組みを実装しても良く、もしくは、割込み中、上記タイマカウンタをストップするか、若しくは継続するか否かを選択できるようにしても良い。
 また、実行時間の計測は上記の例では、処理Nから処理N+1まで行うが、例えば、処理Nだけの実行時間若しくは処理Nと処理N+2など、連続しない処理の実行時間を計測したい場合もある。その場合には、上記プログラム実行監視専用回路内のレジスタに処理Nの開始アドレスに加えて「終了アドレス」を加え、当該「終了アドレス」に達したら計測を終了するようにしても良い。
 また、更に、割込み処理内の実行時間を計測するために、通常処理(周期処理)と割込み処理で設定レジスタを分けられるように構成する事も可能である。
 以上のように、本発明の車載用電子機器の制御装置及び方法によれば、上記の様な、車載用電子機器の制御プログラムの異常な実行状態を監視して、上記異常な状態が検出された場合には代替処理を行って、上記制御を継続して行うことが可能である。
 そのため、本発明の車載用電子機器の制御装置及び方法を、例えば、電動パワーステアリング装置の制御に用いた場合には、その制御装置に異常が生じたと判断された場合であっても、継続して操舵アシストを行うことが可能である。
 1     ハンドル
 2     コラム軸(ステアリングシャフト、ハンドル軸)
 3     減速機構
 4a 4b ユニバーサルジョイント
 5     ピニオンラック機構
 6a 6b タイロッド
 7a 7b ハブユニット
 8L 8R 操向車輪
 10    トルクセンサ
 11    イグニションキー
 12    車速センサ
 13    バッテリ
 14    舵角センサ
 20    モータ
 30    コントロールユニット(ECU)
 31    マイクロコントロールユニット(MCU)
 33    リレー
 35    モータ駆動回路
 37    モータ電流検出回路
 39    舵角検出回路
 110   プログラム実行監視専用回路
 111   実行時間監視タイマ回路
 113   実行順序監視比較回路
 115   設定レジスタ
 117   その他の付属回路
 130   CPU
 150   ROM
 170   RAM
 190   ペリフェラル
 

 

Claims (10)

  1.  車載用電子機器の制御装置であって、前記制御装置には、前記車載用電子機器の制御プログラムが実行するタスクの実行順序と実行時間とを監視するプログラム実行監視専用回路を実装したことを特徴とする車載用電子機器の制御装置。
  2.  前記プログラム実行監視専用回路は、前記タスクの実行順序が予め設定された順序と異なる場合、又は/及び、前記タスクの実行時間が予め設定された閾値を超えた場合に、予め設定された信号を出力する請求項1に記載の車載用電子機器の制御装置。
  3.  前記予め設定された信号が出力された場合には、代替処理を行い、前記車載用電子機器の制御を継続することが可能な請求項1又は2に記載の車載用電子機器の制御装置。
  4.  前記プログラム実行監視専用回路は、車載用MCUに備えられている請求項1乃至3のいずれか1項に記載の車載用電子機器の制御装置。
  5.  前記車載用電子機器は電動パワーステアリング装置である請求項1乃至4のいずれか1項に記載の車載用電子機器の制御装置。
  6.  車載用電子機器の制御プログラムが実行するタスクの実行順序と実行時間とを監視するプログラム実行監視専用回路を用いて、前記車載用電子機器の制御プログラムの実行状態を監視することを特徴とする車載用電子機器の制御方法。
  7.  前記車載用電子機器の制御プログラムの実行状態の監視は、前記制御プログラムが実行する前記タスクの実行順序が予め設定された順序と異なる場合、又は/及び、前記タスクの実行時間が予め設定された閾値を超えた場合に、予め設定された信号を出力することにより行う、請求項6に記載の車載用電子機器の制御方法。
  8.  前記予め設定された信号が出力された場合には、代替処理を行うことにより、前記車載用電子機器の制御を継続することが可能な請求項6又は7に記載の車載用電子機器の制御方法。
  9.  前記プログラム実行監視専用回路は、車載用MCUに備えられている請求項6乃至8のいずれか1項に記載の車載用電子機器の制御方法。
  10. 前記車載用電子機器は電動パワーステアリング装置である請求項6乃至9のいずれか1項に記載の車載用電子機器の制御方法。
PCT/JP2014/075396 2014-09-25 2014-09-25 車載用電子機器の制御装置及び制御方法 WO2016046931A1 (ja)

Priority Applications (21)

Application Number Priority Date Filing Date Title
BR112016003514-3A BR112016003514A2 (pt) 2014-09-25 2014-09-25 aparelho de controle e método de controle de equipamentos eletrônicos instalados em veículos
US14/782,037 US9796415B2 (en) 2014-09-25 2014-09-25 Control apparatus and control method of on-vehicle electronic equipment
EP14886669.2A EP3023304B1 (en) 2014-09-25 2014-09-25 Vehicle-mounted electronic device control device and control method
CN201480016866.XA CN105980214B (zh) 2014-09-25 2014-09-25 车载用电子设备的控制装置和控制方法
PCT/JP2014/075396 WO2016046931A1 (ja) 2014-09-25 2014-09-25 車載用電子機器の制御装置及び制御方法
JP2015541355A JP5846342B1 (ja) 2014-09-25 2014-09-25 車載用電子機器の制御装置及び制御方法
CN201580051307.7A CN106794810B (zh) 2014-09-25 2015-09-18 车载用电子设备的控制装置以及控制方法
JP2016550165A JP6164374B2 (ja) 2014-09-25 2015-09-18 車載用電子機器の制御装置及び制御方法
PCT/JP2015/076625 WO2016047575A1 (ja) 2014-09-25 2015-09-18 車載用電子機器の制御装置及び制御方法
US15/312,306 US10017205B2 (en) 2014-09-25 2015-09-18 Control apparatus and control method of on-vehicle electronic equipment
CN201580050289.0A CN106794809B (zh) 2014-09-25 2015-09-18 车载用电子设备的控制装置以及控制方法
EP15843261.7A EP3199407B1 (en) 2014-09-25 2015-09-18 Control device and control method for on-vehicle electronic apparatus
JP2016550164A JP6164373B2 (ja) 2014-09-25 2015-09-18 車載用電子機器の制御装置及び制御方法
EP15844897.7A EP3199408A4 (en) 2014-09-25 2015-09-18 Control device and control method for on-vehicle electronic apparatus
US15/312,275 US9889881B2 (en) 2014-09-25 2015-09-18 Control apparatus and control method of on-vehicle electronic equipment
PCT/JP2015/076626 WO2016047576A1 (ja) 2014-09-25 2015-09-18 車載用電子機器の制御装置及び制御方法
JP2017121195A JP6350724B2 (ja) 2014-09-25 2017-06-21 車載用電子機器の制御装置及び制御方法
JP2017121194A JP6311829B2 (ja) 2014-09-25 2017-06-21 車載用電子機器の制御装置及び制御方法
JP2017121186A JP6311827B2 (ja) 2014-09-25 2017-06-21 車載用電子機器の制御装置及び制御方法
JP2017121190A JP6350723B2 (ja) 2014-09-25 2017-06-21 車載用電子機器の制御装置及び制御方法
JP2017121192A JP6311828B2 (ja) 2014-09-25 2017-06-21 車載用電子機器の制御装置及び制御方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/075396 WO2016046931A1 (ja) 2014-09-25 2014-09-25 車載用電子機器の制御装置及び制御方法

Publications (1)

Publication Number Publication Date
WO2016046931A1 true WO2016046931A1 (ja) 2016-03-31

Family

ID=55169204

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/075396 WO2016046931A1 (ja) 2014-09-25 2014-09-25 車載用電子機器の制御装置及び制御方法

Country Status (6)

Country Link
US (1) US9796415B2 (ja)
EP (1) EP3023304B1 (ja)
JP (1) JP5846342B1 (ja)
CN (1) CN105980214B (ja)
BR (1) BR112016003514A2 (ja)
WO (1) WO2016046931A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200068702A (ko) * 2017-10-10 2020-06-15 크로노-세이프 실시간 작업들 간에 저지연 통신을 보장하는 시퀀싱 계획들을 실행하는 방법
JP7109621B1 (ja) 2021-05-06 2022-07-29 三菱電機株式会社 制御システム
WO2022180893A1 (ja) * 2021-02-24 2022-09-01 日立Astemo株式会社 制御装置及び制御方法

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106794809B (zh) * 2014-09-25 2018-02-13 日本精工株式会社 车载用电子设备的控制装置以及控制方法
JP6164374B2 (ja) * 2014-09-25 2017-07-26 日本精工株式会社 車載用電子機器の制御装置及び制御方法
WO2018052036A1 (ja) * 2016-09-16 2018-03-22 日本精工株式会社 電動パワーステアリング装置
FR3083884B1 (fr) * 2018-07-16 2021-06-11 Airbus Helicopters Procede de gestion d'un systeme de pilotage automatique equipant un aeronef
JP7419658B2 (ja) * 2019-02-25 2024-01-23 株式会社デンソー センター装置、データ配信システム、制限実施プログラム及び制限実施方法
JP6889196B2 (ja) * 2019-03-15 2021-06-18 矢崎総業株式会社 車両用通信システム
JP2024014071A (ja) * 2022-07-21 2024-02-01 株式会社ジェイテクト 車両用制御装置及び車両用制御方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06324914A (ja) * 1993-05-13 1994-11-25 Fuji Electric Co Ltd コンピュータの暴走検出方法
JPH10198584A (ja) * 1997-01-14 1998-07-31 Nippon Steel Corp アプリケーションソフトウェアの異常監視装置
JP2001175497A (ja) * 1999-12-14 2001-06-29 Hyundai Motor Co Ltd ロジック診断方法
JP2006090356A (ja) 2004-09-21 2006-04-06 Denso Corp 車両制御装置、および処理負荷制御プログラム。
JP2009113618A (ja) 2007-11-06 2009-05-28 Nsk Ltd 電動パワーステアリング装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1312504A (en) * 1970-05-20 1973-04-04 Ibm Control unit for serial data storage apparatus
US7028819B2 (en) * 1996-02-21 2006-04-18 Hitachi, Ltd. Device and method for supplying power to a vehicle, semi-conductor circuit device for use in the same and collective wiring device for a vehicle or an automobile
JP4037617B2 (ja) * 2001-03-16 2008-01-23 株式会社東芝 欠陥検索方法
US6952795B2 (en) * 2001-09-24 2005-10-04 Motorola, Inc. Method and apparatus for verifying the integrity of control module operation
JP5267186B2 (ja) * 2009-02-13 2013-08-21 日本精工株式会社 電動パワーステアリング装置
JP5569752B2 (ja) * 2011-12-08 2014-08-13 株式会社デンソー 電子制御装置、および、これを用いた電動パワーステアリング装置
JP5853691B2 (ja) * 2011-12-28 2016-02-09 アイシン・エィ・ダブリュ株式会社 車両用制御装置および方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06324914A (ja) * 1993-05-13 1994-11-25 Fuji Electric Co Ltd コンピュータの暴走検出方法
JPH10198584A (ja) * 1997-01-14 1998-07-31 Nippon Steel Corp アプリケーションソフトウェアの異常監視装置
JP2001175497A (ja) * 1999-12-14 2001-06-29 Hyundai Motor Co Ltd ロジック診断方法
JP2006090356A (ja) 2004-09-21 2006-04-06 Denso Corp 車両制御装置、および処理負荷制御プログラム。
JP2009113618A (ja) 2007-11-06 2009-05-28 Nsk Ltd 電動パワーステアリング装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3023304A4

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200068702A (ko) * 2017-10-10 2020-06-15 크로노-세이프 실시간 작업들 간에 저지연 통신을 보장하는 시퀀싱 계획들을 실행하는 방법
JP2020537269A (ja) * 2017-10-10 2020-12-17 クロノ−セーフ リアルタイムタスク間の低レイテンシ通信を保証する順序付け計画を実行するための方法
JP7266590B2 (ja) 2017-10-10 2023-04-28 クロノ-セーフ リアルタイムタスク間の低レイテンシ通信を保証する順序付け計画を実行するための方法
KR102602151B1 (ko) 2017-10-10 2023-11-15 크로노-세이프 실시간 작업들 간에 저지연 통신을 보장하는 시퀀싱 계획들을 실행하는 방법
WO2022180893A1 (ja) * 2021-02-24 2022-09-01 日立Astemo株式会社 制御装置及び制御方法
JP7109621B1 (ja) 2021-05-06 2022-07-29 三菱電機株式会社 制御システム
JP2022172517A (ja) * 2021-05-06 2022-11-17 三菱電機株式会社 制御システム

Also Published As

Publication number Publication date
EP3023304A4 (en) 2017-03-29
US9796415B2 (en) 2017-10-24
CN105980214A (zh) 2016-09-28
EP3023304A1 (en) 2016-05-25
BR112016003514A2 (pt) 2021-04-13
EP3023304B1 (en) 2018-01-31
JP5846342B1 (ja) 2016-01-20
US20170197655A1 (en) 2017-07-13
JPWO2016046931A1 (ja) 2017-04-27
CN105980214B (zh) 2018-01-30

Similar Documents

Publication Publication Date Title
JP6311828B2 (ja) 車載用電子機器の制御装置及び制御方法
JP5846342B1 (ja) 車載用電子機器の制御装置及び制御方法
JP6350724B2 (ja) 車載用電子機器の制御装置及び制御方法
JP2009113618A (ja) 電動パワーステアリング装置
JP6311693B2 (ja) 車載用電子機器の制御装置及び制御方法
JP6020765B2 (ja) 車載用電子機器の制御装置及び制御方法
JP6540227B2 (ja) 車両用制御装置
JP6481788B2 (ja) 車載用電子機器の制御装置及び制御方法
JP6481789B2 (ja) 車載用電子機器の制御装置及び制御方法
US20190077451A1 (en) External watchdog with integrated backward regeneration support

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2015541355

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2014886669

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 14782037

Country of ref document: US

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

Ref document number: 14886669

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112016003514

Country of ref document: BR

REG Reference to national code

Ref country code: BR

Ref legal event code: B01E

Ref document number: 112016003514

Country of ref document: BR

Free format text: APRESENTE O COMPLEMENTO DO TEXTO EM PORTUGUES, ADAPTADO A NORMAVIGENTE, DO PEDIDO CONFORME DEPOSITO INTERNACIONAL INICIAL (RESUMO),CONFORME DETERMINA O ATO NORMATIVO 128/97 NO ITEM 9.2.1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01Y

Ref document number: 112016003514

Country of ref document: BR

Free format text: ANULADA A PUBLICACAO CODIGO 1.5 NA RPI NO 2501 DE 11/12/2018 POR TER SIDO INDEVIDA.

ENP Entry into the national phase

Ref document number: 112016003514

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20160219

REG Reference to national code

Ref country code: BR

Ref legal event code: B01E

Ref document number: 112016003514

Country of ref document: BR

Kind code of ref document: A2

Free format text: APRESENTE O RESUMO DO PEDIDO EM 60 DIAS

REG Reference to national code

Ref country code: BR

Ref legal event code: B01Y

Ref document number: 112016003514

Country of ref document: BR

Kind code of ref document: A2

Free format text: ANULADA A PUBLICACAO CODIGO 1.5 NA RPI NO 2600 DE 03/11/2020 POR TER SIDO INDEVIDA.

ENP Entry into the national phase

Ref document number: 112016003514

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20160219