Transmission device, reception device, communication system, transmission method, reception method, and communication method

The transmitting device addresses the challenge of detecting defects in duplicated data calculations by transmitting checksums alongside data, allowing for effective error detection and ensuring data integrity in communication systems.

WO2024246977A1PCT designated stage expired Publication Date: 2024-12-05MITSUBISHI ELECTRIC CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/019650
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-12-05

AI Technical Summary

Technical Problem

Existing computer systems that duplicate data processing for error detection face issues with increased circuit size and potential incorrect outputs due to single failures in the parity check circuit, making it difficult to detect defects in duplicated data calculations.

Method used

A transmitting device that calculates and transmits first and second data along with their respective checksums, allowing the receiving device to easily detect discrepancies and identify malfunctions in the data calculation process by comparing the checksums.

Benefits of technology

Enables efficient detection of defects in data calculations within the transmitting device, ensuring accurate data transmission and reducing the risk of incorrect outputs by comparing checksums, thus enhancing data integrity in communication systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023019650_05122024_PF_FP_ABST
    Figure JP2023019650_05122024_PF_FP_ABST
Patent Text Reader

Abstract

A transmission device (100) comprises: a computer (120) including a calculation unit (121) that performs a calculation on an input signal to produce first data, and a checksum calculation unit (122) that performs a calculation on the first data to produce a first checksum; a computer (130) including a calculation unit (131) that performs a calculation on the input signal to produce second data; and a transmission unit (160) that transmits the first checksum and the second data to a reception device (200).
Need to check novelty before this filing date? Find Prior Art

Description

Transmitting device, receiving device, communication system, transmitting method, receiving method, and communication method

[0001] The present disclosure relates to a transmitting device, a receiving device, a communication system, a transmitting method, a receiving method, and a communication method for transmitting data.

[0002] Conventionally, computer systems that handle important data have been configured to use duplicated computers and compare the results of each computer to prevent the output from the computer from being affected by a hardware failure in one computer. The computer system compares the results of each computer and only adopts the result obtained by the computer if the results match. One method for comparing the results of each computer is to compare the results of each computer bit by bit, but this method of comparing bit by bit increases the circuit size as the amount of data increases.

[0003] To address this problem, Patent Document 1 discloses a technology in which, in a system having two counters, a parity generator outputs a parity bit signal corresponding to the logical state of each output from one of the counters, and a parity check circuit performs parity verification between the output from the other counter and the parity bit signal, thereby simplifying the circuitry and comparing the outputs from the two counters.

[0004] Japanese Unexamined Patent Publication No. 55-95155

[0005] However, according to the above-mentioned conventional technology, although the counter is duplicated, there is a problem in that a single failure in the parity check circuit may result in an erroneous output from the counter being used.

[0006] The present disclosure has been made in consideration of the above, and aims to provide a transmitting device that can transmit information to a receiving device that allows for easy detection of defects in duplicated data calculations that occur in the transmitting device.

[0007] In order to solve the above-mentioned problems and achieve the objectives, the transmitting device of the present disclosure is characterized by comprising a first computer having a first calculation unit that performs calculations on an input signal to calculate first data and a first checksum calculation unit that performs calculations on the first data to calculate a first checksum, a second computer having a second calculation unit that performs calculations on the input signal to calculate second data, and a transmitting unit that transmits the first checksum and the second data to a receiving device.

[0008] The transmitting device of the present disclosure has an effect of being able to transmit to the receiving device information that enables easy detection of a defect that occurs in the transmitting device during the operation of duplicated data.

[0009] FIG. 1 shows an example of the configuration of a communication system according to the first embodiment. Flowchart showing the operation of a transmitting device according to the first embodiment. Flowchart showing the operation of a receiving device according to the first embodiment. FIG. 1 shows an example of the configuration of a processing circuit of a transmitting device according to the first embodiment when the processing circuit is realized by a processor and a memory. FIG. 1 shows an example of the configuration of a processing circuit of a transmitting device according to the first embodiment when the processing circuit is realized by dedicated hardware. FIG. 1 shows an example of the configuration of a communication system according to the second embodiment. Flowchart showing the operation of a transmitting device according to the second embodiment. Flowchart showing the operation of a receiving device according to the second embodiment. FIG. 1 shows an example of the configuration of a communication system according to the third embodiment. Flowchart showing the operation of a transmitting device according to the third embodiment. Flowchart showing the operation of a receiving device according to the third embodiment.

[0010] A transmitting device, a receiving device, a communication system, a transmitting method, a receiving method, and a communication method according to embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0011] 1 is a diagram showing an example of the configuration of a communication system 300 according to a first embodiment. The communication system 300 includes a transmitting device 100 and a receiving device 200. The communication system 300 is a system used in, for example, a train safety device, and is intended to be used for ground-to-car communication between a train and a piece of ground equipment, communication between pieces of ground equipment, etc., but the uses of the communication system 300 are not limited to these.

[0012] First, the configuration and operation of the transmitting device 100 will be described. As shown in FIG. 1 , the transmitting device 100 includes a branching unit 110, a computer 120, a computer 130, a combining unit 150, and a transmitting unit 160. The computer 120 includes a calculation unit 121, a checksum calculation unit 122, and a timing adjustment interface 123. The computer 130 includes a calculation unit 131. Note that although the timing adjustment interface 123 is provided in the computer 120, it is an interface used between the computers 120 and 130 as shown in FIG. 1 . Therefore, the timing adjustment interface 123 may be provided in the computer 130, or may be provided in both the computers 120 and 130. The timing adjustment interface 123 may also be located outside the computers 120 and 130. As will be described later, the transmitting device 100 has a configuration in which two computers 120 and 130 perform calculations on the same input signal, i.e., the computer is duplicated. Fig. 2 is a flowchart showing the operation of the transmitting device 100 according to the first embodiment.

[0013] The branching unit 110 branches an input signal to be calculated by the calculation unit 121 of the computer 120 and the calculation unit 131 of the computer 130 (step S101). The branching unit 110 outputs one of the branched input signals to the calculation unit 121 of the computer 120, and outputs the other branched input signal to the calculation unit 131 of the computer 130. The branching unit 110 may duplicate the acquired input signal and output the input signal to the calculation unit 121 of the computer 120 and the calculation unit 131 of the computer 130. The input signal may be generated inside the transmitting device 100 or may be generated outside the transmitting device 100.

[0014] In the computer 120, the calculation unit 121 is a first calculation unit that performs a specified calculation on an input signal to calculate first data (step S102) and outputs the first data to the checksum calculation unit 122. The checksum calculation unit 122 is a first checksum calculation unit that performs a specified calculation on the first data to calculate a first checksum (step S103) and outputs the first checksum to the combining unit 150. The first checksum is one type of error detection code and is calculated by a general calculation. The same applies to the second checksum described below. In the following description, the computer 120 may be referred to as the first computer.

[0015] In the computer 130, the calculation unit 131 is a second calculation unit that performs a specified calculation on the input signal to calculate second data (step S104) and outputs the second data to the combining unit 150. Here, the calculation method of the calculation unit 121 of the computer 120 and the calculation method of the calculation unit 131 of the computer 130 are the same. In other words, when the calculation unit 121 of the computer 120 and the calculation unit 131 of the computer 130 both perform calculations normally, the first data and the second data calculated from the same input signal will have the same value. In the following description, the computer 130 may be referred to as the second computer.

[0016] The computer 120 outputs a signal for adjusting timing to the other computer 130 via the timing adjustment interface 123, and adjusts the timing at which the checksum calculation unit 122 of the computer 120 outputs the first checksum to the combining unit 150 and the timing at which the calculation unit 131 of the computer 130 outputs the second data to the combining unit 150 (step S105). Specifically, the computers 120 and 130 output timing messages to each other immediately before the checksum calculation unit 122 of the computer 120 outputs the first checksum to the combining unit 150 and immediately before the calculation unit 131 of the computer 130 outputs the second data to the combining unit 150. After confirming receipt of the timing message from the other computer, the computers 120 and 130 adjust the output timing of the checksum calculation unit 122 of the computer 120 and the calculation unit 131 of the computer 130 so that the timings are the same or within a specified time difference range. In this way, the computers 120 and 130 use the timing adjustment interface 123 to adjust the timing at which the checksum calculation unit 122 outputs the first checksum and the timing at which the calculation unit 131 outputs the second data.

[0017] The checksum calculation unit 122 of the computer 120 outputs the first checksum to the combining unit 150 in accordance with the timing adjusted by the timing message (step S106). The calculation unit 131 of the computer 130 outputs the second data to the combining unit 150 in accordance with the timing of the timing message output from the timing adjustment interface 123 (step S107).

[0018] The combining unit 150 combines the first checksum output from the checksum calculation unit 122 of the computer 120 with the second data output from the calculation unit 131 of the computer 130 (step S108). The combining unit 150 outputs the combined first checksum and second data to the transmitting unit 160. The combining unit 150 combines the first checksum and the second data, assuming that the first checksum that arrived from the checksum calculation unit 122 of the computer 120 and the second data that arrived from the calculation unit 131 of the computer 130 within the same or a specified time difference range are based on the same input signal. If the combining unit 150 is unable to obtain the first checksum and the second data within the specified time difference range, it may notify the user of the transmitting device 100 or the like of this fact.

[0019] The transmitting unit 160 transmits the first checksum and the second data to the receiving device 200 (step S109). In the first embodiment, the transmitting unit 160 transmits the first checksum and the second data combined by the combining unit 150 to the receiving device 200. For example, if the first data and the second data calculated by the calculation unit 121 of the computer 120 and the calculation unit 131 of the computer 130 are [0xc0 0xA8 0xFF 0x58] and the first checksum calculated by the checksum calculation unit 122 of the computer 120 is [0xBF], the combined first checksum and second data transmitted from the transmitting unit 160 will be [0xc0 0xA8 0xFF 0x58 0xBF]. Here, the combined first checksum and second data are arranged in the order of second data, first checksum; however, if the order is known between the transmitting device 100 and the receiving device 200, the order may be first checksum, second data.

[0020] Next, a description will be given of the configuration and operation of the receiving device 200. As shown in Fig. 1, the receiving device 200 includes a receiving unit 210, a checksum calculation unit 220, and a comparison unit 230. Fig. 3 is a flowchart showing the operation of the receiving device 200 according to the first embodiment.

[0021] The receiving unit 210 receives the first checksum calculated from the first data and the second data transmitted from the transmitting device 100 (step S201). In the first embodiment, the receiving unit 210 receives the combined first checksum and second data from the transmitting device 100. The receiving unit 210 divides the received first checksum and second data, outputs the first checksum to the comparing unit 230, and outputs the second data to the checksum calculation unit 220. Note that the receiving unit 210 may output the first checksum and second data in a combined state to the checksum calculation unit 220 without dividing them.

[0022] The checksum calculation unit 220 is a second checksum calculation unit that calculates a second checksum by performing a specified calculation on the second data acquired from the receiving unit 210 (step S202). The calculation method of the checksum calculation unit 122 included in the transmitting device 100 and the checksum calculation method of the checksum calculation unit 220 included in the receiving device 200 are the same. That is, if the first data input to the checksum calculation unit 122 of the transmitting device 100 and the second data input to the checksum calculation unit 220 of the receiving device 200 are identical and both the checksum calculation unit 122 of the transmitting device 100 and the checksum calculation unit 220 of the receiving device 200 perform calculations correctly, the calculated first checksum and second checksum will be the same value. The checksum calculation unit 220 outputs the second data acquired from the receiving unit 210, along with the calculated second checksum, to the comparison unit 230. In addition, if the checksum calculation unit 220 has also obtained a first checksum from the receiving unit 210, it outputs the first checksum and second data obtained from the receiving unit 210 to the comparison unit 230 along with the calculated second checksum.

[0023] The comparison unit 230 compares the first checksum with the second checksum. If the first checksum and the second checksum match (step S203: Yes), the comparison unit 230 adopts the second data (step S204). The comparison unit 230 may output the second data to another component (not shown) inside the receiving device 200, or may output the second data to an external device outside the receiving device 200. If the first checksum and the second checksum do not match (step S203: No), the comparison unit 230 notifies the user of the receiving device 200 or the like that the first checksum and the second checksum do not match (step S205).

[0024] Here, assume that some kind of malfunction has occurred in the transmitting device 100. For example, if the calculation unit 121 of the transmitting device 100 malfunctions, the calculation unit 121 will not be able to calculate accurate first data. Even if the checksum calculation unit 122 is not malfunctioning, it will use inaccurate first data and will not be able to calculate a first checksum for the originally accurate first data. Therefore, the comparison unit 230 of the receiving device 200 will determine that some kind of malfunction has occurred in the transmitting device 100 because the first checksum and the second checksum do not match. The same applies if the checksum calculation unit 122 of the transmitting device 100 malfunctions.

[0025] Furthermore, if the calculation unit 131 of the transmitting device 100 malfunctions, the calculation unit 131 will be unable to calculate accurate second data. The checksum calculation unit 220 of the receiving device 200 will use the inaccurate second data and will therefore be unable to calculate a second checksum for the correct second data. Therefore, the comparison unit 230 of the receiving device 200 will be able to determine that some kind of malfunction has occurred in the transmitting device 100 because the first checksum and the second checksum do not match.

[0026] If the combining unit 150 of the transmitting device 100 fails, the transmitting unit 160 can detect that the data is inaccurate by performing the same checksum calculation as the receiving device 200, and the transmitting device 100 can determine that some kind of problem has occurred in the received data. Therefore, if the combining unit 150 fails, inaccurate data caused by the failure of the combining unit 150 will not be sent from the transmitting unit 160 of the transmitting device 100 to the receiving device 200.

[0027] In this way, by using the information received from the transmitting device 100, the receiving device 200 can easily detect a defect in the duplicated data calculation that occurred in the transmitting device 100. In other words, it can be said that the transmitting device 100 can transmit information to the receiving device 200 that enables easy detection of a defect in the duplicated data calculation that occurred in the transmitting device 100. Incidentally, a possible cause of the first checksum and the second checksum not matching may be a malfunction of the checksum calculation unit 220 of the receiving device 200, which prevents the checksum calculation unit 220 from calculating an accurate second checksum. Therefore, the comparing unit 230 of the receiving device 200 may determine that some kind of defect has occurred in the transmitting device 100 or the receiving device 200 when the first checksum and the second checksum do not match. However, considering the complexity of the operations of the transmitting device 100 and the receiving device 200, it is considered that the probability of a defect occurring is higher in the transmitting device 100 than in the receiving device 200.

[0028] Next, the hardware configuration of the transmitting device 100 according to the first embodiment will be described. In the transmitting device 100, the transmitting unit 160 is a transmitter capable of transmitting the first checksum and the second data to the receiving device 200. The branching unit 110, the computers 120 and 130, and the combining unit 150 are realized by processing circuits. The processing circuit may be a memory that stores a program and a processor that executes the program stored in the memory, or may be dedicated hardware. The processing circuit is also called a control circuit.

[0029] FIG. 4 is a diagram illustrating an example of the configuration of a processing circuit 900 of the transmitting device 100 according to the first embodiment, when the processing circuit is realized by a processor 901 and a memory 902. The processing circuit 900 illustrated in FIG. 4 is a control circuit and includes a processor 901 and a memory 902. When the processing circuit 900 is configured with the processor 901 and the memory 902, each function of the processing circuit 900 is realized by software, firmware, or a combination of software and firmware. The software or firmware is written as a program and stored in the memory 902. In the processing circuit 900, each function is realized by the processor 901 reading and executing the program stored in the memory 902. That is, the processing circuit 900 includes the memory 902 for storing a program that results in the processing of the transmitting device 100 being executed. This program can also be said to be a program that causes the transmitting device 100 to execute each function realized by the processing circuit 900. This program may be provided by a storage medium on which the program is stored, or by other means such as a communication medium.

[0030] The above program can also be said to be a program that causes the transmitting device 100 to execute the following steps: a first calculation step in which the calculation unit 121 of the computer 120 performs calculations on the input signal to calculate first data; a first checksum calculation step in which the checksum calculation unit 122 of the computer 120 performs calculations on the first data to calculate a first checksum; a second calculation step in which the calculation unit 131 of the computer 130 performs calculations on the input signal to calculate second data; and a transmission step in which the transmitting unit 160 transmits the first checksum and the second data to the receiving device 200.

[0031] Here, the processor 901 is, for example, a CPU (Central Processing Unit), a processing device, an arithmetic unit, a microprocessor, a microcomputer, or a DSP (Digital Signal Processor), etc. Furthermore, the memory 902 is, for example, a non-volatile or volatile semiconductor memory such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), or an EEPROM (Electrically EPROM), a magnetic disk, a flexible disk, an optical disk, a compact disk, a minidisk, or a DVD (Digital Versatile Disc).

[0032] 5 is a diagram illustrating an example of the configuration of the processing circuit 903 of the transmitting device 100 according to the first embodiment when the processing circuit is realized by dedicated hardware. The processing circuit 903 illustrated in FIG. 5 corresponds to, for example, 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 combination thereof. The processing circuit 903 may be partially realized by dedicated hardware and partially realized by software or firmware. In this way, the processing circuit 903 can realize each of the above-described functions by dedicated hardware, software, firmware, or a combination thereof.

[0033] The hardware configuration of the transmitting device 100 has been described above, and the hardware configuration of the receiving device 200 is also similar. In the receiving device 200, the receiving unit 210 is a receiver capable of receiving the first checksum and the second data from the transmitting device 100. The checksum calculation unit 220 and the comparison unit 230 are realized by a processing circuit. The processing circuit may be a memory that stores a program and a processor that executes the program stored in the memory, or it may be dedicated hardware.

[0034] As described above, according to this embodiment, in the communication system 300, for the same input signal, the transmitting device 100 has the computer 120 calculate first data, the computer 130 calculate a first checksum for the first data, and the computer 130 calculate second data, and combine the first checksum and the second data and transmit the combined data to the receiving device 200. The receiving device 200 calculates a second checksum for the second data, and if the first checksum and the second checksum match, the receiving device 200 adopts the second data. If the first checksum and the second checksum do not match, the receiving device 200 can determine that some kind of malfunction has occurred in the transmitting device 100. In other words, the transmitting device 100 can transmit to the receiving device 200 information that enables easy detection of a malfunction in the duplicated data calculation that has occurred in the transmitting device 100.

[0035] Embodiment 2 In the first embodiment, the transmitting device 100 combines the first checksum and the second data and transmits them to the receiving device 200. In the second embodiment, a case will be described in which the transmitting device transmits the first checksum and the second data to the receiving device 200 without combining them.

[0036] 6 is a diagram illustrating a configuration example of a communication system 300a according to the second embodiment. The communication system 300a includes a transmitting device 100a and a receiving device 200. The application of the communication system 300a is similar to that of the communication system 300 according to the first embodiment.

[0037] First, the configuration and operation of the transmitting device 100a will be described. As shown in FIG. 6, the transmitting device 100a is configured by adding an identification information generation unit 141 to each of the computers 120 and 130 of the transmitting device 100 of the first embodiment shown in FIG. 1. The identification information generation unit 141 of the computer 120 is a first identification information generation unit that generates identification information for first data. The identification information generation unit 141 of the computer 130 is a second identification information generation unit that generates identification information for second data. FIG. 7 is a flowchart showing the operation of the transmitting device 100a according to the second embodiment. In the flowchart shown in FIG. 7, the operations of steps S101, S102, and S104 are the same as the operations of steps S101, S102, and S104 in the flowchart of the first embodiment shown in FIG. 2.

[0038] The identification information generation units 141 of the computers 120 and 130 generate identification information for the first data and the second data based on the same input signal (step S111). Here, the identification information is generated, for example, by the identification information generation units 141 of the computers 120 and 130 incrementing an integer by one for each input signal. When generating identification information in this manner, the computers 120 and 130 do not require timing adjustment using the timing adjustment interface 123. Alternatively, each computer 120 and 130 can output an integer generated by itself to the other computer in a timing message and generate identification information by adding the value generated by itself and the value transmitted from the other computer. Here, each computer 120 and 130 may generate the "integer generated by itself" by incrementing it by one, or may generate a randomly generated value. Furthermore, the method of combining the integer generated by the computer 120 with the integer generated by the other computer does not need to be limited to addition, and may be addition, subtraction, multiplication, or division, or may be any other calculation formula that follows a specific rule. The identification information generation unit 141 of the computer 120 generates identification information that is the same as the identification information generated by the identification information generation unit 141 of the computer 130, and outputs it to the checksum calculation unit 122 of the computer 120. The identification information generation unit 141 of the computer 130 generates identification information that is the same as the identification information generated by the identification information generation unit 141 of the computer 120, and outputs it to the calculation unit 131 of the computer 130. Although not shown in FIG. 6 , the identification information generation units 141 of the computers 120 and 130 may obtain information branched from the input signal from the branching unit 110, generate identification information, and output the identification information to the checksum calculation unit 122 of the computer 120 and the calculation unit 131 of the computer 130. In this way, the identification information generation unit 141 of the computer 120 and the identification information generation unit 141 of the computer 130 generate identification information using a specified generation method so that the same identification information is generated for the first data and the second data based on the same input signal.

[0039] The checksum calculation unit 122 of the computer 120 calculates a first checksum by adding the identification information obtained from the identification information generation unit 141 to the first data calculated by the calculation unit 121, and outputs the first checksum to the transmission unit 160 (step S112). Also, the calculation unit 131 of the computer 130 adds the identification information obtained from the identification information generation unit 141 to the calculated second data, and outputs the second data to the transmission unit 160 (step S113).

[0040] The transmitting unit 160 transmits to the receiving device 200 a first checksum calculated from the first data to which identification information has been added, which has been obtained from the checksum calculation unit 122 of the computer 120. The transmitting unit 160 also transmits to the receiving device 200 the second data to which identification information has been added, which has been obtained from the calculation unit 131 of the computer 130 (step S114). The transmitting unit 160 may transmit the first checksum to the receiving device 200 at the same time as or at different times from the second data to the receiving device 200.

[0041] In the first embodiment, the transmitting device 100 combines the first checksum and the second data based on the same input signal and transmits the combined data to the receiving device 200, thereby allowing the receiving device 200 to ascertain the combination of the first checksum and the second data based on the same input signal. In contrast, in the second embodiment, the transmitting device 100a transmits to the receiving device 200 a first checksum calculated by adding identification information to the first data based on the same input signal and the second data to which the identification information has been added, thereby allowing the receiving device 200 to ascertain the combination of the first checksum and the second data based on the same input signal.

[0042] Next, a description will be given of the configuration and operation of the receiving apparatus 200. As shown in Fig. 6, the configuration of the receiving apparatus 200 is the same as the configuration of the receiving apparatus 200 of the first embodiment shown in Fig. 1. Fig. 8 is a flowchart showing the operation of the receiving apparatus 200 according to the second embodiment.

[0043] If the receiving unit 210 has not received the first checksum and the second data from the transmitting device 100a (step S211: No), the receiving unit 210 waits until the first checksum and the second data are received. If the receiving unit 210 has received the first checksum and the second data from the transmitting device 100a (step S211: Yes), the receiving unit 210 outputs the first checksum to the comparing unit 230 and outputs the second data to the checksum calculating unit 220.

[0044] The checksum calculation unit 220 calculates a second checksum by performing a specified calculation on the second data acquired from the receiving unit 210 (step S202). At this time, since identification information is attached to the second data, the checksum calculation unit 220 calculates the second checksum by performing a calculation on the second data with the identification information attached. In the second embodiment, the calculation method of the checksum calculation unit 220 is the same as the calculation method of the checksum calculation unit 122 of the transmitting device 100a of the second embodiment. The checksum calculation unit 220 outputs the second data acquired from the receiving unit 210 together with the calculated second checksum to the comparing unit 230. Note that if the checksum calculation unit 220 has also acquired a first checksum from the receiving unit 210, it outputs the first checksum and the second data acquired from the receiving unit 210 together with the calculated second checksum to the comparing unit 230.

[0045] The comparator 230 compares the first checksum calculated from the first data to which the same identification information as that assigned to the second data has been assigned with the second checksum. If the first checksum and the second checksum match (step S203: Yes), the comparator 230 adopts the second data (step S204). In the second embodiment, the first checksum is calculated by including the identification information in the first data, and the second checksum is calculated by including the identification information in the second data. The first data and the second data are calculated from the same input signal and have the same identification information. Therefore, if the first checksum and the second checksum match, all calculations in the transmitter 100a and the checksum calculator 220 have been performed successfully. The comparator 230 deletes the identification information assigned to the second data and may output the second data to another component (not shown) within the receiver 200 or to an external device. If the first checksum and the second checksum do not match (step S203: No), the comparison unit 230 notifies the user of the receiving device 200 or the like that the first checksum and the second checksum do not match (step S205).

[0046] The hardware configuration of the transmitting device 100a will now be described. In the transmitting device 100a, the identification information generating unit 141 is realized by a processing circuit. The processing circuit may be a memory that stores a program and a processor that executes the program stored in the memory, or it may be dedicated hardware.

[0047] As described above, according to the present embodiment, in the communication system 300a, the transmitting device 100a separately transmits to the receiving device 200 the first checksum calculated from the first data to which identification information has been added, and the second data to which the same identification information as the identification information added to the first data has been added. Even in this case, the communication system 300a can obtain the same effects as in the first embodiment.

[0048] Embodiment 3 In the first embodiment, the transmitting device 100 transmits the first checksum and the second data based on a certain input signal once to the receiving device 200. In the third embodiment, a case will be described in which the transmitting device transmits the first checksum and the second data based on a certain input signal to the receiving device 200 multiple times, i.e., continuously.

[0049] 9 is a diagram illustrating a configuration example of a communication system 300b according to the third embodiment. The communication system 300b includes a transmitting device 100b and a receiving device 200. The application of the communication system 300b is similar to that of the communication system 300 according to the first embodiment.

[0050] First, the configuration and operation of the transmitting device 100b will be described. As shown in FIG. 9, the transmitting device 100b is configured by adding a duplicate serial number assigning unit 111 to each of the computers 120 and 130 in comparison with the transmitting device 100 of the first embodiment shown in FIG. 1. The duplicate serial number assigning unit 111 of the computer 120 is a first duplicate serial number assigning unit that duplicates an input signal, assigns a serial number to each input signal obtained by duplicating the input signal, and outputs the duplicated input signal to the calculation unit 121. The duplicate serial number assigning unit 111 of the computer 130 is a second duplicate serial number assigning unit that duplicates an input signal, assigns a serial number to each input signal obtained by duplicating the input signal, and outputs the duplicated input signal to the calculation unit 131. FIG. 10 is a flowchart showing the operation of the transmitting device 100b according to the third embodiment.

[0051] After the operation of step S101, the copy serial number assignment unit 111 of each computer 120, 130 copies the input signal acquired from the branch unit 110 and assigns a serial number to each of the acquired input signals (step S121). The copy serial number assignment unit 111 copies the input signal the number of times that the transmitting device 100b transmits the first checksum and the second data to the receiving device 200. For example, if the transmitting device 100b transmits the first checksum and the second data five times to the receiving device 200, the copy serial number assignment unit 111 copies the input signal to prepare five copies and assigns a serial number to each input signal. The five serial numbers are, for example, 1, 2, 3, 4, 5, etc. The duplicate serial number assignment unit 111 of the computer 120 outputs the input signal assigned with serial number 1, the input signal assigned with serial number 2, the input signal assigned with serial number 3, the input signal assigned with serial number 4, and the input signal assigned with serial number 5 to the calculation unit 121. Similarly, the duplicate serial number assignment unit 111 of the computer 130 outputs the input signal assigned with serial number 1, the input signal assigned with serial number 2, the input signal assigned with serial number 3, the input signal assigned with serial number 4, and the input signal assigned with serial number 5 to the calculation unit 131.

[0052] In the computer 120, the calculation unit 121 performs a specified calculation on each of the replicated input signals with different serial numbers to calculate first data (step S102), and outputs the first data to the checksum calculation unit 122. Here, in the example described above, the calculation unit 121 calculates the first data by performing a calculation on five input signals that are the same input signal but have different serial numbers, but the calculation is performed including the serial numbers. Therefore, the five first data calculated by the calculation unit 121 for the five input signals will all be different values.

[0053] The checksum calculation unit 122 calculates a first checksum by performing calculation on each of the plurality of first data (step S103). In the above example, the five first data have different values, so the five first checksums calculated by the checksum calculation unit 122 for the five first data have different values.

[0054] In the computer 130, the calculation unit 131 calculates second data by performing calculations on each of the duplicated input signals with different serial numbers (step S104). Here, while the calculation unit 131 calculates second data by performing calculations on five input signals that are the same but have different serial numbers in the example described above, the calculation is performed including the serial numbers. Therefore, the five second data calculated by the calculation unit 131 for the five input signals will all be different values. In the flowchart shown in FIG. 10, the operations from step S105 to step S109 onward require more work by the transmitting device 100b since the input signals are duplicated, but the individual operations themselves are the same as the operations from step S105 to step S109 in the flowchart of embodiment 1 shown in FIG. 2.

[0055] Next, a description will be given of the configuration and operation of the receiving apparatus 200. As shown in Fig. 9, the configuration of the receiving apparatus 200 is the same as the configuration of the receiving apparatus 200 according to the first embodiment shown in Fig. 1. Fig. 11 is a flowchart showing the operation of the receiving apparatus 200 according to the third embodiment.

[0056] The receiving unit 210 receives the first checksum and the second data transmitted from the transmitting device 100b (step S201). In the example described above, the receiving unit 210 receives the first checksum and the second data based on the same input signal five times, but the individual operations are the same as those in the first embodiment.

[0057] When the input signal is duplicated in the transmitting device 100b and a different serial number is assigned to each input signal, the computer 120 calculates a first checksum for each of the duplicated input signals with different serial numbers, and the computer 130 calculates second data for each of the duplicated input signals with different serial numbers, the checksum calculation unit 220 calculates a second checksum by performing calculation on all of the second data based on the same input signal (step S202). In the above example, the five second data are all different values, so the five second checksums calculated by the checksum calculation unit 220 for the five second data are all different values.

[0058] The comparator 230 compares the first checksum and the second checksum for each serial number. If the first checksum and the second checksum all match (step S221: Yes), the comparator 230 adopts the second data (step S204). In the example described above, five combinations of the first and second checksums are possible. Therefore, the comparator 230 compares the first checksum and the second checksum based on the same input signal five times. If the first checksum and the second checksum match all five times, the comparator 230 adopts the second data. In the third embodiment, the transmitter 100b combines the first checksum and the second data and transmits them. Therefore, each component of the receiver 200 can consider the combined first checksum and the second data received to be based on an input signal with the same serial number. The comparison unit 230 compares the first checksum with the second checksum for each serial number, and if there is even one combination in which the first checksum and the second checksum do not match (step S221: No), it notifies the user of the receiving device 200 or the like that the first checksum and the second checksum do not match (step S205).

[0059] The hardware configuration of the transmission device 100b will be described. In the transmission device 100b, the copy serial number assignment unit 111 is realized by a processing circuit. The processing circuit may be a memory that stores a program and a processor that executes the program stored in the memory, or it may be dedicated hardware.

[0060] As described above, according to the present embodiment, in the communication system 300b, the transmitting device 100b duplicates one input signal, assigns a serial number to each input signal, and performs the same operation as the transmitting device 100 of the first embodiment for each input signal assigned a different serial number. The receiving device 200 compares the first checksum with the second checksum for each serial number, and adopts the second data if all checksums match. If there is even one combination in which the first checksum and the second checksum do not match, the receiving device 200 can determine that some kind of malfunction has occurred in the transmitting device 100b. In other words, the transmitting device 100b can transmit to the receiving device 200 information that enables easy detection of a malfunction in the calculation of duplicated data that has occurred in the transmitting device 100b. In the third embodiment, the communication system 300b can improve the accuracy with which the receiving device 200 detects a malfunction in the transmitting device 100b compared to the accuracy with which the receiving device 200 detects a malfunction in the transmitting device 100 in the first embodiment.

[0061] In the third embodiment, the case where the transmitting device 100b continuously transmits the first checksum and the second data five times has been specifically described, but the number of continuous transmissions by the transmitting device 100b is not limited to this. The communication system 300b can appropriately increase or decrease the number of continuous transmissions by the transmitting device 100b depending on the number of bits of the first data and the second data, the degree to which errors are desired to be detected, and the like. The same applies to the fourth embodiment described below.

[0062] Embodiment 4. In the third embodiment, using the first embodiment as an example, a case was described in which the transmitting device 100b transmits, i.e., continuously transmits, a first checksum and second data based on a certain input signal to the receiving device 200 a plurality of times. In the fourth embodiment, using the second embodiment as an example, a case will be described in which the transmitting device transmits, i.e., continuously transmits, a first checksum and second data based on a certain input signal to the receiving device 200 a plurality of times.

[0063] 12 is a diagram illustrating a configuration example of a communication system 300c according to the fourth embodiment. The communication system 300c includes a transmitting device 100c and a receiving device 200. The use of the communication system 300c is similar to that of the communication system 300 according to the first embodiment.

[0064] First, the configuration and operation of the transmitting device 100c will be described. As shown in FIG. 12, the transmitting device 100c is configured by adding a duplication serial number assignment unit 111 to each of the computers 120 and 130 of the transmitting device 100a of the second embodiment shown in FIG. 6. FIG. 13 is a flowchart showing the operation of the transmitting device 100c according to the fourth embodiment. The flowchart of the fourth embodiment shown in FIG. 13 differs from the flowchart of the second embodiment shown in FIG. 7 in the operation of step S121, but the operation of step S121 is the same as the operation of step S121 in the flowchart of the third embodiment shown in FIG. 10. Therefore, detailed description thereof will be omitted.

[0065] Next, the configuration and operation of the receiving device 200 will be described. As shown in FIG. 12, the configuration of the receiving device 200 is the same as the configuration of the receiving device 200 of embodiment 2 shown in FIG. 6. FIG. 14 is a flowchart showing the operation of the receiving device 200 according to embodiment 4. The flowchart of embodiment 4 shown in FIG. 14 differs from the flowchart of embodiment 2 shown in FIG. 8 in the operation of step S221, but the operation of step S221 is the same as the operation of step S221 in the flowchart of embodiment 3 shown in FIG. 11. Therefore, detailed description will be omitted. In embodiment 4, the first checksum is calculated by adding identification information to first data based on an input signal assigned with a serial number, and the second checksum is calculated by adding identification information to second data based on an input signal assigned with a serial number. The first data and the second data are calculated from the same input signal assigned with the same serial number, and the identification information is the same. Therefore, if the first checksum and the second checksum all match, all calculations in the transmitting device 100c and the checksum calculation unit 220 have been performed successfully.

[0066] As described above, according to the present embodiment, in the communication system 300c, the transmitting device 100c duplicates one input signal, assigns a serial number to each input signal, and performs the same operation as the transmitting device 100a of the second embodiment for each of the input signals assigned with different serial numbers, i.e., transmits a first checksum calculated from the first data assigned with identification information and second data assigned with the same identification information as the identification information assigned to the first data separately to the receiving device 200. Even in this case, the communication system 300c can obtain the same effect as in the third embodiment.

[0067] The configurations shown in the above embodiments are merely examples, and may be combined with other known technologies, or different embodiments may be combined with each other. It is also possible to omit or modify parts of the configurations as long as they do not deviate from the gist of the invention.

[0068] 100, 100a, 100b, 100c transmitting device, 110 branching unit, 111 duplicate serial number assignment unit, 120, 130 computer, 121, 131 calculation unit, 122, 220 checksum calculation unit, 123 timing adjustment interface, 141 identification information generation unit, 150 combining unit, 160 transmitting unit, 200 receiving device, 210 receiving unit, 230 comparison unit, 300, 300a, 300b, 300c communication system, 900, 903 processing circuit, 901 processor, 902 memory.

Claims

1. A transmitting device comprising: a first computer having a first calculation unit that performs calculations on an input signal to calculate first data, and a first checksum calculation unit that performs calculations on the first data to calculate a first checksum; a second computer having a second calculation unit that performs calculations on the input signal to calculate second data; and a transmitting unit that transmits the first checksum and the second data to a receiving device.

2. The transmitting device according to claim 1, further comprising: a combining unit which combines the first checksum and the second data; wherein the first computer and the second computer use a timing adjustment interface to adjust the timing at which the first checksum calculation unit outputs the first checksum and the timing at which the second calculation unit outputs the second data; and wherein the transmitting unit transmits the first checksum and the second data combined by the combining unit to the receiving device.

3. The transmitting device according to claim 1, characterized in that the first computer comprises a first identification information generation unit that generates identification information for the first data, the second computer comprises a second identification information generation unit that generates identification information for the second data, the first identification information generation unit and the second identification information generation unit generate the identification information using a specified generation method so that the same identification information is generated for the first data and the second data based on the same input signal, the first checksum calculation unit adds the identification information to the first data calculated by the first calculation unit to calculate and output the first checksum, the second calculation unit adds the identification information to the calculated second data to output it, and the transmitting unit transmits the first checksum calculated from the first data to which the identification information has been added to the receiving device, and transmits the second data to which the identification information has been added to the receiving device.

4. A transmitting device as described in any one of claims 1 to 3, characterized in that the first computer comprises a first duplicate serial number assignment unit that assigns a serial number to each input signal obtained by copying the input signal and outputs the duplicated input signal to the first calculation unit, the second computer comprises a second duplicate serial number assignment unit that assigns a serial number to each input signal obtained by copying the input signal and outputs the duplicated input signal to the second calculation unit, the first calculation unit performs an operation on each of the duplicated input signals having different serial numbers to calculate the first data, the first checksum calculation unit performs an operation on each of the multiple first data to calculate the first checksum, and the second calculation unit performs an operation on each of the duplicated input signals having different serial numbers to calculate the second data.

5. A receiving device comprising: a receiving unit which receives a first checksum calculated from first data and second data transmitted from the transmitting device described in claim 1; a second checksum calculation unit which performs calculations on the second data to calculate a second checksum; and a comparison unit which compares the first checksum with the second checksum and adopts the second data if they match.

6. The receiving device described in claim 5, characterized in that, when identification information is assigned to the second data, the second checksum calculation unit performs calculations on the second data to which the identification information is assigned to calculate the second checksum and outputs it to the comparison unit, and the comparison unit compares the first checksum calculated from the first data to which the same identification information as the identification information assigned to the second data is assigned with the second checksum, and adopts the second data if they match.

7. The receiving device according to claim 5 or 6, characterized in that the second checksum calculation unit calculates the second checksum by performing calculations on all of the second data based on the same input signal when an input signal is duplicated in the transmitting device and a serial number is assigned to each input signal, the first checksum is calculated for each of the duplicated input signals with different serial numbers in a first computer of the transmitting device, and the second data is calculated for each of the duplicated input signals with different serial numbers in a second computer of the transmitting device, and the comparison unit compares the first checksum and the second checksum for each serial number and adopts the second data if all match.

8. A communication system comprising: a transmitting device which performs an operation on an input signal by a first computer to calculate first data, and transmits to a receiving device a first checksum calculated by performing an operation on the first data and a second data calculated by a second computer to perform an operation on the input signal; and a receiving device which receives the first checksum and the second data, performs an operation on the second data to calculate a second checksum, compares the first checksum with the second checksum, and adopts the second data if they match.

9. The communication system according to claim 8, wherein the transmitting device adjusts the timing at which the first computer outputs the first checksum and the timing at which the second computer outputs the second data, combines the first checksum and the second data, and transmits the combined data to the receiving device.

10. The communication system described in claim 8, characterized in that the transmitting device generates identification information for the first data and the second data based on the same input signal, transmits the first checksum calculated from the first data to which the identification information has been added to the receiving device, and adds the identification information to the second data and transmits it to the receiving device, and if the identification information has been added to the second data, the receiving device performs an operation on the second data to which the identification information has been added to calculate the second checksum, compares the first checksum calculated from the first data to which the identification information same as the identification information added to the second data with the second checksum, and adopts the second data if they match.

11. The communication system according to any one of claims 8 to 10, characterized in that the transmitting device assigns a serial number to each input signal obtained by copying the input signal, and transmits the first checksum calculated by performing an operation on the first data calculated by performing an operation on each of the copied input signals having different serial numbers by the first computer, and the second data calculated by performing an operation on each of the copied input signals having different serial numbers by the second computer; and the receiving device calculates the second checksum by performing an operation on all of the second data based on the same input signal, compares the first checksum and the second checksum for each serial number, and adopts the second data if all match.

12. A transmission method for a transmitting device, comprising: a first calculation step in which a first calculation unit of a first computer performs a calculation on an input signal to calculate first data; a first checksum calculation step in which a first checksum calculation unit of the first computer performs a calculation on the first data to calculate a first checksum; a second calculation step in which a second calculation unit of a second computer performs a calculation on the input signal to calculate second data; and a transmission step in which a transmitting unit transmits the first checksum and the second data to a receiving device.

13. The transmission method according to claim 12, further comprising: a timing adjustment step in which the first computer and the second computer use a timing adjustment interface to adjust the timing at which the first checksum calculation unit outputs the first checksum and the timing at which the second calculation unit outputs the second data; and a combining step in which a combining unit combines the first checksum and the second data, wherein in the transmitting step, the transmitting unit transmits the first checksum and the second data combined by the combining unit to the receiving device.

14. A method for generating a first identification information signal from a first identification information generating unit of the first computer, the first identification information generating unit generating identification information for the first data, and a second identification information generating unit generating identification information for the second data, the first identification information generating unit and the second identification information generating unit generating the identification information by a specified generation method such that the same identification information is generated for the first data and the second data based on the same input signal, the first checksum calculating unit adding the identification information to the first data calculated by the first calculation unit, the first checksum calculating unit calculating and outputting the first checksum, the second calculation unit adding the identification information to the calculated second data, the second calculation unit outputting the second checksum, The transmission method according to claim 12, characterized in that, in the transmitting step, the transmitting unit transmits the first checksum calculated from the first data to which the identification information has been added to the receiving device, and transmits the second data to which the identification information has been added to the receiving device.

15. A transmission method according to any one of claims 12 to 14, comprising: a first replica serial number assignment step in which a first replica serial number assignment unit of the first computer assigns a serial number to each input signal obtained by replicating the input signal and outputs the signals to the first calculation unit; and a second replica serial number assignment step in which a second replica serial number assignment unit of the second computer assigns a serial number to each input signal obtained by replicating the input signal and outputs the signals to the second calculation unit, wherein in the first calculation step, the first calculation unit performs an operation on each of the replicated input signals having different serial numbers to calculate the first data, wherein in the first checksum calculation step, the first checksum calculation unit performs an operation on each of the multiple first data to calculate the first checksum, and wherein in the second calculation step, the second calculation unit performs an operation on each of the replicated input signals having different serial numbers to calculate the second data.

16. A receiving method for a receiving device, comprising: a receiving step in which a receiving unit receives a first checksum calculated from first data and second data transmitted from a transmitting device by the transmitting method described in claim 12; a second checksum calculation step in which a second checksum calculation unit performs a calculation on the second data to calculate a second checksum; and a comparison step in which a comparison unit compares the first checksum with the second checksum and adopts the second data if they match.

17. The receiving method according to claim 16, characterized in that in the second checksum calculation step, if identification information is attached to the second data, the second checksum calculation unit performs calculation on the second data to which the identification information is attached to calculate the second checksum and outputs it to the comparison unit, and in the comparison step, the comparison unit compares the first checksum calculated from the first data to which the same identification information as the identification information attached to the second data is attached with the second checksum, and adopts the second data if they match.

18. The receiving method according to claim 16 or 17, characterized in that in the second checksum calculation step, if an input signal is duplicated in the transmitting device and a serial number is assigned to each input signal, the first checksum is calculated for each of the duplicated input signals with different serial numbers in a first computer of the transmitting device, and the second data is calculated for each of the duplicated input signals with different serial numbers in a second computer of the transmitting device, the second checksum calculation unit calculates the second checksum by performing calculation on all of the second data based on the same input signal; and in the comparison step, the comparison unit compares the first checksum and the second checksum for each serial number and adopts the second data if all match.

19. A communication method for a communication system having a transmitting device and a receiving device, comprising: a transmitting step in which the transmitting device transmits to the receiving device a first checksum calculated by a first computer performing an operation on an input signal to calculate first data, and a second checksum calculated by a second computer performing an operation on the input signal, and second data calculated by a second computer performing an operation on the input signal; and a receiving step in which the receiving device receives the first checksum and the second data, performs an operation on the second data to calculate a second checksum, compares the first checksum with the second checksum, and adopts the second data if they match.

20. The communication method according to claim 19, characterized in that, in the transmitting step, the transmitting device adjusts the timing at which the first computer outputs the first checksum and the timing at which the second computer outputs the second data, combines the first checksum and the second data, and transmits the combined data to the receiving device.

21. The communication method according to claim 19, characterized in that, in the transmitting step, the transmitting device generates identification information for the first data and the second data based on the same input signal, transmits the first checksum calculated from the first data to which the identification information has been assigned to the receiving device, and assigns the identification information to the second data and transmits it to the receiving device; and, in the receiving step, if the identification information has been assigned to the second data, the receiving device performs an operation on the second data to which the identification information has been assigned to calculate the second checksum, compares the first checksum calculated from the first data to which the identification information same as the identification information assigned to the second data with the second checksum, and adopts the second data if they match.

22. A communication method according to any one of claims 19 to 21, characterized in that in the transmitting step, the transmitting device assigns a serial number to each input signal obtained by copying the input signal, and transmits the first checksum calculated by performing an operation on the first data calculated by performing an operation on each of the copied input signals having different serial numbers by the first computer, and the second data calculated by performing an operation on each of the copied input signals having different serial numbers by the second computer; and in the receiving step, the receiving device calculates the second checksum by performing an operation on all of the second data based on the same input signal, compares the first checksum and the second checksum for each serial number, and adopts the second data if all match.

Citation Information

Patent Citations

  • Transmitter module, receiver module, system, method

    JP2007527066A

  • Improved pci Express

    JP2017504095A

  • Control system software execution during fault detection

    US20120331339A1

  • Data storage migration in replicated environment

    US20210240359A1