WO2015189877A1 - Vehicle-mounted control hub device - Google Patents

Vehicle-mounted control hub device Download PDF

Info

Publication number
WO2015189877A1
WO2015189877A1 PCT/JP2014/003153 JP2014003153W WO2015189877A1 WO 2015189877 A1 WO2015189877 A1 WO 2015189877A1 JP 2014003153 W JP2014003153 W JP 2014003153W WO 2015189877 A1 WO2015189877 A1 WO 2015189877A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
function
unit
program
storage device
Prior art date
Application number
PCT/JP2014/003153
Other languages
French (fr)
Japanese (ja)
Inventor
修一郎 千田
博仁 西山
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2014/003153 priority Critical patent/WO2015189877A1/en
Publication of WO2015189877A1 publication Critical patent/WO2015189877A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices

Definitions

  • the present invention relates to an in-vehicle control hub device for controlling an automobile device.
  • an in-vehicle control hub device mounted on an automobile data from devices such as cameras and sensors is input to an ECU (Electronic Control Unit) that uses the data through a dedicated signal line prepared for each device.
  • ECU Electronic Control Unit
  • the data from the devices are connected by the respective dedicated lines, there is a problem that the amount of wiring increases as the number of devices increases, and as a result, the vehicle weight increases.
  • each I / O device status signal is accommodated in an in-vehicle control hub device arranged in each part of the vehicle, and these nodes are connected by a network.
  • a method for controlling an I / O device is disclosed.
  • control functions such as software for controlling each installed I / O device are not separated. For this reason, in the conventional vehicle-mounted control hub device, when a function is changed, added, or deleted in a part of software, the operation timing of other functions or the operation itself may be affected.
  • the present invention has been made to solve the above-described problems, and includes a plurality of ports to which a plurality of devices are respectively connected, a port management unit that manages the plurality of ports, and the port management unit.
  • a plurality of function control units each having a first storage device loaded with a program for controlling at least one of the plurality of devices; and changing the program, adding a new program to the first storage device, or
  • a function control management unit having a second storage device having a program for deleting the program from the first storage device, and a second CPU (Central Processing Unit) for executing the program installed in the second storage device And a plurality of first CPUs for executing programs installed in the first storage device.
  • the software function of the in-vehicle control hub device can be easily changed, added or deleted.
  • FIG. 3 is an example of a configuration diagram of software that operates on the hub device 100 according to the first embodiment. It is an example of the setting of the port setting table 400 in this Embodiment 1.
  • 5 is a flowchart illustrating an operation in which the hub device 100 according to the present embodiment drives the device 301 in response to a request from the ECU 500.
  • 4 is a flowchart showing an operation of driving ECU 600 in response to a request from device 302 by hub apparatus 100 in the present embodiment.
  • 5 is a flowchart showing the operation of the hub device 100 when a function is added using a configuration tool 700 in the present embodiment. In the present embodiment, it is a flowchart showing the operation of the hub device 100 when the function is deleted using the configuration tool 700.
  • 6 is a flowchart illustrating the operation of the hub device 100 when the function is changed using the configuration tool 700 in the present embodiment.
  • FIG. 20 is an example of a configuration diagram of software that operates on the hub device 100 according to the third embodiment.
  • 10 is a flowchart illustrating an operation when a device failure occurs in the hub device 100 according to the third embodiment.
  • FIG. 20 is an example of a configuration diagram of software that operates on the hub device 100 according to the fourth embodiment.
  • 14 is a flowchart illustrating an operation when a port is added to the hub device 100 in the fourth embodiment.
  • Embodiment 1 an in-vehicle control hub device that realizes a function for controlling a body device (hereinafter referred to as function 1) and a function for controlling a safety support device (hereinafter referred to as function 2) via a network is used as an example.
  • function 1 a function for controlling a body device
  • function 2 a function for controlling a safety support device
  • FIG. 1 is an example of a hardware configuration diagram of an in-vehicle control hub device in the present embodiment.
  • a device 301 and a device 302 are devices such as sensors and actuators, and are connected to a port 108 and a port 109, respectively.
  • the device 301 is an actuator such as a door lock controlled by function 1
  • the device 302 is a sensor such as a laser scanner controlled by function 2.
  • Ports 108 and 109 are connectors for inputting and outputting signals from the devices 301 and 302 to the hub apparatus 100, respectively.
  • the hub device 100 is a device that performs device control of the function 1 and the function 2, and communicates with the ECU 500 and the ECU 600 via the network 200.
  • Device control is, for example, a function that performs signal control of a corresponding port to High or Low in accordance with a packet received from the ECU 500 via the network in the function 1, and the analog data acquired from the corresponding port in the function 2 is This is a function of converting to a predetermined digital format and sending it to the ECU 600 via a network.
  • the network 200 is a communication cable such as CAN (Controller Area Network) or Ethernet (registered trademark).
  • ECU 500 and ECU 600 are devices having a control function and a communication function that use device 301 and device 302.
  • the control function interprets a request for unlocking or locking with a physical key in function 1 or a request for unlocking or locking with a non-contact key using wireless or the like, and includes a packet including a request for unlocking or locking.
  • This is a function that requests generation and transmission, and is a function that determines the presence or absence of an obstacle from the sensor data acquired from the device 302 in function 2.
  • the config tool 700 is an apparatus that is connected to the network 200 and has data and communication functions for adding, deleting, and changing device control of function 1 or function 2 to the hub apparatus 100.
  • the configuration tool 700 is used at the time of development and maintenance at the factory or when changing the component configuration.
  • the hub device 100 also includes a plurality of hardware components such as the network controller 120, the main resource 800, the sub resource 801, the sub resource 802, and the port controller 132, which are connected by an internal bus 136.
  • the main resource 800 includes a CPU 126 for executing main processing of the hub device 100, a RAM 121 (Random Access Memory), and a ROM 122 (Read Only Memory).
  • a RAM, ROM, or a combination of RAM and ROM is referred to as a storage device.
  • the sub-resources 801 and 802 are resources for executing a program for controlling the devices 301 and 302.
  • the sub-resource 801 includes the CPU 126, the RAM 121, and the ROM 127, and the sub-resource 802 includes the CPU 128, the RAM 122, and the ROM 129. I have. Note that there may be three or more sub-resources.
  • the ROMs 131, 127, and 129 provide areas for storing fixed data in the program instruction sequence. It corresponds to a flash memory and the like, and the written program content can be rewritten.
  • the RAMs 125, 121, and 122 provide a work area for storing and referring to data used by the program.
  • the CPU 124 of the main resource 800 can read from and write to the sub-resource RAM and ROM, but the sub-resource CPU can read from the sub-resource RAM and ROM. It is assumed that writing is not possible.
  • the network controller 120 is an electronic circuit that controls communication with the network 200, such as CAN or Ethernet (registered trademark).
  • the network controller 120 receives data from the network 200, the network controller 120 stores the data in the RAM 125, the RAM 121, or the RAM 122 according to an identifier such as a CAN ID or IP address of the data. Further, the network controller 120 transmits data to the network 200 when there is a data transmission request from the CPU 122, CPU 126, or CPU 128.
  • the network controller 120 receives communication settings from the CPU 133, and adds, deletes, or changes built-in communication settings.
  • the port controller 132 is an electronic circuit that controls the port 108 and the port 109. In response to a signal output request to the CPU 126 or CPU 128 port, the port controller 132 outputs a signal to the port 108 or 109 according to the built-in port setting. Further, the port controller 132 inputs a signal to the CPU 126 or the CPU 128 according to the built-in port setting in response to a signal input request of the port 108 or the port 109. Further, the port controller 132 adds, deletes, and changes port settings in accordance with a request from the CPU 124.
  • FIG. 2 is a configuration diagram of software that operates on the hub device 100 according to the present embodiment.
  • the device 301, the device 302, the port 108, the port 109, the network 200, the ECU 500, the ECU 600, and the configuration tool 700 which are the same reference numerals as those in FIG. 1, represent the same or corresponding parts. Same as described.
  • the hub device 100 includes a communication unit 101, a function control unit 102, a function control unit 103, a function control management unit 104, a port setting unit 105, a communication setting unit 106, and a port switch unit (port management unit) 107.
  • the communication unit 101 is a program having a buffer for holding communication control for the network 200 and transmission data or reception data.
  • the communication unit 101 passes the data to the function control unit 102.
  • the communication unit 101 passes the data to the function control unit 103 and receives the data. If the processed data is the configuration tool 700, the data is transferred to the function management unit 104.
  • the communication unit 101 transmits data to the ECU 500 when receiving a data transmission instruction from the function control unit 102, and transmits data to the ECU 600 when receiving a data transmission instruction from the function control unit 103. Send.
  • the communication unit 101 has a buffer for each corresponding function.
  • the communication unit 101 reads a communication setting from the communication setting unit 106 when the hub device 100 is activated, links a communication identifier such as a CAN ID (Controller Area Network Identifier) or an IP (Internet Protocol) address, and a buffer to be used, Read the priority.
  • the function control unit 102 is a program that realizes a logic that controls the function 1
  • the function control unit 103 is a program that realizes a logic that controls the function 2.
  • the function 1 is a body function such as door lock control for receiving an unlocking or locking request from a physical key or a non-contact type key and unlocking or locking the door lock.
  • Function 2 is a safety support function such as obstacle detection for detecting obstacles around the vehicle from sensor information acquired from a laser sensor or camera sensor, for example.
  • function 1 and function 2 are not limited to these functions.
  • the function control unit 102 and the function control unit 103 are assigned to different sub-resources and executed.
  • the function control unit 102 is allocated to the sub-resource 801 and the function control unit 103 is allocated to the sub-resource 802, and each of the CPU 126 and CPU 128 executes the program.
  • the function control unit 102 and the function control unit 103 operate on different sub-resources, and therefore, it is not necessary to consider the influence on other programs due to the execution of its own program.
  • the memory area is also managed separately for each sub-resource, there is no possibility of accidentally accessing and destroying the memory area of another program.
  • the function control management unit 104 for example, logic that interprets analog data from a sensor and converts it into digital data, logic that interprets a received packet and sets a port to High or Low, etc.
  • This is a program that adds, deletes, and changes logic, communication settings, and port settings to control devices.
  • the function control unit 102 or the function control unit 103 is deleted or changed, a new function control unit is added, the port 108 or the port 109 is deleted or changed, or a new port is added.
  • setting for a port is performed by calling the port setting unit 105
  • setting for communication is performed by calling the communication setting unit 106.
  • the function control management unit 104 is assigned to the main resource 800 and executed.
  • the port setting unit 105 is a program that holds a port setting table 400 that sets the correspondence between the function control unit and each port and the data input / output direction.
  • the port setting table 400 is a table that holds port settings indicating the correspondence between the function control unit and the ports and the input / output directions.
  • the function item indicates the target function control unit.
  • the item of access IF indicates an identifier of an interface used by the function 1 controlled by the function control unit 102 or the function 2 controlled by the function control unit 103.
  • the port setting table 400 is built in the port controller 132.
  • the term “port” indicates a port which is a physical terminal accessed by the access IF.
  • the port term represents the register to which the access IF is mapped.
  • the term of input / output direction indicates the direction in which data is passed. For example, input may be used when a value is acquired from a port, output may be output when a value is output to a port, and input / output may be used when both are used.
  • the communication setting unit 106 is a program that holds parameters used in communication such as a communication identifier such as a CAN ID and an IP address, a band to be used, and a priority used when each function control unit transmits and receives data.
  • the communication setting unit 106 is built in the network controller 120.
  • the port switch unit 107 is a program for controlling the port accessed by the function control unit in accordance with the setting instruction of the port setting unit 105.
  • the function control unit 102 and the function control unit 103 access the port switch unit 107, and through the access IF, the port 108 or port 109 accesses the port 108 or port 109 via the corresponding register.
  • the port switch unit 107 is built in the port controller 132.
  • FIG. 4 is an example of a hardware configuration diagram of the in-vehicle control hub device according to the second embodiment. 4, the device 301, the device 302, the port 108, the port 109, the network 200, the ECU 500, the ECU 600, and the configuration tool 700, which are the same reference numerals as those in FIG. 1, represent the same or corresponding parts. Same as described.
  • the main resource 900 includes a CPU 133, a RAM 134, and a ROM 135 for executing processing of the hub device 100.
  • the CPU 133 is an arithmetic device that performs a plurality of different function controls, arithmetic processing time management, and functional control management. Further, the CPU 133 acquires received data from the network controller 120. In addition, the CPU 133 delivers transmission data to the network controller 120. In addition, the CPU 133 outputs a signal to the port controller 132. Further, the CPU 133 receives a signal input from the port controller 132.
  • the RAM 134 is a temporary storage device that stores data referred to by the CPU 133, and different areas are assigned to different function controls.
  • the ROM 135 is a storage device that stores a plurality of different function controls, calculation processing time management, and function control management programs that the CPU 133 refers to.
  • the network controller 120 is an electronic circuit that controls communication with the network 200, such as CAN or Ethernet (registered trademark).
  • the network controller 120 receives data from the network 200, the network controller 120 stores the data in the RAM 134 in accordance with an identifier such as a CAN ID or IP address of the data.
  • the network controller 120 transmits data to the network 200 when a data transmission request is received from the CPU 133.
  • the network controller 120 receives communication settings from the CPU 133, and adds, deletes, or changes built-in communication settings.
  • the port controller 132 is an electronic circuit that controls the port 108 and the port 109. In response to a signal output request to the port of the CPU 133, the port controller 132 outputs a signal to the port 108 or 109 according to the built-in port setting. Further, the port controller 132 inputs a signal to the CPU 133 according to the built-in port setting in response to a signal input request of the port 108 or the port 109. The port controller 132 adds, deletes, and changes port settings in accordance with requests from the CPU 133.
  • FIG. 5 is a configuration diagram of software that operates on the hub device 100 according to the present embodiment.
  • the same reference numerals as those in FIG. 2 represent the same or corresponding parts, and operations other than the scheduler unit (function management unit) 113 are the same as those described in FIG. 2 used in the first embodiment. do.
  • the scheduler unit 113 is a program that performs time management and memory management of arithmetic processing for the function control unit 102 and the function control unit 103. As the time management, the scheduler unit 113 is equally executed by, for example, the function control unit 102 and the function control unit 103 (or all function control units if there are more) as in the task scheduling process in the operating system. To be managed. In addition, when priority is set in the function control unit and an execution request is generated from a plurality of function control units at the same time, it is possible to execute the higher priority first. Further, the scheduler unit 113 separately manages memory areas accessible by the function control unit 102 and the function control unit 103 as memory management, and prohibits access to each other's memory areas. For example, the scheduler unit 113 may have a different memory access function for each of the function control unit 102 and the function control unit 103, and may determine a memory area to be accessed within the memory access function.
  • the scheduler unit manages a plurality of function control units that execute processing of a plurality of devices, so that each function control unit can execute without interfering with each other. Thereby, it is possible to change an existing function or add or delete a new function while ensuring the functional safety of the in-vehicle control hub device.
  • function 1 interprets a request for unlocking or locking with a physical key or a request for unlocking or locking with a non-contact key using wireless or the like, and includes a request for unlocking or locking
  • a function for generating and requesting transmission of a packet, Function 2 is a function for determining the presence or absence of an obstacle from the sensor data acquired from the device 302.
  • FIG. 6 is a flowchart illustrating an operation in which the hub device 100 according to the present embodiment initializes the communication unit 101 and the port switch unit 107.
  • the port switch unit 107 reads the port setting from the port setting unit 105, and sets the correspondence between the access IF and the port.
  • the communication unit 101 associates a communication identifier such as a CAN ID (Controller Area Network Identifier) or an IP (Internet Protocol) address with a buffer from the communication setting unit 106, and reads the bandwidth and priority to be used.
  • a communication identifier such as a CAN ID (Controller Area Network Identifier) or an IP (Internet Protocol) address
  • FIG. 7 is a flowchart illustrating an operation in which the hub device 100 according to the present embodiment drives the device 301 in response to a request from the ECU 500.
  • ECU 500 transmits data for driving device 301 to hub apparatus 100 to network 200.
  • the communication unit 101 in the hub device 100 receives the data transmitted from the ECU 500 from the network 200 and holds it in a reception buffer. Since the function setting unit corresponding to the reception buffer is set by the communication setting unit 106, the corresponding function control unit is called when data is input to the reception buffer. In the example of the present embodiment, the function control unit 102 is called.
  • step S202 the function control unit 102 receives the data received by the communication unit 101.
  • step S ⁇ b> 203 the function control unit 102 performs an operation according to the logic that controls the function 1 using the received data. Further, the function control unit 102 refers to the port setting table 400 and outputs a signal to IF1. For example, the function control unit 102 determines that the port is set to High or Low from the received data, and requests the IF 1 assigned to the function 1 to output High or Low.
  • step S204 the port switch unit 107 refers to the port setting table 400 and outputs a signal to the port 1 (here, the port 108) corresponding to the IF1. The signal output to the port 108 is passed to the device 301.
  • the port switch unit 107 outputs a High or Low output request received via the IF 1 to the port 1 (here, the port 108) according to the access IF and port assignment set in the port setting table 400.
  • the device 301 operates according to the signal output from the port 108.
  • FIG. 8 is a flowchart illustrating an operation in which the hub apparatus 100 according to the present embodiment drives the ECU 600 in response to a request from the device 302.
  • the device 302 receives a specific signal input and outputs sensor information as an input signal to the port 109.
  • a signal input to the port 109 is output to the port switch unit 107.
  • the port switch unit 107 refers to the port setting table 400 and outputs a signal to IF2, which is an access IF corresponding to the port 109.
  • the signal output to IF2 is input to the function control unit 103.
  • the function control unit 103 performs a control calculation using the sensor information acquired from the IF 2 according to the logic for controlling the function 2, and requests the communication unit 101 to transmit the calculation result.
  • the control calculation is a process of converting analog data input from a sensor such as a laser scanner into predetermined digital data.
  • the communication unit 101 accumulates the received calculation results in the transmission buffer as transmission data, and transmits the data to the network 200.
  • the transmission buffer is prepared in advance by the communication setting unit 106 according to the communication identifier used for reception.
  • the ECU 600 receives data from the network 200 and executes a corresponding process.
  • the process is a process of detecting surrounding obstacles from digital data acquired from a sensor such as a laser scanner.
  • the function 3 is a function for acquiring the video of the side view camera, for example.
  • FIG. 9 is a flowchart showing the operation of the hub device 100 when a function is added using the configuration tool 700 in the present embodiment.
  • the configuration tool 700 transmits to the network 200 the logic of the function control unit to be newly added, port setting information necessary for port setting, and communication setting information necessary for communication setting.
  • the logic is a program that interprets analog data acquired from a side view camera and converts it into digital image data, for example.
  • step S ⁇ b> 401 the communication unit 101 receives newly added function logic, port setting information, and communication setting information via the network 200, and passes these pieces of information to the function control management unit 104.
  • step S ⁇ b> 402 the function management unit 104 confirms whether there is a resource necessary for adding the function received from the communication unit 101.
  • resource confirmation is performed based on the load status of the CPU 133 and the amount of memory in the RAM 134 and ROM 135.
  • the resource is checked based on whether there is a free sub-resource.
  • step S402 YES
  • the function management unit 104 adds the logic of the function to be newly added as a new function control unit that controls the function 3.
  • step S402 the new function control unit is set to operate on a CPU core different from the function control unit 102 and the function control unit 103.
  • step S402 When there is no resource necessary for function addition (step S402: NO), this process ends.
  • step S ⁇ b> 404 the function management unit 104 adds the port setting for function 3 to the port setting unit 105. For example, a setting is made so that IF3, which is an access IF of function 3, is assigned to an unused port 3.
  • step S ⁇ b> 405 the function management unit 104 adds the communication setting for function 3 to the communication setting unit 106. For example, the function management unit 104 sets the IP address, bandwidth, and priority used by the function 3.
  • FIG. 10 is a flowchart showing the operation of the hub device 100 when functions are deleted using the configuration tool 700 in the present embodiment.
  • the configuration tool 700 transmits information indicating the function to be deleted to the network 200.
  • the information indicating the function to be deleted is information for identifying the function control unit to be deleted, such as the name and ID of the function control unit.
  • the communication unit 101 receives information indicating a function to be deleted from the network 200 and outputs the information to the function control management unit 104.
  • step S ⁇ b> 502 the function management unit 104 confirms whether or not the hub device 100 has a function that is received from the communication unit 101 and corresponds to the function to be deleted. If there is a function to be deleted (step S502: YES), in step S503, the function management unit 104 deletes the function control unit corresponding to the function to be deleted. For example, when the function to be deleted is function 1, the function control unit 102 is deleted. If there is no function to be deleted (step S502: NO), this process ends. In step S504, the function management unit 104 deletes the port setting corresponding to the function to be deleted from the port setting unit 105. In step S505, the function management unit 104 deletes the communication setting corresponding to the function to be deleted from the communication setting unit 106.
  • FIG. 11 is a flowchart showing the operation of the hub device 100 when the function is changed using the configuration tool 700 in the present embodiment.
  • the configuration tool 700 transmits information about the function to be changed and data including port settings or communication settings to the network 200.
  • the information on the function to be changed is information for identifying the function control unit to be changed, such as the name and ID of the function control unit.
  • the communication unit 101 receives information about the function to be changed and data including port settings or communication settings from the network 200, and outputs them to the function control management unit 104.
  • step S ⁇ b> 602 the function control management unit 104 confirms whether the function to be changed received from the communication unit 101 exists. If there is no function to be changed (step S602: NO), the process ends. If there is a function to be changed (step S602: YES), in step S603, the function control management unit 104 checks whether the port setting to be changed exists in the port setting unit 105. If there is a port setting to be changed (YES in step S603), the function control management unit 104 changes the port setting in the port setting unit 105 according to the port setting data to be changed. If there is no port setting to be changed (step S603: NO), the port setting is not performed and the process proceeds to the next process.
  • step S605 the function control management unit 104 checks whether there is a communication setting to be changed. When there is a communication setting to be changed, the function management unit 104 changes the communication setting in the communication setting unit 106 according to the data of the communication setting to be changed. If the communication setting to be changed is not included (step S605: NO), the process ends. Note that the result of the above change process is reflected by the initialization process of FIG. 6 at the next hub activation. According to the above configuration, it is possible to change an existing function or add or delete a new function while ensuring the functional safety of the in-vehicle control hub device.
  • FIG. 12 shows a software configuration example of the hub device in the present embodiment. 12, the same reference numerals as those in FIG. 2 represent the same or corresponding parts, and components other than the failure detection unit 111 and the fail safe operation setting unit 112 (device switching unit) are used in the first embodiment. The same operation as described in FIG. 2 is performed.
  • the failure detection unit 111 is a program that detects that output to a specific device or input from a device is disabled.
  • the fail-safe operation setting unit 112 is a program having port setting information that is changed according to the failure location.
  • the failure detection unit 111 may be a device that detects that output to a specific device or input from a device is disabled.
  • the fail-safe operation setting unit 112 is a program having port setting information that is changed according to the failure location.
  • the fail safe operation setting unit 112 has a setting for changing the port 108 to the port 110 as a fail safe setting for failure detection in the device 301.
  • FIG. 13 is a flowchart showing an operation when a failure is detected and port switching is performed in this embodiment.
  • the failure detection unit 111 detects a failure of the device 301, for example, and notifies the fail-safe operation setting unit 112 of the failure detection content.
  • the failure detection method of the failure detection unit 111 may use, for example, the absence of signal input from the device 301 for a preset time, or may be detected by receiving a signal indicating a failure from the device 301.
  • the fail safe operation setting unit 112 performs port switching by changing the port setting table 400 in the port setting unit 105 as the fail safe operation according to the fail safe operation setting. For example, the setting of the port 108 to which the device 301 is connected is switched to the port 110, and the device 303 is used as an alternative.
  • FIG. 14 shows a software configuration example of the hub device in the present embodiment. 14, the same reference numerals as those in FIG. 12 represent the same or corresponding parts, and portions other than the port detection unit 115 and the additional port 116 are the same as those described in FIG. 12 used in the fourth embodiment.
  • the port detection unit 115 is a program that detects that a port has been added.
  • the additional port 116 is a device including a newly added port or a plurality of ports.
  • FIG. 15 is a flowchart showing the operation when a port is added in the present embodiment.
  • the additional port 116 is connected to the hub device 100.
  • the port detection unit 115 detects that the additional port 116 is connected.
  • the hub device 100 and the additional port 116 each have a contact point, and each contact point may contact and be energized to notify the port detection unit 115.
  • the hub device 100 and the additional port 116 may have contacts capable of data communication, and the respective contacts may contact each other and perform communication for notifying the port detection unit 115 of the connection from the additional port 116.
  • a switch (not shown) may be provided in the hub device 100, and the port detection unit 115 may be notified by pressing the switch of the hub device 100 when the additional port 100 is connected.
  • the port detection unit 115 sets that the additional port 116 can be used to the port setting unit 105.
  • the method of recognizing that the additional port 116 can be used by the port setting unit 105 is, for example, that an identifier such as port 3 is reserved in an invalid state in advance, and when the port detection unit 115 notifies the port addition, This may be done by validating a previously reserved identifier such as 3.
  • the additional port 116 may have a unique identifier, and the additional port 116 may notify the port detection unit 115 of the unique identifier by communication.
  • the number of ports of the hub device 100 can be increased freely. For this reason, by designing the hub device with a minimum configuration in advance and increasing the number of ports as necessary, excess ports can be reduced and the size of the hub device can be reduced.
  • the shortage can be prevented by adding ports. Thereby, cost can be reduced rather than adding a hub apparatus newly. Further, it is possible to reduce the labor of wiring to other hub devices having free ports.

Abstract

This vehicle-mounted control hub device is characterized by being provided with: a plurality of ports to which a plurality of devices are respectively connected; a port management unit (107) that manages the plurality of ports; a plurality of function control units that each have a first storage device loaded with a program that controls at least one of the plurality of devices via the port management unit (107); a function control management unit (104) that has a second storage device loaded with a program that alters programs, adds new programs to the first storage device, or deletes programs from the first storage device; a second central processing unit (CPU) that executes the program loaded in the second storage device; and a plurality of first CPUs that execute the programs loaded in the first storage devices.

Description

車載制御ハブ装置In-vehicle control hub device
 本発明は、自動車のデバイスを制御するための車載制御ハブ装置に関する。 The present invention relates to an in-vehicle control hub device for controlling an automobile device.
 自動車に搭載される車載制御ハブ装置では、カメラやセンサといったデバイスからのデータは、デバイス毎に用意された専用の信号線によって、データを利用するECU(Electronic Control Unit)に入力される。しかし、デバイスからのデータを各々の専用線で接続していたのでは、デバイスの増加とともに配線量が増加し、その結果、車両重量が増加してしまう、という課題がある。 In an in-vehicle control hub device mounted on an automobile, data from devices such as cameras and sensors is input to an ECU (Electronic Control Unit) that uses the data through a dedicated signal line prepared for each device. However, if the data from the devices are connected by the respective dedicated lines, there is a problem that the amount of wiring increases as the number of devices increases, and as a result, the vehicle weight increases.
 この課題を解決するために、例えば、特許文献1には、各I/Oデバイスの状態信号を車両各部に配置された車載制御ハブ装置にそれぞれ収容し、これらのノード間をネットワークで接続して、I/Oデバイスを制御する方法が開示されている。 In order to solve this problem, for example, in Patent Document 1, each I / O device status signal is accommodated in an in-vehicle control hub device arranged in each part of the vehicle, and these nodes are connected by a network. A method for controlling an I / O device is disclosed.
特開2000-49829号公報JP 2000-49829 A
 しかし、従来の車載制御ハブ装置では、搭載される各I/Oデバイスを制御するソフトウェアといった制御機能が分離されていない。このため、従来の車載制御ハブ装置では、ソフトウェアの一部において、機能の変更や追加や削除があった場合、他の機能の動作タイミングもしくは動作そのものに影響を与えることがある。 However, in the conventional in-vehicle control hub device, control functions such as software for controlling each installed I / O device are not separated. For this reason, in the conventional vehicle-mounted control hub device, when a function is changed, added, or deleted in a part of software, the operation timing of other functions or the operation itself may be affected.
 このように、従来の車載制御ハブ装置では、ソフトウェアの一部において、機能の変更や追加や削除があった場合、機能安全性を担保するためにソフトウェア全体を検証する必要があり、開発の影響範囲が大きくなると言う問題がある。 In this way, with the conventional in-vehicle control hub device, if there is a change, addition, or deletion of a function in a part of the software, it is necessary to verify the entire software to ensure functional safety. There is a problem that the range becomes large.
 この発明は、上記のような課題を解決するためになされたもので、複数のデバイスがそれぞれ接続される複数のポートと、前記複数のポートを管理するポート管理部と、前記ポート管理部を介し前記複数のデバイスの少なくとも1つを制御するプログラムを搭載した第1の記憶装置をそれぞれ有する複数の機能制御部と、前記プログラムを変更、新規プログラムを前記第1の記憶装置に追加、または、前記プログラムを前記第1の記憶装置から削除するプログラムを搭載した第2の記憶装置を有する機能制御管理部と、前記第2の記憶装置に搭載されたプログラムを実行する第2のCPU(Central Processing Unit)と、前記第1の記憶装置に搭載されたプログラムを実行する第1のCPUを複数、備えることを特徴とする車載制御ハブ装置を提供する。 The present invention has been made to solve the above-described problems, and includes a plurality of ports to which a plurality of devices are respectively connected, a port management unit that manages the plurality of ports, and the port management unit. A plurality of function control units each having a first storage device loaded with a program for controlling at least one of the plurality of devices; and changing the program, adding a new program to the first storage device, or A function control management unit having a second storage device having a program for deleting the program from the first storage device, and a second CPU (Central Processing Unit) for executing the program installed in the second storage device And a plurality of first CPUs for executing programs installed in the first storage device. Providing vehicle control hub device according to symptoms.
 本発明によれば、車載制御ハブ装置のソフトウェア機能の変更や追加や削除が簡単に行える。 According to the present invention, the software function of the in-vehicle control hub device can be easily changed, added or deleted.
本実施の形態1における車載制御ハブ装置のハードウェア構成図の一例である。It is an example of the hardware block diagram of the vehicle-mounted control hub apparatus in this Embodiment 1. 本実施の形態1におけるハブ装置100上で動作するソフトウェアの構成図の一例である。FIG. 3 is an example of a configuration diagram of software that operates on the hub device 100 according to the first embodiment. 本実施の形態1におけるポート設定テーブル400の設定の一例である。It is an example of the setting of the port setting table 400 in this Embodiment 1. FIG. 本実施の形態2における車載制御ハブ装置のハードウェア構成図の一例である。It is an example of the hardware block diagram of the vehicle-mounted control hub apparatus in this Embodiment 2. 本実施の形態2におけるハブ装置100上で動作するソフトウェアの構成図の一例である。FIG. 10 is an example of a configuration diagram of software that operates on the hub device 100 according to the second embodiment. 本実施の形態におけるハブ装置100が通信部101とポートスイッチ部107を初期化する動作を示すフローチャートである。4 is a flowchart showing an operation of the hub device 100 in the present embodiment for initializing the communication unit 101 and the port switch unit 107. 本実施の形態におけるハブ装置100が、ECU500の要求によりデバイス301を駆動する動作を示すフローチャートである。5 is a flowchart illustrating an operation in which the hub device 100 according to the present embodiment drives the device 301 in response to a request from the ECU 500. 本実施の形態におけるハブ装置100が、デバイス302からの要求によりECU600を駆動する動作を示すフローチャートである。4 is a flowchart showing an operation of driving ECU 600 in response to a request from device 302 by hub apparatus 100 in the present embodiment. 本実施の形態において、コンフィグツール700を用いて機能を追加した場合のハブ装置100の動作を示すフローチャートである。5 is a flowchart showing the operation of the hub device 100 when a function is added using a configuration tool 700 in the present embodiment. 本本実施の形態において、コンフィグツール700を用いて機能を削除した場合のハブ装置100の動作を示すフローチャートである。In the present embodiment, it is a flowchart showing the operation of the hub device 100 when the function is deleted using the configuration tool 700. 本実施の形態において、コンフィグツール700を用いて機能を変更した場合のハブ装置100の動作を示すフローチャートである。6 is a flowchart illustrating the operation of the hub device 100 when the function is changed using the configuration tool 700 in the present embodiment. 本実施の形態3におけるハブ装置100上で動作するソフトウェアの構成図の一例である。FIG. 20 is an example of a configuration diagram of software that operates on the hub device 100 according to the third embodiment. 本実施の形態3において、ハブ装置100に対し、デバイスの障害が発生した場合の動作を示すフローチャートである。10 is a flowchart illustrating an operation when a device failure occurs in the hub device 100 according to the third embodiment. 本実施の形態4におけるハブ装置100上で動作するソフトウェアの構成図の一例である。FIG. 20 is an example of a configuration diagram of software that operates on the hub device 100 according to the fourth embodiment. 本実施の形態4において、ハブ装置100に対し、ポートの追加を行った場合の動作を示すフローチャートである。14 is a flowchart illustrating an operation when a port is added to the hub device 100 in the fourth embodiment.
実施の形態1.
 本実施の形態では、ネットワークを介して、ボディ系デバイスを制御する機能(以降、機能1)や安全支援系デバイスを制御する機能(以降、機能2)を実現する車載制御ハブ装置を例として用いる。なお、本実施の形態では、ドアロックを制御する機能1と車両周辺の障害物検知を行う機能2の2つのみについて説明を行うが、機能が3つ以上あってもよい。
Embodiment 1 FIG.
In the present embodiment, an in-vehicle control hub device that realizes a function for controlling a body device (hereinafter referred to as function 1) and a function for controlling a safety support device (hereinafter referred to as function 2) via a network is used as an example. . In the present embodiment, only two functions, ie, function 1 for controlling door locks and function 2 for detecting obstacles around the vehicle will be described, but three or more functions may be provided.
 図1は、本実施の形態における車載制御ハブ装置のハードウェア構成図の一例である。
 図1において、デバイス301、デバイス302は、センサやアクチュエータといった装置であり、それぞれ、ポート108、ポート109に接続される。なお、ここでは、デバイス301は、機能1によって制御されるドアロックといったアクチュエータ、デバイス302は、機能2によって制御されるレーザスキャナといったセンサとする。
 ポート108、ポート109は、それぞれデバイス301、デバイス302からの信号をハブ装置100に入出力するコネクタである。
FIG. 1 is an example of a hardware configuration diagram of an in-vehicle control hub device in the present embodiment.
In FIG. 1, a device 301 and a device 302 are devices such as sensors and actuators, and are connected to a port 108 and a port 109, respectively. Here, the device 301 is an actuator such as a door lock controlled by function 1, and the device 302 is a sensor such as a laser scanner controlled by function 2.
Ports 108 and 109 are connectors for inputting and outputting signals from the devices 301 and 302 to the hub apparatus 100, respectively.
 ハブ装置100は、機能1と機能2のデバイス制御を行う装置であり、ネットワーク200を介して、ECU500、ECU600と通信する。デバイス制御とは、例えば、機能1においてネットワークを介してECU500から受け取ったパケットに応じて、対応するポートをHighまたはLowに信号制御する機能であり、機能2において対応するポートから取得したアナログデータを所定のデジタルフォーマットに変換し、ネットワークを介してECU600に送出する機能である。 The hub device 100 is a device that performs device control of the function 1 and the function 2, and communicates with the ECU 500 and the ECU 600 via the network 200. Device control is, for example, a function that performs signal control of a corresponding port to High or Low in accordance with a packet received from the ECU 500 via the network in the function 1, and the analog data acquired from the corresponding port in the function 2 is This is a function of converting to a predetermined digital format and sending it to the ECU 600 via a network.
 ネットワーク200は、CAN(Controller Area Network)やEthernet(登録商標)といった通信ケーブルである。 The network 200 is a communication cable such as CAN (Controller Area Network) or Ethernet (registered trademark).
 ECU500、ECU600はデバイス301、デバイス302を使用する制御機能と通信機能を持つ装置である。制御機能とは、例えば、機能1において物理鍵による開錠もしくは施錠の要求や無線などを用いた非接触型鍵による開錠もしくは施錠の要求を解釈し、開錠もしくは施錠の要求を含むパケットを生成および送信要求する機能であり、機能2においてデバイス302から取得されたセンサデータから障害物の有無を判断する機能である。 ECU 500 and ECU 600 are devices having a control function and a communication function that use device 301 and device 302. For example, the control function interprets a request for unlocking or locking with a physical key in function 1 or a request for unlocking or locking with a non-contact key using wireless or the like, and includes a packet including a request for unlocking or locking. This is a function that requests generation and transmission, and is a function that determines the presence or absence of an obstacle from the sensor data acquired from the device 302 in function 2.
 コンフィグツール700は、ネットワーク200に接続し、ハブ装置100に対する機能1もしくは機能2のデバイス制御の追加、削除、変更を行うためのデータと通信機能を有する装置である。コンフィグツール700は開発時および工場における保守や部品構成の変更時に使用する。 The config tool 700 is an apparatus that is connected to the network 200 and has data and communication functions for adding, deleting, and changing device control of function 1 or function 2 to the hub apparatus 100. The configuration tool 700 is used at the time of development and maintenance at the factory or when changing the component configuration.
 ハブ装置100は、ネットワークコントローラ120、メインリソース800、サブリソース801、サブリソース802、ポートコントローラ132なども複数のハードウェアを備えており、それぞれが内部バス136で接続されている。
 メインリソース800は、ハブ装置100の主となる処理を実行するためのCPU126、RAM121(Random Access Memory)、ROM122(Read Only Memory)を備えている。なお、RAM、ROMまたはRAMとROMを合わせたものを記憶装置と称する。
 サブリソース801、802は、デバイス301、302を制御するためのプログラムを実行するためのリソースであり、サブリソース801は、CPU126、RAM121、ROM127を備え、サブリソース802は、CPU128、RAM122、ROM129を備えている。なお、サブリソースは3つ以上あってもよい。
 ROM131、127、129は、プログラム命令列は固定データを格納する領域を提供する。フラッシュメモリなどが相当し、書き込まれたプログラム内容を書き換えることが可能である。
 RAM125、121、122は、プログラムが使用するデータを保存及び参照するための作業領域を提供する。
 メインリソース800のCPU124は、サブリソースのRAMやROMに対して読み出しや書き込みを行うことができるが、サブリソースのCPUは他のサブリソース及びメインリソースのRAMやROMに対して読み出しはできても書き込みはできないものとする。
The hub device 100 also includes a plurality of hardware components such as the network controller 120, the main resource 800, the sub resource 801, the sub resource 802, and the port controller 132, which are connected by an internal bus 136.
The main resource 800 includes a CPU 126 for executing main processing of the hub device 100, a RAM 121 (Random Access Memory), and a ROM 122 (Read Only Memory). A RAM, ROM, or a combination of RAM and ROM is referred to as a storage device.
The sub-resources 801 and 802 are resources for executing a program for controlling the devices 301 and 302. The sub-resource 801 includes the CPU 126, the RAM 121, and the ROM 127, and the sub-resource 802 includes the CPU 128, the RAM 122, and the ROM 129. I have. Note that there may be three or more sub-resources.
The ROMs 131, 127, and 129 provide areas for storing fixed data in the program instruction sequence. It corresponds to a flash memory and the like, and the written program content can be rewritten.
The RAMs 125, 121, and 122 provide a work area for storing and referring to data used by the program.
The CPU 124 of the main resource 800 can read from and write to the sub-resource RAM and ROM, but the sub-resource CPU can read from the sub-resource RAM and ROM. It is assumed that writing is not possible.
 ネットワークコントローラ120は、CANやEthernet(登録商標)といったネットワーク200との通信を制御する電子回路である。ネットワークコントローラ120は、ネットワーク200からデータを受信した際に、データのCAN IDやIPアドレスといった識別子に従い、RAM125またはRAM121またはRAM122にデータを格納する。
 また、ネットワークコントローラ120は、CPU122またはCPU126またはCPU128からデータ送信の要求があった場合、ネットワーク200にデータを送信する。またネットワークコントローラ120は、CPU133から通信設定を受け取り、内蔵する通信設定を追加、削除、もしくは、変更する。
The network controller 120 is an electronic circuit that controls communication with the network 200, such as CAN or Ethernet (registered trademark). When the network controller 120 receives data from the network 200, the network controller 120 stores the data in the RAM 125, the RAM 121, or the RAM 122 according to an identifier such as a CAN ID or IP address of the data.
Further, the network controller 120 transmits data to the network 200 when there is a data transmission request from the CPU 122, CPU 126, or CPU 128. The network controller 120 receives communication settings from the CPU 133, and adds, deletes, or changes built-in communication settings.
 ポートコントローラ132は、ポート108とポート109を制御する電子回路である。ポートコントローラ132は、CPU126やCPU128のポートへの信号出力の要求に対して、内蔵するポート設定に従い、ポート108もしくはポート109のポートへ信号出力する。
 また、ポートコントローラ132は、ポート108やポート109の信号入力の要求に対して、内蔵するポート設定に従い、CPU126もしくはCPU128へ信号入力する。また、ポートコントローラ132はCPU124からの要求に従い、ポート設定を追加、削除、変更する。
The port controller 132 is an electronic circuit that controls the port 108 and the port 109. In response to a signal output request to the CPU 126 or CPU 128 port, the port controller 132 outputs a signal to the port 108 or 109 according to the built-in port setting.
Further, the port controller 132 inputs a signal to the CPU 126 or the CPU 128 according to the built-in port setting in response to a signal input request of the port 108 or the port 109. Further, the port controller 132 adds, deletes, and changes port settings in accordance with a request from the CPU 124.
 次に、本実施の形態におけるハブ装置のソフトウェア構成について説明する。
 図2は、本実施の形態におけるハブ装置100上で動作するソフトウェアの構成図である。
Next, the software configuration of the hub device in the present embodiment will be described.
FIG. 2 is a configuration diagram of software that operates on the hub device 100 according to the present embodiment.
 図2において、図1と同一の符号である、デバイス301、デバイス302、ポート108、ポート109、ネットワーク200、ECU500、ECU600、コンフィグツール700は、同一または相当する部分を表しており、図1で説明したものと同じである。 2, the device 301, the device 302, the port 108, the port 109, the network 200, the ECU 500, the ECU 600, and the configuration tool 700, which are the same reference numerals as those in FIG. 1, represent the same or corresponding parts. Same as described.
 ハブ装置100は、通信部101、機能制御部102、機能制御部103、機能制御管理部104、ポート設定部105、通信設定部106、ポートスイッチ部(ポート管理部)107で構成される。 The hub device 100 includes a communication unit 101, a function control unit 102, a function control unit 103, a function control management unit 104, a port setting unit 105, a communication setting unit 106, and a port switch unit (port management unit) 107.
 通信部101は、ネットワーク200に対する通信制御や送信データもしくは受信データを保持するバッファを持つプログラムである。通信部101は、受信したデータがECU500からであった場合には、機能制御部102へデータを渡し、受信したデータがECU600からであった場合には、機能制御部103へデータを渡し、受信したデータがコンフィグツール700であった場合には、機能管理部104へデータを渡す。 The communication unit 101 is a program having a buffer for holding communication control for the network 200 and transmission data or reception data. When the received data is from the ECU 500, the communication unit 101 passes the data to the function control unit 102. When the received data is from the ECU 600, the communication unit 101 passes the data to the function control unit 103 and receives the data. If the processed data is the configuration tool 700, the data is transferred to the function management unit 104.
 また、通信部101は、機能制御部102からデータの送信指示を受けた場合には、ECU500へデータを送信し、機能制御部103からデータの送信指示を受けた場合には、ECU600へデータを送信する。通信部101は対応する機能ごとにバッファを持つ。通信部101はハブ装置100が起動したときに通信設定部106から通信設定を読み込み、CAN ID(Controller Area Network Identifier)やIP(Internet Protocol)アドレスといった通信識別子とバッファを紐付け、使用する帯域、優先度を読み込む。
 機能制御部102は、機能1を制御するロジックを実現するプログラムであり、機能制御部103は、機能2を制御するロジックを実現するプログラムである。機能1は例えば物理鍵もしくは非接触型鍵から開錠もしくは施錠の要求を受け取り、ドアロックの開錠もしくは施錠を行うドアロック制御といったボディ系の機能である。また、機能2は例えばレーザーセンサやカメラセンサから取得したセンサ情報から車両周辺の障害物を検出する障害物検知といった安全支援系の機能である。ただし、機能1と機能2はこれらの機能に限らない。
The communication unit 101 transmits data to the ECU 500 when receiving a data transmission instruction from the function control unit 102, and transmits data to the ECU 600 when receiving a data transmission instruction from the function control unit 103. Send. The communication unit 101 has a buffer for each corresponding function. The communication unit 101 reads a communication setting from the communication setting unit 106 when the hub device 100 is activated, links a communication identifier such as a CAN ID (Controller Area Network Identifier) or an IP (Internet Protocol) address, and a buffer to be used, Read the priority.
The function control unit 102 is a program that realizes a logic that controls the function 1, and the function control unit 103 is a program that realizes a logic that controls the function 2. The function 1 is a body function such as door lock control for receiving an unlocking or locking request from a physical key or a non-contact type key and unlocking or locking the door lock. Function 2 is a safety support function such as obstacle detection for detecting obstacles around the vehicle from sensor information acquired from a laser sensor or camera sensor, for example. However, function 1 and function 2 are not limited to these functions.
 なお、機能制御部102と機能制御部103は、別々のサブリソースに割り当てられ、実行される。例えば、機能制御部102はサブリソース801に、機能制御部103はサブリソース802に割り当てられ、それぞれのCPU126、CPU128がプログラムを実行する。
 このように、機能制御部102と機能制御部103は、別々のサブリソース上で動作するため、自身のプログラムが実行することによる他のプログラムへの影響を考えなくてもよい。また、メモリ領域もサブリソースごとに別々に管理をしているため、誤って他のプログラムのメモリ領域をアクセスし、破壊してしまうといったことが生じない。
Note that the function control unit 102 and the function control unit 103 are assigned to different sub-resources and executed. For example, the function control unit 102 is allocated to the sub-resource 801 and the function control unit 103 is allocated to the sub-resource 802, and each of the CPU 126 and CPU 128 executes the program.
As described above, the function control unit 102 and the function control unit 103 operate on different sub-resources, and therefore, it is not necessary to consider the influence on other programs due to the execution of its own program. In addition, since the memory area is also managed separately for each sub-resource, there is no possibility of accidentally accessing and destroying the memory area of another program.
 機能制御管理部104は、コンフィグツール700からの指示に従い、例えば、センサからのアナログデータを解釈してデジタルデータに変換するロジックや、受信パケットを解釈してポートをHighもしくはLowに設定するロジックといった、機器を制御するロジックや通信設定やポート設定を追加、削除、変更するプログラムである。例えば、機能制御部102や機能制御部103の削除や変更、あるいは、新たな機能制御部の追加を行ったり、ポート108やポート109の削除や変更、あるいは、新たなポートの追加を行ったりする。なお、ポートに対する設定は、ポート設定部105を呼び出し、通信に対する設定は通信設定部106を呼び出して行う。
 なお、機能制御管理部104は、メインリソース800に割り当てられ、実行される。
In accordance with an instruction from the configuration tool 700, the function control management unit 104, for example, logic that interprets analog data from a sensor and converts it into digital data, logic that interprets a received packet and sets a port to High or Low, etc. This is a program that adds, deletes, and changes logic, communication settings, and port settings to control devices. For example, the function control unit 102 or the function control unit 103 is deleted or changed, a new function control unit is added, the port 108 or the port 109 is deleted or changed, or a new port is added. . Note that setting for a port is performed by calling the port setting unit 105, and setting for communication is performed by calling the communication setting unit 106.
The function control management unit 104 is assigned to the main resource 800 and executed.
 ポート設定部105は、機能制御部とポートそれぞれの対応関係や、データの入出力方向を設定するポート設定テーブル400を保持するプログラムである。 The port setting unit 105 is a program that holds a port setting table 400 that sets the correspondence between the function control unit and each port and the data input / output direction.
 ポート設定テーブル400の設定の一例を図3に示す。ポート設定テーブル400は機能制御部とポートそれぞれの対応関係や入出力方向を示すポート設定を保持するテーブルである。機能の項は対象の機能制御部を示す。アクセスIFの項は機能制御部102が制御する機能1もしくは機能制御部103が制御する機能2が使用するインタフェースの識別子を示す。ポート設定テーブル400はポートコントローラ132に内蔵される。
 ポートの項はアクセスIFがアクセスする物理的な端子であるポートを示す。例えば、ポートの項はアクセスIFがマッピングされるレジスタを表す。
 入出力方向の項は、データが渡される方向を示す。例えば、ポートから値を取得する場合には入力、ポートへ値を出力する場合には出力、両方で用いる場合には入出力としても良い。
An example of settings in the port setting table 400 is shown in FIG. The port setting table 400 is a table that holds port settings indicating the correspondence between the function control unit and the ports and the input / output directions. The function item indicates the target function control unit. The item of access IF indicates an identifier of an interface used by the function 1 controlled by the function control unit 102 or the function 2 controlled by the function control unit 103. The port setting table 400 is built in the port controller 132.
The term “port” indicates a port which is a physical terminal accessed by the access IF. For example, the port term represents the register to which the access IF is mapped.
The term of input / output direction indicates the direction in which data is passed. For example, input may be used when a value is acquired from a port, output may be output when a value is output to a port, and input / output may be used when both are used.
 通信設定部106は、それぞれの機能制御部がデータの送信及び受信を行う際に用いるCAN IDやIPアドレスといった通信識別子、使用する帯域、優先度といった通信で用いるパラメータを保持するプログラムである。通信設定部106はネットワークコントローラ120に内蔵される。 The communication setting unit 106 is a program that holds parameters used in communication such as a communication identifier such as a CAN ID and an IP address, a band to be used, and a priority used when each function control unit transmits and receives data. The communication setting unit 106 is built in the network controller 120.
 ポートスイッチ部107は、ポート設定部105の設定指示に従って、機能制御部がアクセスするポートの制御を行うプログラムである。機能制御部102と機能制御部103がポートスイッチ部107にアクセスし、アクセスIFを通して、ポート108もしくはポート109が対応するレジスタを介してポート108もしくはポート109にアクセスする。ポートスイッチ部107はポートコントローラ132に内蔵される。 The port switch unit 107 is a program for controlling the port accessed by the function control unit in accordance with the setting instruction of the port setting unit 105. The function control unit 102 and the function control unit 103 access the port switch unit 107, and through the access IF, the port 108 or port 109 accesses the port 108 or port 109 via the corresponding register. The port switch unit 107 is built in the port controller 132.
 なお、本実施の形態に係るハブ装置100のポート及びデバイスの数、またECUの数は2つであるが、任意の数であっても良い。 In addition, although the number of ports and devices of the hub apparatus 100 according to the present embodiment and the number of ECUs are two, any number may be used.
 以上の構成によれば、複数のデバイスの処理を実行する複数の機能制御部を、別々のサブリソースに割り付けることによって、それぞれの機能制御部が互いを妨げることなく実行することが可能となる。これにより、車載制御ハブ装置の機能安全性を担保したまま、既存の機能を変更したり、新たな機能の追加、削除を行ったりすることが可能となる。 According to the above configuration, by assigning a plurality of function control units that execute processing of a plurality of devices to different sub-resources, it becomes possible for each function control unit to execute without interfering with each other. Thereby, it is possible to change an existing function or add or delete a new function while ensuring the functional safety of the in-vehicle control hub device.
実施の形態2.
 実施の形態1では、複数のリソースを有する場合について説明したが、本実施の形態では、CPUとRAMとROMが一組しかない場合について説明する。
 図4は、本実施の形態2における車載制御ハブ装置のハードウェア構成図の一例である。
 図4において、図1と同一の符号である、デバイス301、デバイス302、ポート108、ポート109、ネットワーク200、ECU500、ECU600、コンフィグツール700は、同一または相当する部分を表しており、図4で説明したものと同じである。
 メインリソース900は、ハブ装置100の処理を実行するためのCPU133、RAM134、ROM135を備えている。
 CPU133は、異なる複数の機能制御、演算処理の時間管理、機能制御管理を行う演算装置である。また、CPU133は、ネットワークコントローラ120から受信データを取得する。また、CPU133は、ネットワークコントローラ120に送信データを受け渡す。また、CPU133は、ポートコントローラ132に信号出力を行う。また、CPU133はポートコントローラ132から信号入力を受ける。
 RAM134は、CPU133が参照するデータを格納する一時記憶装置であり、異なる機能制御ごとに異なる領域が割り当てられている。
 ROM135は、CPU133が参照する異なる複数の機能制御、演算処理の時間管理、機能制御管理のプログラムを格納する記憶装置である。
Embodiment 2. FIG.
In the first embodiment, the case of having a plurality of resources has been described, but in this embodiment, the case of having only one set of CPU, RAM, and ROM will be described.
FIG. 4 is an example of a hardware configuration diagram of the in-vehicle control hub device according to the second embodiment.
4, the device 301, the device 302, the port 108, the port 109, the network 200, the ECU 500, the ECU 600, and the configuration tool 700, which are the same reference numerals as those in FIG. 1, represent the same or corresponding parts. Same as described.
The main resource 900 includes a CPU 133, a RAM 134, and a ROM 135 for executing processing of the hub device 100.
The CPU 133 is an arithmetic device that performs a plurality of different function controls, arithmetic processing time management, and functional control management. Further, the CPU 133 acquires received data from the network controller 120. In addition, the CPU 133 delivers transmission data to the network controller 120. In addition, the CPU 133 outputs a signal to the port controller 132. Further, the CPU 133 receives a signal input from the port controller 132.
The RAM 134 is a temporary storage device that stores data referred to by the CPU 133, and different areas are assigned to different function controls.
The ROM 135 is a storage device that stores a plurality of different function controls, calculation processing time management, and function control management programs that the CPU 133 refers to.
 ネットワークコントローラ120は、CANやEthernet(登録商標)といったネットワーク200との通信を制御する電子回路である。ネットワークコントローラ120は、ネットワーク200からデータを受信した際に、データのCAN IDやIPアドレスといった識別子に従い、RAM134にデータを格納する。
 また、ネットワークコントローラ120は、CPU133からデータ送信の要求があった場合、ネットワーク200にデータを送信する。またネットワークコントローラ120は、CPU133から通信設定を受け取り、内蔵する通信設定を追加、削除、もしくは、変更する。
The network controller 120 is an electronic circuit that controls communication with the network 200, such as CAN or Ethernet (registered trademark). When the network controller 120 receives data from the network 200, the network controller 120 stores the data in the RAM 134 in accordance with an identifier such as a CAN ID or IP address of the data.
In addition, the network controller 120 transmits data to the network 200 when a data transmission request is received from the CPU 133. The network controller 120 receives communication settings from the CPU 133, and adds, deletes, or changes built-in communication settings.
 ポートコントローラ132は、ポート108とポート109を制御する電子回路である。ポートコントローラ132は、CPU133のポートへの信号出力の要求に対して、内蔵するポート設定に従い、ポート108もしくはポート109へ信号出力する。
 また、ポートコントローラ132はポート108やポート109の信号入力の要求に対して、内蔵するポート設定に従って、CPU133へ信号入力する。また、ポートコントローラ132はCPU133からの要求に従い、ポート設定を追加、削除、変更する。
The port controller 132 is an electronic circuit that controls the port 108 and the port 109. In response to a signal output request to the port of the CPU 133, the port controller 132 outputs a signal to the port 108 or 109 according to the built-in port setting.
Further, the port controller 132 inputs a signal to the CPU 133 according to the built-in port setting in response to a signal input request of the port 108 or the port 109. The port controller 132 adds, deletes, and changes port settings in accordance with requests from the CPU 133.
 次に、本実施の形態におけるハブ装置のソフトウェア構成について説明する。
 図5は、本実施の形態におけるハブ装置100上で動作するソフトウェアの構成図である。
 図5において、図2と同一の符号は、同一または相当する部分を表しており、スケジューラ部(機能管理部)113以外については、実施の形態1で用いた図2で記載したものと同じ動作をする。
Next, the software configuration of the hub device in the present embodiment will be described.
FIG. 5 is a configuration diagram of software that operates on the hub device 100 according to the present embodiment.
5, the same reference numerals as those in FIG. 2 represent the same or corresponding parts, and operations other than the scheduler unit (function management unit) 113 are the same as those described in FIG. 2 used in the first embodiment. do.
 図5において、スケジューラ部113は、機能制御部102と機能制御部103に対して演算処理の時間管理とメモリ管理を行うプログラムである。スケジューラ部113は、時間管理として、例えば、オペレーティングシステムにおける、タスクのスケジューリングを行う処理と同様、機能制御部102と機能制御部103(もしくはそれ以上あった場合すべての機能制御部)が均等に実行されるよう管理を行う。また、機能制御部に優先度を設定し、複数の機能制御部から同時に実行要求が発生した場合、優先度の高い方を先に実行することも可能である。また、スケジューラ部113はメモリ管理として機能制御部102と機能制御部103がアクセス可能なメモリ領域を別々に管理し、互いのメモリ領域へのアクセスを禁止する。スケジューラ部113は、例えば、機能制御部102と機能制御部103ごとに異なるメモリアクセス関数を持ち、そのメモリアクセス関数内でアクセスするメモリ領域を判定してもよい。 5, the scheduler unit 113 is a program that performs time management and memory management of arithmetic processing for the function control unit 102 and the function control unit 103. As the time management, the scheduler unit 113 is equally executed by, for example, the function control unit 102 and the function control unit 103 (or all function control units if there are more) as in the task scheduling process in the operating system. To be managed. In addition, when priority is set in the function control unit and an execution request is generated from a plurality of function control units at the same time, it is possible to execute the higher priority first. Further, the scheduler unit 113 separately manages memory areas accessible by the function control unit 102 and the function control unit 103 as memory management, and prohibits access to each other's memory areas. For example, the scheduler unit 113 may have a different memory access function for each of the function control unit 102 and the function control unit 103, and may determine a memory area to be accessed within the memory access function.
 以上の構成によれば、複数のデバイスの処理を実行する複数の機能制御部を、スケジューラ部が管理することによって、それぞれの機能制御部が互いを妨げることなく実行することが可能となる。これにより、車載制御ハブ装置の機能安全性を担保したまま、既存の機能を変更したり、新たな機能の追加、削除を行ったりすることが可能となる。 According to the above configuration, the scheduler unit manages a plurality of function control units that execute processing of a plurality of devices, so that each function control unit can execute without interfering with each other. Thereby, it is possible to change an existing function or add or delete a new function while ensuring the functional safety of the in-vehicle control hub device.
 次に図6から図11を用いて、実施の形態1及び実施の形態2におけるハブ装置の動作について説明する。機能1と機能2において、例えば、機能1は物理鍵による開錠もしくは施錠の要求や無線などを用いた非接触型鍵による開錠もしくは施錠の要求を解釈し、開錠もしくは施錠の要求を含むパケットを生成および送信要求する機能、機能2はデバイス302から取得されたセンサデータから障害物の有無を判断する機能とする。 Next, the operation of the hub device according to the first and second embodiments will be described with reference to FIGS. In function 1 and function 2, for example, function 1 interprets a request for unlocking or locking with a physical key or a request for unlocking or locking with a non-contact key using wireless or the like, and includes a request for unlocking or locking A function for generating and requesting transmission of a packet, Function 2, is a function for determining the presence or absence of an obstacle from the sensor data acquired from the device 302.
 まず、ハブ装置100が起動し、通信部101とポートスイッチ部107を初期化する動作について説明する。
 図6は、本実施の形態におけるハブ装置100が通信部101とポートスイッチ部107を初期化する動作を示すフローチャートである。
 ステップS900において、ポートスイッチ部107はポート設定部105からポート設定を読み込み、アクセスIFとポートの対応を設定する。
 ステップS901において、通信部101は通信設定部106からCAN ID(Controller Area Network Identifier)やIP(Internet Protocol)アドレスといった通信識別子とバッファを紐付け、使用する帯域、優先度を読み込む。
First, an operation for starting the hub device 100 and initializing the communication unit 101 and the port switch unit 107 will be described.
FIG. 6 is a flowchart illustrating an operation in which the hub device 100 according to the present embodiment initializes the communication unit 101 and the port switch unit 107.
In step S900, the port switch unit 107 reads the port setting from the port setting unit 105, and sets the correspondence between the access IF and the port.
In step S <b> 901, the communication unit 101 associates a communication identifier such as a CAN ID (Controller Area Network Identifier) or an IP (Internet Protocol) address with a buffer from the communication setting unit 106, and reads the bandwidth and priority to be used.
 次に、ECUからの要求によって、デバイスが制御される動作について説明する。
 図7は、本実施の形態におけるハブ装置100が、ECU500の要求によりデバイス301を駆動する動作を示すフローチャートである。
 ステップS200において、ECU500は、ハブ装置100に対してデバイス301を駆動するためのデータをネットワーク200に送信する。
 ステップS201において、ハブ装置100内の通信部101は、ECU500が送信したデータをネットワーク200から受信し、受信用のバッファに保持する。なお、通信設定部106によって、受信用バッファと対応する機能制御部が設定されているため、受信用バッファにデータが入力されると、対応する機能制御部が呼び出される。本実施の形態での例だと、機能制御部102が呼び出される。
 ステップS202において、機能制御部102は、通信部101が受信したデータを受け取る。
 ステップS203において、機能制御部102は、受信したデータを用い、機能1を制御するロジックに応じた演算を行う。また、機能制御部102は、ポート設定テーブル400を参照し、IF1への信号出力を行う。例えば、機能制御部102は受信したデータからポートをHighまたはLowに設定することを判別し、機能1に割り付けられたIF1に対してHighまたはLowの出力を要求する。
 ステップS204において、ポートスイッチ部107は、ポート設定テーブル400を参照し、IF1が対応するポート1(ここではポート108)に信号出力する。ポート108に出力された信号は、デバイス301に渡される。例えば、ポートスイッチ部107はIF1を介して受け取ったHighまたはLowの出力の要求を、ポート設定テーブル400で設定されたアクセスIFとポートの割り当てに従い、ポート1(ここではポート108)に出力する。
 ステップS205において、デバイス301は、ポート108の信号出力に応じて動作する。
Next, an operation in which the device is controlled according to a request from the ECU will be described.
FIG. 7 is a flowchart illustrating an operation in which the hub device 100 according to the present embodiment drives the device 301 in response to a request from the ECU 500.
In step S <b> 200, ECU 500 transmits data for driving device 301 to hub apparatus 100 to network 200.
In step S201, the communication unit 101 in the hub device 100 receives the data transmitted from the ECU 500 from the network 200 and holds it in a reception buffer. Since the function setting unit corresponding to the reception buffer is set by the communication setting unit 106, the corresponding function control unit is called when data is input to the reception buffer. In the example of the present embodiment, the function control unit 102 is called.
In step S202, the function control unit 102 receives the data received by the communication unit 101.
In step S <b> 203, the function control unit 102 performs an operation according to the logic that controls the function 1 using the received data. Further, the function control unit 102 refers to the port setting table 400 and outputs a signal to IF1. For example, the function control unit 102 determines that the port is set to High or Low from the received data, and requests the IF 1 assigned to the function 1 to output High or Low.
In step S204, the port switch unit 107 refers to the port setting table 400 and outputs a signal to the port 1 (here, the port 108) corresponding to the IF1. The signal output to the port 108 is passed to the device 301. For example, the port switch unit 107 outputs a High or Low output request received via the IF 1 to the port 1 (here, the port 108) according to the access IF and port assignment set in the port setting table 400.
In step S <b> 205, the device 301 operates according to the signal output from the port 108.
 次に、デバイスからのイベントによってECUの処理が実施される場合について説明する。なお、デバイス302は、センサであり、特定の信号入力を受けると、ポート109に出力を行うものとする。
 図8は、本実施の形態におけるハブ装置100が、デバイス302からの要求によりECU600を駆動する動作を示すフローチャートである。
 ステップS300において、デバイス302は、特定の信号入力を受け、センサ情報をポート109への入力信号として出力する。ポート109に入力された信号は、ポートスイッチ部107に出力される。
 ステップS301において、ポートスイッチ部107は、ポート設定テーブル400を参照し、ポート109に対応するアクセスIFであるIF2に信号を出力する。IF2に出力された信号は、機能制御部103に入力される。
 ステップS302において、機能制御部103は、機能2を制御するロジックに従い、IF2から取得したセンサ情報を用いて制御演算を行い、演算結果を通信部101に送信要求する。制御演算とは、例えば、レーザスキャナといったセンサから入力されたアナログデータを所定のデジタルデータに変換する処理である。
 ステップ203において、通信部101は、受け取った演算結果を送信データとして送信バッファに蓄積し、ネットワーク200にデータを送信する。なお、送信バッファは、通信設定部106が予め、受信に用いる通信識別子に応じて用意したものである。
 ステップ204において、ECU600は、ネットワーク200からデータを受信し、対応した処理を実行する。処理とは、例えば、レーザスキャナといったセンサから取得したデジタルデータから周辺の障害物を検出する処理である。
Next, a case where ECU processing is performed by an event from a device will be described. The device 302 is a sensor and outputs to the port 109 when receiving a specific signal input.
FIG. 8 is a flowchart illustrating an operation in which the hub apparatus 100 according to the present embodiment drives the ECU 600 in response to a request from the device 302.
In step S <b> 300, the device 302 receives a specific signal input and outputs sensor information as an input signal to the port 109. A signal input to the port 109 is output to the port switch unit 107.
In step S301, the port switch unit 107 refers to the port setting table 400 and outputs a signal to IF2, which is an access IF corresponding to the port 109. The signal output to IF2 is input to the function control unit 103.
In step S <b> 302, the function control unit 103 performs a control calculation using the sensor information acquired from the IF 2 according to the logic for controlling the function 2, and requests the communication unit 101 to transmit the calculation result. The control calculation is a process of converting analog data input from a sensor such as a laser scanner into predetermined digital data.
In step 203, the communication unit 101 accumulates the received calculation results in the transmission buffer as transmission data, and transmits the data to the network 200. The transmission buffer is prepared in advance by the communication setting unit 106 according to the communication identifier used for reception.
In step 204, the ECU 600 receives data from the network 200 and executes a corresponding process. The process is a process of detecting surrounding obstacles from digital data acquired from a sensor such as a laser scanner.
 次に、コンフィグツールを用いて、新たに機能3を追加する動作について説明する。機能3は、例えば、サイドビューカメラの映像を取得する機能である。
 図9は本実施の形態において、コンフィグツール700を用いて機能を追加した場合のハブ装置100の動作を示すフローチャートである。
 ステップS400において、コンフィグツール700は、新たに追加する機能制御部のロジック、ポートの設定に必要なポート設定情報、通信の設定に必要な通信設定情報をネットワーク200に送信する。ロジックとは、例えば、サイドビューカメラから取得したアナログデータを解釈して画像のデジタルデータに変換するプログラムである。
 ステップS401において、通信部101は、ネットワーク200を介して、新たに追加する機能のロジック、ポート設定情報、通信設定情報を受信し、これらの情報を機能制御管理部104に渡す。
 ステップS402において、機能管理部104は、通信部101から受け取った機能を追加するのに必要なリソースが存在するか確認する。
 リソースの確認は、本実施の形態2であれば、CPU133の負荷状況、RAM134およびROM135のメモリ量で行う。なお、実施の形態1であれば、空き状態のサブリソースがあるかどうかで、リソースの確認を行う。
 機能追加に必要なリソースが存在する場合(ステップS402:YES)、機能管理部104は、新たに追加する機能のロジックを、機能3を制御する新しい機能制御部として追加する。
 なお、実施の形態1で説明したハードウェア構成であった場合には、新しい機能制御部は機能制御部102および機能制御部103と異なるCPUコアで動作するように設定される。そして、実施の形態2で説明したハードウェア構成であった場合には、
 機能追加に必要なリソースが存在しない場合(ステップS402:NO)、本処理を終了する。
 ステップS404において、機能管理部104は、ポート設定部105に対し、機能3のポート設定を追加する。例えば、機能3のアクセスIFであるIF3を未使用のポート3に割り当てるように設定する。
 ステップS405において、機能管理部104は、通信設定部106に対し、機能3の通信設定を追加する。機能管理部104は、例えば、機能3が使用するIPアドレス、帯域、優先度を設定する。
Next, an operation for newly adding the function 3 using the configuration tool will be described. The function 3 is a function for acquiring the video of the side view camera, for example.
FIG. 9 is a flowchart showing the operation of the hub device 100 when a function is added using the configuration tool 700 in the present embodiment.
In step S400, the configuration tool 700 transmits to the network 200 the logic of the function control unit to be newly added, port setting information necessary for port setting, and communication setting information necessary for communication setting. The logic is a program that interprets analog data acquired from a side view camera and converts it into digital image data, for example.
In step S <b> 401, the communication unit 101 receives newly added function logic, port setting information, and communication setting information via the network 200, and passes these pieces of information to the function control management unit 104.
In step S <b> 402, the function management unit 104 confirms whether there is a resource necessary for adding the function received from the communication unit 101.
In the second embodiment, resource confirmation is performed based on the load status of the CPU 133 and the amount of memory in the RAM 134 and ROM 135. In the first embodiment, the resource is checked based on whether there is a free sub-resource.
When there is a resource necessary for function addition (step S402: YES), the function management unit 104 adds the logic of the function to be newly added as a new function control unit that controls the function 3.
In the case of the hardware configuration described in the first embodiment, the new function control unit is set to operate on a CPU core different from the function control unit 102 and the function control unit 103. If the hardware configuration described in the second embodiment is used,
When there is no resource necessary for function addition (step S402: NO), this process ends.
In step S <b> 404, the function management unit 104 adds the port setting for function 3 to the port setting unit 105. For example, a setting is made so that IF3, which is an access IF of function 3, is assigned to an unused port 3.
In step S <b> 405, the function management unit 104 adds the communication setting for function 3 to the communication setting unit 106. For example, the function management unit 104 sets the IP address, bandwidth, and priority used by the function 3.
 次に、コンフィグツールを用いて、機能を削除する動作について説明する。
 図10は本実施の形態において、コンフィグツール700を用いて機能を削除した場合のハブ装置100の動作を示すフローチャートである。
 ステップS500において、コンフィグツール700は、削除する機能を示す情報をネットワーク200に送信する。削除する機能を示す情報とは、機能制御部の名称、IDといった削除対象の機能制御部を識別する情報である。
 ステップS501において、通信部101は、ネットワーク200から削除する機能を示す情報を受信し、機能制御管理部104へ出力する。
 ステップS502において、機能管理部104は、通信部101から受け取った、削除対象となっている機能に該当する機能がハブ装置100に存在するか確認する。
 削除対象となっている機能が存在する場合(ステップS502:YES)、ステップS503において、機能管理部104は、削除する機能に該当する機能制御部を削除する。例えば、削除する機能が機能1の場合、機能制御部102を削除する。
 削除対象となっている機能が存在しない場合(ステップS502:NO)本処理を終了する。
 ステップS504において、機能管理部104は、ポート設定部105に対し、削除する機能に対応するポート設定を削除する。
 ステップS505において、機能管理部104は、通信設定部106に対し、削除する機能に対応する通信設定を削除する。
Next, an operation for deleting a function using the configuration tool will be described.
FIG. 10 is a flowchart showing the operation of the hub device 100 when functions are deleted using the configuration tool 700 in the present embodiment.
In step S500, the configuration tool 700 transmits information indicating the function to be deleted to the network 200. The information indicating the function to be deleted is information for identifying the function control unit to be deleted, such as the name and ID of the function control unit.
In step S <b> 501, the communication unit 101 receives information indicating a function to be deleted from the network 200 and outputs the information to the function control management unit 104.
In step S <b> 502, the function management unit 104 confirms whether or not the hub device 100 has a function that is received from the communication unit 101 and corresponds to the function to be deleted.
If there is a function to be deleted (step S502: YES), in step S503, the function management unit 104 deletes the function control unit corresponding to the function to be deleted. For example, when the function to be deleted is function 1, the function control unit 102 is deleted.
If there is no function to be deleted (step S502: NO), this process ends.
In step S504, the function management unit 104 deletes the port setting corresponding to the function to be deleted from the port setting unit 105.
In step S505, the function management unit 104 deletes the communication setting corresponding to the function to be deleted from the communication setting unit 106.
 次に、コンフィグツールを用いて、既存の機能を変更する動作について説明する。
 図11は本実施の形態において、コンフィグツール700を用いて機能を変更した場合のハブ装置100の動作を示すフローチャートである。
 ステップS600において、コンフィグツール700は、変更の対象である機能の情報と、ポート設定もしくは通信設定を含むデータをネットワーク200に送信する。変更の対象である機能の情報とは、機能制御部の名称、IDといった変更対象の機能制御部を識別する情報である。
 ステップS601において、通信部101は、ネットワーク200から変更の対象である機能の情報と、ポート設定もしくは通信設定を含むデータを受信し、機能制御管理部104へ出力する。
 ステップS602において、機能制御管理部104は、通信部101から受け取った、変更の対象である機能が、存在するか確認する。
 変更の対象である機能が存在しない場合(ステップS602:NO)、処理を終了する。
 変更の対象である機能が存在する場合(ステップS602:YES)、ステップS603において、機能制御管理部104は、変更の対象であるポート設定がポート設定部105内に存在するか確認する。
 変更の対象であるポート設定が存在する場合(ステップS603YES)、機能制御管理部104は、変更するポート設定のデータに従い、ポート設定部105におけるポート設定を変更する。
 変更の対象であるポート設定が存在しない場合(ステップS603:NO)、ポートの設定は行わず、次の処理へ進む。
 ステップS605において、機能制御管理部104は、変更の対象である通信設定が存在するか確認する。
 変更の対象である通信設定が存在する場合、機能管理部104は、変更の対象である通信設定のデータに従い、通信設定部106における通信設定を変更する。
 変更の対象である通信設定が含まれていない場合(ステップS605:NO)、処理を終了する。なお、以上の変更処理の結果は、次回のハブ起動時に図6の初期化処理により反映される。
 以上の構成によれば、車載制御ハブ装置の機能安全性を担保したまま、既存の機能を変更したり、新たな機能の追加、削除を行ったりすることが可能となる。
Next, an operation for changing an existing function using the configuration tool will be described.
FIG. 11 is a flowchart showing the operation of the hub device 100 when the function is changed using the configuration tool 700 in the present embodiment.
In step S <b> 600, the configuration tool 700 transmits information about the function to be changed and data including port settings or communication settings to the network 200. The information on the function to be changed is information for identifying the function control unit to be changed, such as the name and ID of the function control unit.
In step S <b> 601, the communication unit 101 receives information about the function to be changed and data including port settings or communication settings from the network 200, and outputs them to the function control management unit 104.
In step S <b> 602, the function control management unit 104 confirms whether the function to be changed received from the communication unit 101 exists.
If there is no function to be changed (step S602: NO), the process ends.
If there is a function to be changed (step S602: YES), in step S603, the function control management unit 104 checks whether the port setting to be changed exists in the port setting unit 105.
If there is a port setting to be changed (YES in step S603), the function control management unit 104 changes the port setting in the port setting unit 105 according to the port setting data to be changed.
If there is no port setting to be changed (step S603: NO), the port setting is not performed and the process proceeds to the next process.
In step S605, the function control management unit 104 checks whether there is a communication setting to be changed.
When there is a communication setting to be changed, the function management unit 104 changes the communication setting in the communication setting unit 106 according to the data of the communication setting to be changed.
If the communication setting to be changed is not included (step S605: NO), the process ends. Note that the result of the above change process is reflected by the initialization process of FIG. 6 at the next hub activation.
According to the above configuration, it is possible to change an existing function or add or delete a new function while ensuring the functional safety of the in-vehicle control hub device.
実施の形態3.
 本実施の形態では、デバイスにおける障害が発生した場合のフェールセーフ動作について図12と図13を用いて説明する。
 図12は、本実施の形態におけるハブ装置のソフトウェア構成例を示す。
 図12において、図2と同一の符号は、同一または相当する部分を表しており、障害検出部111と、フェールセーフ動作設定部112(デバイス切り替え部)以外については、実施の形態1で用いた図2で記載したものと同じ動作をする。
 障害検出部111は、特定のデバイスへの出力もしくはデバイスからの入力が不能となったことを検出するプログラムである。
 フェールセーフ動作設定部112は、障害個所に応じて変更するポート設定の情報を持つプログラムである。
 なお、障害検出部111は、特定のデバイスへの出力もしくはデバイスからの入力が不能となったことを検出する装置でもよい。
フェールセーフ動作設定部112は障害個所に応じて変更するポート設定の情報を持つプログラムである。例えば、フェールセーフ動作設定部112は、デバイス301において障害検出に対するフェールセーフ設定として、ポート108をポート110に変更する設定を持つ。
Embodiment 3 FIG.
In the present embodiment, a fail-safe operation when a failure occurs in a device will be described with reference to FIGS.
FIG. 12 shows a software configuration example of the hub device in the present embodiment.
12, the same reference numerals as those in FIG. 2 represent the same or corresponding parts, and components other than the failure detection unit 111 and the fail safe operation setting unit 112 (device switching unit) are used in the first embodiment. The same operation as described in FIG. 2 is performed.
The failure detection unit 111 is a program that detects that output to a specific device or input from a device is disabled.
The fail-safe operation setting unit 112 is a program having port setting information that is changed according to the failure location.
The failure detection unit 111 may be a device that detects that output to a specific device or input from a device is disabled.
The fail-safe operation setting unit 112 is a program having port setting information that is changed according to the failure location. For example, the fail safe operation setting unit 112 has a setting for changing the port 108 to the port 110 as a fail safe setting for failure detection in the device 301.
 次に、本実施の形態におけるハブ装置100の動作について説明する。
 図13は本実施の形態において、障害を検出して、ポート切り替えを行った場合の動作を示すフローチャートである。
 ステップS700において、障害検出部111は、例えばデバイス301の障害を検出し、フェールセーフ動作設定部112に障害検出内容を通知する。
 障害検出部111の障害検出方法は、例えば、デバイス301から予め設定された時間だけ信号入力がないことを用いてもよいし、デイバス301から障害を示す信号を受信することによって検知してもよい。
 ステップS701において、フェールセーフ動作設定部112は、フェールセーフ動作設定に従い、フェールセーフ動作としてポート設定部105におけるポート設定テーブル400を変更することで、ポートの切り替えを行う。
 例えば、デバイス301の接続するポート108の設定をポート110に切り替え、デバイス303を代替として使用するようにする。
Next, the operation of the hub device 100 in the present embodiment will be described.
FIG. 13 is a flowchart showing an operation when a failure is detected and port switching is performed in this embodiment.
In step S700, the failure detection unit 111 detects a failure of the device 301, for example, and notifies the fail-safe operation setting unit 112 of the failure detection content.
The failure detection method of the failure detection unit 111 may use, for example, the absence of signal input from the device 301 for a preset time, or may be detected by receiving a signal indicating a failure from the device 301. .
In step S701, the fail safe operation setting unit 112 performs port switching by changing the port setting table 400 in the port setting unit 105 as the fail safe operation according to the fail safe operation setting.
For example, the setting of the port 108 to which the device 301 is connected is switched to the port 110, and the device 303 is used as an alternative.
 以上の構成によれば、デバイスに障害が発生しても、予め代替として用意されたデバイスに自動的に切り替えることが可能となる。 According to the above configuration, even if a failure occurs in a device, it is possible to automatically switch to a device prepared in advance as an alternative.
実施の形態4.
 本実施の形態では、新たにポートを追加する場合の動作について図14と図15を用いて説明する。
 図14は、本実施の形態におけるハブ装置のソフトウェア構成例を示す。
 図14において、図12と同一の符号は、同一または相当する部分を表しており、ポート検出部115と、追加ポート116以外については、実施の形態4で用いた図12で記載したものと同じ動作をする。
 ポート検出部115は、ポートが追加されたことを検出するプログラムである。
 追加ポート116は、新しく追加されるポートもしくは複数のポートを含む装置である。
Embodiment 4 FIG.
In this embodiment, the operation when a new port is added will be described with reference to FIGS.
FIG. 14 shows a software configuration example of the hub device in the present embodiment.
14, the same reference numerals as those in FIG. 12 represent the same or corresponding parts, and portions other than the port detection unit 115 and the additional port 116 are the same as those described in FIG. 12 used in the fourth embodiment. To work.
The port detection unit 115 is a program that detects that a port has been added.
The additional port 116 is a device including a newly added port or a plurality of ports.
 次に、本実施の形態におけるハブ装置100の動作について説明する。
 図15は本実施の形態において、ポートの追加を行った場合の動作を示すフローチャートである。
 ステップS900において、追加ポート116は、ハブ装置100に接続される。
 ステップS901において、ポート検出部115は、追加ポート116が接続されたことを検出する。
 検出する方法は、ハブ装置100と追加ポート116がそれぞれ接点を持ち、それぞれの接点が接触して通電し、ポート検出部115に通知してもよい。また、ハブ装置100と追加ポート116がデータ通信可能な接点を持ち、それぞれの接点が接触して追加ポート116からポート検出部115に接続を通知する通信を行うことによってもよい。
 また、ハブ装置100にスイッチ(図示せず)を設け、追加ポート100の接続によりハブ装置100のスイッチが押下されることによって、ポート検出部115に通知してもよい。
 ステップS902において、ポート検出部115は、ポート設定部105に対し、追加ポート116が使用可能であることを設定する。
 ポート設定部105が、追加ポート116を使用可能と認識する方法は、例えば、ポート3といった識別子を無効状態で予め予約しておき、ポート検出部115からポート追加の通知があったときに、ポート3といった予め予約していた識別子を有効化することによって、行ってもよい。また、追加ポート116が固有の識別子を持っており、追加ポート116は通信により固有の識別子をポート検出部115に通知することよってもよい。
Next, the operation of the hub device 100 in the present embodiment will be described.
FIG. 15 is a flowchart showing the operation when a port is added in the present embodiment.
In step S900, the additional port 116 is connected to the hub device 100.
In step S901, the port detection unit 115 detects that the additional port 116 is connected.
As a detection method, the hub device 100 and the additional port 116 each have a contact point, and each contact point may contact and be energized to notify the port detection unit 115. Alternatively, the hub device 100 and the additional port 116 may have contacts capable of data communication, and the respective contacts may contact each other and perform communication for notifying the port detection unit 115 of the connection from the additional port 116.
Further, a switch (not shown) may be provided in the hub device 100, and the port detection unit 115 may be notified by pressing the switch of the hub device 100 when the additional port 100 is connected.
In step S <b> 902, the port detection unit 115 sets that the additional port 116 can be used to the port setting unit 105.
The method of recognizing that the additional port 116 can be used by the port setting unit 105 is, for example, that an identifier such as port 3 is reserved in an invalid state in advance, and when the port detection unit 115 notifies the port addition, This may be done by validating a previously reserved identifier such as 3. Further, the additional port 116 may have a unique identifier, and the additional port 116 may notify the port detection unit 115 of the unique identifier by communication.
 以上の構成によれば、ハブ装置100のポート数を自由に増加させることができる。このため、予め最小構成でハブ装置を設計しておき、必要に応じてポート数を増加させることで、余剰のポートを削減でき、ハブ装置のサイズを小さくできる。
 また、機能を追加する場合に、追加する機器を接続するのに適切な位置に設置しているハブ装置でポート数が不足していた場合でも、ポートを追加することで不足することがなくなる。これにより、新たにハブ装置を追加するよりコストを低減させることができる。また、他の空きポートを持つハブ装置まで配索するといった作業の手間を削減することができる。
According to the above configuration, the number of ports of the hub device 100 can be increased freely. For this reason, by designing the hub device with a minimum configuration in advance and increasing the number of ports as necessary, excess ports can be reduced and the size of the hub device can be reduced.
In addition, when adding a function, even if the number of ports is insufficient in a hub device installed at an appropriate position for connecting a device to be added, the shortage can be prevented by adding ports. Thereby, cost can be reduced rather than adding a hub apparatus newly. Further, it is possible to reduce the labor of wiring to other hub devices having free ports.
100 ハブ装置
102、103 機能制御部
104 機能制御管理部
105 ポート設定部
106 通信設定部
107 ポートスイッチ部
108、109 ポート
111 障害検出部
112 フェールセーフ動作設定部
113 スケジューラ部
115 ポート検出部
124、126、128、133 CPU
125、121、122、134 RAM
131、127、129、135 ROM
301、302 デバイス
DESCRIPTION OF SYMBOLS 100 Hub apparatus 102, 103 Function control part 104 Function control management part 105 Port setting part 106 Communication setting part 107 Port switch part 108, 109 Port 111 Fault detection part 112 Fail safe operation setting part 113 Scheduler part 115 Port detection part 124, 126 128, 133 CPU
125, 121, 122, 134 RAM
131, 127, 129, 135 ROM
301, 302 devices

Claims (4)

  1.  複数のデバイスがそれぞれ接続される複数のポートと、
     前記複数のポートを管理するポート管理部と、
     前記ポート管理部を介し前記複数のデバイスの少なくとも1つを制御するプログラムを搭載した第1の記憶装置をそれぞれ有する複数の機能制御部と、
     前記プログラムを変更、新規プログラムを前記第1の記憶装置に追加、または、前記プログラムを前記第1の記憶装置から削除するプログラムを搭載した第2の記憶装置を有する機能制御管理部と、
     前記第2の記憶装置に搭載されたプログラムを実行する第2のCPU(Central Processing Unit)と、
     前記第1の記憶装置に搭載されたプログラムを実行する第1のCPUを複数、備えることを特徴とする車載制御ハブ装置。
    Multiple ports to which multiple devices are connected,
    A port management unit for managing the plurality of ports;
    A plurality of function control units each having a first storage device loaded with a program for controlling at least one of the plurality of devices via the port management unit;
    A function control management unit having a second storage device loaded with a program for changing the program, adding a new program to the first storage device, or deleting the program from the first storage device;
    A second CPU (Central Processing Unit) for executing a program installed in the second storage device;
    An in-vehicle control hub device comprising a plurality of first CPUs for executing programs installed in the first storage device.
  2.  前記デバイスに対する障害を検出するプログラムを搭載した第3の記憶装置を有する障害検出部と、
     前記障害検出部が検出した前記デバイスの代替となるデバイスの情報を有し、前記障害検出部が障害を検出した場合、前記代替となるデバイスに切り替えを行うプログラムを搭載した第4の記憶装置を有するデバイス切り替え部と、を備えることを特徴とする請求項1に記載の車載制御ハブ装置。
    A failure detection unit having a third storage device loaded with a program for detecting a failure to the device;
    A fourth storage device having information on a device that is a substitute for the device detected by the failure detection unit, and a program for switching to the substitute device when the failure detection unit detects a failure; The in-vehicle control hub device according to claim 1, further comprising: a device switching unit having the device switching unit.
  3.  新たにポートが追加されたことを検出するプログラムを搭載した第5の記憶装置を有するポート検出部を備えることを特徴とする請求項1または2に記載の車載制御ハブ装置。 The in-vehicle control hub device according to claim 1 or 2, further comprising a port detection unit having a fifth storage device on which a program for detecting that a port has been newly added is mounted.
  4.  前記第1の記憶装置から前記第5の記憶装置までの少なくとも2つが同一の記憶装置であることを特徴とする請求項1から3のいずれか一項に記載の車載制御ハブ装置。 4. The in-vehicle control hub device according to claim 1, wherein at least two of the first storage device to the fifth storage device are the same storage device.
PCT/JP2014/003153 2014-06-13 2014-06-13 Vehicle-mounted control hub device WO2015189877A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/003153 WO2015189877A1 (en) 2014-06-13 2014-06-13 Vehicle-mounted control hub device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/003153 WO2015189877A1 (en) 2014-06-13 2014-06-13 Vehicle-mounted control hub device

Publications (1)

Publication Number Publication Date
WO2015189877A1 true WO2015189877A1 (en) 2015-12-17

Family

ID=54833011

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/003153 WO2015189877A1 (en) 2014-06-13 2014-06-13 Vehicle-mounted control hub device

Country Status (1)

Country Link
WO (1) WO2015189877A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019220107A (en) * 2018-06-22 2019-12-26 日本電気株式会社 Computer system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0589021A (en) * 1991-09-30 1993-04-09 Nec Corp Peripheral controller
JPH05128042A (en) * 1991-11-01 1993-05-25 Oki Electric Ind Co Ltd Input/output control system
JPH08123764A (en) * 1994-04-07 1996-05-17 Gould Instr Syst Inc General-purpose signal conditioner
JP2000049829A (en) * 1998-07-27 2000-02-18 Yazaki Corp On-vehicle multiplex transmission method and on-vehicle multiplex transmission system
JP2002236808A (en) * 2001-02-07 2002-08-23 Sony Corp Information processing device and method, program storage medium and program
JP2013097553A (en) * 2011-10-31 2013-05-20 Fujitsu Ltd Switching control device, switching control method, information processor and switching control program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0589021A (en) * 1991-09-30 1993-04-09 Nec Corp Peripheral controller
JPH05128042A (en) * 1991-11-01 1993-05-25 Oki Electric Ind Co Ltd Input/output control system
JPH08123764A (en) * 1994-04-07 1996-05-17 Gould Instr Syst Inc General-purpose signal conditioner
JP2000049829A (en) * 1998-07-27 2000-02-18 Yazaki Corp On-vehicle multiplex transmission method and on-vehicle multiplex transmission system
JP2002236808A (en) * 2001-02-07 2002-08-23 Sony Corp Information processing device and method, program storage medium and program
JP2013097553A (en) * 2011-10-31 2013-05-20 Fujitsu Ltd Switching control device, switching control method, information processor and switching control program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019220107A (en) * 2018-06-22 2019-12-26 日本電気株式会社 Computer system
JP7087719B2 (en) 2018-06-22 2022-06-21 日本電気株式会社 Computer system

Similar Documents

Publication Publication Date Title
US9596225B2 (en) Out-of-vehicle device interface apparatus and method for protecting in-vehicle network
JP4492618B2 (en) Vehicle control system
CN108028833A (en) A kind of method, system and the relevant device of NAS data accesses
JP7133022B2 (en) In-vehicle communication device and in-vehicle system
WO2020085330A1 (en) Electronic control device, electronic control method, and program
JP3970786B2 (en) Multiprocessor system
WO2015189877A1 (en) Vehicle-mounted control hub device
US8259324B2 (en) Printer/storage integrate system, controller, control method, and control program for automatic installation of control software
Kenjić et al. Connectivity challenges in automotive solutions
JP6569547B2 (en) Communication method
JP5365584B2 (en) Control device
JP5458968B2 (en) Safety control system
JP2020086522A (en) On-vehicle system
CN108363616A (en) Operator&#39;s system for Process Control System
JP2022123826A (en) Data processor and data processing system
JP7140011B2 (en) Gateway device
CN113934379A (en) Network printing method, medium and device based on desktop virtualization technology
JP6572779B2 (en) Communications system
JP5299261B2 (en) Electronic control unit
JP6182779B1 (en) Transfer device, transfer method, and program
JP2006146420A (en) Field equipment and system using the same
EP3982250A1 (en) Generation of code for a system
JP6207710B1 (en) Transfer control device, transfer control method, and program
JP2009259041A (en) Server device and security control method
JP6922601B2 (en) Monitoring data transfer system and management server

Legal Events

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

Ref document number: 14894239

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: JP

122 Ep: pct application non-entry in european phase

Ref document number: 14894239

Country of ref document: EP

Kind code of ref document: A1