NODE DEVICE
20220294563 · 2022-09-15
Assignee
Inventors
Cpc classification
H04L12/4015
ELECTRICITY
International classification
Abstract
A node device adapted to be connected to a network communication bus includes a communication interface and a processor. The processor is configured to cause the communication interface to transmit data to the network communication bus. In a case where the processor fails to transmit the data, the processor is configured to advance a retransmission timing at which the data is retransmitted.
Claims
1. A node device adapted to be connected to a network communication bus, comprising: a communication interface; and a processor configured to cause the communication interface to transmit data to the network communication bus, wherein in a case where the processor fails to transmit the data, the processor is configured to advance a retransmission timing at which the data is retransmitted.
2. The node device according to claim 1, wherein priority information indicating a priority level of the data is assigned to the data; and wherein the processor is configured to advance the retransmission timing without changing the priority information.
3. The node device according to claim 1, wherein the processor is configured to further advance the retransmission timing each time the processor fails to transmit the data.
4. The node device according to claim 1, wherein an amount of time for advancing the retransmission timing is determined based on the number of node devices capable of transmitting data to the network communication bus simultaneously.
5. The node device according to claim 1, wherein an amount of time for advancing the retransmission timing is determined so as to be longer than an amount of time required for transmitting one bit of data on the network communication bus.
6. The node device according to claim 1, wherein the retransmission timing is determined based on a time length elapsed from when a signal permitting the node devices connected to the network communication bus to transmit the data is received by the communication interface.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
DESCRIPTION OF EMBODIMENTS
[0016] Examples of embodiments will be described in detail below with reference to the accompanying drawings. In each of the drawings used in the following description, the scale is appropriately changed in order to make each element have a recognizable size.
[0017]
[0018]
[0019] As an example, there will be described a configuration in which the communication network 3 is operated on the basis of a CXPI (Clock Extension Peripheral Interface) standard of a polling system. In this case, the node devices 1 include a master node device 11 and a slave node device 12. The master node device 11 may request the slave node device 12 to transmit the data D. The slave node device 12 may transmit the data D in response to the request.
[0020] Such a communication network 3 may be installed in a vehicle, for example. In this case, each node device 1 may be an ECU (Electronic Control Unit) for controlling the operation of an associated in-vehicle component. The master node device 11 may be an ECU for performing overall control in the vehicle. The slave node device 12 may be an ECU associated with a man-machine interface in the vehicle.
[0021] The master node device 11 includes a communication interface 111 and a processor 112. The processor 112 generates a clock signal. The clock signal is outputted to the network communication bus 2 via the communication interface 111. The clock signal is received by each slave node device 12 via the network communication bus 2. The clock signal is used for synchronizing various types of processing performed between the master node device 11 and each slave node device 12.
[0022] The processor 112 may be implemented by a general-purpose microprocessor operating in cooperation with a general-purpose memory. Examples of the general-purpose microprocessor include a CPU, an MPU, and a GPU. Examples of the general-purpose memory include a ROM and a RAM. In this case, a computer program capable of executing processing described later can be stored in the ROM. The processor 112 designates at least a part of the computer program stored in the ROM, loads the program on the RAM, and executes the processing described above in cooperation with the RAM. The processor 112 may be implemented by a dedicated integrated circuit such as a microcontroller, an ASIC, and an FPGA capable of executing a computer program for implementing processing described later. The processor 112 may be implemented by a combination of a general-purpose microprocessor and a dedicated integrated circuit.
[0023] The slave node device 12 includes a communication interface 121 and a processor 122. In response to a request from the master node device 11, the processor 122 causes the communication interface 121 to transmit the data D to the network communication bus 2. The processor 122 may be implemented by a dedicated integrated circuit such as a microcontroller, an ASIC, and an FPGA capable of executing a computer program for implementing processing described later.
[0024] Referring to
[0025] As illustrated in
[0026] When it is determined that the transmission permitting signal P is received (YES in STEP1), the processor 122 determines whether a prescribed transmission timing comes (STEP2). As illustrated in
[0027] The time length T1 is determined based on the clock signal transmitted from the master node device 11. The time length T1 is, for example, 300 microseconds. In other words, the processor 122 determines whether the prescribed time length T1 has elapsed. The determination is repeated until the time length T1 elapses (NO in STEP2).
[0028] When it is determined that the prescribed transmission timing comes (YES in STEP2), the processor 122 starts transmitting the generated data (STEP3). The data is transmitted from the communication interface 111 to the network communication bus 2.
[0029] As described above, since the time length T1 is the same for all the slave node devices 12 in the initial state, there may be a case where data transmission from a plurality of slave node devices 12 is initiated simultaneously. On the other hand, the master node device 11 can receive data in response to a certain transmission permitting signal P only from one of the slave node devices 12. Accordingly, an arbitration processing for determining a single set of data to be received by the master node device 11 is performed.
[0030] As described with reference to
[0031] In the example illustrated in
[0032] Each slave node device 12 monitors the contents of the data actually transmitted to the network communication bus 2. When the data generated to be transmitted and the data actually transmitted are different from each other, the processor 122 determines that the transmission of the data has failed. In the case of the above example, the data D1 generated in the slave node device A matches the data D1 actually transmitted. On the other hand, since the transmission of the data D2 generated in the slave node device B is suspended, the generated data and the actually transmitted data are different from each other. Accordingly, the processor of the slave node device B determines that the transmission of the data D2 has failed.
[0033] As illustrated in
[0034] As illustrated in
[0035] Subsequently, the processor 122 determines whether the prescribed retransmission timing comes (STEP6). That is, the processor 122 determines whether the time length T2 has elapsed since the transmission permitting signal P was received by the communication interface 121. At this timing, it is also determined whether the transmission permitting signal P is received in the same manner as in STEP1, but the illustration is omitted. The determination is repeated until the time length T2 elapses (NO in STEP6).
[0036] When it is determined that the prescribed retransmission timing comes (YES in STEP6), the processor 122 starts retransmission of the data (STEP7). The data is transmitted from the communication interface 121 to the network communication bus 2. When the retransmission is completed, the processing ends.
[0037] Advantages of such a configuration will be described with reference to comparative examples illustrated in
[0038] As illustrated in
[0039]
[0040] Each slave node device 12 is configured not to perform data transmission when another slave node device 12 has already initiated data transmission to the network communication bus 2. For example, when a state corresponding to the signal level “1” of the network communication bus 2 continues for a certain time length or longer, the transmission of data may be initiated. When communication is already initiated by another slave node device 12, such a state of the signal level cannot be obtained.
[0041] According to the configuration of the present embodiment, as illustrated in
[0042] Each slave node device 12 does not change the priority information included in the header region of the data when performing the processing for advancing the retransmission timing. That is, a relationship relating to the priority among the slave node devices defined in advance is maintained. In the case of the example illustrated in
[0043] According to such a configuration, since the processing for rewriting the priority information is unnecessary, it is possible to suppress an increase in the processing load of the processor 122 in the slave node device 12. In particular, in a configuration in which the priority information also serves as the identification information of the slave node device 12, it is possible to suppress an influence exerted on the identification processing.
[0044]
[0045] In order to cope with such a situation, as illustrated by dashed lines in
[0046] As a result, it is possible to further reduce the probability that the data D2 fails to be arbitrated again when responding to the transmission permitting signal P transmitted from the master node device next time. Accordingly, it is possible to further suppress a delay in reception of data transmitted from a specific slave node device caused by an arbitration failure.
[0047] In the above example, each time certain data fails to be transmitted due to an arbitration failure, the time length defining the retransmission timing is reduced from 300 microseconds to 200 microseconds, and from 200 microseconds to 100 microseconds. That is, the amount of time required to advance the retransmission timing is 100 microseconds. However, the amount of time may be determined based on the time length T1 defining the initial transmission timing and the number of slave node devices 12 capable of transmitting data to the network communication bus 2 simultaneously.
[0048] For example, in a case where 10 slave node devices 12 can simultaneously transmit data to the network communication bus 2, the amount of time described above can be determined as a value capable of shortening the time length from the reception of the transmission permitting signal P to the initiation of the data retransmission by 10 steps from the initial time length T1. According to such a configuration, the data transmitted from a specific slave node device 12 does not continue to fail to be arbitrated until the end. At this time, it is not necessary that the number of slave node devices 12 capable of simultaneously transmitting data to the network communication bus 2 matches the number of steps capable of shortening the time length until the initiation of retransmission. By increasing the number of steps capable of shortening the time length until the initiation of retransmission within a range no less than the number of slave node devices 12 capable of simultaneously transmitting data to the network communication bus 2, it is possible to reduce the possibility that the data transmitted from a specific slave node device 12 will continue to fail to be arbitrated.
[0049] It should be noted that the amount of time for which the retransmission timing is advanced is determined to be longer than the time required for transmitting one bit of data on the network communication bus 2. In the case of the above example, the time required for transmitting one bit of data is determined based on the clock frequency transmitted from the master node device 11. According to such a configuration, it is possible to reliably perform retransmission of the data that has failed to be arbitrated.
[0050] The above embodiments are merely illustrative for facilitating understanding of the presently disclosed subject matter. The configuration according to the above embodiment can be appropriately modified or improved without departing from the gist of the presently disclosed subject matter.
[0051] In the above embodiment, the communication network 3 is operated based on the CXPI standard of the polling system, and the plurality of node devices 1 connected to the network communication bus 2 include the master node device 11 and the slave node device 12. However, the above-described processing of advancing the timing of retransmission of data that has failed to be transmitted can be applied to a communication network in which there is no distinction between a master and a slave with respect to a plurality of node devices 1. Examples of the communication network include a communication network operating based on a CAN (Control Area Network) standard of a carrier sense scheme. The cause of the data transmission failure is not limited to the arbitration failure. Due to the occupation of the network communication bus by the data transmission of another node device, there may be a case where the data transmission cannot be performed at a prescribed timing. Such a situation is also an example of the data transmission failure.
[0052] The present application is based on Japanese Patent Application No. 2019-089689 filed on May 10, 2019, the entire contents of which are incorporated herein by reference.