Electronic control apparatus
11595144 · 2023-02-28
Assignee
Inventors
Cpc classification
H04J3/1682
ELECTRICITY
H04Q9/00
ELECTRICITY
International classification
Abstract
Based on a count value held by a transmission counter, an information multiplex apparatus forms multiplexed transmission data by selecting or dividing at least part of each of two or more information items, based on the respective sizes of the two or more information items, a counter period of the transmission counter, and a transmission margin degree.
Claims
1. An electronic control apparatus comprising: two or more information items to be updated at respective predetermined timings; an information multiplex apparatus that multiplexes the two or more information items; a transmission circuit that periodically transmits multiplexed transmission data outputted by the information multiplex apparatus; and a transmission counter that counts the number of transmissions transmitted by the transmission circuit, wherein based on a count value held by the transmission counter, the information multiplex apparatus forms the multiplexed transmission data by selecting or dividing at least part of each of the two or more information items, based on respective sizes of the two or more information items, a counter period of the transmission counter, and a transmission margin degree, wherein the electronic control apparatus further comprising: a reception circuit that receives the multiplexed transmission data transmitted by the transmission circuit; an information division apparatus that divides reception data received by the reception circuit; two or more information buffers in which the divided reception data items are stored; and two or more information processing apparatuses that obtain the two or more information buffers in two or more different periods, wherein the information multiplex apparatus multiplexes the two or more information items in such a way that each of all reception data items stored in the two or more information buffers is updated in an interval shorter than a period in which the two or more information processing apparatuses obtain the respective stored reception data items from the two or more information buffers, and wherein when the information division apparatus receives an error detection information, the information multiplex apparatus holds reception data stored in the information buffer.
2. The electronic control apparatus according to claim 1, wherein the information multiplex apparatus adds the count value of the transmission counter to the transmission data.
3. The electronic control apparatus according to claim 1, wherein respective priority degrees are provided to the two or more information items, and a frequency of transmitting data having a priority degree higher than that of another information is made larger than a frequency of transmitting said another information.
4. The electronic control apparatus according to claim 3, wherein the priority degree is included in the count value of the transmission counter.
5. The electronic control apparatus according to claim 1, wherein the information multiplex apparatus adds error detection information to each of the transmission data items.
6. The electronic control apparatus according to claim 1, wherein a whole size of the transmission data outputted by the information multiplex apparatus is constant.
7. An electronic control apparatus comprising: two or more information items to be updated at respective predetermined timings; an information multiplex apparatus that multiplexes the two or more information items; a transmission circuit that periodically transmits multiplexed transmission data outputted by the information multiplex apparatus; and a transmission counter that counts the number of transmissions transmitted by the transmission circuit, wherein based on a count value held by the transmission counter, the information multiplex apparatus forms the multiplexed transmission data by selecting or dividing at least part of each of the two or more information items, based on respective sizes of the two or more information items, a counter period of the transmission counter, and a transmission margin degree, wherein the electronic control apparatus further comprising: a reception circuit that receives the multiplexed transmission data transmitted by the transmission circuit; an information division apparatus that divides reception data received by the reception circuit; two or more information buffers in which the divided reception data items are stored; and two or more information processing apparatuses that obtain the two or more information buffers in two or more different periods, wherein the information multiplex apparatus multiplexes the two or more information items in such a way that each of all reception data items stored in the two or more information buffers is updated in an interval shorter than a period in which the two or more information processing apparatuses obtain the respective stored reception data items from the two or more information buffers.
8. The electronic control apparatus according to claim 7, wherein when dividing data received by the reception circuit, the information division apparatus utilizes the count value of the transmission counter.
9. The electronic control apparatus according to claim 2, further comprising: a reception circuit that receives the multiplexed transmission data transmitted by the transmission circuit; an information division apparatus that divides reception data received by the reception circuit; two or more information buffers in which the divided reception data items are stored; and two or more information processing apparatuses that obtain the two or more information buffers in two or more different periods, wherein the information multiplex apparatus multiplexes the two or more information items in such a way that each of all reception data items stored in the two or more information buffers is updated in an interval shorter than a period in which the two or more information processing apparatuses obtain the respective stored reception data items from the two or more information buffers.
10. The electronic control apparatus according to claim 3, further comprising: a reception circuit that receives the multiplexed transmission data transmitted by the transmission circuit; an information division apparatus that divides reception data received by the reception circuit; two or more information buffers in which the divided reception data items are stored; and two or more information processing apparatuses that obtain the two or more information buffers in two or more different periods, wherein the information multiplex apparatus multiplexes the two or more information items in such a way that each of all reception data items stored in the two or more information buffers is updated in an interval shorter than a period in which the two or more information processing apparatuses obtain the respective stored reception data items from the two or more information buffers.
11. The electronic control apparatus according to claim 4, further comprising: a reception circuit that receives the multiplexed transmission data transmitted by the transmission circuit; an information division apparatus that divides reception data received by the reception circuit; two or more information buffers in which the divided reception data items are stored; and two or more information processing apparatuses that obtain the two or more information buffers in two or more different periods, wherein the information multiplex apparatus multiplexes the two or more information items in such a way that each of all reception data items stored in the two or more information buffers is updated in an interval shorter than a period in which the two or more information processing apparatuses obtain the respective stored reception data items from the two or more information buffers.
12. The electronic control apparatus according to claim 5, further comprising: a reception circuit that receives the multiplexed transmission data transmitted by the transmission circuit; an information division apparatus that divides reception data received by the reception circuit; two or more information buffers in which the divided reception data items are stored; and two or more information processing apparatuses that obtain the two or more information buffers in two or more different periods, wherein the information multiplex apparatus multiplexes the two or more information items in such a way that each of all reception data items stored in the two or more information buffers is updated in an interval shorter than a period in which the two or more information processing apparatuses obtain the respective stored reception data items from the two or more information buffers.
13. The electronic control apparatus according to claim 6, further comprising: a reception circuit that receives the multiplexed transmission data transmitted by the transmission circuit; an information division apparatus that divides reception data received by the reception circuit; two or more information buffers in which the divided reception data items are stored; and two or more information processing apparatuses that obtain the two or more information buffers in two or more different periods, wherein the information multiplex apparatus multiplexes the two or more information items in such a way that each of all reception data items stored in the two or more information buffers is updated in an interval shorter than a period in which the two or more information processing apparatuses obtain the respective stored reception data items from the two or more information buffers.
14. The electronic control apparatus according to claim 9, wherein when dividing data received by the reception circuit, the information division apparatus utilizes the count value of the transmission counter.
15. The electronic control apparatus according to claim 10, wherein when dividing data received by the reception circuit, the information division apparatus utilizes the count value of the transmission counter.
16. The electronic control apparatus according to claim 11, wherein when dividing data received by the reception circuit, the information division apparatus utilizes the count value of the transmission counter.
17. The electronic control apparatus according to claim 12, wherein when dividing data received by the reception circuit, the information division apparatus utilizes the count value of the transmission counter.
18. The electronic control apparatus according to claim 13, wherein when dividing data received by the reception circuit, the information division apparatus utilizes the count value of the transmission counter.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
BEST MODE FOR CARRYING OUT THE INVENTION
Embodiment 1
(9) Hereinafter, an electronic control apparatus according to Embodiment 1 will be explained with reference to the drawings. In each of the drawings, the same or similar constituent elements will be explained with the same reference numerals assigned thereto.
(10) Information Y provided in the information output apparatus 100 includes information A 102, information B 103, and information C 104. The information A 102, the information B 103, and the information C 104 are updated at respective different timings and are constantly inputted to an information multiplex apparatus 106. A transmission timer 108 for outputting a transmission request signal to a transmission circuit 107 is disposed in the information output apparatus 100. The transmission timer 108 outputs the transmission request signal to the transmission circuit 107 every specific time. At a timing when the transmission request signal is inputted thereto from the transmission timer 108, the transmission circuit 107 outputs transmission data 200, which is outputted from the information multiplex apparatus 106, to the control apparatus 101.
(11) After transmitting the transmission data 200 from the information multiplex apparatus 106 to a reception circuit 109, the transmission circuit 107 inputs a transmission completion signal to a transmission counter 105. At a timing when the transmission completion signal is inputted thereto from the transmission circuit 107, the transmission counter 105 adds “1” to a count value that has been held therein. In general, as far as the count value held in the transmission counter 105 is concerned, overflow is not taken into consideration. Based on a count value held in the transmission counter 105 and a first transmission interval information 115, the information multiplex apparatus 106 selects one of or two or more of the information A 102, the information B 103, and the information C 104 to be transmitted and outputs the selected information items to be transmitted, as the transmission data 200, to the transmission circuit 107.
(12) The control apparatus 101 is provided with
(13) the reception circuit 109 that receives the transmission data 200 transmitted from the transmission circuit 107,
(14) an information division apparatus 110 that divides reception data received by the reception circuit 109 into one of or all of the information A 102, the information B 103, and the information C 104, based on a second transmission interval information 116,
(15) an information A buffer 117 that holds the information A divided by the information division apparatus 110,
(16) an information B buffer 118 that holds the information B divided by the information division apparatus 110, and
(17) an information C buffer 119 that holds the information C divided by the information division apparatus 110.
(18) The control apparatus 101 is further provided with
(19) an information A processing apparatus 111 that performs predetermined processing, based on the information A extracted from the information A buffer 117,
(20) an information B processing apparatus 112 that performs predetermined processing, based on the information B extracted from the information B buffer 118, and
(21) an information C processing apparatus 113 that performs predetermined processing, based on the information C extracted from the information C buffer 119. The information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 perform in respective different periods.
(22) The information A, from the information division apparatus 110, that has been held in the information A buffer 117 needs to be updated before the foregoing information A processing apparatus 111 performs predetermined processing. Similarly, the information B, from the information division apparatus 110, that has been held in the information B buffer 118 needs to be updated before the information B processing apparatus 112 performs predetermined processing. Further similarly, the information C, from the information division apparatus 110, that has been held in the information C buffer 119 needs to be updated before the information C processing apparatus 113 performs predetermined processing.
(23) In general, in the case where respective data amounts required by the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 are large, large amount of data can be transmitted by raising the communication speed of the transmission circuit 107.
(24) In the case where the period in which the information A processing apparatus 111 obtains the information A from the information A buffer 117 is short, the output period of the transmission timer 108 that outputs the transmission request signal is shortened thereby shortening the update period of the information A in the information A buffer 117, so that it is made possible to cope with the period in which the information A processing apparatus 111 obtains the information A from the information A buffer 117.
(25) In the case where the period in which the information B processing apparatus 112 obtains the information B from the information B buffer 118 is short, the output period of the transmission timer 108 that outputs the transmission request signal is shortened thereby shortening the update period of the information B in the information B buffer 118, so that it is made possible to cope with the period in which the information B processing apparatus 112 obtains the information B from the information B buffer 118.
(26) Furthermore, in the case where the period in which the information C processing apparatus 113 obtains the information C from the information C buffer 119 is short, the output period of the transmission timer 108 that outputs the transmission request signal is shortened thereby shortening the update period of the information C in the information C buffer 119, so that it is made possible to cope with the period in which the information C processing apparatus 113 obtains the information C from the information C buffer 119.
(27) However, in the case where it is required to select a microcomputer in which the load to be imposed thereon is reduced so as to suppress the cost, it is required that the output period of the transmission timer 108 that outputs the transmission request signal is set to be as long as possible. In addition, the limitations of the communication speed of the transmission circuit 107 depends on the performance of the microcomputer, the electric characteristics of the communication path, and the like.
(28) Here, an information processing method, which is generally known, will be explained. For example, it is assumed that processing of the information A is performed in a period of 8 [ms], processing of the information B is performed in a period of 4 [ms], and processing of the information C is performed in a period of 2 [ms]. The respective information items to be processed by the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 are held in the information output apparatus 100. In this case, it is required that the information items to be outputted from the information output apparatus 100, i.e., the information A, the information B, and the information C are updated within 8 [ms], 4 [ms], and 2 [ms], respectively; however, information data cannot be transmitted at a speed exceeding the communication-speed limitation of the transmission circuit 107.
(29) Moreover, it is required that before the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 obtain the respective information items, the transmission circuit 107 completes transmission of each of the respective information items. The reason for the above is that when the transmission circuit 107 cannot transmit the updated information A 102, information B 103, information C 104 within the respective processing periods of the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113, a period difference between the information output apparatus 100 and the control apparatus 101 occurs and hence the microcomputer in the control apparatus 101 cannot appropriately perform control calculation.
(30) In this situation, for the purpose that the transmission circuit 107 completes transmission of the respective information items before the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 obtain respective information items, it is required that the output period of the transmission timer 108 that outputs the transmission request signal is shorter than the shortest processing period among the respective processing periods of the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113. However, when the output period of the transmission timer 108 that outputs the transmission request signal becomes shorter, the processing load on the microcomputer becomes larger. Accordingly, as the output period of the transmission timer 108, there is selected a period obtained by considering “a minimally necessary margin” for the shortest processing period among the respective processing periods of the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113.
(31) Because depending on the configuration of the system, the foregoing “minimally necessary margin” cannot unconditionally be defined. For example, the resolution of the transmission timer 108, variations in the respective clocks and the like provided in two or more devices that operate in non-synchronization with one another, the load on the CPU, which is allowable in the system, a processing delay in the CPU, and the like may be the factors to be considered when the “minimally necessary margin” is defined.
(32) Next, the information multiplex apparatus 106 according to Embodiment 1 will be explained in detail. There are preliminarily defined an output period Ts of the transmission timer 108 that outputs the transmission request signal to the transmission circuit 107, the respective processing periods in which the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 perform processing items, the size of information to be transmitted by the information output apparatus 100, and the margin degree for absorbing variations in the respective clocks and operation timings of the constituent elements in the information output apparatus 100 and the control apparatus 101; based on these preliminarily defined information items, a counter period A, a counter period B, a counter period C, and the size of information to be transmitted through a single transmission are calculated though after-mentioned calculation equations and are preliminarily provided to the information multiplex apparatus 106.
(33) Here, the counter period A denotes a period in which to the information multiplex apparatus 106, the transmission counter 105 outputs a timing signal for outputting the information A; the counter period B denotes a period in which to the information multiplex apparatus 106, the transmission counter 105 outputs a timing signal for outputting the information B; the counter period C denotes a period in which to the information multiplex apparatus 106, the transmission counter 105 outputs a timing signal for outputting the information C.
(34) The information multiplex apparatus 106 is configured in such a way as to output the information A when receiving, from the transmission counter 105, the timing signal for outputting the information A, in such a way as to output the information B when receiving the timing signal for outputting the information B, and in such a way as to output the information C when receiving the timing signal for outputting the information C.
(35) Here, letting “processing period A”, “processing period B”, “processing period C”, and “ω” (0<ω<1) denote the processing period of the information A processing apparatus 111, the processing period of the information B processing apparatus 112, the processing period of the information C processing apparatus 113, and the margin degree for absorbing variations in the respective clocks and operation timings of the constituent elements in the information output apparatus 100 and the control apparatus 101, respectively, the counter period A, the counter period B, and the counter period C to be provided to the information multiplex apparatus 106 need to satisfy the following equations (1), (2), and (3), respectively. In this regard, however, “ROUNDDOWN” denotes rounding down the digits after the decimal point. The foregoing margin degree is a transmission margin degree.
1≤counter period A≤ROUNDDOWN[1/{Ts/(processing period A*ω)}] (1)
1≤counter period B≤ROUNDDOWN[1/{Ts/(processing period B*ω)}] (2)
1≤counter period C≤ROUNDDOWN[1/{Ts/(processing period C*ω)}] (3)
(36) The size m.sup.1 of the information A to be transmitted through a single transmission from the transmission circuit 107, the size n.sup.1 of the information B to be transmitted through a single transmission from the transmission circuit 107, and the size o.sup.1 of the information C to be transmitted through a single transmission from the transmission circuit 107 are preliminarily defined by the following equations (4), (5), and (6) and are provided to the information multiplex apparatus 106. In this regard, however, “ROUNDUP” denotes rounding up the digit at the first decimal place. Here, m, n, and o denotes the full size of the information A, the full size of the information B, and the full size of the information C, respectively. Here, the unit[Byte] for each of the sizes is omitted.
m≥m.sup.1≥ROUNDUP[m/counter period A] (4)
n≥n.sup.1≥ROUNDUP[n/counter period B] (5)
o≥o.sup.1≥ROUNDUP[o/counter period C] (6)
(37) The counter period A, the counter period B, the counter period C, the size m.sup.1 of the information A to be transmitted through a single transmission, the size n.sup.1 of the information B to be transmitted through a single transmission, and the size o.sup.1 of the information C to be transmitted through a single transmission are respective integers and need to satisfy the respective conditions in the corresponding equations (1), (2), (3), (4), (5), and (6).
(38) Here, it is assumed that cnt denotes the present count value held in the transmission counter 105; based on the following equations (7), (8), and (9), the information multiplex apparatus 106 constantly calculates information items corresponding to the present count value cntA for the information A, the present count value cntB for the information B, and the present count value cntC for the information C. In this regard, however, mod denotes each of the “remainder” of a division[m/counter period A], the “remainder” of a division[n/counter period B], and the “remainder” of a division[o/counter period C].
cntA=cnt mod counter period A (7)
cntB=cnt mod counter period B (8)
cntC=cnt mod counter period C (9)
(39) In addition, it is assumed that the present count value cnt held in the transmission counter 105 is increased by “1” for each transmission and returns to “0” when reaching an overflow.
(40) The information multiplex apparatus 106 produces data, based on the foregoing information. Specifically, from the transmission sizes m.sup.1, n.sup.1, and o.sup.1 and the present count values cntA, cntB, and cntC of the transmission counter 105, the information multiplex apparatus 106 produces information A transmission data expressed by the equation (10) below, information B transmission data expressed by the equation (11) below, and information C transmission data expressed by the equation (12) below.
information A transmission data=data items from information A[m.sup.1*cntA] to information A[m.sup.1*cntA+m.sup.1−1] (10)
information B transmission data=data items from information B[n.sup.1*cntB] to information B[n.sup.1*cntB+n.sup.1−1] (11)
information C transmission data=data items from information C[o.sup.1*cntC] to information C[o.sup.1*cntC+o.sup.1−1] (12)
(41) The information multiplex apparatus 106 provides, to the transmission circuit 107, the foregoing information A transmission data, information B transmission data, and information C transmission data, as the transmission data 200. In response to the transmission request signal from the transmission timer 108, the transmission circuit 107 outputs the transmission data 200 including the information A transmission data, the information B transmission data, and the information C transmission data. Each time the transmission circuit 107 outputs the transmission data 200, the transmission counter 105 receives the transmission completion signal from the transmission circuit 107 and then increases the count value by “1”.
(42) As represented in foregoing
(43) The reception circuit 109 in the control apparatus 101 transfers reception data received from the transmission circuit 107 to the information division apparatus 110. Based on the second transmission interval information 116, the information division apparatus 110 divides the reception data and stores data of the information A, date of the information B, and data of the information C in the information A buffer 117, the information B buffer 118, and the information C buffer 119, respectively.
(44)
(45) In this situation, for example, the conditions are given as follows:
(46) the output period Ts of the transmission timer 108 is 1 [ms] (Ts=1 [ms]),
(47) the margin degree ω for absorbing variations in the respective clocks and operation timings of the constituent elements in the information output apparatus 100 and the control apparatus 101 is 0.5 (ω=0.5),
(48) the full size m of the information A is 40 [Byte] (m=40 [Byte]),
(49) the full size n of the information B is 12 [Byte] (n=12 [Byte]),
(50) the full size o of the information C is 4 [Byte] (o=4 [Byte]),
(51) the processing period A of the information A processing apparatus 111 is 8 [ms] (processing period A=8 [ms]),
(52) the processing period B of the information B processing apparatus 112 is 4 [ms] (processing period B=4 [ms]), and
(53) the processing period C of the information C processing apparatus 113 is 2 [ms] (processing period C=2 [ms]).
(54) The respective operational actions of the information multiplex apparatus 106 and the information division apparatus 110 under the foregoing conditions are represented in
(55) Under the foregoing conditions, the counter period A is 4 [ms] from the foregoing equation (1) (counter period A=4 [ms]); the counter period B is 2 [ms] from the foregoing equation (2) (counter period B=2 [ms]); the counter period C is 1 [ms] from the foregoing equation (3) (counter period C=1 [ms]).
(56) Thus, from the foregoing equation (4), it is preliminarily defined that the size m.sup.1 of the information A to be transmitted through a single transmission from the transmission circuit 107 is 10 [Byte] (m.sup.1=10); from the foregoing equation (5), it is preliminarily defined that the size n.sup.1 of the information B to be transmitted through a single transmission from the transmission circuit 107 is 6 [Byte] (n.sup.1=6); from the foregoing equation (6), it is preliminarily defined that the size o.sup.1 of the information C to be transmitted through a single transmission from the transmission circuit 107 is 4 [Byte] (o.sup.1=4).
(57) The preliminarily defined size m.sup.1 of the information A to be transmitted through a single transmission, the preliminarily defined size n.sup.1 of the information B to be transmitted through a single transmission, and the preliminarily defined size o.sup.1 of the information C to be transmitted through a single transmission are preliminarily provided to the first transmission interval information 115 and are further provided to the information multiplex apparatus 106 from the first transmission interval information 115.
(58) Similarly, the preliminarily defined size m.sup.1 of the information A to be transmitted through a single transmission, the preliminarily defined size n.sup.1 of the information B to be transmitted through a single transmission, and the preliminarily defined size o.sup.1 of the information C to be transmitted through a single transmission are preliminarily provided to the second transmission interval information 116 and are further provided to the information division apparatus 110 from the second transmission interval information 116.
(59) Here, the method of forming the information A 102 into the information A transmission data 120 will be explained. Because as described above, the counter period A=4, the count value cntA of the transmission counter 105 repeats the numeral sequence [0, 1, 2, 3], as represented in
(60) Next, the method of forming the information B 103 into the information B transmission data 121 will be explained. Because as described above, the counter period B=2, the count value cntB of the transmission counter 105 repeats the numeral sequence [0, 1], as represented in
(61) Furthermore, the method of forming the information C 104 into the information C transmission data 122 will be explained. Because as described above, the counter period C=1, the count value cntC of the transmission counter 105 repeats[0], as represented in
(62) The transmission data 200 formed of the information A transmission data 120 including the count value cntA of the transmission counter 105, the information B transmission data 121 including the count value cntB of the transmission counter 105, and the information C transmission data 122 including the count value cntC of the transmission counter 105 is transmitted by way of the transmission circuit 107 to the reception circuit 109 in the control apparatus 101.
(63) Based on the information from the second transmission interval information 116, the information division apparatus 110 forms reception data 210 the same as the transmission data 200 received by the reception circuit 109. The reception data 210 is configured with information A reception data 124, information B reception data 125, information C reception data 126, and a received transmission counter 128. That is to say, the information division apparatus 110 calculates the count values cntA, cntB, and cntC from the received transmission counter 128 and arranges data items in the information A buffer 117, the information B buffer 118, and the information C buffer 119, based on the following equations (13), (14), and (15).
data items from information A buffer[m.sup.1*cntA] to information A buffer[m.sup.1*cntA+m.sup.1−1]=information A reception data (13)
data items from information B buffer[n.sup.1*cntB] to information B buffer[n.sup.1*cntB+n.sup.1−1]=information B reception data (14)
data items from information C buffer[o.sup.1*cntC] to information C buffer[o.sup.1*cntC+o.sup.1−1]=information C reception data (15)
(64) That is to say, because as described above, the counter period A is 4, data corresponding to the size m.sup.1 is extracted from the information A reception data 124 in accordance with “0”, “1”, “2”, and “3”, as the count values cntA of the received transmission counter 128; then, the data is divided into the data items from information A[m.sup.1*cntA] to information A[m.sup.1*cntA+m.sup.1−1], as represented by the foregoing equation (13). These respective data items obtained through the division of the information A reception data 124 are arranged in an information A buffer[0˜9], an information A buffer[10˜19], an information A buffer[20˜29], and information A buffer[30˜39].
(65) Moreover, because as described above, the counter period B is 2, data corresponding to the size n.sup.1 is extracted from the information B reception data 125 in accordance with “0” and “1”, as the count values cntB of the received transmission counter 128; then, the data is divided into the data items from information B[n.sup.1*cntB] to information B[n.sup.1*cntA+n.sup.1−1], as represented by the foregoing equation (14). These respective data items obtained through the division of the information B reception data 125 are arranged in an information B buffer[0˜5] and an information B buffer[6˜11].
(66) Furthermore, because as described above, the counter period C is 1, data corresponding to the size o.sup.1 is extracted from the information C reception data 126 in accordance with “0”, as the count value cntC of the received transmission counter 128; then, the data is divided into the data items from information C[o.sup.1*cntC] to information C[o.sup.1*cntA+n.sup.1−1], as represented by the foregoing equation (15). These respective data items obtained through the division of the information C reception data 126 are arranged in an information C buffer[0˜5].
(67) As described above, the margin degree ω for absorbing variations in the respective clocks and operation timings of the constituent elements in the information output apparatus 100 and the control apparatus 101 is set to 0.5 (ω=0.5); therefore, while each of the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 is periodically activated, data is updated substantially twice. When the margin degree co, as a coefficient, is increased, the respective update periods of the information A buffer 117, the information B buffer 118, and the information C buffer 119 becomes longer and hence the amount of single communication decreases. In contrast, when the margin degree ω is decreased, the respective update periods of the information A buffer 117, the information B buffer 118, and the information C buffer 119 becomes shorter and hence the amount of single communication increases.
(68) In the case where the margin degree ω is “1”, the timing at which the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 are activated is the same as the timing at which the information A buffer 117, the information B buffer 118, and the information C buffer 119 are activated; however, as described above, the information output apparatus 100 and the control apparatus 101 are operated with respective different clocks and hence the operational actions thereof are not in synchronization with each other. Thus, there is a probability that in the case where the margin degree ω is “1”, the information A buffer 117, the information B buffer 118, and the information C buffer 119 have not been updated at the timing at which the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 obtain the information A buffer 117, the information B buffer 118, and the information C buffer 119, respectively.
(69) In the electronic control apparatus according to Embodiment 1, in order to solve the defect at a time when the information output apparatus 100 and the control apparatus 101 operate in non-synchronization with each other, the margin degree ω is set, for example, in such a way as to satisfy the equation (16) below.
ω≤(the minimum value of variation in the operational clock of the information output apparatus 100/the maximum value of variation in the operational clock of the control apparatus 101) (16)
(70) Although in the above explanation, the margin degree ω has been set based on the variation in the clock, the optimal value of the margin degree ω differs depending on the system; for example, in some cases, it is required to consider a processing delay in the CPU and the like.
(71) In the electronic control apparatus according to Embodiment 1, described above, the data represented in
(72) In this regard, however, it is required to confirm that in the end, the information amount of the transmission data 200 does not exceed the transmission band between the transmission circuit 107 and the reception circuit 109. In this situation, provided the information amount of the transmission data 200 exceeds the foregoing transmission band, there are performed adjustment in which the size m.sup.1 of the information A to be transmitted through a single transmission, the size n.sup.1 of the information B to be transmitted through a single transmission, and the size o.sup.1 of the information C to be transmitted through a single transmission are reduced within the conditions in the foregoing equations (10), (11), and (12), respectively, or in which the counter period A, the counter period B, and the counter period C are prolonged, so that the information amount of the transmission data 200 for a single transmission can be adjusted not to exceed the communication band.
(73) As described above, in the electronic control apparatus according to Embodiment 1, the output period Ts of the transmission timer 108 and the communication speed of the transmission circuit 107 can be set while considering the information amount (data size), the counter period A, the counter period B, the counter period C, and the foregoing margin degree ω, as a transmission margin degree.
(74) Provided the information amount of the transmission data 200 does not exceed the foregoing transmission band, the margin degree ω is lowered (decreased), the counter period is shortened (reduced), or the size m.sup.1 of the information A to be transmitted through a single transmission, the size n.sup.1 of the information B to be transmitted through a single transmission, and the size o.sup.1 of the information C to be transmitted through a single transmission are increased (enlarged), so that the redundancy of the transmission data can be raised.
(75) Here, the redundancy of data will be explained. In the case where there exists information, among information items to be transmitted, that has high priority and in which erroneous loss should be suppressed, the frequency of sending the high-priority data is raised so as to raise the redundancy, so that the solidity for the communication error can be raised. The redundancy of data will specifically be explained by use of
(76) In
(77) When the count value cntA of the transmission counter 105 is “0”, the information A[0˜9] is transmitted to the information division apparatus 110; when the count value cntA of the transmission counter 105 is “3”, the information A[20˜29] is transmitted to the information division apparatus 110; when the count value cntA of the transmission counter 105 is “4”, the information A[30˜39] is transmitted to the information division apparatus 110.
(78) After calculating the count value cntA of the received transmission counter 128, the information division apparatus 110 arranges data items from [m.sup.1*cntA] to [m.sup.1*cntA+m.sup.1−1], as the information A reception data in the reception data 210, in the information A buffer 117, based on the foregoing equation (13).
(79) That is to say, when the count value cntA of the received transmission counter 128 is “0”, the information A[0˜9] is disposed in the information A buffer[0˜9]; when the count value cntA is any one of “1” an “2”, the information A[10˜19] is disposed in the information A buffer[10˜19]; when the count value cntA is “3”, the information A[20˜29] is disposed in the information A buffer[20˜29]; when the count value cntA is “4”, the information A[30˜39] is disposed in the information A buffer[30˜39].
(80) As described above, when redundant data is transmitted, the communication amount increases; however, it is only necessary to confirm that in the end, the information amount does not exceed the transmission band between the transmission circuit 107 and the reception circuit 109. In this situation, provided the amount of information to be transmitted exceeds the transmission band between the transmission circuit 107 and the reception circuit 109, there are performed adjustment in which the size m.sup.1 of the information A to be transmitted through a single transmission, the size n.sup.1 of the information B to be transmitted through a single transmission, and the size o.sup.1 of the information C to be transmitted through a single transmission are reduced within the conditions in the foregoing equations (10), (11), and (12), respectively, or in which the counter period A, the counter period B, and the counter period C are prolonged, so that the information amount of the transmission data 200 for a single transmission can be adjusted not to exceed the communication band.
(81)
(82) Because even when information including an error is removed from the transmission data, respective previous data items are remaining in the information A buffer 117, the information B buffer 118, and the information C buffer 119, the information A processing apparatus 111, the information B processing apparatus 112, and the information C processing apparatus 113 can continue to perform processing, by holding and directly utilizing these previous data items; however, when information items including an error continue one after another, processing advances while previous information items are not updated; therefore, when information items including an error are detected in a considerably successive manner, the control apparatus 101 may perform some sort of error processing.
(83) As represented in
(84) In the foregoing electronic control apparatus according to Embodiment 1, three information items, i.e., the information A, the information B, and the information C are utilized; however, the number of information items is not limited to three, and the system may have two or more information items.
(85) Each of the information A 102, the information B 103, and the information C 104 may be either a sensor detection value to be inputted from a sensor or the like (unillustrated) provided, for example, outside or inside the electronic control apparatus 300 or a calculation result calculated in the electronic control apparatus 300.
(86) Furthermore, the information output apparatus 100 can determine the update timing of each of the information A 102, the information B 103, and the information C 104 and can determine selection and division of transmission data to be multiplexed along a transmission interval.
(87)
(88) The present disclosure is not limited to the electronic control apparatus according to foregoing Embodiment 1; Embodiment 1 can appropriately be modified or omitted.
INDUSTRIAL APPLICABILITY
(89) The present disclosure can be applied to the field of an electronic control apparatus provided with an information output apparatus that outputs communication data having information and a control apparatus that controls a control subject, based on the information outputted from the information output apparatus.
DESCRIPTION OF REFERENCE NUMERALS
(90) 100: information output apparatus 101: control apparatus 102: information A 103: information B 104: information C 105: transmission counter 106: information multiplex apparatus 107: transmission circuit 108: transmission timer 109: reception circuit 110: information division apparatus 111: information A processing apparatus 112: information B processing apparatus 113: information C processing apparatus 115: first transmission interval information 116: second transmission interval information 117: information A buffer 118: information B buffer 119: information C buffer 120: information A transmission data 121: information B transmission data 122: information C transmission data 124: information A reception data 125: information B reception data 126: information C reception data 128: received transmission counter 200: transmission data 210: reception data 300: electronic control apparatus 1000: processor 2000: storage device