Information processing device, vehicle, information processing method, and information processing program
The information processing device disassembles transmission frames into signals and stores them in an array with predefined IDs and occurrence counts, addressing the inefficiency of direct frame reference for vehicle information retrieval, enhancing speed and memory efficiency.
Patent Information
- Application Number
- JP2022002644
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-01-11
- Publication Date
- 2025-12-24
- Estimated Expiration
- 2042-01-11
AI Technical Summary
Existing electronic control units in vehicles take time to search for vehicle information due to the need to refer to transmission frames directly, which is inefficient.
An information processing device that disassembles transmission frames into signals, stores these signals in an array with predefined IDs, and maintains a count of signal occurrences, allowing faster and more efficient retrieval of vehicle information.
Enables quicker and more efficient searching for required vehicle information by referencing an array of stored signal values, reducing memory usage and preventing frame loss.
Smart Images

Figure 0007791719000001 
Figure 0007791719000002 
Figure 0007791719000003
Abstract
Description
[Technical Field]
[0001] The present invention relates to an information processing device that stores a signal related to a transmission frame including vehicle information, a vehicle, an information processing method, and an information processing program. [Background technology]
[0002] Patent Document 1 discloses an electronic control unit connected to an in-vehicle network system that includes multiple devices that perform frame-related communication. The electronic control unit has a first control unit and a second control unit, and the first control unit transmits a transmission frame to the second control unit if the transmission frame complies with a first rule. The second control unit also transmits the transmitted transmission frame to the in-vehicle network if the transmitted transmission frame complies with a second rule. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2021-083126 Summary of the Invention [Problem to be solved by the invention]
[0004] The electronic control unit disclosed in Patent Document 1 has a problem in that it takes time for an application to search for vehicle information to obtain it.
[0005] The present invention has been made in consideration of the above facts, and aims to provide an information processing device, vehicle, information processing method, and information processing program that allow an application that uses vehicle information to more easily search for required information by referring to an array in which values are stored for each signal, compared to referring to a transmission frame. [Means for solving the problem]
[0006] In the information processing device described in claim 1, a receiving unit receives a transmission frame including vehicle information, a disassembling unit disassembles the received transmission frame for each signal, and a storage unit stores the values of the signals in an array prepared in advance for the ID of the transmission frame and for each signal in the order of reception. According to this information processing device, an application that uses vehicle information can more easily search for required information by referring to the array in which values are stored for each signal compared to referring to the transmission frame.
[0007] The information processing device of claim 2 is the information processing device of claim 1, wherein the array has, in addition to a plurality of first elements that store the values of the signal, a second element that indicates the number of occurrences of the signal corresponding to the array, and the processor stores the value of the signal at the time of the number of occurrences in the first element corresponding to the number of occurrences.
[0008] According to the information processing device of claim 2, the initial value and the acquired value of the data can be stored separately.
[0009] The information processing device of claim 3 is the information processing device of claim 2, wherein the number of first elements in the array is set to be equal to or greater than the number of transmission frames included when the transmission frames are received at the shortest period relative to the reference period at which the processor receives the transmission frames.
[0010] According to the information processing device of claim 3, it is possible to prevent transmission frames from being dropped.
[0011] The information processing device according to claim 4 is the information processing device according to any one of claims 1 to 3, wherein the arrays are classified into data types predefined for signals.
[0012] According to the information processing device of claim 4, it is possible to save memory resources.
[0013] A vehicle described in claim 5 includes the information processing device described in any one of claims 1 to 4, and one or more control devices that transmit a transmission frame to the information processing device.
[0014] According to the vehicle described in claim 5, an application that uses vehicle information can easily search for the necessary information by referring to an array in which values are stored for each signal, compared to referring to a transmission frame.
[0015] The information processing method described in claim 6 is performed by a computer to receive a transmission frame including vehicle information, decompose the received transmission frame into signals, and store the values of the signals in an array prepared in advance for the ID of the transmission frame and for each signal in the order of reception.
[0016] According to the information processing method described in claim 6, an application that uses vehicle information can easily search for the necessary information by referring to an array in which values are stored for each signal, compared to referring to a transmission frame.
[0017] The information processing program described in claim 7 causes a computer to execute a process of receiving a transmission frame including vehicle information, breaking down the received transmission frame into signals, and storing the values of the signals in an array prepared in advance for the ID of the transmission frame and for each signal in the order of reception.
[0018] According to the information processing program described in claim 7, an application that uses vehicle information can more easily search for the necessary information by referring to an array in which values are stored for each signal, compared to referring to a transmission frame. [Effects of the Invention]
[0019] According to the present invention, an application that uses vehicle information can more easily search for required information by referencing an array in which values are stored for each signal, compared to when referring to a transmission frame. [Brief explanation of the drawings]
[0020] [Figure 1] 1 is a block diagram showing a hardware configuration of a vehicle according to an embodiment; [Figure 2] FIG. 2 is a block diagram showing a functional configuration of the vehicle-mounted device according to the embodiment. [Figure 3] FIG. 2 is a block diagram illustrating an example of data stored in a storage device according to an embodiment. [Figure 4] FIG. 2 is a schematic diagram illustrating an example of a configuration of a data type database according to the embodiment. [Figure 5] FIG. 2 is a schematic diagram illustrating an example of a configuration of a correspondence database according to the embodiment. [Figure 6] FIG. 2 is a schematic diagram illustrating an example of a configuration of an information ID database according to the embodiment. [Figure 7] FIG. 2 is a schematic diagram illustrating an example of a configuration of a first element database according to the embodiment. [Figure 8] FIG. 2 is a schematic diagram illustrating an example of a configuration of a transmission frame according to an embodiment. [Figure 9] FIG. 2 is a schematic diagram showing an example of the configuration of a sequence database according to the embodiment. [Figure 10] 10 is a flowchart illustrating an example of a determination process according to an embodiment. [Figure 11] 10 is a flowchart illustrating an example of a storage process according to an embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0021] As shown in FIG. 1, a vehicle 12 of the embodiment includes an in-vehicle device 20 as an information processing device, one or more ECUs (Electronic Control Units) 22 as control devices, and a plurality of in-vehicle devices 24.
[0022] The vehicle-mounted device 20 includes a central processing unit (CPU) 20A, a read-only memory (ROM) 20B, a random access memory (RAM) 20C, a storage 20D, and an in-vehicle communication interface (I / F) 20E. The CPU 20A, the ROM 20B, the RAM 20C, the storage 20D, and the in-vehicle communication interface 20E are interconnected via an internal bus 20G so as to be able to communicate with each other.
[0023] The CPU 20A is a central processing unit that executes various programs and controls each unit. That is, the CPU 20A reads a program from the ROM 20B or the storage 20D, and executes the program using the RAM 20C as a work area. In this embodiment, a control program 250, which will be described later, is stored in the storage 20D. By executing the control program 250, the CPU 20A functions as the determination unit 200, the receiving unit 210, the decomposition unit 220, and the storage unit 230 shown in FIG. 2 .
[0024] The ROM 20B stores various programs and various data. The RAM 20C temporarily stores programs or data as a working area. The storage 20D is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including an operating system and various data. As shown in FIG. 3, the storage 20D of this embodiment stores a control program 250, a data type database 260, a correspondence database 270, an information ID (identification) database 280, a first element database 290, and a sequence database 300. These databases will be described in detail below.
[0025] The in-vehicle communication I / F 20E is an interface for connecting to the ECU 22. The interface uses a communication standard based on the CAN (Controller Area Network) protocol. The in-vehicle communication I / F 20E is connected to the external bus 20H.
[0026] The ECU 22 includes at least an ADAS (Advanced Driver Assistance System)-ECU 22A, a steering ECU 22B, a body ECU 22C, and an information ECU 22D. The ECU 22 transmits to the vehicle-mounted device 20 a transmission frame including vehicle information such as the vehicle speed of the vehicle 12.
[0027] The ADAS-ECU 22A controls the advanced driving assistance system. A vehicle speed sensor 25 and a yaw rate sensor 26, which constitute the in-vehicle device 24, are connected to the ADAS-ECU 22A.
[0028] The steering ECU 22B controls the power steering. A steering angle sensor 27 that constitutes the in-vehicle device 24 is connected to the steering ECU 22B. The steering angle sensor 27 is a sensor that detects the steering angle of the steering wheel.
[0029] The body ECU 22C controls lights such as blinkers, etc. A blinker switch 28 constituting the in-vehicle device 24 is connected to the body ECU 22C.
[0030] The information ECU 22D controls the car navigation system, audio, etc. A GPS device 29 constituting the in-vehicle equipment 24 is connected to the information ECU 22D. The GPS device 29 is a device for measuring the current position of the vehicle 12. The GPS device 29 includes an antenna (not shown) that receives signals from GPS satellites. The GPS device 29 may be directly connected to the in-vehicle device 20.
[0031] The control program 250 as an information processing program is a program for controlling the vehicle-mounted device 20 .
[0032] The data type database 260 stores the signal data type for each transmission frame ID and signal number. For example, as shown in Fig. 4, the data types uint8, uint16, uint32, uint64, int8, int16, int32, and int64 are defined for each signal number in the transmission frame ID.
[0033] The correspondence database 270 stores a value determined for each signal data type. For example, as shown in Fig. 5, values 1 to 8 are assigned in order to the data types uint8, uint16, uint32, uint64, int8, int16, int32, and int64. As will be described later, the value determined for each signal data type corresponds to the value in the fifth digit from the right of the information ID, but is not limited to this. For example, the value determined for each signal data type may be the value in the first digit from the right of the information ID.
[0034] The information ID database 280 stores an information ID for each transmission frame ID and signal number. In this embodiment, a five-digit number is set as the information ID, and the information ID is set to a data type and its acquisition order. For example, as shown in FIG. 6, for twelve uint8s for which the value "1" is specified in the correspondence database 270, values from 10000 to 10011 are set in the order in which they appear in the signal. Similarly, for three uint16s for which the value "2" is specified in the correspondence database 270, values from 20000 to 20002 are set in the order in which they appear in the signal. Furthermore, for one int8 for which the value "5" is specified in the correspondence database 270, a value of 50000 is set. Furthermore, for two int16s for which the value "6" is specified in the correspondence database 270, values from 60000 to 60001 are set in the order in which they appear in the signal.
[0035] The first element database 290 stores a first element of the array for each occurrence of a signal corresponding to the array. Specifically, a storage array is provided as an array provided for each information ID. For example, as shown in FIGS. 6 and 9, the storage array is an array in which nine pieces of information are stored, and the second element, which is the first element of the storage array, stores the occurrence number of the signal of the target information ID. The first elements, which are the second to ninth elements of the storage array, store the signal of the target information ID. As shown in FIG. 7, the second element of the storage array stores the value of the first occurrence of the signal of the information ID. The third to ninth elements store the values of the second to eighth occurrences of the signal of the information ID, respectively.
[0036] The sequence database 300 stores sequences prepared for each data type of signal. Specifically, the sequence database 300 stores sequences classified by the value of the fifth digit from the right of the information ID and the values of the first to fourth digits from the right of the information ID.
[0037] Fig. 2 is a block diagram showing an example of the functional configuration of CPU 20A. As shown in Fig. 2, CPU 20A has a determination unit 200, a receiving unit 210, a decomposition unit 220, and a storage unit 230. Each functional configuration is realized by CPU 20A reading and executing a control program 250 stored in storage 20D.
[0038] The determination unit 200 has a function of determining an information ID to be stored in the information ID database 280. Specifically, the determination unit 200 reads out the data type of a signal stored in the data type database 260. Then, the determination unit 200 reads out the value of the fifth digit from the right of the information ID corresponding to the read data type from the correspondence database 270. The determination unit 200 then determines the value read out from the correspondence database 270 as the fifth digit from the right of the information ID to be stored in the information ID database 280. The determination unit 200 also determines the first to fourth digits from the right of the information ID as consecutive numbers starting from 0 for each data type.
[0039] The function of determining unit 200 will be described using a specific example. For example, according to data type database 260 shown in Fig. 4, the data type of the fourth signal in a transmission frame having an ID of 101 is uint8. Furthermore, according to correspondence database 270 shown in Fig. 5, the value of the fifth digit from the right of the information ID corresponding to a signal whose data type is uint8 is 1. Therefore, the fifth digit from the right of the information ID corresponding to the above signal is determined to be 1. And, since the above signal is the tenth signal to appear among signals whose data type is uint8, the information ID corresponding to the signal is determined to be 10009, as shown in Fig. 6.
[0040] The receiving unit 210 has a function of receiving a transmission frame including vehicle information via the in-vehicle communication I / F 20E. For example, the receiving unit 210 receives a transmission frame including a signal to which an ID and a signal number are associated, as shown in Fig. 8, via the in-vehicle communication I / F 20E.
[0041] The decomposing unit 220 has a function of decomposing the transmission frame received by the receiving unit 210 into individual signals.
[0042] The storage unit 230 has a function of storing the signal values decomposed by the decomposing unit 220 in a pre-prepared array for each transmission frame ID and signal in the order of reception. Specifically, the storage unit 230 acquires the transmission frame ID and signal number corresponding to the signal in the order of reception. Then, the storage unit 230 checks the information ID corresponding to the acquired transmission frame ID and signal number from the information ID database 280. In this embodiment, a five-digit value is used as the information ID. However, this is not limited to this example. The storage unit 230 then reads the array database 300 and determines the array in which to store the signal values decomposed by the decomposing unit 220 based on the fifth digit from the right and the first to fourth digits from the right of the confirmed information ID. Note that the value of the fifth digit from the right of the information ID is determined for each data type of the signal, and therefore the array is classified according to the pre-defined data type of the signal.
[0043] The storage unit 230 also acquires the number of occurrences of the signal corresponding to the determined sequence. The storage unit 230 then reads out a first element corresponding to the acquired number of occurrences from the first element database 290. The storage unit 230 then stores the signal value at the time of the above-mentioned number of occurrences in the read first element, which is the first element included in the determined sequence. The storage unit 230 also increments the number of occurrences stored in the second element, and updates the second element.
[0044] In this embodiment, the number of first elements in the array is set to be equal to or greater than the number of transmission frames included when the transmission frames are received at the shortest period relative to the reference period for receiving transmission frames by the receiving unit 210. For example, when the reference period is 50 ms and the receiving unit 210 receives the transmission frames at the shortest period of 7 ms, eight first elements are sufficient, and therefore the number of first elements is set to eight.
[0045] The function of the storage unit 230 will be described using a specific example. For example, assume that the receiving unit 210 receives the transmission frame shown in Fig. 8. In this case, by comparing Fig. 8 with the information ID database 280 shown in Fig. 6, information ID signals are acquired in the following order: 20000, 60000, 10008, 10009, 10010, 10011, 50000, 20001, 60001, 20002, 20000, 60000, 10008, 10009, 10010, 20000, 60000, 10008, 10009, and 10010. In response to this, values from 1 to 20 are stored in each signal in the order in which the information IDs were acquired.
[0046] For example, when focusing on uint8 information IDs, for the information ID "10008", signals appear in the order of 3, 13, and 18. Therefore, as shown in FIG. 9, in a storage array where the fifth digit of the information ID is 1 and the first to fourth digits are 8, values of {3, 3, 13, 18, 0, 0, 0, 0, 0} are stored. Also, when focusing on int16 information IDs, for the information ID "60000", signals appear in the order of 2, 12, and 17. Therefore, as shown in FIG. 9, in a storage array where the fifth digit of the information ID is "6" and the first to fourth digits are 0, values of {3, 2, 12, 17, 0, 0, 0, 0, 0} are stored.
[0047] (Processing flow) Next, the determination process executed by the CPU 20A in the vehicle-mounted device 20 reading the control program 250 will be described with reference to FIG.
[0048] In step S1 of FIG. 10, CPU 20A reads out the data type of the signal stored in data type database 260.
[0049] In step S2, CPU 20A determines the fifth digit from the right of the information ID to be assigned to the signal whose data type was read in step S1. Specifically, CPU 20A reads from correspondence database 270 the value of the fifth digit from the right of the information ID corresponding to the data type read in step S1, and determines this value as the fifth digit from the right of the information ID.
[0050] In step S3, the CPU 20A determines the first to fourth digits from the right of the information ID to be assigned to the signal whose data type was read out in step S1 as serial numbers starting from 0 for each data type.
[0051] In step S4, CPU 20A stores the information ID determined in steps S2 and S3 in information ID database 280 as the information ID to be assigned to the signal whose data type was read in step S1.
[0052] In step S5, CPU 20A determines whether or not information IDs have been determined for all signals whose data types are stored in data type database 260. If CPU 20A determines that information IDs have been determined for all signals whose data types are stored in data type database 260 (step S5: YES), this determination process ends. On the other hand, if CPU 20A determines that information IDs have not been determined for all signals whose data types are stored in data type database 260 (step S5: NO), the process returns to step S1.
[0053] Next, a storage process executed by the CPU 20A in the vehicle-mounted device 20 reading the control program 250 will be described with reference to FIG.
[0054] In step S11, the CPU 20A receives a transmission frame including vehicle information via the in-vehicle communication I / F 20E.
[0055] In step S12, the CPU 20A separates the transmission frame received in step S11 into individual signals.
[0056] In step S13, CPU 20A checks the information ID corresponding to the signal decomposed in step S12. Specifically, CPU 20A reads from information ID database 280 the information ID associated with the ID and signal number of the transmission frame corresponding to the decomposed signal.
[0057] In step S14, CPU 20A determines an array for storing the signal values decomposed in step S12. Specifically, CPU 20A determines an array for storing the signal values from sequence database 300 based on the fifth digit from the right and the first to fourth digits from the right of the information ID confirmed in step S13.
[0058] In step S15, CPU 20A obtains the number of occurrences of the signal corresponding to the sequence determined in step S14.
[0059] In step S16, CPU 20A reads out from first element database 290 the first element corresponding to the number of occurrences acquired in step S15.
[0060] In step S17, CPU 20A stores the value of the signal at the time of the occurrence count in the first element included in the array determined in step S14 and read out in step S16.
[0061] In step S18, CPU 20A increments the number of occurrences stored in the second element included in the array determined in step S14.
[0062] In step S19, the CPU 20A determines whether or not the values of all signals included in the transmission frame received in step S11 have been stored in the sequence database 300. If the CPU 20A determines that the values of all signals included in the received transmission frame have been stored in the sequence database 300 (step S19: YES), the CPU 20A ends this storage process. On the other hand, if the CPU 20A determines that the values of all signals included in the received transmission frame have not been stored in the sequence database 300 (step S19: NO), the CPU 20A returns to step S11.
[0063] (Summary of the embodiment) As described above, according to the vehicle-mounted device 20 of this embodiment, an application that uses vehicle information can more easily search for the necessary information by referring to an array in which values are stored for each signal, compared to referring to a transmission frame.
[0064] Here, the array of this embodiment has a plurality of first elements that store signal values, as well as a second element that indicates the number of occurrences of the signal corresponding to the array. The CPU 20A of the vehicle-mounted device 20 stores the signal value at the occurrence in the first element corresponding to the occurrence. This allows the initial value of the data to be stored separately from the acquired value.
[0065] Furthermore, the number of first elements in the array of this embodiment is set to be equal to or greater than the number of transmission frames contained when the transmission frames are received at the shortest period relative to the reference period for receiving transmission frames by the receiving unit 210. This makes it possible to prevent transmission frames from being dropped.
[0066] Furthermore, the arrays in this embodiment are classified into predefined data types for signals, which allows saving memory resources.
[0067] The vehicle 12 of this embodiment also includes an on-board device 20 and one or more ECUs 22. This allows an application that uses vehicle information to more easily search for required information by referring to an array in which values are stored for each signal, compared to referring to a transmission frame.
[0068] [remarks] In the above embodiment, the various processes executed by the CPU 20A after reading software (programs) may be executed by various processors other than a CPU. Examples of such processors include programmable logic devices (PLDs) such as field-programmable gate arrays (FPGAs), whose circuit configuration can be changed after fabrication, and application-specific integrated circuits (ASICs), which are dedicated electrical circuits that are processors with circuit configurations specifically designed to execute specific processes. The various processes may be executed by one of these processors, or by a combination of two or more processors of the same or different types (e.g., multiple FPGAs, or a combination of a CPU and an FPGA). The hardware structure of these processors is, more specifically, an electrical circuit that combines circuit elements such as semiconductor devices.
[0069] In the above embodiment, the control program 250 is pre-stored (installed) in the storage 20D, but the present invention is not limited to this. The program may be provided in a form recorded on a recording medium such as a CD-ROM (Compact Disc Read Only Memory), a DVD-ROM (Digital Versatile Disc Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via a network.
[0070] The processing flow described in the above embodiment is also an example, and unnecessary steps may be deleted, new steps may be added, or the processing order may be changed within the scope of the gist of the invention.
[0071] Furthermore, the configurations of the vehicle 12 described in the above embodiment are merely examples, and may be changed depending on the situation without departing from the spirit of the invention. [Explanation of symbols]
[0072] 12 vehicles 20 In-vehicle device (information processing device) 20A CPU (processor) 250 Control Program (Information Processing Program) 210 Receiving unit 220 Disassembly section 230 Storage Unit
Claims
1. a processor; The processor: receiving a transmission frame including vehicle information; Decomposing the received transmission frame into signals; storing a value representing the acquisition order of the signal in a sequence prepared in advance for each of the IDs of the transmission frames and the signals in the order of reception; the array has a plurality of first elements for storing the values, and a second element for indicating the number of occurrences of the signal corresponding to the array; the processor stores the value at the time of the occurrence in the first element corresponding to the occurrence; Information processing device.
2. the number of the first elements in the array is set to be equal to or greater than the number of transmission frames included when the transmission frames are received in the shortest period with respect to a reference period in which the processor receives the transmission frames; The information processing device according to claim 1 .
3. The array is classified by predefined data type for the signal.
3. The information processing device according to claim 1.
4. An information processing device according to any one of claims 1 to 3; one or more control devices that transmit transmission frames to the information processing device; A vehicle equipped with:
5. receiving a transmission frame including vehicle information; Decomposing the received transmission frame into signals; a value representing the acquisition order of the signals is stored in a predetermined array for each of the transmission frame IDs and the signals in the order of reception; The computer executes the processing, the array has a plurality of first elements for storing the values, and a second element for indicating the number of occurrences of the signal corresponding to the array; the storing step includes storing the value at the time of the occurrence count in the first element corresponding to the occurrence count; Information processing methods.
6. receiving a transmission frame including vehicle information; Decomposing the received transmission frame into signals; a value representing the acquisition order of the signals is stored in a predetermined array for each of the transmission frame IDs and the signals in the order of reception; Have the computer execute the process, the array has a plurality of first elements for storing the values, and a second element for indicating the number of occurrences of the signal corresponding to the array; the storing step includes storing the value at the time of the occurrence count in the first element corresponding to the occurrence count; Information processing program.
Citation Information
Patent Citations
Electronic control apparatus
JP2011250110A
Communication system
JP2015056822A
Method and device for simplified detection of depth images
JP2017530344A
Electronic control unit, on-vehicle network system and vehicle communication method
JP2021083126A
Illegality detection electronic control unit, car onboard network system, and illegality detection method
WO2016088304A1