On-vehicle device, setting method, and setting program
The in-vehicle device simplifies the configuration of expansion devices by using a control unit to set identifiers through switching elements, addressing the complexity of existing systems and enhancing efficiency in identifier management.
Patent Information
- Application Number
- PCT/JP2024/015083
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-04-16
- Publication Date
- 2024-10-31
AI Technical Summary
Existing in-vehicle devices require complex configurations with AD converters, threshold voltage tables, and identifier setting units on expansion devices, making them cumbersome.
An in-vehicle device and method that sets identifiers for expansion devices by using a control unit to switch on specific switching elements, allowing identifiers to be set without the need for special structures on the expansion devices, thereby simplifying the configuration.
Enables efficient identifier setting for multiple expansion devices connected to the vehicle, reducing complexity and eliminating the need for additional hardware on the devices.
Smart Images

Figure JP2024015083_31102024_PF_FP_ABST
Abstract
Description
In-vehicle device, setting method, and setting program
[0001] This application claims priority to Japanese Patent Application No. 2023-074454 filed on April 28, 2023, and incorporates by reference all of the contents of that application.
[0002] A vehicle is equipped with a variety of on-board devices, such as control system ECUs (Electronic Control Units) that control the engine, transmission, etc., body system ECUs that control headlights, power windows, etc., and information system ECUs for navigation devices, multimedia devices, etc. The on-board devices can communicate with each other using communication protocols such as CAN (Controller Area Network) or LIN (Local Interconnect Network).
[0003] Patent Document 1 discloses a main body device of a flying object provided with four slots into which propeller arms can be attached, in which resistors having different resistance values are arranged in each slot, and when a propeller arm is attached to the slot, a reference voltage value corresponding to the resistance value of the resistor is read and an ID corresponding to the reference voltage value is assigned to the propeller arm. Each propeller arm is provided with an AD converter, a threshold voltage table, and an identifier setting unit, and the AD converter AD converts the reference voltage value, and the threshold conversion unit compares the reference voltage value with multiple threshold voltages stored in the threshold voltage table, and sets the ID (CAN ID) determined as a result.
[0004] JP 2018-182673 A
[0005] An in-vehicle device according to one aspect of the present disclosure is an in-vehicle device capable of connecting multiple extension devices, and comprises: multiple connection portions for connecting the extension devices corresponding to multiple mounting positions in the vehicle for mounting the multiple extension devices; multiple switching elements provided corresponding to each of the multiple connection portions; and a control unit capable of communicating with the extension device connected to the connection portion corresponding to the switching element in the on state, wherein the control unit turns on one of the multiple switching elements and sets an identifier to the extension device connected to the connection portion corresponding to the switching element in the on state.
[0006] FIG. 1 is a diagram showing an example of an installation position of an extension device in a vehicle according to an embodiment. FIG. 2 is a diagram showing an example of a hardware configuration of an ECU according to an embodiment. FIG. 3 is a functional block diagram showing an example of a function of an ECU according to an embodiment. FIG. 4 is a block diagram showing an example of a hardware configuration of a camera, which is an extension device according to an embodiment. FIG. 5 is a diagram showing an example of a product information table. FIG. 6 is a diagram showing an example of a setting table. FIG. 7 is a sequence diagram showing an example of the operation of an ECU that sets a CAN ID to each of a plurality of cameras. FIG. 8 is a flowchart showing an example of an identifier setting sequence by an ECU according to an embodiment.
[0007] [Problem that the present disclosure aims to solve] However, in the device disclosed in Patent Document 1, components such as an AD converter, a threshold voltage table, and an identifier setting unit (processor) must be installed on the propeller arm, which is an extension device, which requires a complex configuration of the extension device.
[0008] Effect of the Present Disclosure According to the present disclosure, it is possible to set an identifier for an extension device while suppressing the complexity of the configuration of the extension device.
[0009] <Outline of Embodiments of the Present Disclosure> Below, an outline of embodiments of the present disclosure will be listed and described.
[0010] (1) An in-vehicle device according to this embodiment is an in-vehicle device capable of connecting multiple extension devices, and includes: multiple connection sections for connecting the extension devices, corresponding to multiple mounting positions in the vehicle for mounting the multiple extension devices; multiple switching elements provided corresponding to each of the connection sections; and a control unit capable of communicating with the extension devices connected to the connection sections corresponding to the switching elements in the ON state. The control unit turns on one of the multiple switching elements and assigns an identifier to the extension device connected to the connection section corresponding to the switching element in the ON state. This allows the identifier to be assigned only to the extension device connected to the connection section whose switching element is in the ON state. This eliminates the need for a special structure in the extension device for assigning the identifier, thereby reducing the complexity of the extension device configuration.
[0011] (2) In the above (1), the control unit may switch the switching elements to be turned on among the plurality of switching elements, and the setting unit may set an identifier for the extension device connected to the connection unit corresponding to the switching element in the on state. This makes it possible to set identifiers for the plurality of extension devices respectively connected to the plurality of connection units.
[0012] (3) In the above (1) or (2), the control unit may set the identifier corresponding to the connection unit to the extension device connected to the connection unit, thereby enabling the identifier to be set to the extension device according to the connection unit, i.e., the installation position in the vehicle.
[0013] (4) In any one of (1) to (3) above, the control unit may turn on the switching elements corresponding to the plurality of connection units in a predetermined order for the plurality of connection units, thereby enabling identifiers to be set in order for all connected extension devices.
[0014] (5) In the above (4), the identifier may be a CAN ID, and the setting unit may set the identifier for the multiple extension devices in order of increasing or decreasing identifier value. The smaller the CAN ID value, the higher the priority. With the above configuration, identifiers of priorities according to a predetermined order can be set for each extension device.
[0015] (6) In any one of (1) to (5) above, the switching element may be provided on a communication line for communicating with the control unit, whereby an identifier can be set for an extension device that is enabled to communicate with the control unit by turning on the switching element.
[0016] (7) In any one of (1) to (6) above, the control unit may turn on one of the plurality of switching elements as an initialization process when the in-vehicle device is started up, thereby enabling the identifier of the extension device to be set every time the in-vehicle device is started up.
[0017] (8) In any one of (1) to (6) above, the control unit may turn on one of the plurality of switching elements when detecting the connection of the extension device to the connection unit, thereby setting an identifier of the extension device when the connection of the extension device to the connection unit is detected.
[0018] (9) In the above (8), the control unit may detect the connection of the extension device to the connection unit by receiving a signal output from the extension device. This makes it possible to detect the connection of the extension device to the connection unit.
[0019] (10) In any one of (1) to (9) above, the in-vehicle device may further include a determination unit that determines whether the extension device connected to the connection unit corresponding to the switching element in the on state is a target for setting the identifier, and the setting unit may set the identifier to the extension device determined by the determination unit to be a target for setting the identification information. This makes it possible to set the identifier to the extension device for which the identifier is to be set.
[0020] (11) In the above (10), the determination unit may determine whether the extension device is a target for setting the identifier based on product information of the extension device. This makes it possible to identify the extension device to which the identifier is to be set.
[0021] (12) A setting method according to this embodiment is a setting method for an in-vehicle device to which multiple extension devices can be connected, and includes the steps of: when multiple extension devices are connected to multiple connection sections corresponding to multiple mounting positions in the vehicle for mounting the multiple extension devices, turning on one of multiple switching elements provided corresponding to each of the multiple connection sections; and setting an identifier for the extension device connected to the connection section corresponding to the on-state switching element. This makes it possible to set an identifier only for the extension device connected to the connection section whose switching element is turned on. This eliminates the need to provide the extension device with a special structure for setting the identifier, thereby reducing the complexity of the extension device configuration.
[0022] (13) A setting program according to this embodiment is a setting program used in an in-vehicle device to which multiple extension devices can be connected, and causes a computer to execute the following steps when multiple extension devices are connected to multiple connection sections corresponding to multiple mounting positions in the vehicle for connecting the multiple extension devices: turning on one of multiple switching elements provided corresponding to each of the multiple connection sections; and setting an identifier for the extension device connected to the connection section corresponding to the switching element that is turned on. This allows an identifier to be set only for the extension device connected to the connection section whose switching element is turned on. This eliminates the need to provide the extension device with a special structure for setting the identifier, thereby reducing the complexity of the extension device configuration.
[0023] The present disclosure can be realized not only as an in-vehicle device having the above-described characteristic configuration, a setting method in which characteristic processing in the in-vehicle device is performed as steps, and a setting program for causing the in-vehicle device to execute the characteristic processing, but also as an in-vehicle system including the in-vehicle device, or as a semiconductor integrated circuit in which part or all of the in-vehicle device is performed.
[0024] <Details of Embodiments of the Present Disclosure> Hereinafter, details of embodiments of the present disclosure will be described with reference to the drawings. Note that at least some of the embodiments described below may be combined in any manner.
[0025] 1 is a diagram showing an example of the installation position of an extension device in a vehicle according to an embodiment. In the embodiment, the in-vehicle device is an ECU 100 installed in a vehicle 10. The ECU 100 can be connected to cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, which are extension devices.
[0026] The mounting positions of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H on vehicle 10 are determined in advance. That is, the mounting positions of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H are respectively the center in the width direction of the front end of vehicle 10 (hereinafter also referred to as the "front center"), the left end in the width direction of the front end of vehicle 10 (hereinafter also referred to as the "front left"), the right end in the width direction of the front end of vehicle 10 (hereinafter also referred to as the "front right"), the left end in the width direction of the front end of vehicle 10 (hereinafter also referred to as the "rear center"), the left end in the width direction of the rear end of vehicle 10 (hereinafter also referred to as the "rear left"), the right end in the width direction of the rear end of vehicle 10 (hereinafter also referred to as the "rear right"), the left end in the width direction of the middle part of the front and rear of vehicle 10 (for example, the position of the left door mirror; hereinafter also referred to as the "left"), and the right end in the width direction of the middle part of the front and rear of vehicle 10 (for example, the position of the right door mirror; hereinafter also referred to as the "right")
[0027] ECU 100 is, for example, a vehicle periphery monitoring ECU for monitoring the periphery of vehicle 10. The vehicle periphery monitoring ECU synthesizes images obtained by cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H to generate a seamless bird's-eye view image of vehicle 10 viewed from above. The generated bird's-eye view image is displayed on a display device mounted on vehicle 10.
[0028] ECU 100 may be an ECU different from the vehicle periphery monitoring ECU. For example, ECU 100 may be an object detection ECU that processes images obtained by cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H to detect objects (people, vehicles, etc.) around vehicle 10, or in another example, ECU 100 may be an autonomous driving ECU that automatically drives vehicle 10 using images obtained by cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H.
[0029] The extension device is not limited to cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H. For example, the extension device may be an ultrasonic sensor. For example, ECU 100 may be a clearance sonar ECU that uses multiple ultrasonic sensors to detect the approach of vehicle 10 to an obstacle.
[0030] When ECU 100 is a vehicle periphery monitoring ECU, images from some of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H may be used for purposes other than generating bird's-eye images. For example, images from front center camera 200A and rear center camera 200D may be used for a drive recorder.
[0031] Cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H can be attached to and detached from ECU 100. Cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H are cameras that have a function for connecting to ECU 100. Cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H are, for example, cameras (genuine products) manufactured and sold by the company that manufactures and sells ECU 100. Cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H may be cameras (non-genuine products) manufactured and sold by a company other than the company that manufactures and sells ECU 100, as long as they are compatible with the connection function to ECU 100.
[0032] 2. Hardware Configuration of ECU FIG. 2 is a diagram illustrating an example of the hardware configuration of an ECU according to an embodiment. The ECU 100 includes a control circuit 110. The control circuit 110 includes a processor 101, a nonvolatile memory 102, a volatile memory 103, a communication interface (hereinafter also referred to as "communication I / F") 104, and a drive circuit 105. The processor 101, the nonvolatile memory 102, the volatile memory 103, the communication I / F 104, and the drive circuit 105 are connected to each other by a bus 106, which is a communication line. The processor 101, the nonvolatile memory 102, the volatile memory 103, the communication I / F 104, and the drive circuit 105 can transmit data to each other via the bus 106.
[0033] The volatile memory 103 is a semiconductor memory such as a static random access memory (SRAM) or a dynamic random access memory (DRAM). The non-volatile memory 102 is a flash memory, a hard disk, a read only memory (ROM), etc. The non-volatile memory 102 stores a setting program 111, which is a computer program, and data used to execute the setting program 111. The functions of the ECU 100, which will be described later, are realized when the processor 101 executes the setting program 111.
[0034] The processor 101 is, for example, a CPU (Central Processing Unit). However, the processor 101 is not limited to a CPU. The processor 101 may also be a GPU (Graphics Processing Unit). In a specific example, the processor 101 is a multi-core processor. The processor 101 may also be a single-core processor. The processor 101 is configured to be able to execute a computer program. However, the processor 101 may also be, for example, an ASIC (Application Specific Integrated Circuit) or a programmable logic device such as an FPGA (Field Programmable Gate Array). In this case, the ASIC or programmable logic device is configured to be able to execute the same function as the setting program 111.
[0035] The communication I / F 104 is a communication interface that complies with a specific communication protocol. For example, the communication protocol is a communication protocol that complies with a communication standard corresponding to a bus-type network topology. In a specific example, the communication protocol is CAN, and the communication I / F 104 is a CAN interface. However, the communication protocol may be a communication protocol that extends CAN, such as CAN FD (CAN with Flexible Data Rate). The communication I / F 104 may also be a communication I / F that complies with a communication standard corresponding to a bus-type network topology different from CAN, such as a communication I / F for LIN or FlexRay. In the following description, the communication protocol is assumed to be CAN.
[0036] The communication I / F 104 is connected to a bus 120. The bus 120 extends to the outside of the control circuit 110. The bus 120 branches into multiple branches, and first connection portions 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H of connectors are provided at the ends of each branch. The first connection portions 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H are examples of "connection portions."
[0037] Cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H are provided with second connection portions 210A, 210B, 210C, 210D, 210E, 210F, 210G, and 210H of the connector, respectively. First connection portions 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H can be connected to and disconnected from second connection portions 210A, 210B, 210C, 210D, 210E, 210F, 210G, and 210H. The first connecting portions 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H are, for example, plugs, and the second connecting portions 210A, 210B, 210C, 210D, 210E, 210F, 210G, and 210H are, for example, receptacles. However, the first connecting portions 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H may be receptacles, and the second connecting portions 210A, 210B, 210C, 210D, 210E, 210F, 210G, and 210H may be plugs.
[0038] The bus 120 includes a communication line and a power line. The communication lines of the bus 120 are shown in FIG. 2 . The bus 120 is provided with switching elements (hereinafter also referred to as “SWs”) 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H corresponding to the first connection units 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H, respectively. That is, the SW 121A is disposed in the communication line connected to the first connection unit 121A of the bus 120. The SW 121B is disposed in the communication line connected to the first connection unit 121B. The SW 121C is disposed in the communication line connected to the first connection unit 121C. The SW 121D is disposed in the communication line connected to the first connection unit 121D. SW121E is disposed in the middle of the communication line connected to first connection portion 121E. SW121F is disposed in the middle of the communication line connected to first connection portion 121F. SW121G is disposed in the middle of the communication line connected to first connection portion 121G. SW121H is disposed in the middle of the communication line connected to first connection portion 121H.
[0039] More specifically, the CAN bus is a two-wire bus including a high wire and a low wire. In a specific example, a switching element is provided for each of the high wire and the low wire of the communication line of the bus 120. For example, each of the switches 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H may be a pair of two switching elements, with a first switching element provided for the high wire and a second switching element provided for the low wire. The switching elements of one pair are simultaneously controlled to be turned on and off.
[0040] Each of the SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H is, for example, a semiconductor relay, but each of the SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H may also be a mechanical relay.
[0041] The drive circuit 105 controls each of the SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H. That is, the drive circuit 105 can turn each of the SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H on or off.
[0042] The drive circuit 105 outputs voltage signals for driving the switches 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H in accordance with commands input from the processor 101. Specifically, the drive circuit 105 outputs voltage signals that indicate two values, low and high. The low signal is a signal that turns the switches 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H to an off state, and the high signal is a signal that turns the switches 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H to an on state.
[0043] When SW122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H are in the off state, the communication lines connected to the first connection units 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H are cut off. When SW122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H are in the on state, the communication lines connected to the first connection units 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H are connected.
[0044] The setting program 111 is a program for setting a CAN ID, which is an identifier, for each of the cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H.
[0045] The non-volatile memory 102 stores a setting table 112 and a product information table 113. The setting table 112 is a table used to set a CAN ID for each of the cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H. The product information table 113 is a table that stores product information for the cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H. The setting table 112 and the product information table 113 will be described later.
[0046] Although not shown, the ECU 100 is provided with a communication I / F different from the communication I / F 104 and is capable of communicating with other ECUs mounted on the vehicle 10 .
[0047] [3. Functions of the ECU] Next, the functions of the ECU 100 will be described. Hereinafter, cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H will be collectively referred to as "cameras 200." Similarly, first connection portions 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H will be collectively referred to as "first connection portions 121." Second connection portions 210A, 210B, 210C, 210D, 210E, 210F, 210G, and 210H will be collectively referred to as "second connection portions 210." SW122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H are collectively referred to as "SW122."
[0048] FIG. 3 is a functional block diagram illustrating an example of functions of the ECU according to the embodiment.
[0049] The processor 101 of the ECU 100 executes the setting program 111 to realize the functions of a control unit 131, a determination unit 132, and a setting unit 133. The control unit 131, the determination unit 132, and the setting unit 133 are each realized by the processor 101.
[0050] The control unit 131 controls the SW 122. Specifically, the control unit 131 turns on one of the SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H, and turns off the others.
[0051] The setting unit 133 sets a CAN ID (CAN Identifier) that is an identifier for the camera 200 connected to the first connection unit 121 that corresponds to the SW 122 that is in the ON state.
[0052] That is, when the control unit 131 turns on one of the switches SW122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H and turns off the others, the first connection unit 121 corresponding to the one switch 122 that is on is connected to the communication I / F 104. The first connection unit 121 corresponding to the switch 122 that is off is not connected to the communication I / F 104.
[0053] Here, as an example, it is assumed that SW 122A is in an ON state and SWs 122B, 122C, 122D, 122E, 122F, 122G, and 122H are in an OFF state. The first connection unit 121A corresponding to SW 122A in the ON state is connected to the communication I / F 104. The first connection units 121B, 121C, 121D, 121E, 121F, 121G, and 121H corresponding to SWs 122B, 122C, 122D, 122E, 122F, 122G, and 122H in the OFF state are not connected to the communication I / F 104.
[0054] Since SW122A is in the ON state, when second connection portion 210A of camera 200A is connected to first connection portion 121A, camera 200A is able to communicate with ECU 100. On the other hand, because SW122B, 122C, 122D, 122E, 122F, 122G, and 122H are in the off state, even if second connection parts 210B, 210C, 210D, 210E, 210F, 210G, and 210H of cameras 200B, 200C, 200D, 200E, 200F, 200G, and 200H are connected to first connection parts 121B, 121C, 121D, 121E, 121F, 121G, and 121H, cameras 200B, 200C, 200D, 200E, 200F, 200G, and 200H are unable to communicate with ECU 100.
[0055] In this manner, when only camera 200A among cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H is able to communicate with ECU 100, setting unit 133 transmits the CAN ID to bus 120. The transmitted CAN ID is received by camera 200A. Camera 200A sets the received CAN ID as the CAN ID of its own device.
[0056] 4 is a block diagram showing an example of the hardware configuration of a camera 200, which is an extension device according to an embodiment. The camera 200 has a communication function using a CAN.
[0057] The camera 200 includes a processor 201, a nonvolatile memory 202, a volatile memory 203, and a communication I / F 204. The processor 201, the nonvolatile memory 202, the volatile memory 203, and the communication I / F 204 are connected to one another by a communication line, that is, a bus 205. The processor 201, the nonvolatile memory 202, the volatile memory 203, and the communication I / F 204 can transmit data to one another via the bus 205.
[0058] 4 shows only the configuration related to the communication function and the CAN ID setting function. The camera 200 also includes hardware related to the imaging function, such as an imaging element and an image processing circuit (not shown).
[0059] The volatile memory 203 is, for example, a semiconductor memory such as an SRAM or a DRAM. The non-volatile memory 202 is, for example, a flash memory, a hard disk, a ROM, etc. The non-volatile memory 202 stores, for example, a computer program (not shown) for setting a CAN ID.
[0060] The processor 201 is, for example, a CPU. However, the processor 201 is not limited to a CPU. The processor 201 may be a GPU. In a specific example, the processor 201 is a multi-core processor. The processor 201 may be a single-core processor. The processor 201 is configured to be able to execute a computer program. However, the processor 201 may be, for example, an ASIC or a programmable logic device such as an FPGA.
[0061] The communication I / F 204 is a communication interface that complies with a specific communication protocol. That is, in this embodiment, the communication I / F 204 is a CAN interface. However, the communication I / F 204 may be any communication I / F that enables communication with the ECU 100, and may be, for example, a communication I / F for LIN or FlexRay.
[0062] The communication I / F 104 is connected to the second connection unit 210 via a communication line 206. When the second connection unit 210 is connected to the first connection unit 121, the communication I / F 104 is connected to the bus 120.
[0063] When camera 200 receives the CAN ID from ECU 100, it stores CAN ID 220 in nonvolatile memory 202. As a result, camera 200 uses its own CAN ID 220 stored in nonvolatile memory 202 in communication with ECU 100 (or other ECUs).
[0064] 3 , determination unit 132 determines whether camera 200 connected to first connection unit 121 corresponding to SW 122 in the ON state is a target for setting a CAN ID. That is, determination unit 132 determines whether camera 200 connected to first connection unit 121 corresponding to SW 122 in the ON state is a camera that has a function for connecting to ECU 100. As described above, if the camera is a genuine camera or a non-genuine camera that is compatible with connection to ECU 100, determination unit 132 can determine that the camera is a target for setting a CAN ID.
[0065] In a specific example, determination unit 132 determines whether a camera is a target for setting a CAN ID based on the product information of the camera. For example, product information of cameras that have a function for connecting to ECU 100 is registered in advance in product information table 113. Using product information table 113, determination unit 132 can determine whether camera 200 connected to first connection unit 121 corresponding to SW 122 that is in the ON state is a target for setting a CAN ID.
[0066] 5 is a diagram showing an example of a product information table. The product information table 113 stores product information of cameras that have a function for connecting to the ECU 100. The product information may be, for example, the product number of the camera. In another example, the product information may be the product name or model.
[0067] In the example of FIG. 5 , product numbers "ABC011," "ABC021," "XYZ55," and so on of cameras that have a function for connecting to ECU 100 are stored in product information table 113. Camera 200 that has a function for connecting to ECU 100 transmits its own product number when connected to ECU 100 via bus 120 (i.e., when the corresponding SW 122 is turned on). Determination unit 132, for example, receives the product number transmitted from camera 200 and compares the received product number with product numbers registered in product information table 113. If a product number that matches the product number received from camera 200 exists in product information table 113, determination unit 132 determines that camera 200 is a target for setting a CAN ID. If there is no product number in the product information table 113 that matches the product number received from the camera 200, or if the product number cannot be received from the camera 200, the determination unit 132 determines that the camera 200 is not a target for setting a CAN ID.
[0068] 3 , setting unit 133 sets a CAN ID to camera 200 that has been determined by determination unit 132 to be a target for setting a CAN ID. This makes it possible for camera 200 to be used by ECU 100.
[0069] Control unit 131 sequentially switches SW 122 to be turned on among SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H, thereby sequentially switching cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H (more specifically, among cameras 200 whose second connection parts 210 are connected to first connection part 121) that are capable of communicating with ECU 100.
[0070] The setting unit 133 sequentially sets CAN IDs for the cameras 200 whose second connection units 210 are connected to the first connection units 121 corresponding to the ON SWs 122. The setting unit 133 sets different (i.e., unique) CAN IDs for each camera 200. In other words, the setting unit 133 sets a CAN ID for each camera 200 while switching between CAN IDs.
[0071] In a specific example, the setting unit 133 sets the CAN ID determined in correspondence with the first connection unit 121 to the camera 200 whose second connection unit 210 is connected to the first connection unit 121 .
[0072] For example, the setting unit 133 can use the setting table 112 to identify the CAN ID that is determined to correspond to the first connection unit 121. Fig. 6 is a diagram showing an example of the setting table. The setting table 112 shown in Fig. 6 associates the installation position of the camera 200, the SW No. that is the number of the SW 122, and the CAN ID.
[0073] As described above, the camera 200 can be mounted at eight locations: "front center," "front left," "front right," "rear center," "rear left," "rear right," "left," and "right." The "front center" mounting location is associated with SW No. "1" and CAN ID "100." The "front left" mounting location is associated with SW No. "2" and CAN ID "101." The "front right" mounting location is associated with SW No. "3" and CAN ID "102." The "rear center" mounting location is associated with SW No. "4" and CAN ID "103." The "rear left" mounting location is associated with SW No. "5" and CAN ID "104." The "rear right" mounting location is associated with SW No. "6" and CAN ID "105." The "left" mounting position is associated with SW No. "7" and CAN ID "106." The "right" mounting position is associated with SW No. "8" and CAN ID "107."
[0074] SW No. "1" is the number of SW122A. The control unit 131 can identify SW122 by the SW No. That is, the control unit 131 identifies SW No. "1" as SW122A. Similarly, SW No. "2" is the number of SW122B. SW No. "3" is the number of SW122C. SW No. "4" is the number of SW122D. SW No. "5" is the number of SW122E. SW No. "6" is the number of SW122F. SW No. "7" is the number of SW122G. SW No. "8" is the number of SW122H.
[0075] For example, when setting a CAN ID for camera 200A, which is installed in the "front center" mounting position, control unit 131 turns on SW 122A with SW No. "1." While SW 122A is on, determination unit 132 receives the product number from camera 200A and determines whether camera 200A is a target for setting a CAN ID based on the received product number. If determination unit 132 determines that camera 200A is a target for setting a CAN ID, setting unit 133 transmits CAN ID "100" to bus 120 while SW 122A is on. This sets CAN ID "100" for camera 200A.
[0076] In a specific example, the control unit 131 turns on SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H corresponding to the first connection units 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H in a predetermined order for the first connection units 121A, 121B, 121C, 121D, 121E, 121F, 121G, and 121H.
[0077] As an example, the control unit 131 turns on the SWs 122 in the order of SW Nos. "1," "2," "3," "4," "5," "6," "7," and "8" registered in the setting table 112. In other words, the control unit 131 selects SW Nos. in order from top to bottom in the setting table 112 and turns on the SWs 122 corresponding to the selected SW Nos. This sequentially turns on SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H.
[0078] The setting unit 133 sets CAN IDs to the cameras 200 in the order registered in the setting table 112. That is, the setting unit 133 sets the CAN ID "100" to the camera 200A that is located at the "front center" mounting position. Next, the setting unit 133 sets the CAN ID "101" to the camera 200B that is located at the "front left" mounting position. Next, the setting unit 133 sets the CAN ID "102" to the camera 200C that is located at the "front right" mounting position. Next, the setting unit 133 sets the CAN ID "103" to the camera 200D that is located at the "rear center" mounting position. Next, the setting unit 133 sets the CAN ID "104" to the camera 200E that is located at the "rear left" mounting position. Next, the setting unit 133 sets the CAN ID "105" to the camera 200F that is located at the "rear right" mounting position. Next, setting unit 133 sets CAN ID "106" for camera 200G, which is placed in the "left" mounting position. Next, setting unit 133 sets CAN ID "107" for camera 200H, which is placed in the "right" mounting position.
[0079] In setting table 112, the CAN ID values increase from top to bottom. That is, control unit 131 sets CAN IDs for multiple cameras 200 so that the CAN ID values increase from top to bottom. The smaller the CAN ID value, the higher the priority. On the other hand, the importance of the mounting position in setting table 112 decreases from top to bottom in FIG. 6. That is, the higher the mounting position in FIG. 6, the higher the importance. Therefore, the more important the mounting position of a camera is, the higher the priority CAN ID is set.
[0080] Returning to Figure 3, in this embodiment, when ECU 100 is started, control unit 131 performs initialization processing by turning on one of SW122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H and turning off the others.
[0081] In the following description, the process of sequentially turning on SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H and sequentially setting CAN IDs for cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H is referred to as the “identifier setting sequence.” When ECU 100 is started up, control circuit 110 executes the identifier setting sequence as initialization processing.
[0082] The start-up timing of the ECU 100 is determined according to the power source to which it is connected. That is, when the ECU 100 is connected to an ignition (IG) power source, the ECU 100 starts up when the IG of the vehicle 10 is turned on. When the ECU 100 is connected to an accessory (ACC) power source, the ECU 100 starts up when the ACC of the vehicle 10 is turned on.
[0083] 4. Operation of the ECU Next, the operation of the ECU 100 according to the embodiment will be described.
[0084] FIG. 7 is a sequence diagram showing an example of the operation of ECU 100 for setting a CAN ID to each of a plurality of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H.
[0085] 7, for each of the SWs 122A, 122B, 122C, 122D, 122E, 122F, 122G, and 122H, the dashed line indicates the off state and the solid line indicates the on state. For each of the cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, the dashed line indicates the communication disabled state and the solid line indicates the communication enabled state.
[0086] The control circuit 110 first turns on SW No. 1, SW 122A (step S11). At this time, SWs 122B, 122C, 122D, 122E, 122F, 122G, and 122H are in the off state. When the drive circuit 105 switches the voltage signal output to SW 122A from low to high, the state of SW 122A transitions from the off state to the on state. When SW 122A turns on, camera 200A, whose second connector 210A is connected to first connector 121A, enters a communication-enabled state.
[0087] Control circuit 110 transmits CAN ID "100" to bus 120 (step S12). Of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, only camera 200A receives CAN ID "100". Camera 200A stores CAN ID "100" in nonvolatile memory 202. As a result, the CAN ID of camera 200A is set to "100".
[0088] After setting CAN ID "100" in camera 200A, control circuit 110 turns SW122A to the OFF state (step S13). When drive circuit 105 switches the voltage signal output to SW122A from High to Low, SW122A transitions from the ON state to the OFF state. When SW122A turns OFF, camera 200A, whose second connector 210A is connected to first connector 121A, becomes unable to communicate.
[0089] Next, the control circuit 110 turns on SW No. 2, SW 122B (step S14). At this time, SWs 122A, 122C, 122D, 122E, 122F, 122G, and 122H are in the off state. By turning on SW 122B, camera 200B, whose second connector 210B is connected to first connector 121B, becomes ready for communication.
[0090] Control circuit 110 transmits CAN ID "101" to bus 120 (step S15). Of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, only camera 200B receives CAN ID "101". Camera 200B stores CAN ID "101" in nonvolatile memory 202. As a result, the CAN ID of camera 200B is set to "101".
[0091] After setting the CAN ID "101" in the camera 200B, the control circuit 110 turns the SW 122B to the OFF state (step S16). When the SW 122B is turned OFF, the camera 200B is placed in a communication-disabled state.
[0092] Next, the control circuit 110 turns on SW No. 3, SW 122C (step S17). At this time, SWs 122A, 122B, 122D, 122E, 122F, 122G, and 122H are in the off state. By turning on SW 122C, camera 200C, whose second connector 210C is connected to first connector 121C, becomes ready for communication.
[0093] Control circuit 110 transmits CAN ID "102" to bus 120 (step S18). Of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, only camera 200C receives CAN ID "102". Camera 200C stores CAN ID "102" in nonvolatile memory 202. As a result, the CAN ID of camera 200C is set to "102".
[0094] After setting the CAN ID "102" in the camera 200C, the control circuit 110 turns the SW 122C to the OFF state (step S19). When the SW 122C is turned OFF, the camera 200C is placed in a communication-disabled state.
[0095] Next, the control circuit 110 turns on SW No. 4, SW 122D (step S20). At this time, SWs 122A, 122B, 122C, 122E, 122F, 122G, and 122H are in the off state. When SW 122D turns on, camera 200D, whose second connector 210D is connected to first connector 121D, becomes ready for communication.
[0096] Control circuit 110 transmits CAN ID "103" to bus 120 (step S21). Of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, only camera 200D receives CAN ID "103." Camera 200D stores CAN ID "103" in nonvolatile memory 202. As a result, the CAN ID of camera 200D is set to "103."
[0097] After setting the CAN ID "103" in the camera 200D, the control circuit 110 turns the SW 122D to the OFF state (step S22). When the SW 122D is turned OFF, the camera 200D is placed in a communication-disabled state.
[0098] Next, the control circuit 110 turns on SW No. 5, SW 122E (step S23). At this time, SWs 122A, 122B, 122C, 122D, 122F, 122G, and 122H are in the off state. By turning on SW 122E, camera 200E, whose second connector 210E is connected to first connector 121E, becomes communicable.
[0099] Control circuit 110 transmits CAN ID "104" to bus 120 (step S24). Of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, only camera 200E receives CAN ID "104". Camera 200E stores CAN ID "104" in nonvolatile memory 202. As a result, the CAN ID of camera 200E is set to "104".
[0100] After setting the CAN ID "104" in the camera 200E, the control circuit 110 turns the SW 122E to the OFF state (step S25). When the SW 122E is turned to the OFF state, the camera 200E is placed in a communication-disabled state.
[0101] Next, the control circuit 110 turns on SW No. 6, SW 122F (step S26). At this time, SWs 122A, 122B, 122C, 122D, 122E, 122G, and 122H are in the off state. By turning on SW 122F, the camera 200F, whose second connector 210F is connected to the first connector 121F, becomes communicable.
[0102] Control circuit 110 transmits CAN ID "105" to bus 120 (step S27). Of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, only camera 200F receives CAN ID "105". Camera 200F stores CAN ID "105" in nonvolatile memory 202. As a result, the CAN ID of camera 200F is set to "105".
[0103] After setting the CAN ID "105" in the camera 200F, the control circuit 110 turns the SW 122F to the OFF state (step S28). When the SW 122F is turned OFF, the camera 200F is placed in a communication-disabled state.
[0104] Next, the control circuit 110 turns on SW No. 7, SW 122G (step S29). At this time, SWs 122A, 122B, 122C, 122D, 122E, 122F, and 122H are in the off state. By turning on SW 122G, the camera 200G, whose second connector 210G is connected to the first connector 121G, becomes communicable.
[0105] Control circuit 110 transmits CAN ID "106" to bus 120 (step S30). Of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, only camera 200G receives CAN ID "106." Camera 200G stores CAN ID "106" in nonvolatile memory 202. As a result, the CAN ID of camera 200G is set to "106."
[0106] After setting the CAN ID "106" in the camera 200G, the control circuit 110 turns the SW 122G to the OFF state (step S31). When the SW 122G is turned to the OFF state, the camera 200G is placed in a communication-disabled state.
[0107] Next, the control circuit 110 turns on the SW No. 8, SW 122H (step Sd32). At this time, SWs 122A, 122B, 122C, 122D, 122E, 122F, and 122G are in the off state. When SW 122H turns on, the camera 200H, whose second connector 210H is connected to the first connector 121H, becomes communicable.
[0108] Control circuit 110 transmits CAN ID "107" to bus 120 (step S33). Of cameras 200A, 200B, 200C, 200D, 200E, 200F, 200G, and 200H, only camera 200H receives CAN ID "107". Camera 200H stores CAN ID "107" in nonvolatile memory 202. As a result, the CAN ID of camera 200H is set to "107".
[0109] After setting the CAN ID "107" in the camera 200H, the control circuit 110 turns the SW 122H to the OFF state (step S34). When the SW 122H is turned to the OFF state, the camera 200H is placed in a communication-disabled state.
[0110] FIG. 8 is a flowchart illustrating an example of an identifier setting sequence performed by the ECU according to the embodiment.
[0111] When the ECU 100 is started up, the processor 101 executes an identifier setting sequence as an initialization process.
[0112] The processor 101 sets a variable i indicating the SW No. to "1" (step S101).
[0113] The processor 101 turns on the SW 122 having the SW No. i (step S102). The SWs 122 having SW Nos. other than i are in the off state.
[0114] If camera 200 connected to first connection unit 121 corresponding to SW 122 with SW No. i has a function for connecting to ECU 100, camera 200 transmits its product number. Processor 101 determines whether or not the product number has been received from camera 200 (step S103).
[0115] For example, if the product number is not received from the camera 200 within a certain period of time (NO in step S103), the processor 101 determines that the camera 200 does not have the function to connect to the ECU 100, i.e., is not a target for setting a CAN ID, and proceeds to step S108.
[0116] If a product number has been received from the camera 200 (YES in step S103), the processor 101 determines whether the received product number matches one of the product numbers registered in the product information table 113 (step S104).
[0117] If the received product number does not match any of the product numbers registered in the product information table 113 (NO in step S104), the processor 101 determines that the camera 200 does not have the function to connect to the ECU 100, i.e., is not a target for setting a CAN ID, and proceeds to step S108.
[0118] If the received product number matches one of the product numbers registered in product information table 113 (YES in step S104), processor 101 determines that camera 200 has a function for connecting with ECU 100, i.e., is a target for setting a CAN ID. Processor 101 reads the CAN ID corresponding to SW No. = i from setting table 112 (step S105).
[0119] The processor 101 sends the CAN ID read from the setting table 112 to the bus 120 (step S106). As a result, the CAN ID is set in the camera 200.
[0120] The processor 101 turns off the SW 122 whose SW No. is i (step S107).
[0121] The processor 101 determines whether i has reached the maximum value N (step S108). In the example of FIG.
[0122] If i has not reached N (NO in step S108), the processor 101 increments i by 1 (step S109) and proceeds to step S102.
[0123] If i has reached N (YES in step S108), the processor 101 ends the identifier setting sequence.
[0124] 5. Modifications The ECU 100 may start the identifier setting sequence when it detects that the camera 200 is connected to the first connection unit 121 .
[0125] For example, ECU 100 periodically turns on all SWs 122. Camera 200 connected to first connection unit 121 periodically transmits a detection signal (hereinafter also referred to as a "detection signal"). In another example, ECU 100 may transmit a request signal to bus 120, and camera 200 that receives the request signal may transmit a detection signal in response.
[0126] When the control circuit 110 (processor 101) of the ECU 100 receives the detection signal, it detects that the camera 200 has been connected. Triggered by the detection of the connection of the camera 200, the processor 101 starts an identifier setting sequence.
[0127] [6. Supplementary Note] The embodiments disclosed herein are illustrative in all respects and are not restrictive. The scope of the present invention is defined by the claims, not the above-described embodiments, and includes meanings equivalent to the claims and all modifications within the scope thereof.
[0128] 10 Vehicle 100 ECU 110 Control circuit 101 Processor 102 Non-volatile memory 103 Volatile memory 104 Communication interface (communication I / F) 105 Drive circuit 106 Bus 111 Setting program 112 Setting table 113 Product information table 120 Bus 121, 121A, 121B, 121C, 121D, 121E, 121F, 121G, 121H First connection unit 131 Control unit 132 Determination unit 133 Setting unit 200, 200A, 200B, 200C, 200D, 200E, 200F, 200G, 200H Camera 201 Processor 202 Non-volatile memory 203 Volatile memory 204 Communication interface (communication I / F) 205 Bus 206 Communication line 210, 210A, 210B, 210C, 210D, 210E, 210F, 210G, 210H Second connection portion
Claims
1. An in-vehicle device capable of connecting a plurality of expansion devices, comprising: a plurality of connection parts for connecting the expansion devices corresponding to a plurality of mounting positions in a vehicle for mounting the plurality of expansion devices; a plurality of switching elements provided corresponding to each of the plurality of connection parts; a control unit that switches one of the plurality of switching elements to an on state; and a setting unit that sets an identifier to the expansion device connected to the connection part corresponding to the switching element in the on state.
2. The in-vehicle device according to claim 1, wherein the control unit switches the switching element to be turned on among the plurality of switching elements, and the setting unit sets an identifier for the expansion device connected to the connection unit corresponding to the switching element in the on state.
3. The in-vehicle device according to claim 1, wherein the setting unit sets the identifier determined corresponding to the connection unit in the extension device connected to the connection unit.
4. The in-vehicle device according to claim 1, wherein the control unit turns on the switching elements corresponding to the plurality of connection parts in a predetermined order for the plurality of connection parts.
5. The in-vehicle device according to claim 4, wherein the identifier is a CAN ID, and the setting unit sets the identifier for the plurality of extension devices in order of increasing or decreasing identifier value.
6. The in-vehicle device according to claim 1, wherein the switching element is provided on a communication line for communicating with the control unit.
7. The in-vehicle device according to claim 1, wherein the control unit turns on one of the plurality of switching elements as an initialization process when the in-vehicle device is started up.
8. The in-vehicle device according to claim 1, wherein the control unit turns on one of the plurality of switching elements when it detects a connection of the expansion device to the connection unit.
9. The in-vehicle device according to claim 8, wherein the control unit detects the connection of the extension device to the connection unit by receiving a signal output from the extension device.
10. The in-vehicle device according to any one of claims 1 to 9, further comprising a judgment unit that judges whether the extension device connected to the connection part corresponding to the switching element in the on state is a target for setting the identifier, and the setting unit sets the identifier to the extension device that is judged by the judgment unit to be a target for setting the identification information.
11. The in-vehicle device according to claim 10, wherein the determination unit determines whether or not the extension device is a target for setting the identifier based on product information of the extension device.
12. A setting method for an in-vehicle device to which multiple expansion devices can be connected, comprising: when multiple expansion devices are connected to each of multiple connection parts for connecting the multiple expansion devices corresponding to multiple mounting positions in the vehicle for attaching the multiple expansion devices, the setting method includes the steps of: turning on one of multiple switching elements provided corresponding to each of the multiple connection parts; and setting an identifier to the expansion device connected to the connection part corresponding to the switching element in the on state.
13. A setting program used in an in-vehicle device to which multiple expansion devices can be connected, causing a computer to execute the following steps: when multiple expansion devices are connected to each of multiple connection parts for connecting the multiple expansion devices, which connection parts correspond to multiple mounting positions in the vehicle for attaching the multiple expansion devices, turning on one of multiple switching elements provided corresponding to each of the multiple connection parts; and setting an identifier to the expansion device connected to the connection part corresponding to the switching element in the on state.
Citation Information
Patent Citations
Communication control device and communication system
JP2017060057A
Communication system
JP2020062981A
Vehicle control device, vehicle system, and vehicle control method
JP2021081939A
