In-vehicle system
10569726 ยท 2020-02-25
Assignee
Inventors
Cpc classification
B60R2300/404
PERFORMING OPERATIONS; TRANSPORTING
G06F9/4411
PHYSICS
G09G2360/08
PHYSICS
B60R1/00
PERFORMING OPERATIONS; TRANSPORTING
B60R2300/8066
PERFORMING OPERATIONS; TRANSPORTING
B60R2300/50
PERFORMING OPERATIONS; TRANSPORTING
B60R2300/406
PERFORMING OPERATIONS; TRANSPORTING
B60R16/0231
PERFORMING OPERATIONS; TRANSPORTING
G09G2370/14
PHYSICS
G09G3/2096
PHYSICS
G09G2370/12
PHYSICS
International classification
B60R16/023
PERFORMING OPERATIONS; TRANSPORTING
G09G3/20
PHYSICS
B60R1/00
PERFORMING OPERATIONS; TRANSPORTING
H04N7/18
ELECTRICITY
G07C5/08
PHYSICS
H04M1/66
ELECTRICITY
Abstract
An in-vehicle system includes a primary CPU that is mounted in a vehicle and operates on a general-purpose OS, and a peripheral device that is controlled by the primary CPU. The in-vehicle system further includes a secondary CPU that operates on a real-time OS. The secondary CPU performs an initialization process on the peripheral device at startup, and then assigns control of the peripheral device to the primary CPU.
Claims
1. An in-vehicle system comprising: a primary CPU that is mounted in a vehicle and operates on a general-purpose OS; and a peripheral device that is controlled by the primary CPU, the in-vehicle system further comprising: a secondary CPU that operates on a real-time OS; and a selector provided in the peripheral device, the selector being configured to switch an access right for the peripheral device between the primary CPU and the secondary CPU, wherein at a startup when an accessary switch in the vehicle is turned on, the access right for the peripheral device is maintained as being assigned to the secondary CPU, wherein, in response to the startup when the accessory switch is turned on, the secondary CPU performs an initialization process on the peripheral device in parallel with the primary CPU performing power supply stabilization and program booting, and then outputs a first switching signal to the selector to cause the selector to switch the access right for the peripheral device from the secondary CPU to the primary CPU, wherein, in response to a shutdown when the accessory switch is turned off, the secondary CPU outputs a second switching signal to the selector to cause the selector to switch the access right for the peripheral device from the primary CPU to the secondary CPU, in order to let the secondary CPU perform a termination process on the peripheral device and go into a standby state.
2. The in-vehicle system according to claim 1, wherein the peripheral device includes a video interface that displays an image on a display apparatus.
3. The in-vehicle system according to claim 1, wherein the peripheral device includes a media device that stores an application program of the primary CPU.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description made with reference to the accompanying drawings. In the drawings:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
EMBODIMENTS FOR CARRYING OUT INVENTION
(10) An embodiment of the present disclosure will now be described with reference to the accompanying drawings.
(11) Although not shown, the control apparatus 2 is connected to and controls, for example, a manipulating unit, a loudspeaker, a microphone, and an FPGA. Although not shown, the control apparatus 2 is further connected to and integrally manages various in-vehicle instruments, such as a navigation apparatus (navigation ECU), a GPS apparatus, an audio apparatus (audio ECU), and a reverse guide camera apparatus (camera ECU). Additionally, the control apparatus 2 (in-vehicle system 1) may be wirelessly connected to an external electronic instrument such as a mobile phone or a smartphone.
(12) As in
(13) As in
(14) The control apparatus 2 includes a primary CPU 11 and a secondary CPU 12. The primary CPU 11 operates on a general-purpose OS such as Linux (registered trademark). Meanwhile, the secondary CPU 12 operates on a real-time OS (RTOS). The primary CPU 11 and the secondary CPU 12 are communicatively connected in compliance with the USB, UART, PORT, or other standard. Further, the primary CPU 11 is connected to a boot memory 13 that stores a BSP program for starting (activating) a computer. The control apparatus 2 further includes a shared memory 14 that is accessible from both the primary CPU 11 and the secondary CPU 12.
(15) The primary CPU 11 and the secondary CPU 12 are both capable of controlling the video IF 3 and the media device 4. Further, as described in detail later with reference to operations, at system startup, that is, when the start switch (accessory switch) is turned on, the secondary CPU 12 performs an initialization process on the video IF 3 and the media device 4, and then assigns control of (switches the access right for) the video IF 3 and the media device 4 from the secondary CPU 12 to the primary CPU 11.
(16) As in
(17) Moreover, at system shutdown, that is, when the start switch (accessory switch) is turned off, the primary CPU 11 assigns control of the video IF 3 and the media device 4 to the secondary CPU 12 and performs its own shutdown process. The secondary CPU 12 performs a shutdown process on the video IF 3 and the media device 4, turns off the primary CPU 11, and goes into a standby (sleep) state.
(18) Operations performed by the above-described configuration will now be described with additional reference to
(19) It is noted that a flowchart to be described includes sections (also referred to as steps), each of which is represented, for instance, as S1 or M1. Further, each section can be divided into several sub-sections while several sections can be combined into a single section. Furthermore, each of thus configured sections can be also referred to as a device, a module, or a unique name such as an assignment section, an assignment device, an assignment module, or an assigner. Each or any combination of sections explained in the above can be achieved as (i) a software section in combination with a hardware unit (e.g., computer or CPU) or (ii) a hardware section (e.g., integrated circuit, hard-wired logic circuit), including or not including a function of a related apparatus; furthermore, the hardware section may be constructed inside of a microcomputer.
(20) As in
(21) Although the power supply controller 5 starts supplying power to the primary CPU 11, a predetermined period of time at M1 (e.g., 280 ms) is required for power supply stabilization (process (2) in
(22) Meanwhile, the secondary CPU 12 performs an initialization process on the media device 4 for application storage at S3. As in
(23) At S6, the secondary CPU 12 performs an initialization process on various devices other than the media device 4, that is, an initialization process on the video IF 3 in the current example (process (4) in
(24) Meanwhile, when the access right for the media device 4 is assigned from the secondary CPU 12 as described (S5) after completion of the program booting process at M2, the primary CPU 11 loads an application program from the media device 4 at M3. The process for loading the application program takes, for example, 1000 ms (process (6) in
(25) The primary CPU 11 to which the access right is assigned begins to exercise, for example, regular control over a plurality of devices. The secondary CPU 12, which assigned the access right to the primary CPU 11 (S8), goes into the sleep (standby) state. As is obvious from
(26) The flowchart of
(27) The primary CPU 11 performs a termination process for terminating, for example, a control program for various devices (M11). Upon completion of the termination process (Yes at M11), the primary CPU 11 sends a termination notification to the secondary CPU 12, and assigns the access right for the devices 3, 4 to the secondary CPU 12 at M12. The process for assigning the access right from the primary CPU 11 to the secondary CPU 12, which is performed upon completion of the termination process, will be described later with reference to
(28) At M13, the primary CPU 11 performs its termination process. It is determined at M14 whether the termination process is terminated. If it is terminated (Yes at M14), the primary CPU 11 notifies the secondary CPU 12 that the primary CPU 11 is terminated at M15. This concludes the process that is performed by the primary CPU 11 when the accessory switch is turned off, and allows the secondary CPU 12 to turn off the primary CPU 11 (later-described S15).
(29) Meanwhile, when the termination notification is received from the primary CPU 11 and the access right is assigned from the primary CPU 11 (M12), the secondary CPU 12 terminates its wait for the termination of the primary CPU 11 (Yes at S12), proceeds to S13, and performs a termination process on each device 3, 4 (reset, power off, etc.). At S14, the secondary CPU 12 begins to wait for a termination notification from the primary CPU 11. Upon receipt of the termination notification from the primary CPU 11 at M15 (Yes at S14), the secondary CPU 12 turns off the primary CPU 11, and performs its own termination process at S16. The secondary CPU 12 goes into the standby state (sleep state).
(30) Even at system shutdown, the primary CPU 11 assigns control of the peripheral devices 3, 4 to the secondary CPU 12 and allows the secondary CPU 12 to perform the termination process on the peripheral devices 3, 4. The termination process can be efficiently performed on the primary CPU 11, the peripheral devices 3, 4, and the secondary CPU 12 and completed in a short period of time. Further, as the peripheral devices 3, 4 can be monitored with the secondary CPU 12 placed in the standby state, the startup process for next startup can be performed in a short period of time.
(31) A procedure for switching (assigning) control of the video IF 3, which is one of the peripheral devices, between the primary CPU 11 and the secondary CPU 12 will now be described with reference to
(32) At startup (when the accessory switch is turned on), as in
(33) Operations performed at shutdown (when the accessory switch is turned off) are described below. Upon detecting that the accessory switch is off (operation (1)), the secondary CPU 12 establishes inter-CPU communication as in
(34)
(35) At startup (when the accessory switch is turned on), as in
(36) Upon detecting that the accessory switch is off (operation (1)), the secondary CPU 12 establishes inter-CPU communication as in
(37) The in-vehicle system 1 according to the present embodiment is configured so that the primary CPU 11 operating on the Linux OS controls the peripheral devices, namely, the video IF 3 and the media device 4, during a regular operation, and that the secondary CPU 12 operating on the real-time OS performs the initialization process on the video IF 3 and the media device 4 at system startup. Optimum control can be exercised by selectively among the CPU 11 and the CPU 12 using one CPU for peripheral device control at system startup and another CPU for peripheral device control during a regular operation. Thus, optimum control can be exercised.
(38) Consequently, the present embodiment provides an excellent advantageous effect of expediting the startup process of the system and reducing the time required for the completion of the startup process. For example, in the past, the time required for displaying a camera image on the display apparatus 6 when the accessory switch was turned on to exercise the function of the reverse guide camera was 3.4 seconds. Thus, the user was forced to wait for a long time. However, the present embodiment reduces such a wait time to 2 seconds or less. This is beneficial in terms of providing enhanced safety.
(39) Further, in the present embodiment, the selectors 15, 16 are provided to switch the access right for the peripheral devices 3, 4 between the primary CPU 11 and the secondary CPU 12, and are subjected to switching control of the selectors 15, 16 exercised by the switching signal from the secondary CPU 12. Therefore, control assignment can be achieved with ease.
(40) Furthermore, control of the peripheral devices 3, 4 is assigned from the primary CPU 11 to the secondary CPU 12 even at shutdown in order to let the secondary CPU 11 perform the termination process on the peripheral devices 3, 4 and go into the standby state. The shutdown process can be efficiently performed at system shutdown. Moreover, even when the accessory switch is off, the secondary CPU 12 is placed in the standby state and able to monitor the peripheral devices 3, 4. Additionally, at startup, the peripheral devices 3, 4 can be immediately started.
(41) While the present disclosure has been described with reference to embodiments thereof, it is to be understood that the disclosure is not limited to the embodiments and constructions. The present disclosure is intended to cover various modification and equivalent arrangements. In addition, the various combinations and configurations, other combinations and configurations, including more, less or only a single element, are also within the spirit and scope of the present disclosure.
(42) The foregoing embodiment has been described on the assumption that Linux is used as the general-purpose OS on which the primary CPU operates. However, the present disclosure is not limited to the use of such a general-purpose OS. Windows (registered trademark) and various other general-purpose OSes may also be used. Further, for example, the communication methods and data transmission standards enumerated so far are merely illustrative and not restrictive. Various other technologies can also be adopted. Furthermore, the foregoing embodiment has been described on the assumption that the video IF 3 and the media device 4 are used as the peripheral devices. However, the present disclosure is applicable to all devices amounted in a vehicle. Various changes can also be made to the overall hardware configuration of the in-vehicle system and to the software or hardware configuration of the control apparatus.