Vehicle-mounted device and method executed by vehicle-mounted device

By using the operating system to manage multiple threads in the on-board device to process a process and divide the task into multiple threads with fewer threads than the original number, the problem of inefficiency of the on-board device in the prior art is solved, and faster process execution is achieved speed.

CN119058560APending Publication Date: 2024-12-03TOYOTA JIDOSHA KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410451808.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-06-02
Filing Date
2024-04-16
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When performing remote control functions, existing vehicle-mounted devices rely on multiple dedicated microcomputers, resulting in system complexity and inefficiency, making it difficult to meet the technical needs of next-generation vehicles.

Method used

The operating system is used to manage multiple threads to process a process. By dividing N tasks into multiple threads with fewer threads for processing, it reduces inter-thread communication and improves process execution speed.

Benefits of technology

Through this method, the number of inter-thread communication is reduced, the process execution speed of vehicle-mounted devices is improved, and the on-board device technology of next-generation vehicles is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119058560A_ABST
    Figure CN119058560A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle-mounted device and a method executed by the vehicle-mounted device. The in-vehicle device processes one process with a plurality of threads. The process is configured so as to execute N tasks (N is at least three), and is configured so as to divide the N tasks into a plurality of threads that are less than N and process the N tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a vehicle-mounted device and a method executed by the vehicle-mounted device. Background Art

[0002] In the past, various functions such as the remote control function of the vehicle were performed by a dedicated microcomputer among a plurality of microcontrollers (microcomputers) mounted in the vehicle. For example, Japanese Patent Application Laid-Open No. 2020-125050 discloses that the vehicle starts pre-air conditioning operation according to an operation on a remote control device. Summary of the invention

[0003] In the next generation of vehicles such as electric powered cars, some functions such as the remote control function of the vehicle are managed by the operating system (OS) of the vehicle-mounted device instead of using a dedicated microcomputer. In this case, there is room for improvement in the technology of the vehicle-mounted device.

[0004] The present disclosure has been made in view of the above circumstances and aims to improve the technology of the vehicle-mounted device of the next generation vehicle.

[0005] One embodiment of the present disclosure provides a vehicle-mounted device that processes one process with multiple threads, wherein:

[0006] The process is configured to execute N tasks, and is configured to divide the N tasks into a plurality of threads less than N and process them, wherein the N is at least three.

[0007] One embodiment of the present disclosure provides a method, which is executed by a vehicle-mounted device that processes one process with multiple threads, wherein:

[0008] The process is configured to execute N tasks, where N is at least 3; and

[0009] The method includes dividing the N tasks into a plurality of threads less than N for processing.

[0010] According to one embodiment of the present disclosure, the technology of an onboard device of a next-generation vehicle is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Features, advantages, and technical and industrial significance of exemplary embodiments of the present invention will be described below with reference to the accompanying drawings, in which like reference numerals represent like elements, and in which:

[0012] Figure 1 This is a block diagram showing a schematic configuration of a system according to one embodiment of the present disclosure.

[0013] Figure 2 This is a block diagram showing a schematic hardware configuration of the vehicle-mounted device.

[0014] Figure 3 This is a block diagram showing a schematic software configuration of the vehicle-mounted device.

[0015] Figure 4 This is an example of a process for comparison with the process of the vehicle-mounted device of this embodiment.

[0016] Figure 5 This is an example of a process of the vehicle-mounted device according to this embodiment. DETAILED DESCRIPTION

[0017] Hereinafter, embodiments of the present disclosure will be described.

[0018] Summary of Implementation Methods

[0019] Reference Figure 1 , an overview of a system 1 according to an embodiment of the present disclosure is described. The system 1 includes an onboard device 10, a terminal device 20, and an information processing device 30. The onboard device 10, the terminal device 20, and the information processing device 30 are connected to a network 40 including, for example, the Internet and a mobile communication network so as to be communicable.

[0020] The vehicle-mounted device 10 is a computer mounted on a vehicle. The computer is equipped with an operating system OS. The vehicle is, for example, a car, but is not limited thereto and may be any vehicle. The car is, for example, a battery electric vehicle (BEV), a hybrid electric vehicle (HEV), a plug-in hybrid electric vehicle (PHEV), or a fuel cell electric vehicle (FCEV) that uses electricity as a power source, but is not limited thereto.

[0021] The terminal device 20 is, for example, a computer such as a personal computer (PC), a smart phone, or a tablet terminal, or a dedicated device having a function as a vehicle key, such as a vehicle portable device such as a remote control key, a smart key, a key card, etc. In the present embodiment, the terminal device 20 can communicate with the vehicle-mounted device 10, and is used by a user such as a driver of the vehicle, for example, to remotely control the vehicle.

[0022] The information processing device 30 is, for example, a computer such as a server device, and can communicate with the vehicle-mounted device 10 and the terminal device 20 via the network 40 .

[0023] First, the present embodiment will be described in outline, and will be described in detail later. The vehicle-mounted device 10 processes one process with multiple threads. The process is configured to execute N tasks, and the N tasks are processed by dividing them into a plurality of threads less than N, where N is at least three.

[0024] Thus, according to the present embodiment, when a process is operated, N tasks are divided into a plurality of threads less than N and processed, so the number of inter-thread communications is smaller than, for example, a structure in which N tasks are divided into N threads and processed. As a result, the execution speed of the process can be increased compared to a vehicle-mounted device that does not have the present embodiment. Therefore, according to the present embodiment, the technology of the vehicle-mounted device of the next generation vehicle is improved in that the execution speed of the process can be improved.

[0025] Next, each structure of the system 1 will be described in detail.

[0026] Hardware structure of vehicle-mounted device

[0027] like Figure 2 As shown, the vehicle-mounted device 10 includes a communication unit 11 , an output unit 12 , an input unit 13 , a storage unit 14 , and a control unit 15 .

[0028] The communication unit 11 includes one or more communication interfaces connected to the network 40. The communication interface corresponds to, for example, a mobile communication standard such as the fourth generation (4G) or the fifth generation (5G), but is not limited thereto. In the present embodiment, the vehicle-mounted device 10 communicates with the terminal device 20 and the information processing device 30 via the communication unit 11 and the network 40.

[0029] The output unit 12 includes one or more output devices that output information. The output device may be, for example, a display that outputs information using images, or a speaker that outputs information using sounds, but is not limited thereto. Alternatively, the output unit 12 may also include an interface for connecting to an external output device.

[0030] The input unit 13 includes one or more input devices for detecting input operations performed by the user. The input device is, for example, a physical key, an electrostatic capacitance key, a mouse, a touch panel, a touch screen integrated with the display of the output unit 12, or a microphone, but is not limited thereto. Alternatively, the input unit 13 may also include an interface for connecting an external input device.

[0031] The storage unit 14 includes one or more memories. The memory is, for example, a semiconductor memory, a magnetic memory, or an optical memory, but is not limited thereto. Each memory included in the storage unit 14 may function as, for example, a main storage device, an auxiliary storage device, or a cache memory. For example, the storage unit 14 may also store system programs, application programs, and embedded software. For example, the information stored in the storage unit 14 may also be updated using information obtained from the network 40 via the communication unit 11.

[0032] The control unit 15 includes one or more processors, one or more programmable circuits, one or more dedicated circuits, or a combination thereof. The processor is, for example, a general-purpose processor such as a central processing unit (CPU) or a graphics processing unit (GPU), or a dedicated processor specifically used for specific processing, but not limited to these. The programmable circuit is, for example, a field programmable gate array (FPGA), but not limited to this. The dedicated circuit is, for example, an application specific integrated circuit (ASIC), but not limited to this. The control unit 15 controls the overall operation of the vehicle equipped with the vehicle-mounted device 10.

[0033] Software structure of vehicle-mounted device

[0034] like Figure 3 As shown, the vehicle-mounted device 10 includes an OS 110 , a plurality of processes 120 , a plurality of threads 130 , and a plurality of tasks 140 .

[0035] The OS 110 manages the execution of multiple processes 120, the execution of multiple threads 130, and the execution of multiple tasks 140. The OS 110 includes, for example, Microsoft Windows (registered trademark), UNIX (registered trademark), Solaris (registered trademark), LINUX (registered trademark), Apple (registered trademark), MAC-OS (registered trademark), Apple iOS (registered trademark), etc., but is not limited to these.

[0036] In the present embodiment, the process 120 is triggered by a user operation on the terminal device 20, a timer start, or any other trigger. Specifically, for example, the process that is triggered by the user operation on the terminal device 20 includes a process that remotely opens and closes the vehicle door, or a process that remotely operates the vehicle air conditioner, etc., which are processes that are triggered by so-called remote control operations, but are not limited to these. In addition, for example, the process that is triggered by the timer includes a process that performs a data collection function that periodically sends the vehicle status to the information processing device 30, but is not limited to this. In addition, in Figure 3 In the example, the number of processes 120 is 2, but is not limited to 2 and may be any number greater than 1.

[0037] In this embodiment, a thread 130 is a unit of processing executed in a process 120. A plurality of threads 130 can be executed simultaneously. Figure 3 In the example, the number of threads 130 of each process 120 is 2, but it is not limited thereto and can be any number greater than 2. In addition, when the execution of a thread 130 needs to wait for the execution of other threads 130 to end (i.e., when processing in sequence), inter-thread communication is required.

[0038] In this embodiment, a task 140 is a unit of processing executed in a thread 130. Multiple tasks 140 in each thread 130 cannot be executed simultaneously, but are processed sequentially. Figure 3 In the example, the number of tasks 140 for each thread 130 is 2, but the present invention is not limited thereto. The number of tasks 140 for each thread 130 may be any number greater than 1, and the total number of tasks 140 in all threads 130 may be any number greater than 3.

[0039] Details of implementation method

[0040] Next, use Figure 4 The details of this embodiment are described with reference to an example of the process 120 of the vehicle-mounted device 10 described in FIG. 5 .

[0041] like Figure 4 5, here, an example is described in which four tasks 140-1 to 140-4 are generated by one process 120. Here, it is assumed that if the execution of the first task 140-1 is not completed, the second task 140-2 cannot be executed. In addition, it is assumed that if the execution of the second task 140-2 is not completed, the third task 140-3 and the fourth task 140-4 cannot be executed, and the third task 140-3 and the fourth task 140-4 can be executed at the same time.

[0042] illustrate Figure 4The comparative example shown. The process 120A of this comparative example is configured to divide the four tasks 140-1 to 140-4 into four threads 130-1A to 130-4A for processing. Specifically, the process 120A has a first thread 130-1A having a first task 140-1, a second thread 130-2A having a second task 140-2, a third thread 130-3A having a third task 140-3, and a fourth thread 130-4A having a fourth task 140-4.

[0043] In this case, in order to execute the second task 140-2, it is necessary to perform inter-thread communication from the first thread 130-1A to the second thread 130-2A after the execution of the first task 140-1 is completed. In addition, in order to execute the third task 140-3, it is necessary to perform inter-thread communication from the second thread 130-2A to the third thread 130-3A. Furthermore, in order to execute the fourth task 140-4, it is necessary to perform inter-thread communication from the third thread 130-3A to the fourth thread 130-4A. Therefore, a total of three inter-thread communications occur.

[0044] In contrast, Figure 5 The process 120B of this embodiment is configured to divide the four tasks 140-1 to 140-4 into two threads 130-1B to 130-2B for processing. Specifically, the process 120B includes a first thread 130-1B having a first task 140-1, a second task 140-2, and a third task 140-3, and a second thread 130-2B having a fourth task 140-4. In addition, in this embodiment, the first task 140-1, the second task 140-2, and the third task 140-3 are processed sequentially. In this way, the process 120 can also be configured to process a plurality of tasks 140 that are processed sequentially by the same thread 130.

[0045] In this case, the inter-thread communication that occurs is only the inter-thread communication from the first thread 130-1B to the second thread 130-2B necessary to execute the fourth task 140-4. Therefore, the number of inter-thread communications is smaller than that of the process 120A of the comparative example, and as a result, the execution speed of the process can be increased.

[0046] As described above, the vehicle-mounted device 10 processes one process 120 with a plurality of threads 130. The process 120 is configured to execute N tasks 140, where N is at least 3, and the process 120 is configured to divide the N tasks 140 into a plurality of threads 130 less than N and process them.

[0047] According to the above structure, when the process 120 is running, the N tasks 140 are divided into a plurality of threads 130 less than N and processed, so the number of inter-thread communications is smaller than, for example, a structure in which the N tasks 140 are divided into N threads 130 and processed. As a result, the execution speed of the process 120 can be faster than that of an on-board device that does not have this embodiment. Therefore, according to this embodiment, the technology of the on-board device of a next-generation vehicle is improved in that the execution speed of the process can be improved.

[0048] The present disclosure is described based on the drawings and embodiments, but it should be noted that those skilled in the art can also make various modifications and changes based on the present disclosure. Therefore, it is hoped that these modifications and changes are included in the scope of the present disclosure. For example, the functions included in each structural part or each step can be reconfigured logically without contradiction, and multiple structural parts or steps can be combined into one or divided.

[0049] For example, in Figure 5 In the embodiment of the present invention, the process 120B is configured to divide the four tasks 140-1 to 140-4 into two threads 130-1B to 130-2B for processing, but when the second task 140-2, the third task 140-3 and the fourth task 140-4 can be processed simultaneously, they can be processed by three threads instead of two threads. In this way, the process 120 can also be configured to divide a plurality of tasks 140 that can be processed simultaneously among N tasks into different threads 130 for processing. The reason is that when the tasks 140 that can be processed simultaneously are divided into different threads 130, the execution speed of the process 120 can sometimes be increased. In addition, in this way, the process 120 can be configured to have fewer inter-thread communications than the structure in which the N tasks 140 are divided into N threads 130 for processing. That is, the process 120 can also be configured to perform inter-thread communications more than once and less than N-2 times during the execution of the N tasks 140.

[0050] In addition, for example, it is also possible to implement an embodiment in which a general-purpose computer functions as the vehicle-mounted device 10 of the above-mentioned embodiment. Specifically, a program describing the processing contents of each function of the vehicle-mounted device 10 of the above-mentioned embodiment is stored in a memory of a general-purpose computer, and the program is read and executed by a processor. Therefore, the present disclosure can also be implemented as a program executable by a processor, or a non-temporary computer-readable medium storing the program.

Claims

1. A vehicle-mounted device, processing one process with multiple threads, wherein: The process is configured to execute N tasks, and is configured to divide the N tasks into a plurality of threads less than N and process them, wherein the N is at least three.

2. The vehicle-mounted device according to claim 1, wherein: Composed of A plurality of first tasks that can be processed simultaneously among the N tasks are divided into different threads and processed.

3. The vehicle-mounted device according to claim 1, wherein: The process is configured to process a plurality of second tasks among the N tasks in sequence using the same thread.

4. The vehicle-mounted device according to claim 1, wherein: The process is configured to perform inter-thread communication at least once and at most N-2 times during execution of the N tasks.

5. A method executed by an in-vehicle device, wherein the in-vehicle device processes a process with multiple threads, wherein: The method comprises: The process is configured to execute N tasks, where N is at least 3. The method includes dividing the N tasks into a plurality of threads less than N for processing.