[go: up one dir, main page]

HK1117668B - Information processing device, information processing system, information processing method, and computer program - Google Patents

Information processing device, information processing system, information processing method, and computer program Download PDF

Info

Publication number
HK1117668B
HK1117668B HK08107714.2A HK08107714A HK1117668B HK 1117668 B HK1117668 B HK 1117668B HK 08107714 A HK08107714 A HK 08107714A HK 1117668 B HK1117668 B HK 1117668B
Authority
HK
Hong Kong
Prior art keywords
data
error
processing
communication
information processing
Prior art date
Application number
HK08107714.2A
Other languages
Chinese (zh)
Other versions
HK1117668A1 (en
Inventor
草川雅文
森冈澄夫
岛田宗毅
盛合志帆
佐佐木大
Original Assignee
索尼电脑娱乐公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2004343361A external-priority patent/JP4474266B2/en
Application filed by 索尼电脑娱乐公司 filed Critical 索尼电脑娱乐公司
Publication of HK1117668A1 publication Critical patent/HK1117668A1/en
Publication of HK1117668B publication Critical patent/HK1117668B/en

Links

Description

Information processing device, information processing system, information processing method, and computer program
Technical Field
The present invention relates to an information processing apparatus, an information processing system, an information processing method, and a computer program, and more particularly, to an information processing apparatus, an information processing system, an information processing method, and a computer program that perform data communication between a plurality of information processing apparatuses and perform data processing to which communication data is applied, and that perform optimal control in accordance with occurrence of a data processing error or a communication error to achieve reliable recovery when an error occurs.
This application is based on japanese patent application No. 2004-.
Background
Conventionally, a system that executes communication between a plurality of information processing apparatuses and executes data processing to which communication data is applied has been applied to various fields. For example, such a system is a system in which data processing to which communication data is applied is executed in a plurality of information processing apparatuses that perform data communication via a wired or wireless communication network, a cable, a bus, or the like, and a final processing result is calculated.
As a specific example thereof, in the case where communication processing is executed between, for example, 2 information processing apparatuses A, B, one information processing apparatus a executes data processing and transmits the processing result to the information processing apparatus B, and further, the information processing apparatus B executes data processing to which the received processing result is applied to perform processing such as transmission to the information processing apparatus a. Not only such a communication sequence, but also a system in which data processing to which data transmission and reception is applied is performed while data is transmitted and received between a plurality of information processing apparatuses, is being applied to various fields.
In the configuration involving such data communication and data processing, how to deal with the occurrence of data processing errors and data communication errors has been a problem. An information processing system has been studied in which entities (entities) a and B as information processing apparatuses repeat execution of different internal processes and transmission and reception of data as a result thereof a plurality of times, thereby executing a specific process. In these systems, entities a and B as information processing apparatuses perform data processing in their respective internal units and transmit and receive processing result data, and further perform new internal processing based on the transmission and reception data.
When such data processing is performed, it is necessary to maintain the processing sequence accurately. That is, the internal states of the entities must be synchronized. However, in an actual system, there is a possibility that the internal states of the respective entities may differ, that is, the internal states may be out of synchronization, due to a communication error at the time of data transmission and reception, an internal processing error at the time of internal processing not being performed correctly, or the like. There is a need for a mechanism that can eliminate the differences in internal states of entities in such a case, thereby enabling synchronization of the internal states.
When the internal state is out of synchronization between the devices due to an internal processing error or the like, it is common that the entity a that has detected the error sends a notification of the internal processing error to the communication partner, and returns itself to the initial state. In addition, the entity B returns to the initial state after receiving the internal processing error notification, thereby enabling synchronization of the internal states of both parties in the initial state.
Such state synchronization processing is applicable only to a case where one entity can recognize that an error has occurred in the data processing performed. That is, although the entity a sends out the data as a result of the correct data processing, when a communication error occurs at the time of the data transmission, the entity a cannot recognize the occurrence of the error.
On the other hand, even if the entity B can detect a communication error by means of parity check or the like, it cannot determine whether a communication error has occurred with respect to normal data or a communication error has occurred with respect to an internal processing error, and the error is a communication error or an internal processing error, and only returns to the initial state.
In this case, entity a considers that it is performing the correct processing, thus changing its internal state; entity B, on the other hand, returns to the initial state, resulting in an out-of-sync of internal states between entities A, B.
The simplest solution to this problem is considered to be a method of notifying the entity a of the situation when the entity B detects a communication error, but if the entity a tries to continue transmitting data, it falls into a state in which the entities a and B try to transmit data to each other, and cannot continue the processing. In addition, even if the entity a is in a state of waiting for data reception, if the data length of the error notification data that B attempts to transmit does not coincide with the data length of the data that a attempts to receive, there is a possibility that problems such as the error notification communication data being transmitted is not completely transmitted, or the data reception state is maintained even if the data entity a is transmitted, may occur.
Disclosure of Invention
The present invention has been made in view of the above problems, and it is an object of the present invention to provide an information processing apparatus, an information processing system, an information processing method, and a computer program that, in a configuration in which communication is performed between entities such as a plurality of information processing apparatuses and data processing to which communication data is applied is performed, both the entities performing the communication processing can correctly recognize the occurrence of an error and synchronize their internal states regardless of the occurrence of an internal processing error or a communication error, and thereby can reliably recover from the error and restart the data processing.
One embodiment of the present invention is an information processing system including a plurality of information processing units that perform data communication with each other and perform data processing to which communication data is applied, the information processing system including: a1 st information processing unit which transmits error notification data in response to a data processing error or an error detection of received data, and executes an initial state restoration process on condition that data reception after the transmission of the error notification data is performed; and a2 nd information processing unit which transmits error notification data in response to detection of a data processing error or an error in received data, and executes initial state restoration processing on condition that execution of transmission processing of the error notification data is performed.
Another embodiment of the present invention is an information processing apparatus that performs data communication and performs data processing to which communication data is applied, the information processing apparatus including: an error detection unit that detects an error in internal data processing executed by the communication unit itself or an error in communication of received data from a communication partner device; a communication unit for transmitting error notification data based on the error detection; and a data processing unit that executes an initial state restoration process on the condition that data is received after the error notification data is transmitted.
Another embodiment of the present invention is an information processing apparatus that performs data communication with each other and performs data processing to which communication data is applied, the information processing apparatus including: an error detection unit that detects an error in internal data processing executed by the communication unit itself or an error in communication of received data from a communication partner device; a communication unit for transmitting error notification data based on the error detection; and a data processing unit that executes an initial state restoration process on the condition that the error notification data is transmitted.
Another embodiment of the present invention is an information processing method for performing data communication and data processing to which communication data is applied, the information processing method including: an error detection step of detecting an error occurrence in internal data processing executed by itself or a communication error of received data from a communication partner apparatus; an error notification data transmission step of transmitting error notification data on condition of error detection in the error detection step; and an initial state restoration step of executing initial state restoration processing on the condition that data is received after the error notification data is transmitted.
Another embodiment of the present invention is an information processing method of performing data communication and performing data processing to which communication data is applied, including: an error detection step of detecting an error occurrence in internal data processing executed by itself or a communication error of received data from a communication partner apparatus; an error notification data transmission step of transmitting error notification data on condition of error detection in the error detection step; and an initial state restoration step of executing initial state restoration processing on the condition that the error notification data is transmitted.
Another embodiment of the present invention is a computer program for executing data communication and executing data processing to which communication data is applied on a computer, the computer program including: an error detection step of detecting an error occurrence in internal data processing executed by itself or a communication error of received data from a communication partner apparatus; an error notification data transmission step of transmitting error notification data on condition of error detection in the error detection step; and an initial state restoration step of executing initial state restoration processing on the condition that data is received after the error notification data is transmitted.
Another embodiment of the present invention is a computer program that executes data communication and executes data processing to which communication data is applied on a computer, the computer program including: an error detection step of detecting an error occurrence in internal data processing executed by itself or a communication error of received data from a communication partner apparatus; an error notification data transmission step of transmitting error notification data on condition of error detection in the error detection step; and an initial state restoration step of executing initial state restoration processing on the condition that the error notification data is transmitted.
The computer program to which the present invention is applied is a computer program provided in a computer-readable format via a storage medium, a communication medium (e.g., a storage medium such as a CD (Compact Disc), FD (flexible Disc), MO (magneto optical Disc) Disc, or a communication medium such as a network) with respect to a general-purpose computer system that can execute various program codes, for example. By providing such a program in a computer-readable format, processing corresponding to the program can be realized on a computer system.
In an information processing system comprising a plurality of entities (information processing units) which execute internal data processing and perform data communication with each other, a1 st entity transmits error notification data in response to error detection and executes initial state restoration processing on the condition that data after the transmission of the error notification data is received, and a2 nd entity transmits error notification data in response to error detection and executes initial state restoration processing on the condition that the transmission of the error notification data is executed, whereby both entities can be reliably synchronized and restored to the initial state, and reliable error recovery and data processing resumption can be performed.
Further, according to the present invention, in the configuration in which data processing involving data communication is performed between the entities A, B, when an error of a different form such as an error occurs in data processing (internal processing) of the entity a, an error occurs in data processing (internal processing) of the entity B, an error occurs in communication data transmitted from the entity a to the entity B, and an error occurs in communication data transmitted from the entity B to the entity a, the entity a transmits error notification data based on the error detection, and performs initial state restoration processing on condition that data reception after the transmission of the error notification data is performed, and the entity B transmits error notification data based on the error detection, and performs initial state restoration processing on condition that transmission processing of the error notification data is performed; with this configuration, the entities of both parties can reliably synchronize and restore to the original state, and reliable error recovery and data processing restart can be performed.
Other objects, features and advantages of the present invention will become apparent from the following description of the present invention and the more detailed description thereof with reference to the accompanying drawings. In addition, the system referred to in the present specification is a logical set structure of a plurality of devices, and each constituent device is not limited to being in the same housing.
Drawings
Fig. 1 is a sequence diagram showing a data processing sequence accompanying data communication between the entities A, B.
Fig. 2 is a flowchart showing processing performed by entity a in data processing accompanying data communication between entities A, B.
Fig. 3 is a flowchart showing processing performed by entity B in data processing accompanying data communication between entities A, B.
Fig. 4 is a flowchart showing error processing performed by entity a in data processing accompanying data communication between entities A, B.
Fig. 5 is a flowchart showing error processing performed by the entity B in data processing accompanying data communication between the entities A, B.
Fig. 6 is a sequence diagram showing a process when an error occurs in the data processing (internal processing) of the entity a in the data processing accompanying the data communication between the entities A, B.
Fig. 7 is a flowchart showing a process when an error occurs in data processing (internal processing) of the entity B in data processing accompanying data communication between the entities A, B.
Fig. 8 is a sequence diagram showing a process when the entity a has a communication error in transmitting data in the data processing accompanying the data communication between the entities A, B.
Fig. 9 is a sequence diagram showing a process when the entity a has a communication error in transmitting data in data processing accompanying data communication between the entities A, B.
Fig. 10 is a block diagram showing an information processing apparatus that executes data processing accompanying data communication between entities A, B.
Detailed Description
Embodiments of an information processing apparatus, an information processing system, an information processing method, and a computer program to which the present invention is applied will be described in detail below with reference to the accompanying drawings.
In a configuration in which communication is performed between a plurality of information processing apparatuses and data processing to which communication data is applied is executed, regardless of whether an internal processing error or a communication error has occurred, both entities A and B as information processing apparatuses can correctly recognize the occurrence of an error and synchronize their internal states, thereby making it possible to reliably recover an error and restart processing.
In the following description of the present invention, 2 information processing apparatuses that perform data processing while performing communication are assumed as an entity a and an entity B. Further, the meaning of each symbol is defined as follows.
A: entity for transmitting data first in mutual communication process
B: entity communicating with entity A
TR: specific processing performed by communication of A and B
ITRXi(v) The method comprises the following steps Fruit of Chinese wolfberryVolume X was processed internally using the value v of item i (i 0, 1, 2.. times.)
Dataj: item j data as processing or communication object in data processing
IV: initial value for performing TR
SXi: internal state of entity X (initial state of entity A is S)A0The initial state of the entity B is SB0)
In an information processing system in which an entity A and an entity B communicate with each other to perform processing (TR), if an error occurs, the respective entities A, B return to respective initial states (S)A0、SB0) Thereby achieving synchronization of the internal states. Error recovery processing (hereinafter, simply referred to as error processing) when an error is detected generally includes the following two processing methods.
(process 1) returns to the initial state as it is.
(processing 2) the communication partner returns to the initial state after transmitting the error notification data. The entity that receives the error notification data returns to the initial state as such.
First, in the case of (process 1), the internal state S is setAiWhile the entity A detecting the error is in the internal state SAiReturn to the initial state SA0. On the other hand, it is impossible for entity B to know that an error has occurred, and therefore its internal state is still SBi. Therefore, when entity a attempts to restart execution of data processing (TR), the internal state between entities a and B remains out of synchronization and TR is executed, and a correct execution result cannot be obtained. When entity B is in internal state SBiThe same is true when errors are detected.
In this case, a pause process is required to synchronize the internal states of the respective entities. That is, the following processing is required: the entity that detected the error interrupts the process for a certain time and returns to the initial state, and the other entity detects the occurrence of the error according to the fact that data is not transmitted for a certain time, thereby returning to the initial state. Such a suspension process faces a problem that it is not easy to set the time appropriately in consideration of data delay and the like.
Then, in the case of (process 2), the internal state S is setAiAnd the entity A which detects the error sends error notification data to the entity B and then the internal state SAiReturn to the initial state SA0And the entity B returns to the initial state S after receiving the error notification dataB0Thereby, synchronization of the internal states can be achieved.
However, if there is a process of transmitting data from the entity a to the entity B a plurality of times in succession, when a communication error occurs during the transmission of data from the entity a, the entity B attempts to transmit error notification data to the entity a, and at the same time, the entity a attempts to transmit the remaining data, thereby causing two entities to be in a state of transmitting simultaneously, and possibly causing a deadlock particularly in the case of hardware. As described above, it is difficult to reliably synchronize the internal states and to recover from errors by the processes (process 1) and (process 2).
The present invention adopts a method for reliably realizing the synchronization of the internal states of the entities by setting the satisfaction of a certain condition in such an information processing system that performs mutual communication. The following describes setting conditions, execution of TR in a normal state, error processing, and operations when an error occurs.
(1) Set conditions
In order to synchronize the internal states of the entities even when an error occurs, an information processing system is constructed that satisfies the following setting conditions. Further, a so-called information processing system is constituted by entities such as a plurality of information processing apparatuses that perform mutual communication to perform data processing.
(setting 1): the transmission data enables the receiving end to detect the presence or absence of a communication error.
(setting 2): the transmitted and received data can be received with or without errors.
(setting 3): transmission and reception must be alternately repeated.
(setting 4): entity B may still receive data or reset from entity a after sending the last data.
In addition, in an information processing system that performs communication with each other, these setting conditions 1 to 4 are realized, for example, in the following manner.
(setting 1): when sending data, the data sender entity sends out the data after adding corresponding error confirmation or parity bit or checksum used as correction information in the sent data. In addition, the data receiving end entity calculates the parity bit or checksum of the received data and determines whether there is no error in the data.
(setting 2): the data length, packet length, and the like of the transmitted data take the same values for all data. Alternatively, the bit length is fixed after one negotiation between the entities AB.
(setting 3): the entity A, B is configured to operate so as to "perform no internal processing until the next data is received after data is transmitted", and the entity a is the first data transmission source.
(setting 4): the action of entity B is configured to enter a state of waiting for reception of data from entity a or waiting for reset after TR execution is finished.
Execution example of data processing (TR) in the normal state
An example of a process for performing data communications between entities A, B is described below. First, a communication process in the case where no error has occurred and an example of data processing in the entity A, B are explained with reference to fig. 1 to 3.
It is assumed here that the entity a and the entity B perform internal processing (data processing) N times and data transmission and reception 2N times, respectively, thereby completing the entire data processing (TR). Assume initial values used in data processingIs an initial value IV ═ Data0
A sequence diagram of the entire process is shown in fig. 1, and flowcharts for explaining the execution order of the internal processes of the entity a and the entity B are shown in fig. 2 and 3.
First, the sequence of the entire process is explained with reference to fig. 1.
After the start of processing (TR start), in step S101, the entity a performs data processing (internal processing) ITR using the Initial Value (IV)A1Calculating the result Data of Data processing according to the Initial Value (IV)1. That is, according to
Data1=ITRA1(IV)
Get Data1
Entity A stores the Data1And sending the data to an entity B.
In step S102, the entity B performs a verification process of verifying the correctness of the data received from the entity a. Data1To which a parity bit or a checksum for error confirmation or correction information is added, and the entity B calculates the parity bit or the checksum of the received data and determines whether there is no error in the data.
And if the data is judged to have errors, the method goes to error processing. The error handling is explained in detail in the latter section. If it is judged that there is no error in the Data, entity B uses the received Data (Data) in step S1031) Performing data processing (internal processing) ITRB1According to Data (Data)1) Calculating the result Data of Data processing2. That is, according to
Data2=ITRB1(Data1)
Get Data2
Entity B stores the Data2And sent to entity a.
In the step S104,entity a performs a verification process to verify the correctness of the data received from entity B. Data2Also, a parity bit or a checksum used as error confirmation or correction information is added thereto, and the entity a calculates the parity bit or the checksum of the received data and determines whether or not there is no error in the data.
If the data is judged to have errors, the data is switched to error processing; if it is judged that there is no error in the Data, the received Data (Data) is used2) Performing data processing (internal processing) ITRA2According to Data (Data)2) The result Data of the Data processing is calculated.
Such data processing, data transmission, and data verification processing are repeatedly executed, and finally the same processing as that of steps S101 to S104 is executed in steps S121 to S124; in step S124, entity A receives Data from entity BNAnd performing correctness verification, and finishing the processing if the data is judged to have no error.
If no error occurs in all data processing, data communication, entity a and entity B perform internal processing (data processing) N times and data transmission and reception 2N times, respectively, thereby completing all data processing (TR).
Next, the processing sequence of the entity A, B will be described with reference to fig. 2 and 3. The processing of entity a is first explained with reference to fig. 2.
The process starts in step S201, and the initial value of the parameter i is set to i equal to 0 in step S202. The parameter i corresponds to the internal state SAiParameter i of (2). In this state, the internal state is the initial state SA0. In addition, each entity stores and saves the internal state of the entity in the data processing execution process. That is, entity A saves internal state SAi(i 0, 1.. said.), entity B saves internal state SBi(i=0,1,......)。
In step S203, a parameter update process is performed to add 1 to the parameter i. I.e. execute
i=i+1
The update process of (1).
Next, data processing (internal processing) is performed in step S204. The Data processing uses Data2(i-1)Performing a processing ITRAiFrom which processing result Data is calculated2i-1. That is, according to
Data2i-1=ITRAi(Data2(i-1))
Calculate Data2i-1
In step S205, the result Data of the Data processing (internal processing) of step S204 is processed2i-1To entity B. Then, in step S206, the result Data of the Data processing (internal processing) in the entity B is received from the entity B2i
Reception Data is executed in step S2072iIf the correctness is confirmed, the step S208 is entered, and whether the parameter i is equal to the maximum value N is judged; if i < N, there is subsequent processing, so the processing from step S204 is repeatedly executed after updating the parameter i in step S203. Finally, if it is determined in step S208 that the parameter i is found to be equal to the maximum value N, the communication is terminated, and the process proceeds to step S209 to execute the final processing, and the entire processing is terminated.
In step S207, if it is determined that the received Data is found2iIf not, the process proceeds to step S210 to perform error handling. Details of the error processing are explained in the subsequent section.
The processing of entity B is next described with reference to fig. 3. The process starts in step S221, and in step S222, the initial value of the parameter i is set to i equal to 0. The parameter i corresponds to the internal state SBiParameter i of (2). In this state, the internal state is the initial state SB0
In step S223, a parameter update process is performed to add 1 to the parameter i. I.e. execute
i=i+1
The update process of (1).
Next, data is received from entity a in step S224. The received Data is the result Data of the internal processing in entity A, i.e. Data2i-1. Data of the received Data in step S2252i-1And carrying out correctness verification. The correctness checking process performs a process using, for example, parity bits or a checksum appended to the received data.
If the correctness of the received Data is confirmed, the flow proceeds to step S226, and the received Data is used on the side of the entity B2i-1Data processing (internal processing) is performed. The Data processing uses Data received from entity A2i-1Performing a processing ITRBiFrom which processing result Data is calculated2i. That is, according to
Data2i=ITRBi(Data2i-1)
Calculate Data2i
In step S227, the result Data of the Data processing (internal processing) of step S226 is subjected to2iTo entity a. Then, it is determined in step S228 whether or not the parameter i is equal to the maximum value N, and if i < N, it indicates that there is a subsequent process, so the parameter i is updated in step S223, and the processes from step S224 and onward are repeatedly performed. Finally, if it is determined in step S228 that the parameter i is found to be equal to the maximum value N, this indicates that there is no subsequent processing on the entity side, and therefore the flow proceeds to step S229, where it is shifted to a state of waiting for reception of data from the entity a.
Data is received in step S2252i-1If it is confirmed that there is an error in the received data during the correctness verification, the process proceeds to step S230, and the process goes to error processing. Details of the error processing are explained in the subsequent section.
The data processing sequence performed in connection with the communication between the entities AB is explained above with reference to fig. 1 to 3. Further, algorithms of these processing sequences are as follows.
[ Algorithm ]
1: let i be 0.
2: substituting i +1 into i.
3: entity A calculates Data2i-1=ITRAi(Data2(i-1)) And (3) sending the result to the entity B.
4: entity B receives Data2i-1And then judging whether an error exists or not.
And if the error exists, executing error processing, and otherwise, entering the next step.
5: entity B calculates Data2i=ITRBi(Data2i-1) And (4) sending the result to the entity a.
6: entity A receives Data2iAnd then judging whether an error exists or not.
And if the error exists, executing error processing, and otherwise, entering the next step.
7: if i is N, the final processing is performed and TR ends.
Otherwise, return to 2.
[ ERROR PROCESSING ]
Next, a process when an error occurs in data processing accompanying communication between entities is described.
The following 4 forms of errors occurring in data processing accompanying communication between the entities AB.
(1) Data processing (internal processing) ITR of entity AAiAn error occurs.
(2) Data processing (internal processing) ITR of entity BBiAn error occurs.
(3) Communication Data transmitted from entity A to entity B2i-1An error occurs.
(4) Sent from entity B to entity AData of communication Data2iAn error occurs.
There are possible errors of the 4 forms described above.
Entity A, B performs the same error handling for all of these error forms. Entity a and entity B perform error handling separately. First, an error processing sequence in each of these entities will be described with reference to the flowcharts of fig. 4 and 5, and then processing sequences corresponding to the error patterns (1) to (4) will be described with reference to fig. 6 to 9.
First, the processing sequence performed by the entity a when an error occurs will be described with reference to the flowchart shown in fig. 4.
Upon detecting that an error has occurred or receiving a notification of the occurrence of an error from the entity B, the entity a transmits error notification data to the entity B in step S301. The entity a itself detects each of the error patterns (1) to (4) or receives a notification of error occurrence from the entity B. The specific case is as follows.
(1) Data processing (internal processing) ITR of entity AAiAn error occurs.
(4) Communication Data transmitted from entity B to entity A2iAn error occurs.
In both cases, entity a performs error detection, and on condition that these errors are detected, an initial error notification is sent by entity a to entity B in step S301.
(2) Data processing (internal processing) ITR of entity BBiAn error occurs.
(3) Communication Data transmitted from entity A to entity B2i-1An error occurs.
In both cases, entity B performs error detection, and entity B sends an initial error notification to entity a, and after receiving the error notification, entity a sends an error notification to entity B in step S301.
Step S301The error notification processing is error notification processing corresponding to the above-described processing of each error form, respectively. Thereafter, the entity a receives error notification data from the entity B in step S302. In step S303, the entity a returns to the initial state S on condition that the error notification from the entity B is receivedA0
In this way, entity a performs:
(A1) error notification data transmission processing;
(A2) receiving and processing the error notification data after the error notification data is sent;
(A3) returning to the initial state S is executed on the condition that the error notification data transmission/reception processing is executedA0And (4) processing.
This processing sequence is a process that is executed in common for all the error forms of the above-described (1) to (4).
In the above-mentioned processing, moreover, in
(A2) In the error notification data reception process after the error notification data transmission, if a communication error occurs, the entity a cannot confirm that the received data is error notification data, but even if this occurs, the entity a performs the return to the initial state SA0And (4) processing. That is, entity A is executing
(A1) Error notification data transmission processing
Thereafter, if data is received from the entity B, returning to the initial state S is performed even if it cannot be confirmed that the received data is error notification dataA0And (4) processing. This processing is explained in the "processing example of communication error for error notification data" of the latter paragraph.
Next, the processing sequence executed by the entity B when an error occurs will be described with reference to the flowchart shown in fig. 5.
Upon detecting that an error has occurred or receiving a notification of the occurrence of an error from the entity a, the entity B transmits error notification data to the entity a in step S321. The entity B detects the error patterns (1) to (4) or receives a notification of error occurrence from the entity a. Specific cases are as follows.
(2) Data processing (internal processing) ITR of entity BBiAn error occurs.
(3) Communication Data transmitted from entity A to entity B2i-1To send an error.
In both cases, entity B performs error detection, and upon detection of these errors as a condition, an initial error notification is sent by entity B to entity a in step S321.
(1) Data processing (internal processing) ITR of entity AAiAn error occurs.
(4) Communication Data transmitted from entity B to entity A2iAn error occurs.
In both cases, entity a performs error detection, and entity a sends an initial error notification to entity B, and after receiving the error notification, entity B sends an error notification to entity a in step S321.
The error notification processing of step S321 is error notification processing corresponding to the above-described respective error form processing, respectively. Thereafter, entity B returns to initial state S in step S322B0
In this way, entity B performs:
(B1) error notification data transmission processing;
(B2) returning to the initial state S is executed on the condition that the error notification data transmission processing is executedA0And (4) processing.
This processing sequence is a process common to all error forms of the above (1) to (4).
Next, the error patterns (1) to (4), that is, the error patterns will be described with reference to FIGS. 6 to 9
(1) Data processing (internal processing) ITR of entity AAiAn error occurs in;
(2) data processing (internal processing) ITR of entity BBiAn error occurs in;
(3) communication Data transmitted from entity A to entity B2i-1To send an error;
(4) communication Data transmitted from entity B to entity A2iAn error occurs in; data processing, communication sequence in these 4 error forms.
FIG. 6 is a diagram for explaining data processing (internal processing) ITR corresponding to (1) entity AAiSequence diagram of the processing order in which the error occurred. The processing is executed in the order of steps S401 to S412. In steps S401 to S412, steps S401 to S407 are processes corresponding to an error, and the processes after step S409 indicate a restart process and a process after the restart process. The error handling processing in steps S401 to S407 is executed at an arbitrary timing within the execution period of the data processing accompanying the communication between the entities AB.
First, the entity a detects a data processing (internal processing) ITR at the entity a in step S401AiAn error has occurred. Upon detecting the error, entity a sends error notification data to entity B in step S402. This transmission processing of the error notification data corresponds to the transmission processing of the error notification data of step S301 in the flowchart of fig. 4 described previously.
Next, entity B receives the error notification data from entity A in step S403, and returns to the initial state S in step S405 after transmitting the error notification data to entity A in step S404B0. The error notification data transmission processing of step S404 corresponds to the error notification data transmission processing of step S321 in the processing flow described earlier with reference to fig. 5, and the initial state S of step S405B0The restoration process is similar to the initial state S of step S322 in the process flow of fig. 5B0The restoration processing corresponds to.
Next, entity A receives the error notification data from entity B in step S406, and returns to the initial state S in step S407A0. The error notification data reception process of step S406 corresponds to the error notification data reception process of step S302 in the process flow described previously with reference to fig. 4, and is the initial state S of step S407A0The restoration process is similar to the initial state S of step S303 in the process flow of fig. 4A0The restoration processing corresponds to.
As described in the "example of processing for a communication error of error notification data" in the subsequent paragraph, even if the entity a cannot confirm that the data received from the entity B in step S406 is error notification data due to a communication error, the process proceeds to step S407, and returns to the initial state SA0. The details of this processing are explained in the subsequent section.
Entity A returns to initial state S in step S407A0Thereafter, the data processing (TR) is newly performed from the initial state in step S408. After the process is restarted, in step S409, the entity a performs data processing (internal processing) ITR using the Initial Value (IV)A1Calculating the result Data of Data processing according to the Initial Value (IV)1. That is, according to
Data1=ITRA1(V1)
Get Data1
Entity A stores the Data1And sending the data to an entity B.
In step S410, the entity B performs a verification process of verifying the correctness of the data received from the entity a. That is, a parity bit or a checksum is calculated to determine whether there is no error in the data. And if the data is judged to have errors, the method goes to error processing.
The error processing in this case is (3) the communication Data transmitted from the entity a to the entity B among the error patterns (1) to (4) described above2i-1To send an error; in the latter section, reference is made to fig. 8And (6) detailed description.
If it is judged that there is no error in the Data, in step S411, entity B uses the received Data (Data)1) Performing data processing (internal processing) ITRB1According to Data (Data)1) Calculating the result Data of Data processing2. That is, according to
Data2=ITRB1(Data1)
Get Data2
Entity B stores the Data2And sent to entity a.
In step S412, entity a performs a verification process that verifies the correctness of the data received from entity B. Calculate Data2The parity bit or checksum of (a) determines whether there is no error in the data. And if the data is judged to have errors, the method goes to error processing.
The error processing in this case is (4) the communication Data transmitted from the entity B to the entity a among the error patterns (1) to (4) described above2iAn error occurs in; this is explained in detail with reference to fig. 9 in the subsequent section. If it is judged that there is no error in the Data, the received Data (Data) is used2) Performing data processing (internal processing) ITRA2According to Data (Data)2) Calculating the result Data of Data processing3. The same data processing, data transmission, and data verification processing are repeatedly performed later.
As is clear from the above-described sequence, (1) data processing (internal processing) ITR of entity AAiIn the error processing corresponding to the occurrence of the error, the processing is executed in accordance with the flowcharts of fig. 4 and 5 described above, that is,
entity a performs:
(A1) error notification data transmission processing;
(A2) error notification data reception or communication error data reception processing after the error notification data transmission;
(A3) returning to the initial state S is executed on the condition that the data transmission/reception processing is executedA0And (4) processing.
On the other hand, entity B performs:
(B1) error notification data transmission processing;
(B2) returning to the initial state S is executed on the condition that the error notification data transmission processing is executedA0And (4) processing.
By causing the respective entities to execute these processes, they can be synchronized to return to the initial state S, respectivelyA0、SB0Thus, an error recovery process of reliably synchronizing the internal states is realized.
Next, (2) data processing (internal processing) ITR of entity B will be described with reference to FIG. 7BiThe corresponding processing order when an error occurs in (1). The processing is executed in the order of steps S501 to S517. In addition, in steps S501 to S517, steps S502 to S512 are error detection and error handling processing, and the processing after step S513 represents restart processing and processing after the restart processing. The error handling processing in steps S502 to S512 is executed at an arbitrary timing within the execution period of the data processing accompanying the communication between the entities AB.
First, entity a performs data processing (internal processing) ITR of entity a in step S501AiAccording to
Data2i-1=ITRAi(Data(2i-1))
Get Data2i-1
Entity A stores the Data2i-1And sending the data to an entity B.
In step S502, the entity B performs a verification process of verifying the correctness of the data received from the entity a. That is, a parity bit or a checksum is calculated to determine whether there is no error in the data. And if the data is judged to have errors, the method goes to error processing. The error processing in this case is (3) the communication Data transmitted from the entity a to the entity B among the error patterns (1) to (4) described above2i-1To send an error; this is explained in detail with reference to fig. 8 in the subsequent section.
In this processing example, it is assumed that entity B confirms the correctness of data received from entity a in step S502, and entity B performs data processing (internal processing) ITR of entity B in step S503BiAccording to
Data2i=ITRBi(Data2i-1) Get Data2i
Entity B in the Data2iThe generation process of (2) detects the occurrence of an error. Upon detecting the error, the entity B transmits error notification data to the entity a in step S504. This transmission processing of the error notification data corresponds to the transmission processing of the error notification data of step S321 in the flowchart of fig. 5 described previously.
Thereafter, entity B returns to initial state S in step S505B0. Initial state S of step S505B0The restoration process is similar to the initial state S of step S322 in the process flow of fig. 5B0The restoration processing corresponds to.
Thereafter, upon receiving the error notification data from the entity B in step S506, the entity a transmits the error notification data to the entity B in step S507. This transmission processing of the error notification data corresponds to the transmission processing of the error notification data of step S301 in the flowchart of fig. 4 described previously.
Next, entity B receives the error notification data from entity A in step S508, and returns to the initial state S in step S510 after transmitting the error notification data to entity A in step S509B0. The error notification data transmission processing of step S509 corresponds to the error notification data transmission processing of step S321 in the processing flow described earlier with reference to fig. 5, and is the initial state S of step S510B0Restoration processInitial state S corresponding to step S322 in the processing flow of FIG. 5B0The restoration processing corresponds to.
Next, entity A receives error notification data from entity B in step S511, and returns to initial state S in step S512A0. The error notification data reception process of step S511 corresponds to the error notification data reception process of step S302 in the process flow described previously with reference to fig. 4, and the initial state S of step S512A0The restoration process is similar to the initial state S of step S303 in the process flow of fig. 4A0The restoration processing corresponds to.
Further, even if the entity a cannot confirm that the data received from the entity B in the step S511 is the error notification data due to the communication error, the process proceeds to a step S512, and returns to the initial state SA0. Such processing is explained in detail in "an example of processing for a communication error of error notification data" in the subsequent paragraph.
Entity A returns to initial state S in step S512A0After that, the data processing (TR) is newly performed from the initial state in step S513. Steps S514 to S517 below are the same as steps S409 to S412 in the sequence diagram of fig. 6, and the description thereof will be omitted.
As is clear from the above-described sequence, (2) data processing (internal processing) ITR of entity BBiIn the error processing corresponding to the occurrence of the error, the processing is also executed in accordance with the flowcharts of fig. 4 and 5 described above, that is,
entity a performs:
(A1) error notification data transmission processing;
(A2) error notification data reception or communication error data reception processing after the error notification data transmission;
(A3) returning to the initial state S is executed on the condition that the error notification data transmission/reception process is executedA0And (4) processing.
On the other hand, entity B performs:
(B1) error notification data transmission processing;
(B2) returning to the initial state S is executed on the condition that the error notification data transmission processing is executedA0And (4) processing.
In the sequence shown in fig. 7, the entity B has performed the above-described processing of B1, B2 2 times; finally, when the entity A returns to the initial state SA0At this time, entity B also returns to initial state SB0At this time, the data processing (TR) is re-executed from the initial state, and thus the internal state can be reliably synchronized to achieve error recovery.
Next, (3) communication Data transmitted from the entity A to the entity B will be described with reference to FIG. 82i-1The corresponding processing order when an error occurs in (1). The processing is executed in the order of steps S601 to S616. In addition, in steps S601 to S616, steps S602 to S611 are error detection and error handling processing, and the processing after step S612 indicates restart processing and processing after the restart processing. The error handling processing in steps S602 to S611 is executed at an arbitrary timing within the execution period of the data processing accompanying the communication between the entities AB.
First, entity a performs data processing (internal processing) ITR of entity a in step S601AiAccording to
Data2i-1=ITRAi(Data2(i-1))
Get Data2i-1
Entity A stores the Data2i-1And sending the data to an entity B.
In the present processing example, it is assumed that the communication Data has occurred2i-1Communication error of (2). In step S602, the entity B performs a verification process of verifying the correctness of the data received from the entity a. That is, a parity bit or a checksum is calculated to determine whether there is no error in the data. And if the data is judged to have errors, the method goes to error processing.
In this processing example, it is assumed that the entity B detects an error in the data received from the entity a in step S602. In this case, the entity B transmits error notification data to the entity a in step S603. This transmission processing of the error notification data corresponds to the transmission processing of the error notification data of step S321 in the flowchart of fig. 5 described previously.
Thereafter, entity B returns to initial state S in step S604B0. Initial state S of step S604B0The restoration process is similar to the initial state S of step S322 in the process flow of fig. 5B0The restoration processing corresponds to.
Thereafter, upon receiving the error notification data from the entity B in step S605, the entity a transmits the error notification data to the entity B in step S606. This transmission processing of the error notification data corresponds to the transmission processing of the error notification data of step S301 in the flowchart of fig. 4 described previously.
Next, entity B receives the error notification data from entity A in step S607, and returns to the initial state S in step S609 after transmitting the error notification data to entity A in step S608B0. The error notification data transmission processing of step S608 corresponds to the error notification data transmission processing of step S321 in the processing flow described earlier with reference to fig. 5, the initial state S of step S609B0The restoration process is similar to the initial state S of step S322 in the process flow of fig. 5B0The restoration processing corresponds to.
Next, entity A receives error notification data from entity B in step S610, and returns to initial state S in step S611A0. The error notification data reception process of step S610 corresponds to the error notification data reception process of step S302 in the process flow described previously with reference to fig. 4, the initial state S of step S611A0The restoration process is similar to the initial state S of step S303 in the process flow of fig. 4A0The restoration processing corresponds to.
Further, entity a even due to communication errorIf it is not confirmed that the data received from the entity B in step S610 is error notification data, the process proceeds to step S611, and returns to the initial state SA0. Such processing is explained in detail in "an example of processing for a communication error of error notification data" in the subsequent paragraph.
Entity A returns to initial state S in step S611A0Thereafter, the data processing (TR) is newly performed from the initial state in step S612. Steps S612 to S616 are the same as steps S409 to S412 in the sequence diagram of fig. 6, and the description thereof will be omitted.
As is clear from the above-described sequence, (3) communication Data transmitted from the entity A to the entity B2i-1In the error processing corresponding to the occurrence of the error, the processing is also executed in accordance with the flowcharts of fig. 4 and 5 described above, that is,
entity a performs:
(A1) error notification data transmission processing;
(A2) error notification data reception or communication error data reception processing after the error notification data transmission;
(A3) returning to the initial state S after completion of the error notification data transmission/reception processingA0And (4) processing.
On the other hand, entity B performs:
(B1) error notification data transmission processing;
(B2) returning to the initial state S is executed on the condition that the error notification data transmission processing is executedA0And (4) processing.
In the sequence shown in fig. 8, the entity B also performs the above-described processing of B1, B2 2 times; finally, when the entity A returns to the initial state SA0At this time, entity B also returns to initial state SB0At this time, the data processing (TR) is re-executed from the initial state, and thus the internal state can be reliably synchronized to achieve error recovery.
Next, (4) communication Data transmitted from the entity B to the entity A will be described with reference to FIG. 92iThe corresponding processing order when an error occurs in (1). The processing is executed in the order of steps S701 to S715. In steps S701 to S715, steps S704 to S710 are error detection and error handling processing, and the processing after step S711 indicates restart processing and processing after the restart processing. The error handling processing of steps S704 to S710 is executed at an arbitrary timing within the execution period of the data processing accompanying the communication between the entities AB.
First, entity a performs data processing (internal processing) ITR of entity a in step S701AiAccording to
Data2i-1=ITRAi(Data2(i-1))
Get Data2i-1
Entity A stores the Data2i-1And sending the data to an entity B.
In step S702, the entity B performs a verification process of verifying the correctness of the data received from the entity a. That is, a parity bit or a checksum is calculated to determine whether there is no error in the data. And if the data is judged to have errors, the method goes to error processing. The error processing in this case is (3) the communication Data transmitted from the entity a to the entity B among the error patterns (1) to (4) described above2i-1To send an error; the processing explained with reference to fig. 8 is executed.
In this processing example, it is assumed that the entity B confirms the correctness of the data received from the entity a in step S702, and the entity B performs data processing (internal processing) ITR of the entity B in step S703BiAccording to
Data2i=ITRBi(Data2i-1)
Execution Data2iThe generated data is sent to the entity a.
In the present processing example, it is assumed that an error has occurred in the communication of the generated data by the entity B. In step S704, the entity a performs a verification process of verifying the correctness of the data received from the entity B. That is, a parity bit or a checksum is calculated to determine whether there is no error in the data. And if the data is judged to have errors, the method goes to error processing.
In this processing example, entity a detects an error from data received from entity B in step S704. In this case, the entity a transmits error notification data to the entity B in step S705. This transmission processing of the error notification data corresponds to the transmission processing of the error notification data of step S301 in the flowchart of fig. 4 described previously.
Next, entity B receives the error notification data from entity A in step S706, and returns to the initial state S in step S708 after sending the error notification data to entity A in step S707B0. The error notification data transmission processing of step S707 corresponds to the error notification data transmission processing of step S321 in the processing flow described earlier with reference to fig. 5, and is the initial state S of step S708B0The restoration process is similar to the initial state S of step S322 in the process flow of fig. 5B0The restoration processing corresponds to.
Next, entity A receives the error notification data from entity B in step S709, and returns to the initial state S in step S710A0. The error notification data reception processing of step S709 corresponds to the error notification data reception processing of step S302 in the processing flow described earlier with reference to fig. 4, and the initial state S of step S710A0The restoration process is similar to the initial state S of step S303 in the process flow of fig. 4A0The restoration processing corresponds to.
Further, even if the entity a cannot confirm that the data received from the entity B in the step S709 is the error notification data due to the communication error, the process proceeds to the step S710, and returns to the initial state SA0. Such processing is explained in detail in "an example of processing for a communication error of error notification data" in the subsequent paragraph.
Entity A returns to initial state S in step S710A0After that, the data processing (TR) is newly performed from the initial state in step S711. The following steps S711 to S715 are the same as the processing of steps S409 to S412 in the sequence diagram of fig. 6, and the description thereof will be omitted.
As is clear from the above-described sequence, (4) communication Data transmitted from the entity B to the entity A2iIn the error processing corresponding to the occurrence of the error, the processing is also executed in accordance with the flowcharts of fig. 4 and 5 described above, that is,
entity a performs:
(A1) error notification data transmission processing;
(A2) error notification data reception or communication error data reception processing after the error notification data transmission;
(A3) returning to the initial state S is executed on the condition that the error notification data transmission/reception process is executedA0And (4) processing.
On the other hand, entity B performs:
(B1) error notification data transmission processing;
(B2) returning to the initial state S is executed on the condition that the error notification data transmission processing is executedA0And (4) processing.
In the sequence of fig. 9, the entity B also performs the processing of B1, B2 described above; when the entity A returns to the initial state SA0At this time, entity B also returns to initial state SB0At this time, the data processing (TR) is re-executed from the initial state, and thus the internal state can be reliably synchronized to achieve error recovery.
[ example of processing for communication error of error notification data ]
The processing sequence described with reference to fig. 6 to 9 does not take into account a transmission error that may occur in the error notification data transmitted and received between the entity a and the entity B, but even if a transmission error occurs in the error notification data, the data processing (TR) can be newly executed from the initial state as long as the entity a executes the processing according to the flowchart shown in fig. 4 and the entity B executes the processing according to the flowchart shown in fig. 5, and both sides synchronously return to the initial state.
Next, a case where a transmission error occurs in the error notification data will be described. When an error occurs in the error notification data, the error notification data of step S301 and step S302 in the flowchart of fig. 4 and the error notification data of step S321 in the flowchart of fig. 5 occur an error at the time of transmission.
First, the processing when an error occurs in the error notification data in steps S301 and S302 in fig. 4 will be described. In the flowchart shown in fig. 4, the cases where a communication error occurs in the error notification data can be classified into the following 3 types.
(1) A case where a communication error occurs in the data transmitted in step S301;
(2) a case where a communication error occurs in the data received in step S302;
(3) both (1) and (2) occur.
First, a process when (1) a communication error occurs in the data transmitted in step S301 is explained. In step S301, the data transmitted by the entity a is error notification data. Therefore, when a communication error occurs in the data, the entity B performs correctness verification of the received data in step S225 in the processing flow of fig. 3, for example, performs verification processing based on parity or checksum, determines that the received data is found to be incorrect, and concludes that a communication error has occurred.
Based on this determination, the entity B proceeds to the error process of step S230 in the process flow of fig. 3. If no communication error occurs, it is determined as error notification data, and normal error processing is executed.
Therefore, in any case, the entity B starts to execute the error process shown in the flowchart of fig. 5, executes the error notification process of step S321 of fig. 5, and the entity a executes the error notification reception process of step S302 of fig. 4, so that the normal error process is executed, and both entities can return to the initial state in synchronization and resume the data process.
Next, (2) a case where a communication error occurs in the data received in step S302 is examined. At the time of executing step S302, entity a has already sent error notification data to entity B in step S301, and entity a predicts that error notification data will necessarily be returned from entity B. This is because, in the error handling sequence of the present invention, it is specified that the entity a returns the error notification data from the entity B after transmitting the error notification data.
Thus, entity A will perform a return to the initial state S even if it cannot confirm that the data received from entity B is an error notificationA0And (4) processing. At this time, the entity B returns to the initial state S according to the processing of steps S321 to S322 shown in FIG. 5B0And the two parties of the entity can synchronously return to the initial state and restart the data processing.
Finally, consider the processing in which both (3) (1) and (2) occur, that is, both errors occur in the transmission of the error notification data in steps S301 and S302 in fig. 4.
The treatment is not only the above
(1) A case where a communication error occurs in the data transmitted in step S301;
(2) a case where a communication error occurs in the data received in step S302; the entity A, B executes the processing according to the processing shown in fig. 4 and 5, and resumes the processing after returning to the initial state.
That is, first, when a communication error occurs in the data transmitted in step S301, the entity B starts an error process after detecting an error in the received data correctness determination process in step S525 shown in fig. 3, and returns to the initial state S after executing steps S321 and S322 of the flowchart in fig. 5B0
Next, when a communication error has occurred in the transmission data in step S302 of fig. 4, the entity a predicts that error notification data must be returned from the entity B because the error notification data has already been transmitted to the entity B in step S301; if data is received from the entity B, regardless of whether it is an error notification or it cannot be confirmed that it is an error notification, the initial state restoration process of step S303 shown in fig. 4 is performed, and return to the initial state S is performedA0And (4) processing. As a result, both entities can synchronously return to the initial state and resume data processing.
Next, a process when an error occurs during the error notification data transmission in the process flow on the entity B side in fig. 5 will be described. That is, in step S321 of the process flow of fig. 5, an error occurs in the error notification data transmitted from the entity B to the entity a.
This is a process corresponding to the transmission of the error notification data in step S302 in fig. 4, and is exactly the same as the above-described (2) process in the case where a communication error occurs in the data received in step S302.
That is, at the time of executing step S302, entity a has already transmitted error notification data to entity B in step S301, and since entity a predicts that error notification data must be returned from entity B, if entity a receives data from entity B, the initial state restoration process of step S303 shown in fig. 4 is executed regardless of whether it can be confirmed to be an error notification, and return to initial state S is executedA0And (4) processing.
On the other hand, the entity B performs step S321 shown in FIG. 5, and then performs a return to the initial state S in step S322B0As a result, both entities can synchronously return to the initial state and resume data processing.
[ Structure of information processing apparatus ]
A configuration example of an information processing apparatus that performs the above-described data communication and data processing is explained with reference to fig. 10. The entity performing the above-described processing may be constituted by an information processing apparatus capable of performing data communication, such as a PC, a mobile terminal, or an IC card. Alternatively, the above-described processing may be executed when 1 information processing unit configured in the PC communicates with another information processing unit via the bus; in this case, each information processing unit functions as the entity a and the entity B.
Fig. 10 shows 2 information processing apparatuses 110 and 120 as 1 setting example of the constituent entities. The information processing apparatuses 110 and 120 are constituted by PCs, for example. The information processing device 110 includes a data processing unit 111, a communication unit 112, an error detection unit 113, and a storage unit 114. The information processing device 120 that communicates with the information processing device 110 also includes a data processing unit 121, a communication unit 122, an error detection unit 123, and a storage unit 124.
The configurations of the information processing apparatus 110 and the information processing apparatus 120 are the same, and the configuration of the information processing apparatus 110 will be described as a representative. The data processing unit 111 is constituted by a CPU or the like, and executes data processing according to a predetermined program. A program for data processing is stored in the storage unit 114, and the CPU executes data processing in accordance with a predetermined processing sequence based on the program. First, a computer program defining various data processing sequences such as the data processing described with reference to fig. 2 and 3 and the error processing and initial state restoration processing described with reference to fig. 4 and 5 is stored in the storage unit 114, and the processing is executed in accordance with the program.
The communication unit 112 performs communication with the information processing apparatus 20. Further, the communication can be performed by various communication means such as a local area network such as the internet and LAN, a cable, and a bus. The error detection section 113 performs error detection on data calculation processing executed in internal processing, in addition to the correctness verification of communication data based on the parity, checksum, and the like described above. These error detections are also processed in accordance with the program stored in the storage unit 114.
In fig. 10, the data processing unit 111 and the error detection unit 113 are shown separately; however, this is merely for the purpose of explaining the functions of the information processing apparatus, and the actual processing configuration may be one in which 1 CPU executes various data processing and error detection processing.
The information processing apparatuses 110 and 120 perform data processing as the entity a by one of the parties and as the entity B by the other party, respectively. The entity a performs error processing according to the flowchart shown in fig. 4 while performing data processing according to the flowchart shown in fig. 2. In addition, the entity B performs error processing according to the flowchart shown in fig. 5 while performing data processing according to the flowchart shown in fig. 3.
By performing these processes, errors that occur in various forms, that is,
(1) data processing (internal processing) ITR of entity AAiAn error occurs in;
(2) data processing (internal processing) ITR of entity BBiAn error occurs in;
(3) communication Data transmitted from entity A to entity B2i-1To send an error;
(4) communication Data transmitted from entity B to entity A2iAn error occurs in;
in any case, both entities can return to the initial state in synchronization with each other and reliably resume data processing.
The present invention has been described in detail above with reference to specific embodiments. However, it is needless to say that those skilled in the art can modify or substitute the embodiment within a range not departing from the gist of the present invention. That is, the present invention has been disclosed in an illustrative form only and is not to be construed in a limiting sense.
Further, the series of processes described in the specification may be performed by hardware or software, or a composite structure of both. In the case of executing the processing by software, the program in which the processing sequence is recorded may be installed in a memory in a computer in which dedicated hardware is embedded and executed, or may be installed in a general-purpose computer capable of executing various types of processing and executed.
For example, the program may be recorded in advance in a hard disk or a ROM (read only Memory) serving as a recording medium. Alternatively, the program may be recorded in advance, temporarily or permanently, in a removable recording medium such as a flexible disk, a CD-ROM (Compact Disc Read Only Memory), an MO (Magneto Optical) disk, a DVD (Digital versatile Disc), a magnetic disk, or a semiconductor Memory. Such a removable recording medium may be provided as a so-called software package.
Further, in addition to installing the program onto the computer from the removable recording medium as described above, the program may be transferred from a download site to the computer by wire through a network such as a wireless transmission or a LAN (Local area network), the Internet; the program thus transmitted is received by the computer and installed in a storage medium such as a built-in hard disk.
The various processes described in the specification may be executed in parallel or individually, depending on the processing capability of the apparatus that executes the processes, or as necessary, in addition to the time series described. In addition, the system referred to in the present specification is a logical set structure of a plurality of devices, and each constituent device is not limited to being in the same housing.

Claims (10)

1. An information processing system having: a1 st information processing section and a2 nd information processing section that perform data communication with each other and perform data processing to which communication data is applied,
the 1 st information processing unit executes data processing to which the received data from the 2 nd information processing unit is applied, and further executes processing to transmit a data processing result to the 2 nd information processing unit, the 2 nd information processing unit judges whether or not there is an error in the data after receiving the data from the 1 st information processing unit, executes error processing if there is an error, and transmits error notification data to the 1 st information processing unit, and otherwise proceeds to the next data processing, the 1 st information processing unit executes data processing error and error detection of the received data from the 2 nd information processing unit, transmits error notification data to the 2 nd information processing unit in accordance with the error detection, and executes initial state restoration processing on condition that data reception from the 2 nd information processing unit after the transmission of the error notification data is made,
the 2 nd information processing unit executes data processing to which the received data from the 1 st information processing unit is applied, and further executes processing to transmit a data processing result to the 1 st information processing unit, the 1 st information processing unit determines whether or not there is an error in the data after receiving the data from the 2 nd information processing unit, executes error processing if there is an error, and transmits error notification data to the 2 nd information processing unit, and otherwise, proceeds to the next data processing, the 2 nd information processing unit executes data processing error and error detection of the received data from the 1 st information processing unit, transmits error notification data to the 1 st information processing unit in accordance with error detection, and executes initial state restoration processing on condition that the transmission processing of the error notification data is executed.
2. The information processing system of claim 1,
the 1 st information processing unit and the 2 nd information processing unit are configured to alternately perform data transmission and reception,
the 1 st information processing unit and the 2 nd information processing unit have the following configurations:
when an error is not detected in the error detection processing of the received data, the internal data processing is shifted to, and when an error is detected, the transmission processing of the error notification data is executed.
3. The information processing system of claim 1,
the 1 st information processing unit has the following configuration:
after the error notification data is transmitted to the 2 nd information processing unit, the initial state restoration process is executed regardless of whether the data received from the 2 nd information processing unit is confirmed to be the error notification data or the communication error data is confirmed.
4. The information processing system of claim 1,
the 2 nd information processing unit has the following configuration:
the error detection unit detects an error in internal data processing performed by the error detection unit itself or a communication error of received data from the 1 st information processing unit, transmits error notification data based on the error detection, and performs initial state restoration processing on the condition that the error notification data is transmitted.
5. An information processing apparatus that performs data communication with a communication partner apparatus each other and performs data processing to which communication data is applied,
the information processing device judges whether there is an error after receiving the data from the communication counterpart device, executes error processing and transmits error notification data if there is an error, otherwise proceeds to the next data processing and performs error detection of the data processing, transmits error notification data if there is an error,
the information processing apparatus includes:
a data processing unit that executes data processing to which received data from the communication partner device is applied;
a communication unit that transmits a data processing result in the data processing unit to the communication partner device, and the communication partner device determines whether or not there is an error in the data after receiving the data from the data processing unit, executes error processing if there is an error, and transmits error notification data to the information processing device, otherwise, proceeds to the next data processing; and
an error detection unit for detecting an error in internal data processing executed by the communication partner device and an error in communication of received data from the communication partner device,
the communication unit transmits error notification data to the communication partner device based on the error detection,
the data processing unit executes an initial state restoration process on condition that data is received from the communication partner device after the error notification data is transmitted.
6. The information processing apparatus according to claim 5,
the information processing apparatus has the following structure:
after the error notification data is transmitted to the communication partner apparatus, the initial state restoration process is executed regardless of whether it is confirmed that the data received from the communication partner apparatus is the error notification data or the communication error data.
7. An information processing apparatus that performs data communication with a communication partner apparatus each other and performs data processing to which communication data is applied,
the information processing device judges whether there is an error after receiving the data from the communication counterpart device, executes error processing and transmits error notification data if there is an error, otherwise proceeds to the next data processing and performs error detection of the data processing, transmits error notification data if there is an error,
the information processing apparatus includes:
a data processing unit that executes data processing to which received data from the communication partner device is applied;
a communication unit that transmits a data processing result in the data processing unit to the communication partner device, and the communication partner device determines whether or not there is an error in the data after receiving the data from the data processing unit, executes error processing if there is an error, and transmits error notification data to the information processing device, otherwise, proceeds to the next data processing; and
an error detection unit for detecting an error in internal data processing executed by the communication partner device and an error in communication of received data from the communication partner device,
the communication unit transmits error notification data to the communication partner device based on the error detection,
the data processing unit executes an initial state restoration process on the condition that the error notification data is transmitted.
8. An information processing method in an information processing apparatus that performs data communication with a communication partner apparatus mutually and performs data processing to which communication data is applied,
the information processing device judges whether there is an error after receiving the data from the communication counterpart device, executes error processing and transmits error notification data if there is an error, otherwise proceeds to the next data processing and performs error detection of the data processing, transmits error notification data if there is an error,
the information processing method includes:
a data processing step in which a data processing unit executes data processing to which received data from the communication partner device is applied;
a communication step in which a communication unit transmits a data processing result in the data processing unit to the communication partner device, the communication partner device determines whether or not there is an error in the data after receiving the data from the data processing unit, executes error processing if there is an error, and transmits error notification data to the information processing device, otherwise, proceeds to the next data processing;
an error detection step in which an error detection unit detects an error occurrence in internal data processing executed by the error detection unit itself and a communication error of received data from the communication partner apparatus;
an error notification data transmission step of transmitting error notification data to the communication partner apparatus, on condition that the communication unit detects the error in the error detection step; and
and an initial state restoration step in which the data processing unit executes an initial state restoration process on condition that data is received from the communication partner device after the error notification data is transmitted.
9. The information processing method according to claim 8,
the initial state restoration step executes the initial state restoration process after transmitting the error notification data to the communication partner apparatus, regardless of whether it is confirmed that the data received from the communication partner apparatus is the error notification data or the communication error data.
10. An information processing method in an information processing apparatus that performs data communication with a communication partner apparatus mutually and performs data processing to which communication data is applied,
the information processing device judges whether there is an error after receiving the data from the communication counterpart device, executes error processing and transmits error notification data if there is an error, otherwise proceeds to the next data processing and performs error detection of the data processing, transmits error notification data if there is an error,
the information processing method includes:
a data processing step in which a data processing unit executes data processing to which received data from the communication partner device is applied;
a communication step in which a communication unit transmits a data processing result in the data processing unit to the communication partner device, the communication partner device determines whether or not there is an error in the data after receiving the data from the data processing unit, executes error processing if there is an error, and transmits error notification data to the information processing device, otherwise, proceeds to the next data processing;
an error detection step in which an error detection unit detects an error occurrence in internal data processing executed by the error detection unit itself and a communication error of received data from the communication partner apparatus;
an error notification data transmission step of transmitting error notification data to the communication partner apparatus, on condition that the communication unit detects the error in the error detection step; and
and an initial state restoration step in which the data processing unit executes an initial state restoration process on condition that the error notification data is transmitted.
HK08107714.2A 2004-11-29 2005-11-15 Information processing device, information processing system, information processing method, and computer program HK1117668B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP343361/2004 2004-11-29
JP2004343361A JP4474266B2 (en) 2004-11-29 2004-11-29 Information processing apparatus, information processing system, information processing method, and computer program
PCT/JP2005/020934 WO2006057180A1 (en) 2004-11-29 2005-11-15 Information processing device, information processing system, information processing method, and computer program

Publications (2)

Publication Number Publication Date
HK1117668A1 HK1117668A1 (en) 2009-01-16
HK1117668B true HK1117668B (en) 2011-12-16

Family

ID=

Similar Documents

Publication Publication Date Title
US9361178B2 (en) Method and device for improving the data transmission security in a serial data transmission having flexible message size
EP3458962B1 (en) Communication device and communication system
JP6798280B2 (en) Attack detection device, attack detection method, and attack detection program
CN117220837A (en) Data transmission method, storage medium and equipment
CN101882096B (en) Method for detecting and correcting damaged control character transmitted between SATA main control device and SATA peripheral device
US7149920B2 (en) Deterministic error recovery protocol
CN101112032B (en) Information processing device, information processing system, information processing method, and computer program
HK1117668B (en) Information processing device, information processing system, information processing method, and computer program
EP4277206A1 (en) Securing network access using dynamically generated baud-rates
JP5376990B2 (en) Relay device and relay method of relay device
JP4157064B2 (en) Synchronization start signal detection device, detection method thereof, and program thereof
CN111903096B (en) Communication system, receiving apparatus, transmission interval changing method, and computer program
CN118733511B (en) A data communication method and system based on SPI
CN117294389B (en) Data communication system and operation method thereof
WO2019176580A1 (en) Communication device, communication method, program, and communication system
US20040101078A1 (en) Synchronization control method for electronic device
US10467171B2 (en) Detecting the drift of the data valid window in a transaction
CN120165695A (en) A filter verification circuit and electronic equipment
CN120582927A (en) A method for automatic matching of CAN baud rate
JP2017118184A (en) Electronic control device
JPH06350573A (en) Monitor data replacement circuit
JP2018026725A (en) Communication system