Communication device, elevator communication device, and communication method

The communication device addresses the issue of undetected path delays in CAN systems by measuring and comparing delay times, facilitating early detection and maintenance to maintain stable communication.

JP7585779B2Active Publication Date: 2024-11-19MITSUBISHI ELECTRIC CORP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2020216859
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-11-19
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

Existing CAN communication systems fail to detect delays in communication paths, which can lead to communication failures due to environmental changes, bundling with other wiring, and long-term deterioration of communication lines, potentially affecting safety in applications like elevators.

Method used

A communication device equipped with a delay time calculation unit and a delay determination unit to measure and compare the delay time of communication paths against threshold values, using ACK bits to detect potential failures.

Benefits of technology

Enables early detection of communication failures caused by path delays, allowing for predictive maintenance and ensuring stable communication in systems like elevators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007585779000002
    Figure 0007585779000002
  • Figure 0007585779000003
    Figure 0007585779000003
  • Figure 0007585779000004
    Figure 0007585779000004
Patent Text Reader

Abstract

To detect a sign of a communication failure due to a delay in a communication path in a CAN communication system.SOLUTION: A communication device 1 for transmitting and receiving data to / from another communication device via a communication line based on a CAN communication protocol includes: a control unit 3 that controls the transmission and reception of the data; a delay time calculation unit 6 that inputs therein the transmission data output from the control unit 3 and the reception data output from the other communication device as a response to the transmission data, and calculates a delay time of a communication path from ACK signals included in the transmission data and the reception data; and a delay determination unit 7 that compares the delay time with a threshold value and outputs delay determination information.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a communication device. [Background technology]

[0002] The Controller Area Network (CAN) communication method is one of the network protocols that is widely used in in-vehicle networks. This communication method is also widely used in industrial equipment, agricultural machinery, medical equipment, railways, elevators, etc.

[0003] In the CAN communication method, binary digital signals with logical values ​​of "0" and "1" are converted into differential signals and transmitted via a two-wire communication bus line (the CAN_H line (hereafter referred to as the H line) and the CAN_L line (hereafter referred to as the L line)). The differential signals transmitted on the H line and L line respectively express two states, dominant and recessive, depending on the voltage level. In the protocol standardized by ISO11898, if the voltage of the signal on the H line is high level and the voltage of the signal on the L line is low level, and the potential difference between the H line and the L line exceeds a certain value, it expresses the logical value of "0" as dominant, and if the voltage of the signal on the H line is low level and the voltage of the signal on the L line is high level, and the potential difference between the H line and the L line is below a certain value (including the same potential), it expresses the logical value of "1" as recessive.

[0004] If communication stops for some reason while the CAN communication system is in operation, it may affect safety in applications such as the above-mentioned in-vehicle equipment. For this reason, methods have been proposed to detect signs of communication malfunctions so that the communication system does not stop unintentionally while in operation.

[0005] In a conventional method, signals transmitted and received by a CAN transceiver of a communication device are input to a monitoring circuit installed on the communication line to detect abnormalities. Voltage judgment values ​​are set to determine the presence or absence of abnormalities for the high and low voltage levels of the H-line and L-line signals input to the monitoring circuit, and abnormalities (signs of element destruction) are detected by comparing the voltage values ​​with the power judgment values ​​(see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0006] [Patent Document 1] JP 2006-108952 A Summary of the Invention [Problem to be solved by the invention]

[0007] In the above conventional technology, the presence or absence of an abnormality in the CAN transceiver is judged by comparing the voltage values ​​of the H line and L line with a voltage judgment value that judges the presence or absence of an abnormality, and signs of element destruction are detected. However, in a CAN communication system, communication problems can occur due to delays in the communication path. Although the conventional technology detects deterioration of the CAN transceiver, it does not have a mechanism for detecting delays in the communication path.

[0008] Causes of delays in communication paths include, for example, temperature changes in the environment in which the communication lines are installed, and when the communication lines are bundled together with other wiring such as power lines into a communication cable, the other wiring may heat up depending on the load situation, causing the temperature of the communication lines to rise. When the temperature of the communication lines rises, the impedance increases and delays occur. Also, when the CAN communication method is applied to equipment with a long service life such as elevators, the communication lines deteriorate over time due to long-term use, increasing the impedance and causing delays.

[0009] The present disclosure aims to detect signs of communication problems caused by delays in communication paths in a CAN communication system. [Means for solving the problem]

[0010] In order to solve the above-mentioned problems and achieve the object, a communication device according to the present disclosure is a communication device that transmits and receives data with another communication device via a communication line based on a CAN communication protocol, the communication device including a control unit that controls the transmission and reception of data, a transmission data output from the control unit, and a reception data output from the other communication device as a response to the transmission data, and The ACK bit is set to 0. and the ACK included in the received data Acknowledgement Set Bit The system includes a delay time calculation unit that calculates a delay time of a communication path from a signal, and a delay determination unit that compares the delay time with a threshold value and outputs delay determination information. Effect of the Invention

[0011] According to the present disclosure, in a CAN communication system, it is possible to detect a sign of a communication failure caused by a delay in a communication path. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 shows an example of the configuration of a communication system according to a first embodiment. [Diagram 2] FIG. 1 is a diagram showing a configuration example of a CAN transceiver according to a first embodiment of the present invention; [Diagram 3] FIG. 1 is a diagram showing an example of a data frame structure used in the CAN communication method according to the first embodiment; [Figure 4] Truth table of logical operations executed by the delay time calculation unit according to the first embodiment [Diagram 5] FIG. 1 is a diagram illustrating a logical operation result of a delay time calculation unit according to the first embodiment. [Figure 6] FIG. 1 shows an example of the configuration of a delay time calculation unit and a delay determination unit according to the first embodiment. [Figure 7] FIG. 1 is a diagram showing the relationship between the time width of a delay time pulse and a threshold value according to the first embodiment; [Figure 8] FIG. 1 shows a modified example of the configuration of the communication system according to the first embodiment. [Figure 9]FIG. 1 shows a modified example of the configuration of the communication system according to the first embodiment. [Figure 10] 1 is a flowchart illustrating an operation of a first communication device according to the first embodiment. [Figure 11] 11 is a flowchart for explaining the operation of a first communication device according to the second embodiment. [Figure 12] FIG. 11 is a diagram showing a configuration example of a communication system according to a third embodiment of the present invention. [Figure 13] FIG. 13 is a diagram showing a schematic diagram of the relationship between delay time and usage time according to the third embodiment. [Figure 14] 11 is a flowchart for explaining the operation of a first communication device according to the third embodiment. [Figure 15] Hardware diagram of a first communication device according to the first to third embodiments DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. In each drawing, the same or corresponding parts are denoted by the same reference numerals. Duplicate descriptions will be appropriately simplified or omitted. Note that the present disclosure is not limited to the embodiments described below.

[0014] Embodiment 1 1 is a diagram showing an example of the configuration of a communication system according to an embodiment of the present disclosure. A first communication device 1 is connected to a second communication device 11 via a communication line 8. The first communication device 1 has a communication control board 2, which has a control unit 3, a CAN controller 4, and a CAN transceiver 5. The communication control board 2 further has a delay time calculation unit 6 and a delay determination unit 7 for detecting signs of communication failure caused by delays in the communication path.

[0015] Similarly, the second communication device 11 has a communication control board 12, and the communication control board 12 has a control unit 13, a CAN controller 14, and a CAN transceiver 15. In FIG. 1, a configuration in which the first communication device 1 and the second communication device 11 are connected is disclosed for the sake of simplicity of explanation, but the first communication device 1 may be connected to a plurality of communication devices other than the second communication device 11. The configurations of the components of the first communication device 1 and the second communication device 11 are the same except that the first communication device 1 is provided with a delay time calculation unit 6 and a delay determination unit 7. In addition, when the first communication device 1 is a master and is connected to a plurality of other communication devices (i.e., in the case of one-to-many communication), it is also possible to use a listen-only function in which a communication device identified by the first communication device 1 responds to the first communication device 1. The same can be applied to the case of one-to-many communication in the following embodiments. The listen-only function will be described later.

[0016] The communication line 8 is a two-wire communication bus line (H line 81, L line 82), and generally uses a twisted pair cable. The communication line 8 may be bundled with other wiring such as a power line and installed as a communication cable.

[0017] The control unit 3 includes a CAN controller 4. The CAN controller 4 controls data transmission and reception with a second communication device 11 via a CAN transceiver 5. The control unit 3 also detects a delay in the communication path based on delay determination information output from a delay determination unit 7.

[0018] The control unit 3 is a microcomputer and includes a processor 31 and a memory 32. The processor 31 is, for example, a central processing unit (CPU), a microprocessor, or a digital signal processor (DSP). The memory 32 is, for example, a random access memory (RAM) or a read only memory (ROM), and stores software programs, log data, and the like. The processor 31 executes a software program stored in the memory 32, thereby realizing the function of at least one circuit of the first communication device 1. Note that the memory 32 is not limited to being built into the control unit 3 as shown in the figure. It may be an external storage device capable of inputting and outputting data to and from the first communication device 1.

[0019] FIG. 2 is a diagram showing a configuration example of the CAN transceiver 5. The CAN transceiver 5 has a transmission buffer 51, a reception buffer 52, transistors 53 and 54, and input / output ports 55 (for H line) and 56 (for L line). The transmission buffer 51 converts transmission data (TxD), which is binary digital data received from the CAN controller 4, into a differential signal and outputs it to the transistors 53 and 54. The transistors 53 and 54 adjust the voltages of the differential signals transmitted through the H line 81 and the L line 82, respectively, so that the differential signals have a predetermined potential. The voltage-adjusted differential signals are output from the input / output ports 55 and 56 and transmitted to the CAN transceiver 15 of the second communication device 11 via the communication line 8. The input / output ports 55 and 56 also receive the differential signal transmitted from the second communication device 11. The reception buffer 52 converts the differential signal into reception data (RxD), which is binary digital data, and outputs it to the CAN controller 4.

[0020] Next, an ACK (Acknowledge) function for confirming that data transmitted from the CAN controller 4 of the first communication device 1 has been normally received by the CAN controller 14 of the second communication device 11 will be described. FIG. 3 is a diagram showing an example of a data frame structure used in the CAN communication method. In this disclosure, a "data frame" is a format used when transmitting and receiving data between communication devices, and means a group of transmitted signals. This frame structure is one example, and the present disclosure can be applied to any CAN communication method in which a signal equivalent to an ACK signal is transmitted and received.

[0021] The data frame contains SOF (Start Of Frame), ID (Identifier), RTR (Remote Transmission Request), control field, data field, CRC (Cyclic Redundancy Check) sequence, CRC delimiter, ACK (Acknowledge) slot, ACK delimiter, and EOF (End Of Frame). The numbers in the diagram indicate the bit length available for use in each section. Note that ITM (Intermission) is not included in the data frame. After ITM, the bus enters the idle state.

[0022] The CAN controller 4 performs a CRC calculation on the data in the SOF, ID, control field, and data field, stores the calculation result in a CRC sequence, and transmits it. The ACK slot contains a 1-bit ACK signal (hereafter referred to as the ACK bit). The CAN controller 4 sets the ACK bit to recessive ("1") before transmitting.

[0023] The CAN controller 14 of the second communication device 11 responds to the CAN controller 4 at the timing when the CAN controller 4 transmits the ACK bit in the ACK slot of the data frame. The CAN controller 14 performs a CRC calculation on the contents of the received data frame in the same manner. If the calculation result matches the result calculated by the CAN controller 4 stored in the CRC sequence, the CAN controller 14 sets the ACK bit to dominant ("0") and responds to the CAN controller 4 asynchronously.

[0024] In the CAN protocol, dominant signals on the communication line 8 have a higher priority than recessive signals, so even if the CAN controller 4 sets the ACK bit to recessive, the CAN controller 14 sets it to dominant, and the ACK bit in the data frame monitored by the CAN controller 4 also becomes dominant. Therefore, by confirming that the ACK bit in the data frame is dominant, the CAN controller 4 recognizes that the second communication device 11 has received the data normally.

[0025] Next, a method for detecting a delay in a communication path will be described.

[0026] Through branch 2a between the CAN controller 4 and CAN transceiver 5, the transmission data sent from the CAN controller 4 is input to the delay time calculation unit 6. Furthermore, data received from the second communication device 11 is input to the CAN controller 4 via the CAN transceiver 5, and is also input as received data to the delay time calculation unit 6 through branch 2b. Note that since the received data is the data sent by the CAN controller 4 except for the ACK bit, the bits up to the ACK slot will be the same as the data sent by the CAN controller 4 unless there is an abnormality in the communication path.

[0027] The delay time calculation unit 6 performs a logical operation using the transmission data and the reception data as input. Figure 4 is a truth table of the logical operation executed by the delay time calculation unit 6. The delay time calculation unit 6 performs a logical operation on the binary signal bit according to the truth table in Figure 4, with a high voltage state being recessive ("H") and a low voltage state being dominant ("L"), and outputs the operation result Q to the delay determination unit 7. As shown in the logical formula below, the operation result Q is output by taking the logical AND of the transmission data and the reception data with the logic inverted.

[0028]

number

[0029] On the other hand, regarding the ACK bit, the ACK bit of the transmission data sent by the first communication device 1 is recessive ("H"), whereas the response from the second communication device 11 is dominant ("L"). This response is returned asynchronously from the second communication device 11 at the timing when the first communication device 1 transmits the ACK bit, so there is a period during which the ACK bit of the received data is recessive ("H"). As shown in FIG. 5(c), a signal during the period when the signal is recessive ("H") is extracted as the logical operation result Q of the ACK bit of the transmission data and the received data. In the following explanation, this extracted signal is called a delay time pulse.

[0030] 6 is a diagram showing an example of the configuration of the delay time calculation unit 6 and the delay determination unit 7. The delay time calculation unit 6 performs the above-mentioned logical operation using a logical operation unit 61, and outputs the extracted delay time pulse to a counter unit 62. The counter unit 62 compares the bit time of the communication speed fast By sampling the delay time pulse using a clock (for example, about 100 times the communication speed), the time width can be measured with high precision. fast The clock means a clock capable of measuring the time width of the delay time pulse with a certain degree of accuracy in order to calculate the delay time of the communication path, and can be selected as appropriate. The delay time pulse indicates that the delay is increasing as the time width becomes shorter. The delay time calculation unit 6 calculates the delay time from the time width of the delay time pulse and outputs it to the delay judgment unit 7. Since the delay time of the communication path is the time width of the ACK bit minus the time width of the delay time pulse, the time width of the delay time pulse itself can be treated as the same as the delay time. Therefore, the delay time calculation unit 6 may output the time width of the delay time pulse itself as the calculated delay time to the delay judgment unit 7. Alternatively, the delay time or the fluctuation of the time width of the delay time pulse starting from the state of the communication path after the communication path is opened or maintained may be output as the calculated delay time.

[0031] The delay time depends on the length of time from when the CAN controller 4 transmits a recessive ACK bit until when it receives a dominant ACK bit set by the CAN controller 14. The delay determination unit 7 or the control unit 3 continuously monitors for signs of communication problems caused by delays in the communication path based on fluctuations in the delay time. The delay determination unit 7 reads out the threshold value stored in the memory 32, and the comparison unit 71 compares the delay time with the threshold value, and outputs delay determination information.

[0032] In order to detect a sign of a communication failure, the threshold is set based on a delay time shorter than the limit value of the delay time at which a communication failure occurs. The short delay time here is set with a certain margin from the limit value, taking into consideration the stable operation of the communication system. Figure 7 is an extract of the ACK bit part of the ACK slot from the data string in Figure 5, and shows a schematic diagram of the relationship between the time width of the delay time pulse and the threshold value. The sections AB, AC, and AD indicated by arrows correspond to the delay time, respectively. Section AB corresponds to the delay time when the communication path is opened, or when parts are replaced for maintenance and the state is similar to that at the time of opening. Section AD indicates the limit value of the delay time, and if the delay time becomes longer than this, a communication failure occurs. Section AC corresponds to the above-mentioned threshold, and is set as a tolerance value within the range where stable communication is possible at a delay time shorter than the limit value. Therefore, even if the delay time reaches the threshold, the continuation of stable communication is guaranteed.

[0033] The delay determination unit 7 compares the delay time calculated by the delay time calculation unit 6 (including the time width of the delay time pulse, or the fluctuation of the delay time or the time width of the delay time pulse starting from the state of the communication path after the communication path is opened or maintained) with a threshold value, and outputs delay determination information. The delay determination information indicates the result of comparing the delay time with the threshold value, and includes information that the delay time is less than the threshold value, or that the delay time is equal to or greater than the threshold value. When the delay determination unit 7 determines that the delay time is equal to or greater than the threshold value, the control unit 3 detects a sign of a communication malfunction caused by a delay in the communication path based on the output delay determination information. Note that although the condition that the delay time is equal to or greater than the threshold value includes the condition that the delay time is greater than the threshold value, the condition may be replaced with the delay time being greater than the threshold value, and there is no substantial difference between them. Similarly, in the following explanation, the condition that the delay time is equal to or greater than the threshold value is set, but the condition that the delay time is "exceeding" the threshold value may be set.

[0034] As an additional configuration, a listen-only function that can be used when the first communication device 1 is a master and is connected to a plurality of other communication devices (i.e., in the case of one-to-many communication) will be described. This function specifies other communication devices that respond with an ACK bit by transmitting a listen-only request from the first communication device 1 in order to measure the delay time of the communication path. In the modified communication system shown in FIG. 8, it is assumed that communication devices 101, 102, and 103 corresponding to the above-mentioned second communication device are connected to the first communication device 1. When the first communication device 1 issues a listen-only request to the communication devices 101 and 102, the communication devices 101 and 102 transition from the normal communication mode to the listen-only mode. In this mode, the communication devices 101 and 102 do not respond with an ACK bit even if they receive data transmitted from the first communication device 1. Since the communication device 103 is in the normal communication mode, when it receives data transmitted from the first communication device 1, it responds by changing the ACK bit from recessive to dominant as described above. That is, by using this function for multiple communication devices connected to the first communication device 1 in one-to-many communication, the first communication device 1 can extract the ACK bit from a specified communication device. Since the listen-only function partially restricts communication with devices other than the specified communication device, it is more desirable to use it in situations where communication is not affected, such as during test operation or maintenance.

[0035] As an additional configuration, the first communication device 1 may be provided with an alarm unit 9 that turns on a fail lamp and displays a warning on a display of a control panel, as shown in FIG. 9. FIG. 9 is a diagram showing a modified example of a communication system. When the delay determination unit 7 determines that the delay time is equal to or greater than a threshold, the control unit 3 outputs a command to the alarm unit 9, and the alarm unit 9 notifies the outside of a sign of a communication failure caused by a delay in the communication path. Alternatively, the delay determination unit 7 may directly issue a command to the alarm unit 9. This enables predictive maintenance to be performed by systematically stopping communication and replacing parts that cause delays in the communication path.

[0036] As an additional configuration, in comparing the delay time with the threshold value, the delay judgment unit 7 repeats the comparison multiple times and outputs delay judgment information based on the results of the multiple comparisons. There is a possibility that erroneous judgment will occur due to fluctuations in the time width of the delay time pulse and measurement errors of the counter unit 62, and by making a judgment based on multiple comparisons, it is possible to improve the accuracy of detecting signs of malfunctions caused by delays in the communication path.

[0037] As an additional configuration, the difference between the delay time predicted from the installation information of the communication path and the delay time calculated by the delay time calculation unit 6 may be compared with a threshold value. For example, the threshold value is set to be less than 20%. If the delay determination unit 7 determines that the difference between the predicted delay time and the calculated delay time is equal to or greater than the threshold value, it detects that there is a sign of a communication failure due to delay in the communication path even if communication can be continued. This makes it possible to detect a sign of a communication failure before the delay time increases cumulatively until it reaches the threshold value due to characteristic deterioration such as aging. For example, this leads to early detection of initial defects after the opening of a communication path or after maintenance is performed.

[0038] Examples of information included in the installation information of the communication path include basic information of the communication system such as the length of the communication line 8 and the communication speed, the installation environment of the communication cable in which the communication lines 8 are bundled, the expected temperature fluctuation range of the communication cable depending on the load situation, and a table in which the basic information, temperature fluctuation, and usage time are associated with the delay time predicted from these. Then, the delay time is predicted based on the actual communication cable length, communication speed, and temperature measurement value, the information on the usage time of the communication cable, and the installation information. Parameters related to the delay time other than the above may be included. Note that, for the above table, for example, the relationship between the installation information and the delay time predicted from the installation information can be calculated in advance based on theoretical prediction or statistical analysis of actual data obtained from the communication system, and the table can be stored in the memory 32. Also, a feature amount can be extracted from the actual data obtained from the communication system, machine learning can be performed, and a learned model that estimates a predicted value of the delay time from the installation information of the communication path can be generated in advance and stored in the memory 32.

[0039] Next, the operation of the first communication device 1 will be described with reference to the flowchart of Fig. 10. Transmission data output by the first communication device 1 to the second communication device 11 and reception data as a response from the second communication device 11 are input (S101). A delay time pulse is extracted from the ACK bits of the transmission data and the reception data (S102), and the time width of the delay time pulse is measured (S103).

[0040] The delay time calculated based on the time width of the measured delay time pulse is compared with a threshold value to determine whether the delay time is equal to or greater than the threshold value (S104). If it is determined that the delay time is less than the threshold value, the processes of steps S101 to S103 are repeated. If it is determined that the delay time is equal to or greater than the threshold value, a communication failure may occur if the delay time increases further with continued use, so a sign of a communication failure caused by a delay in the communication path is detected by the output delay determination information (S105).

[0041] 1 and 9, the delay time calculation unit 6, the delay determination unit 7, and the control unit 3 are configured separately, but the control unit 3 may be configured to include the delay time calculation unit 6 and the delay determination unit 7. The delay determination unit 7 may have its own storage means to hold the threshold value, rather than reading the threshold value from the memory 32.

[0042] As described above, the first communication device 1 according to the first embodiment is a communication device that transmits and receives data with other communication devices based on the CAN communication protocol via a communication line 8, and includes a control unit 3 that controls the transmission and reception of data, a delay time calculation unit 6 that receives as input transmission data output from the control unit 3 and reception data output from the other communication device as a response to the transmission data, and calculates a delay time of the communication path from an ACK signal included in the transmission data and the reception data, and a delay determination unit 7 that compares the delay time with a threshold value and outputs delay determination information. With such a configuration, it becomes possible to detect a sign of a malfunction caused by a delay in the communication path.

[0043] In particular, in elevators, the communication cables are longer than those for other applications mentioned above, some reaching hundreds of meters, and also have a long service life, making them susceptible to delays in the communication path due to temperature fluctuations and deterioration over time. For this reason, the present disclosure, which detects signs of malfunctions caused by delays in the communication path, is suitable for an elevator communication device that communicates between an elevator control panel and an operating device for a car or a hall. Similarly, in the embodiments described below, the disclosed communication device can be applied to elevator control to form an elevator communication device.

[0044] Embodiment 2 A description will be given of the first communication device 1 according to the embodiment 2. The first communication device 1 according to the present disclosure compares the delay time calculated by the delay time calculation unit 6 with the first threshold value and the second threshold value.

[0045] In this embodiment, the first threshold and the second threshold are set based on a delay time shorter than the limit value of the delay time. The second threshold corresponds to the threshold described in the first embodiment, and is set based on a delay time longer than the first threshold. That is, the second threshold is set for the allowable value of the delay time, and the first threshold is set to preliminarily detect a sign of a communication failure caused by a delay in the communication path before the delay time reaches the second threshold. Note that the number of thresholds is not limited to two, and it is also possible to set three or more thresholds.

[0046] The delay determination unit 7 compares the delay time calculated by the delay time calculation unit 6 with a first threshold, and if it determines that the delay time is equal to or greater than the first threshold, outputs first delay determination information to the control unit 3. Then, the delay determination unit 7 compares the delay time calculated by the delay time calculation unit 6 with a second threshold, and if it determines that the delay time is equal to or greater than the second threshold, outputs second delay determination information to the control unit 3. If the delay time is equal to or greater than the first threshold, the control unit 3 executes a control process that is set according to the first threshold. The control unit 3 executes different control processes when the delay time is equal to or greater than the first threshold and when the delay time is equal to or greater than the second threshold.

[0047] As an example of the control process set according to the first threshold, the control unit 3 changes the collection conditions of log data to be used for maintenance when the delay time reaches the second threshold. After the delay time reaches the first threshold, the control unit 3 starts recording logs such as the delay time or the time width of the delay time pulse, the ambient temperature of the communication line 8, and the load status of the communication cable. Alternatively, if the log is acquired before the delay time reaches the first threshold, the control unit 3 shortens the period for acquiring the log. By reducing data collection in a situation where the possibility of a malfunction occurring is low while obtaining log data to be used for maintenance, the storage resources of the memory 32 for recording the log data can be efficiently utilized. In particular, when the first communication device 1 manages communication with multiple other communication devices as a master, the volume of log data collected from these communication devices becomes large, and such a setting is effective. The log data may be stored in the memory 32 of the first communication device 1 or in an external storage device not shown.

[0048] The notification unit 9 may also notify the maintenance personnel that the delay time has reached the first threshold value or more. When the delay time is less than the second threshold value but is greater than or equal to the first threshold value, the predictability of when maintenance will be required is improved by preliminarily detecting a sign of a communication failure caused by a delay in the communication path, and more planned preparation for maintenance is possible. In addition, if the period from the previous maintenance until the first threshold value is reached is short, there is a possibility that some kind of failure has occurred in the communication path, and it is possible to carry out maintenance and find the defective part early before the delay time reaches the second threshold value.

[0049] Next, the operation of the first communication device 1 will be described with reference to the flowchart of Fig. 11. Note that steps common to Fig. 10 of the first embodiment will be given the same step numbers and duplicated descriptions will be omitted.

[0050] After the time width of the delay time pulse is measured (S103), it is determined whether the delay time is equal to or greater than a first threshold (S201). If it is determined that the delay time is less than the first threshold, the process returns to before step S101, and monitoring of the delay time continues. If it is determined that the delay time is equal to or greater than the first threshold, a control process set according to the first threshold exemplified above is executed based on the output first delay determination information (S202).

[0051] Next, it is determined whether the delay time is equal to or greater than a second threshold (S203). If it is determined that the delay time is less than the second threshold, the process returns to before step S101, and monitoring of the delay time continues. If it is determined that the delay time is equal to or greater than the second threshold, a communication failure may occur if the delay time increases with continued use, so a sign of a communication failure caused by a delay in the communication path is detected by the output second delay determination information (S105). Note that step S203 may be executed after step S201, or the determinations of steps S201 and S203 may be executed in parallel, and then steps S202 and S105 may be executed.

[0052] As described above, in the communication device 1 according to the second embodiment, the delay determination unit 7 compares the delay time calculated by the delay time calculation unit 6 with at least the first threshold and the second threshold, and the control unit 3 executes different control processes when the delay time is equal to or greater than the first threshold and when the delay time is equal to or greater than the second threshold. With this configuration, it is possible to preliminarily detect a sign of a malfunction caused by a delay in the communication path and perform maintenance or prepare for maintenance.

[0053] Embodiment 3 A first communication device 1 according to a third embodiment will be described. In this embodiment, the first communication device 1 includes a delay cause estimation unit 10 as shown in Fig. 12. The delay cause estimation unit 10 estimates the cause of a delay when a delay time is equal to or greater than a threshold value.

[0054] If the cause of the delay is deterioration over time, the delay time will increase according to the time of use since installation. On the other hand, if the cause of the delay is temperature fluctuations or irregular noise in the communication cable, the delay time may temporarily fluctuate accordingly. For example, if the communication cable temporarily becomes overloaded and the temperature of the communication lines 8 bundled in the communication cable rises, the delay time will increase due to the increase in impedance of the communication lines 8. However, when the overload is eliminated, the temperature of the communication cable will decrease and the delay time will decrease.

[0055] The delay cause estimation unit 10 estimates the cause of the delay time exceeding the threshold value, and estimates whether the cause of the delay is temporary characteristic deterioration such as temperature fluctuation. If it is estimated to be temporary characteristic deterioration, the control unit 3 adjusts the communication speed within a range that does not affect the communication of the system. Specifically, the first communication device 1, which is the master, transmits baud rate setting change information to the second communication device 11, which is the local, and both the master and local self-reset the processors 31, 131 of the control units 3, 13, thereby decreasing the communication speed and increasing the tolerance for delay, and allowing communication to continue.

[0056] An example of a cause estimation method of the delay cause estimation unit 10 will be described with reference to FIG. 13. The delay cause estimation unit 10 refers to the relationship between delay time and usage time from the log data. In FIG. 13, the horizontal axis indicates the usage time of the communication path after the communication path is opened or maintained, and the vertical axis indicates the delay time, and the delay time of the communication path at each usage time is plotted. The causes of delay in the communication path include a mixture of temporary characteristic deterioration such as temperature fluctuation and non-temporary characteristic deterioration due to aging. Therefore, as shown in FIG. 13, the delay time at each usage time varies due to the influence of temporary characteristic deterioration. The delay cause estimation unit 10 extracts data on usage time with little influence of delay due to temporary characteristic deterioration from the measured values ​​of the temperature, load status, and environmental noise of the communication cable, and predicts the tendency of the delay time excluding the influence of temporary characteristic deterioration by approximating the data with a straight line or a curve. Note that the extracted data as shown in FIG. 13 may be approximated with a band having a certain width instead of approximating with a curve. Such prediction of the tendency of the delay time excluding the influence of temporary characteristic deterioration may be performed by referring to the delay time predicted from the installation information of the communication path described above.

[0057] When the delay time excluding the effect of temporary characteristic degradation is predicted to reach the threshold at usage time t2, and the threshold is reached at usage time t1 prior to usage time t2, the delay cause estimation unit 10 refers to data such as the temperature and load status of the communication cable at that time and estimates whether the delay time exceeding the threshold is due to temporary characteristic degradation. For example, if there is a temporary temperature rise due to the communication cable being overloaded when the threshold is reached, it is estimated to be temporary characteristic degradation.

[0058] The operation of the first communication device 1 will be described with reference to the flowchart of Fig. 14. Note that steps common to Fig. 9 of the first embodiment are given the same step numbers and overlapping descriptions will be omitted.

[0059] If it is determined in step S104 that the delay time is equal to or greater than the threshold, the cause of the delay is estimated (S301). Next, based on the estimation result, it is determined whether the cause of the delay is due to temporary characteristic degradation or not (S302). If the cause of the delay is due to temporary characteristic degradation, the communication speed is adjusted (S303). After the communication speed is adjusted, the process returns to before step S101, and monitoring of the delay time continues. On the other hand, if the cause of the delay is not due to temporary characteristic degradation, it is estimated that the cause of the delay is mainly due to aging deterioration, and therefore, if the delay time increases with continued use, there is a possibility that a communication failure will occur. Therefore, a sign of a communication failure due to a delay in the communication path is detected by the output delay determination information (S105).

[0060] As described above, the communication device 1 according to the third embodiment includes a delay cause estimation unit 10 that estimates the cause of the delay time exceeding a threshold, and the control unit 3 adjusts the communication speed when the estimated cause of the delay is temporary characteristic deterioration. With this configuration, it is possible to continue stable communication by increasing the tolerance for delay.

[0061] In the first embodiment, it has been described that the processor 31 of the control unit 3 may read out a software program stored in the memory 32 to realize the functions of each unit of the first communication device 1, and this is also true in the second and third embodiments. Also, as shown in Fig. 15, each functional unit of the first communication device 1 including the control unit 3 may be realized as a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a processing circuit 33 that is a combination of these. Also, some functions of the first communication device 1 may be realized by a software program, and the remaining functions may be realized by a dedicated processing circuit 33.

[0062] Although the embodiments of the present disclosure have been described above, the configuration of the first communication device of the present disclosure is not limited to the embodiments described in the embodiments 1 to 3. The first communication device 1 of the present disclosure can be combined with another known technology, and it is also possible to omit or change a part of the configuration, such as by combining them as appropriate, within the scope of the gist of the present disclosure. [Explanation of symbols]

[0063] REFERENCE SIGNS LIST 1 First communication device, 2 Communication control board, 3 Control unit, 31 Processor, 32 Memory, 4 CAN controller, 5 CAN transceiver, 6 Delay time calculation unit, 7 Delay determination unit, 8 Communication line, 9 Notification unit, 10 Delay cause estimation unit, 11 Second communication device

Claims

1. A communication device that transmits and receives data to and from another communication device via a communication line based on a CAN communication protocol, A control unit for controlling transmission and reception of data; a delay time calculation unit that receives transmission data output from the control unit and reception data output from the other communication device as a response to the transmission data, and calculates a delay time of a communication path from a signal set in an ACK bit of the transmission data and an acknowledgment response signal set in an ACK bit included in the reception data; A communication device comprising a delay determination unit that compares the delay time with a threshold value and outputs delay determination information.

2. The communication device according to claim 1 , wherein the threshold value is set based on a delay time that is shorter than a limit value of a delay time at which a communication failure occurs.

3. The communication device according to claim 1 or 2, characterized in that the delay time calculation unit is provided with a logical operation unit, and extracts a delay time pulse for calculating the delay time from the signal set in the ACK bit and the acknowledgment response signal by taking the logical product of the transmission data and the received data with the logic inverted.

4. 4. The communication device according to claim 1, wherein the delay time calculation unit includes a counter unit and measures the time width of the delay time pulse using a clock that is faster than a bit time of a communication speed.

5. A communication device as described in any one of claims 1 to 4, characterized in that when the communication device is connected to multiple other communication devices, the communication device transmits a listen-only request to identify other communication devices that will respond with the confirmation response signal in order to measure the delay time of the communication path.

6. 6. The communication device according to claim 1, wherein the delay determination unit repeats a comparison of the delay time with the threshold value a plurality of times, and outputs delay determination information based on a result of the plurality of comparisons.

7. The communication device according to any one of claims 1 to 6, characterized in that the delay determination unit compares a difference between a delay time predicted from installation information of a communication path and a delay time calculated by the delay time calculation unit with a threshold value.

8. The delay determination unit compares a first threshold value and a second threshold value that is set based on a delay time longer than the first threshold value with the delay time calculated by the delay time calculation unit; 8. The communication device according to claim 1, wherein the control unit executes different control processes when the delay time is equal to or greater than the first threshold value and when the delay time is equal to or greater than the second threshold value.

9. a delay cause estimation unit that estimates a cause of the delay time being equal to or greater than the threshold, The communication device according to claim 1 , wherein the control unit adjusts a communication speed when the delay is caused by temporary deterioration of characteristics.

10. An elevator communication device in which the communication device according to any one of claims 1 to 9 is applied to elevator control.

11. A communication method for transmitting and receiving data to and from another communication device via a communication line based on a CAN communication protocol, comprising: A step of receiving transmission data and reception data output from the other communication device as a response to the transmission data, and calculating a delay time of a communication path from a signal set in an ACK bit of the transmission data and an acknowledgment response signal set in an ACK bit included in the reception data; comparing the delay time with a threshold value; and outputting delay determination information based on a comparison of the delay time with the threshold value.

Citation Information

Patent Citations

  • Data transmission method

    JP1993316124A

  • Vehicle-mounted electronic controller

    JP2006108952A

  • Controller and remote I / O communication method

    JP2006195780A

  • Control system and control program updating method

    JP2010258990A

  • System and method for automatically addressing devices on a communication network

    JP2012529221A