Control device and control system
11084435 · 2021-08-10
Assignee
Inventors
Cpc classification
H04L12/2832
ELECTRICITY
H04L12/28
ELECTRICITY
International classification
B60R16/02
PERFORMING OPERATIONS; TRANSPORTING
H04L12/28
ELECTRICITY
B60R16/023
PERFORMING OPERATIONS; TRANSPORTING
Abstract
One or more of a plurality of input ports (P11-P14) that allow input of a binary signal are allocated to a unique port, and the potential thereof is fixed to a ground potential, etc., using the electrical wires (43d, 43c) of a wire harness. The potential of the remaining input ports in the initial state is set to a high potential using a pull-up circuit, etc., and a combination of the potential of the unique port and the potential of the remaining ports is associated with the ID value of the corresponding node. In order to share the remaining ports in the reading of the ID and the reading of a signal, the ID is established after a standby until a given time has elapsed without a change in the potential when the potential of the input ports is read.
Claims
1. A control device which is used as one of a plurality of control units that are connected to each other via a wire harness, the control device comprising: a control portion having a plurality of input ports which allow input of a binary signal respectively; a port potential determining portion which fixes, at a first reference potential, a potential of at least one particular port an assignment state of which can be changed one by one among the input ports, and the port potential determining portion further sets, in an initial state, a potential of each of remaining ports that are input ports other than the at least one particular port among the input ports at a second reference potential that is different from the first reference potential; and an ID determining portion which determines self identification information based on a combination of a potential of each of the at least one particular port and the potential of each of the remaining ports after detection of a variation in the combination, wherein input elements are connected to the remaining ports respectively, and wherein the port potential determining portion is configured to change the potential of each of the remaining ports in accordance with statuses of the input elements respectively connected to the remaining ports after the initial state is elapsed.
2. The control device according to claim 1, wherein the ID determining portion determines self identification information based on a combination of a potential of each of the at least one particular port and the potential of each of the remaining ports if no potential variation occurs when monitoring the potentials of the particular port and the remaining ports at least for a prescribed time at least in an initial state after power-on.
3. The control device according to claim 1, wherein the port potential determining portion connects a ground line or a prescribed power line to the particular port electrically; and wherein the port potential determining portion connects the prescribed power line or the ground line to the remaining ports electrically via resistors, respectively.
4. A control system comprising: a plurality of the control devices according to claim 1 as slave control units, wherein each of the slave control units and a master control unit which controls the slave control units are connected to each other via the wire harness so as to be able to communicate with each other.
5. The control system according to claim 4, wherein the control portion of each of the slave control units transmits the identification information determined by the ID determining portion to at least the master control unit.
6. The control device according to claim 1, wherein, after detecting the variation in the combination, the ID determining portion is configured to set the self identification information to the variation in response to determining that the variation has been maintained for a predetermined period of time.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
MODES FOR CARRYING OUT THE INVENTION
(7) A specific embodiment of the present invention will be hereinafter described with reference to the drawings.
(8)
(9) In the example shown in
(10) Each of the slave-incorporated connectors EC1, EC2, and EC3 is a connector housing having a connection unit for connecting collections of wires or a collection of wires and a device in a detachable manner, and has an inside space for housing of an electronic circuit board of the slave control portion 20. A connection unit EC2a is provided with a cavity in which many terminals (T11-T18) can be fixed.
(11) One master control portion 10 is provided to control the entire system intensively. The master control portion 10 is electrically connected to the slave-incorporated connectors EC1, EC2, and EC3 by a wire harness.
(12) The wire harness included in the control system shown in
(13) As shown in
(14) Basically, the subharness 43(2) connects the slave-incorporated connector EC2 and electric devices 30(2). The subharness 43(2) is a collection of five wires 43a, 43b, 43c, 43d, and 43e, and terminals T11-T15 which are provided at one ends of the wires, respectively, are fixed to the connection unit EC2a. The four terminals T11, T12, T13, and T14 are connected to respective input ports P11, P12, P13, and P14 of the internal circuit of the slave control portion 20. The terminal T15 is electrically connected to the terminal T18 via the internal circuit of the slave control portion 20. Thus, the wire 43e which is connected to the terminal T15 of the subharness 43(2) is used as a ground line.
(15) Among the five wires 43a, 43b, 43c, 43d, and 43e which constitute the subharness 43(2), the other ends of the four wires 43a, 43b, 43c, and 43e are connected to the electric devices 30(2) via a connector 44(2). The other end of the remaining wire 43d is connected to the ground line 41b of the trunk line portion 41. That is, the potential of the internal input port P14 of the slave-incorporated connector EC2 is always fixed at the ground potential by the ground line 41b. This is a special structure that is necessary for determining unique identification information that is used for identifying the slave-incorporated connector EC2.
(16) The electric devices 30(2) shown in
(17) On the other hand, each of the switches SW11 and SW12 is a momentary-type switch whose electric contact is closed only while it is manipulated and is used for detecting a user input manipulation on a prescribed push switch, for example. The reason why the type of each of these switches is restricted to the momentary-type switch to use its output potential for determination of identification information. Details will be described later.
(18) Equipped with the one input device SE11 and the two switches SW11 and SW12, the electric devices 30(2) shown in
(19) In view of the above, one, left free (i.e., not used for input of an electrical signal), of the four input ports P11, P12, P13, and P14 is used for determining identification information. In the example of
(20) Like the slave-incorporated connector EC2, each of the slave-incorporated connectors EC1 and EC3 shown in
(21) As shown in
(22) One ends of all the five wires constituting the subharness 43(1) are connected to the slave-incorporated connector EC1, and their other ends are all connected to the respective electric devices 30(1). One ends of all the five wires constituting the subharness 43(3) are connected to the slave-incorporated connector EC3, and the other ends of the five wires excluding a wire 43c are connected to respective electric devices 30(3). The other end of the wire 43c is connected to the ground line 41b of the trunk line portion 41.
(23) The electric devices 30(1) and 30(3) are configured as shown in
(24) Thus, the electric devices 30(1) output four systems of electrical signals. Four of the five wires constituting the subharness 43(1) are used for transmitting the four systems of electrical signals that are output from the electric devices 30(1), to the respective input ports P11, P12, P13, and P14 of the slave-incorporated connector EC1. The remaining one wire is used for determining a ground potential.
(25) The electric devices 30(3) have one input device SE31 and two switches SW31 and SW32. The two switches SW31 and SW32 are momentary-type switches and there are no special restrictions on the input device SE31.
(26) Thus, the electric devices 30(3) output three systems of electrical signals. Three of the five wires constituting the subharness 43(3) are used for transmitting the three systems of electrical signals that are output from the electric devices 30(3), to the respective input ports P11, P12, and P14 of the slave-incorporated connector EC3. The input port P13 of the slave-incorporated connector EC3 is connected to the ground line 41b by a wire 43c shown in
(27) <Example Configuration of Slave Control Portion 20>
(28)
(29) The microcomputer 21 operates according to programs that are installed therein in advance and thereby realizes control functions that are required by the slave control portion 20. For example, where as with the electric devices 30(2) the control targets are the input device SE11 and the switches SW11 and SW12, the microcomputer 21 processes electrical signals that are output from these control targets and informs processing results to the master control portion 10. In the case of controlling an electric device that incorporates a load, the microcomputer 21 controls energization of the load according to an instruction etc. received from the master control portion 10. The microcomputer 21 also has a function of determining identification information (ID) that is assigned to the slave control portion 20 itself.
(30) The microcomputer 21 shown in
(31) The power portion 22 generates a stable DC voltage (Vcc: 5 V, for example) that is necessary for operation of the circuits such as the microcomputer 21, on the basis of the DC power source power (+B: 12 V, for example) that is supplied from the power line 41a.
(32) The pull-up circuit 24 is equipped with four resistors R11, R12, R13, and R14. The signal lines 27a, 27b, 27c, and 27d are connected to the power line 25 via the four respective resistors R11, R12, R13, and R14. That is, in an initial state in which no external signals are received, the potentials of the signal lines 27a, 27b, 27c, and 27d are kept at a high potential (Vcc) by the pull-up circuit 24.
(33) Where the input device SE11 of the control target electric devices 30(2) is of any of certain kinds, the slave control portion 20 may be modified in such a manner that the resistor R11 of the pull-up circuit 24 is eliminated or the input port P11 is replaced by an analog signal input port.
(34) The communication interface 23 is a transceiver that performs signal processing for allowing the microcomputer 21 to perform a data communication using the communication line 41c. The communication interface 23 is connected to the communication line 41c of the trunk line portion 41 via the communication line 28 and the terminal T17.
(35) <Necessity of Identification Information (ID)>
(36) In the control system shown in
(37) For the above purposes, it is necessary to assign unique pieces of identification information (IDs) to the plural respective slave control units 20 individually. However, in control systems in which, as in the control system shown in
(38) <Specific Example of Relationship Between IDs and Plural Input Ports>
(39)
(40) The specification shown in
(41) In
(42) Thus, on the basis of the information shown in
(43) In the specification shown in
(44) On the other hand, for a slave control portion 20 that is assigned the identification information ID2, the input port P14 is fixed at the ground potential (GND) and hence cannot be used for input of an electrical signal. Only the remaining three input ports P11, P12, and P13 can be used for input of an electrical signal, that is, the number of usable ports is equal to 3.
(45) Likewise, for a slave control portion 20 that is assigned the identification information ID3, the number of usable ports is equal to 3. For a slave control portion 20 that is assigned the identification information ID4, the number of usable ports is equal to 3. For a slave control portion 20 that is assigned the identification information ID5, the number of usable ports is equal to 2. For a slave control portion 20 that is assigned the identification information ID6, the number of usable ports is equal to 2. For a slave control portion 20 that is assigned the identification information ID7, the number of usable ports is equal to 2.
(46) <Explanation of Actual Configuration for Assigning of Identification Information>
(47) In the control system shown in
(48) In the configuration shown in
(49) Since the high potential (Hi) is always applied to the input ports P11-P14 via the pull-up circuit shown in
(50) That is, in a prescribed initial state or a steady state, the combination of the states of the input ports P11-P14 of the slave control portion 20 of the slave-incorporated connector EC2 satisfies the conditions of the “identification information ID2” in the specification shown in
(51) On the other hand, for the slave control portion 20 of the slave-incorporated connector EC1 shown in
(52) For the slave control portion 20 of the slave-incorporated connector EC3 shown in
(53) <Processing Procedure for Recognizing ID>
(54)
(55) In the processing procedure of
(56) Then the microcomputer 21 stands by for a predetermined time (e.g., 3 sec) that is necessary for determination of an ID (S12). The microcomputer 21 judges whether the Hi/Lo potential states of the three input ports have varied during the standby period (S13). If a variation has occurred, the microcomputer 21 returns to step S11. If no variation has occurred, the microcomputer 21 moves to step S14, where ordinary processing is to be performed.
(57) Before moving to the step of the ordinary processing, the microcomputer 21 determines a unique ID that is assigned to the slave control portion 20 to which it belongs by comparing the combination of the Hi/Lo potentials of the three ports that were found at step S11 with the sets of conditions corresponding to the specification of
(58) The microcomputer 21 uses the self ID thus determined in a communication operation of the ordinary processing (S14). By monitoring the potentials of the four input ports P11-P14 excluding the particular input port(s) that is fixed at the ground potential, the microcomputer 21 can detect states of the input device SE11 and the switches SW11 and SW12 and causes them to be reflected in a control.
(59) That is, the four input ports P11-P14 are used for two kinds of purposes: they are used for determining a self ID in an initial state immediately after power-on and used for detecting states of the input device SE11 and the switches SW11 and SW12 in ordinary processing.
(60) <Description of Modification>
(61)
(62) The control system shown in
(63) More specifically, in the configuration of
(64) In the configuration of
(65) The separation into the connection units EC2a and EC2b makes it possible to manufacture the subharness 43(2) and the subharness 43(3) as independent components of a wire harness. As a result, when, for example, the configuration of electric devices 30 which are connected to the system is changed or new electric devices 30 are added, an ID to be assigned can be changed merely by changing the configuration of a corresponding subharness 43(2); it is not necessary to change the other constituent elements.
(66) <Advantages of Control Device and Control System>
(67) In each of the control systems shown in
(68) A proper ID can be assigned automatically to each slave control portion 20 merely by connecting a wire harness to it, that is, without the need for attaching a special component such as a resistor to it to assign an ID to it. Thus, even in a case of adding new electric devices to the system, simply adding a slave control portion 20 and subharnesses makes it possible to give the slave control portion 20 functions for controlling the new electric devices.
(69) Since the input ports P11-P14 for each slave control portion 20 can be shared by the function of reading an ID assigned and the function of reading electrical signals coming from the electric devices 30, it is not necessary to increase the number of necessary ports and cost increase can be suppressed. In addition, with the processing procedure shown in
(70) <Possible Modifications Other than the Above>
(71) Each of the control systems shown in
(72) Also in each of the control systems shown in
(73) Features of the control device and the above-described control system according to the embodiment of the invention will be summarized concisely below in the form of items [1] to [5]:
(74) [1] A control device which is used as one of plural control units that are connected to each other via a wire harness (trunk line portion 41, subharnesses 42 and 43), the control device comprising: a control portion (slave control portion 20) having a plurality of input ports (P11-P14) which allow input of a binary signal respectively; a particular port potential determining portion (wire 43d in
(75) [2] The control device according to item [1], wherein the ID determining portion determines self identification information based on a combination of a potential of each of the at least one particular port and the potential of each of the remaining ports if no potential variation occurs when monitoring the potentials of the particular port and the remaining ports at least for a prescribed time at least in an initial state after power-on (steps S11-S14).
(76) [3] The control device according to item [1], wherein the particular port potential determining portion connects a ground line or a prescribed power line to the particular port electrically; and wherein the remaining port potential determining portion connects the prescribed power line or the ground line to the remaining ports electrically via prescribed resistors (R11-R14), respectively.
(77) [4] A control system comprising: a plurality of the control devices according to item [1] as slave control units, wherein: each of the slave control units (slave control portions 20) and a master control unit (master control portion 10) which controls the slave control units are connected via the wire harness (trunk line portion 41) so as to be able to communicate with each other.
(78) [5] The control system according to item [4], wherein the control portion of each of the slave control units transmits the identification information determined by the ID determining portion to at least the master control unit (S14).
(79) Although the invention has been described above in detail with reference to the particular embodiment, it would apparent to those skilled in the art that various changes and modifications are possible without departing from the spirit and scope of the invention.
(80) The present application is based on Japanese Patent Application No. 2015-250166 filed on Dec. 22, 2015, the disclosure of which is incorporated herein by reference.
INDUSTRIAL APPLICABILITY
(81) The invention provides an advantage that a control device and a control system can be provided that make it possible to commonize, in configuration and operation, plural control units included in the system and also make it possible to control various kinds of electric devices because a communication partner can be recognized using unique identification information even in a case that the plural control units are commonized in configuration and operation. Providing the above advantage, the invention is useful when applied to control devices and control systems that can be used for identifying each of plural control units in a control system having the plural control units that are connected to each other via a wire harness.
DESCRIPTION OF SYMBOLS
(82) 10: Master control portion 20: Slave control portion 21: Microcomputer 22: Power portion 23: Communication interface 24: Pull-up circuit 25: Power line 26: Ground line 27a, 27b, 27c, 27d: Signal line 28: Communication line 30: Electric devices 41: Trunk line portion 41a: Power line 41b: Ground line 41c: Communication line 42, 43: Subharness 43a, 43b, 43c, 43d, 43e: Wire 44: Connector P11, P12, P13, P14: Input port EC1, EC2, EC3: Slave-incorporated connector EC2a: Connection unit T11, T12, T13, T14, T15, T16, T17, T18: Terminal SE11, SE21, SE31: Input device SW11, SW12, SW21, SW22, SW23, SW31, SW32: Switch R11, R12, R13, R14: Resistor