1. Field of the Invention
The present invention relates to a method and apparatus for data transfer among a plurality of devices. More particularly, the present invention relates to a method and apparatus for data transfer which performs data transfer by applying time-multiplex to data signals which require periodic transmission and to sporadically-occurring asynchronous data signals.
2. Description of the Background Art
There have been networking efforts being made to enable collective management and processing of video and audio data, etc., which have come to be digitalized due to the prevalence of digital devices. Between given digital devices, data signals which require periodic transmission (e.g., video and audio or the like) and sporadically-occurring data signals (e.g., still images, text, or control signals for the devices) may be transmitted. A network of the aforementioned nature may adopt a data transfer system in which those two types data signals are transmitted in an intermixed manner.
A data transfer system which is adaptable to the aforementioned type of digital interface is the IEEE1394 standard. The IEEE1394 standard has been proposed by the IEEE (Institute of Electrical and Electronics Engineers). The IEEE1394 standard can be subclassified into the IEEE1394-1995 standard, the IEEE1394a-2000 standard, the IEEE1394b-2002 standard, and so on. The IEEE1394 standard is characterized so as to enable transmission of both data signals which require periodic transmission (e.g., video or audio) and sporadically-occurring asynchronous data signals (e.g., control signals or still images). Hereinafter, with reference to
As shown in the upper diagram of
To illustrate a specific example, after a cycle start packet CSP, a signalless period which is defined as an isochronous gap (Isochronous gap) IG is observed, after which isochronous transfers are performed. In the upper diagram of
After the isochronous transfers are completed, a signalless period which is defined as a subaction gap (Subaction gap) SG—which is meant to be longer than an isochronous gap IG—is observed. Thereafter, an asynchronous transfer is performed. In the upper diagram of
In accordance with the above-described data signal timing, each device performs data transfers while detecting signalless periods on the transmission path. After receiving a cycle start packet CSP, each device detects a signalless period which has the defined duration of an isochronous gap IG. Then, any device that wishes to perform an isochronous transfer engages in a negotiation for obtaining a right to transmit an isochronous data ID, and a device which has won in the negotiation performs an isochronous transfer. After completion of the isochronous transfer, if a signalless period which has the defined duration of a subaction gap SG is detected, any device that wishes to perform an asynchronous transfer engages in a negotiation, and a device which has won in the negotiation performs an asynchronous transfer. Then, after the lapse of a signalless period which has the defined duration of an acknowledge gap AG, a device which is the recipient of the asynchronous data AD returns an acknowledge packet AP. Note that the acknowledge packet AP is to be returned without having to perform a negotiation.
As disclosed in Japanese Laid-Open Patent Publication No. 2001-77835, the IEEE1394-1995 standard and the IEEE1394a-2000 standard stipulate use of electrical cables to provide connection between devices over a distance of 4.5 m. However, in order to support a situation where a long transmission distance exists between devices, the IEEE1394b-2002 standard allows for longer transmission distances of up to 50 m or more, by using optical fibers. As a result, it has become possible to employ the IEEE1394 standard for purposes such as transmitting digital data (which may have been captured by means of a camera, etc.) over an optical fiber, and receiving the digital data at a remote image receiver or the like.
When performing a long-distance transmission between devices, a transmission delay time incurred for the transmission between the devices may present a problem. For instance, although an acknowledge packet AP should be returned after an asynchronous transfer is performed, if the transmission delay time between devices becomes so long that no acknowledge packet AP is returned within the period of time defined as a subaction gap SG, another device may begin negotiation upon detecting the subaction gap SG. In this case, a proper returning of an acknowledge packet AP cannot occur. Moreover, since an acknowledge packet AP is not returned, the device which has performed the asynchronous transfer may determine that the network is in an abnormal state, and therefore retry an asynchronous transfer or even initialize the network. For such reasons, it is necessary that the transmission delay time between devices be not more than the subaction gap SG. Under the IEEE1394 standard, the subaction gap SG is set on the basis of the value of a parameter called “gap count”. The subaction gap SG becomes longer as the value of the gap count increases. Hence, in order to account for the aforementioned transmission delay time when performing a long-distance transmission, it is necessary to prescribe a large gap count value.
With reference to
Referring to
If the wait time cannot be set longer than the transmission delay time, data transfer between devices is determined to be impossible (step S56), and the processing under this flowchart is ended. On the other hand, if it is possible to set a wait time which is longer than the transmission delay time, a wait time (signalless period) which is longer than the transmission delay time is set (step S54). As the gap count value defining the wait time, any arbitrary value which is equal to or greater than the transmission delay time and which is equal to or less than the aforementioned allowable range of gap count values is set. For example, a maximum value within the allowable range (e.g., 63) or a fixed value (e.g., 44) may be set. Then, data transfer between the devices is begun (step S55), and the processing under this flowchart is ended.
In the above-described data transfer system, long-distance transmission between devices can be enabled by prescribing a wait time corresponding to a signalless period (e.g., subaction gap SG) on the transmission path so as to be longer than the transmission delay time. However, in a data transfer system where transmission is performed by applying time-multiplex to two kinds of data signals, i.e., data signals which require periodic transmission such as video or audio, and sporadically-occurring asynchronous data signal such as still images, the following problems may occur as a result of prescribing a wait time (signalless period) which is long (e.g., a maximum value within the aforementioned range).
Let us take the IEEE1394 scenario shown in
On the other hand, in accordance with the method and apparatus of information communication disclosed in Japanese Laid-Open Patent Publication No. 2001-77835, which relies on the IEEE1394-1995 standard and the IEEE1394a-2000 standard, the maximum hop count in the network is detected, the transmission path distance is set to be 4.5 m, and a necessary data transmission bandwidth and a necessary wait time are determined. However, the method disclosed in Japanese Laid-Open Patent Publication No. 2001-77835 cannot be applied to the IEEE1394b-2002 standard, which envisages a long-distance transmission using optical fibers.
Therefore, an object of the present invention is to provide a method and apparatus for data transfer which, when performing long-distance transmissions between devices by applying time-multiplex to data signals which require periodic transmission and to sporadically-occurring asynchronous data signals, sets an appropriate wait time for each device so that long-distance transmission is enabled while obtaining a necessary transmission bandwidth for real-time data.
The present invention has the following features to attain the object mentioned above. Note that reference numerals and the like are added between parentheses in the below description, only for the purpose of facilitating the understanding of the present invention in relation to the below-described embodiments, rather than limiting the scope of the invention in any way.
According to the present invention, there is provided a data transfer apparatus (1a, 10a) used in a data transfer system for exchanging data with another apparatus (1b, 10b, 10c) in the data transfer system via a transmission path (2), the data comprising a periodic data signal (real-time data; ID1 to ID3) which requires periodic transmission and a sporadically-occurring asynchronous sporadic data signal (sporadic data; AD, AP), the periodic data signal and the sporadic data signal being time-multiplexed with each other. The data transfer apparatus comprises a transmission/reception section (11a), a delay time detection section (12a), a bandwidth detection section (18a), a wait time setting section (14a), and a comparison section (15a) The transmission/reception section exchanges the periodic data signal and the sporadic data signal with the other apparatus via the transmission path. The delay time detection section detects a transmission delay time incurred when exchanging a data signal with the other apparatus (S2). The bandwidth detection section detects a bandwidth (T2) required for exchanging the periodic data signal (S4). The signalless period detection section detects a signalless period (SG) in a data signal which is transmitted on the transmission path. The wait time setting section sets a wait time (T4) to be observed before beginning a data transfer in response to the detected signalless period, such that the wait time is (S3) equal to or greater than the transmission delay time detected by the delay time detection section and guarantees (S4) the bandwidth detected by the bandwidth detection section (S5). The comparison section, if the detected signalless period is longer than the wait time set by the wait time setting section, begins a data transfer from the transmission/reception section (S6, S7).
For example, the wait time setting section sets a wait time (T4 corresponding to SG) to be observed before beginning a data transfer of the sporadic data signal in response to the detected signalless period. The periodic data signal and the sporadic data signal may be transmitted on the transmission path with a certain cycle, the certain cycle falling between synchronization signals (CSP) which are generated with a predetermined cycle period (T). In this case, the wait time setting section sets the wait time so as to guarantee the bandwidth detected by the bandwidth detection section by ensuring that the wait time, denoted as T4, satisfies the relationship: T4≦{T−(T1+T2+T3)}/2, where T denotes the predetermined cycle period; T1 denotes a transmission bandwidth required for each synchronization signal; T2 denotes the bandwidth required for exchanging the periodic data signal as detected by the bandwidth detection section; and T3 denotes a bandwidth required for exchanging the sporadic data signal. Inone example, the bandwidth required for exchanging the periodic data signal as detected by the bandwidth detection section is a bandwidth for isochronous transfer under the IEEE1394 standard, the bandwidth required for exchanging the sporadic data signal is a bandwidth for asynchronous transfer under the IEEE1394 standard, and the transmission bandwidth required for each synchronization signal is a transmission bandwidth for a cycle start packet under the IEEE1394 standard.
In one example, the delay time detection section transmits via the transmission/reception section a control signal for enabling detection of the transmission delay time to the other apparatus, thereafter receives via the transmission/reception section a reply signal returned from the other apparatus in response to the control signal, and detects the transmission delay time based on a point in time at which the control signal is transmitted and a point in time at which the reply signal is received. In another example, the data transfer apparatus further comprises an apparatus designation section (19a) for designating, in the data transfer system, a pair of apparatuses which exchange a data signal with each other, wherein the delay time detection section detects a transmission delay time incurred when a data signal is exchanged between the pair of apparatuses designated by the apparatus designation section. Furthermore, the delay time detection section may transmit via the transmission/reception section a control signal for enabling detection of the transmission delay time to all other apparatuses in the data transfer system, thereafter receive via the transmission/reception section a reply signal returned from each of the other apparatuses in response to the control signal, and detect the transmission delay time for each of the other apparatuses based on a point in time at which the control signal is transmitted and a point in time at which each reply signal is received. In this case, the delay time detection section detects a first transmission delay time based on the point in time at which the control signal is transmitted and the point in time at which the reply signal is received from a first one of the other apparatuses, detects a second transmission delay time based on the point in time at which the control signal is transmitted and the point in time at which the reply signal is received from a second one of the other apparatuses, and subtracts the first transmission delay time from the second transmission delay time, or vice versa, to calculate a transmission delay time with respect to the pair of first and second other apparatuses as designated by the apparatus designation section.
In one example, the bandwidth detection section detects the bandwidth required for exchanging the periodic data signal based on a control signal which is previously transmitted in order to guarantee the bandwidth used for transmitting the periodic data signal.
As a first example, the data transfer apparatus further comprises a storage section (17a, etc.) having previously stored therein information of a transmission delay time to be incurred when exchanging a data signal with the other apparatus, wherein the delay time detection section uses the information stored in the storage section to detect the transmission delay time incurred when exchanging a data signal with the other apparatus. As a second example, the data transfer apparatus further comprises a storage section having previously stored therein information for exchanging the periodic data signal, wherein the bandwidth detection section uses the information stored in the storage section to detect the bandwidth required for exchanging the periodic data signal.
According to the present invention, there is also provided a data transfer method for allowing one of a plurality of apparatuses in a data transfer system to exchange data with another apparatus in the data transfer system via a transmission path, the data comprising a periodic data signal which requires periodic transmission and a sporadically-occurring asynchronous sporadic data signal, the periodic data signal and the sporadic data signal being time-multiplexed with each other. The data transfer method comprises a delay time detection step, a bandwidth detection step, a signalless period detection step, a wait time setting step, and a transmission beginning step. The delay time detection step detects a transmission delay time incurred when exchanging a data signal with the other apparatus. The bandwidth detection step detects a bandwidth required for at least one apparatus in the data transfer system to exchange the periodic data signal. The signalless period detection step detects a signalless period in a data signal which is transmitted on the transmission path. The wait time setting step sets a wait time to be observed before beginning a data transfer in response to the detected signalless period, such that the wait time is equal to or greater than the transmission delay time detected by the delay time detection step and guarantees the bandwidth detected by the bandwidth detection step. The transmission beginning step, if the detected signalless period is longer than the wait time set by the wait time setting step, allows at least one apparatus in the data transfer system to begin a data transfer.
For example, the wait time setting step sets a wait time to be observed before beginning a data transfer of the sporadic data signal in response to the detected signalless period. The periodic data signal and the sporadic data signal may be transmitted on the transmission path with a certain cycle, the certain cycle falling between synchronization signals which are generated with a predetermined cycle period. In this case, the wait time setting step sets the wait time so as to guarantee the bandwidth detected by the bandwidth detection step by ensuring that the wait time, denoted as T4, satisfies the relationship: T4≦{T−(T1+T2+T3)}/2, where T denotes the predetermined cycle period; T1 denotes a transmission bandwidth required for each synchronization signal; T2 denotes the bandwidth required for exchanging the periodic data signal as detected by the bandwidth detection step; and T3 denotes a bandwidth required for exchanging the sporadic data signal. In one example, the bandwidth required for exchanging the periodic data signal as detected by the bandwidth detection step is a bandwidth for isochronous transfer under the IEEE1394 standard, the bandwidth required for exchanging the sporadic data signal is a bandwidth for asynchronous transfer under the IEEE1394 standard, and the transmission bandwidth required for each synchronization signal is a transmission bandwidth for a cycle start packet under the IEEE1394 standard.
In one example, the delay time detection step transmits in the transmission/reception step a control signal for enabling detection of the transmission delay time to the other apparatus, thereafter receives in the transmission/reception step a reply signal returned from the other apparatus in response to the control signal, and detects the transmission delay time based on a point in time at which the control signal is transmitted and a point in time at which the reply signal is received. In another example, the data transfer method further comprises an apparatus designation step for designating, in the data transfer system, a pair of apparatuses which exchange a data signal with each other, wherein the delay time detection step detects a transmission delay time incurred when a data signal is exchanged between the pair of apparatuses designated by the apparatus designation step. The delay time detection step may transmit in the transmission/reception step a control signal for enabling detection of the transmission delay time to all other apparatuses in the data transfer system, thereafter receive in the transmission/reception step a reply signal returned from each of the other apparatuses in response to the control signal, and detect the transmission delay time for each of the other apparatuses based on a point in time at which the control signal is transmitted and a point in time at which each reply signal is received. In this case, the delay time detection step detects a first transmission delay time based on the point in time at which the control signal is transmitted and the point in time at which the reply signal is received from a first one of the other apparatuses, detects a second transmission delay time based on the point in time at which the control signal is transmitted and the point in time at which the reply signal is received from a second one of the other apparatuses, and subtracts the first transmission delay time from the second transmission delay time, or vice versa, to calculate a transmission delay time with respect to the pair of first and second other apparatuses as designated by the apparatus designation step.
In one example, the bandwidth detection step detects the bandwidth required for exchanging the periodic data signal based on a control signal which is previously transmitted in order to guarantee the bandwidth used for transmitting the periodic data signal.
As a first example, the delay time detection step detects the transmission delay time incurred when exchanging a data signal with the other apparatus by using previously-set information. As a second example, the bandwidth detection step detects the bandwidth required for exchanging the periodic data signal by using previously-set information.
According to the present invention, there is also provided a data transfer method for allowing one of a plurality of apparatuses in a data transfer system to exchange data with another apparatus in the data transfer system via a transmission path, the data comprising a periodic data signal which requires periodic transmission and a sporadically-occurring asynchronous sporadic data signal, the periodic data signal and the sporadic data signal being time-multiplexed with each other, the data transfer method comprising: in accordance with a change in a transmission delay time incurred when exchanging a data signal with the other apparatus, varying a wait time to be observed before beginning a data transfer in response to a signalless period in a data signal which is transmitted on the transmission path, such that the wait time is equal to or greater than the transmission delay time and guarantees a bandwidth required for exchanging the periodic data signal.
In accordance with a data transfer apparatus of the present invention, a periodic data signal requiring periodic transmission and a sporadically-occurring asynchronous sporadic data signal are time-multiplexed and transferred between the apparatus and another apparatus. Await time to be observed before beginning a data transfer in response to a signalless period is prescribed so as to be equal to or greater than a transmission delay time between the apparatuses and to guarantee a bandwidth for the periodic data signal. As a result, it becomes possible to perform a long-distance transmission for the time-multiplexed periodic data signal and sporadic data signal.
The wait time T4 can be easily set so as to satisfy the relationship T4≦{T−(T1+T2+T3)}/2, where T denotes a cycle period; T1 denotes a transmission bandwidth required for each synchronization signal; T2 denotes the bandwidth required for exchanging the periodic data signal as detected by the bandwidth detection section; and T3 denotes a bandwidth required for exchanging the sporadic data signal. Furthermore, the digital interface is applicable to isochronous transfer and asynchronous transfer defined under the IEEE1394 standard (e.g., the IEEE1394b-2002 standard), and is applicable to a system which is based on the precept that a long-distance transmission is to be performed for a periodic data signal and a sporadic data signal which have been subjected to time-multiplex.
In an embodiment where the transmission delay time between the apparatuses is set based on the amount of time required for one apparatus to transmit a control signal and for the other apparatus to return a reply signal, a more realistic and efficient transmission delay time can be detected than in a method which sets a wait time based on a number of apparatuses (hop count).
In an embodiment where a wait time is set by only using the transmission delay time between apparatuses which mutually exchange data signals and corresponding reply signals, it is possible to prescribe a wait time which does not produce any superfluous signalless periods (i.e., await time which disregards the transmission delay time for any pair of data transfer apparatuses between which data transfer is not performed), whereby an efficient wait time can be set. Furthermore, the transmission delay time between such apparatuses can be easily obtained by performing, among each apparatus's transmission delay time taken with respect to a reference (root) apparatus, performing a subtraction for selected transmission delay times.
The bandwidth required for exchanging a periodic data signal can be detected based on a control signal which is previously transmitted in order to guarantee the bandwidth to be used for exchanging the periodic data signal. However, in a data transfer system whose network configuration never changes, information concerning the transmission delay time between apparatuses and the bandwidth required for the periodic data signal can be previously obtained through measurement or calculation, and the wait time can be easily set on the basis of such information.
In accordance with the data transfer method of the present invention, similar effects to those obtained with the aforementioned data transfer apparatus can be obtained.
These and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
(First Embodiment)
Referring to
Referring to
Via the transmission path 2ab, a data transfer is performed between the data transfer apparatuses 1a and 1b by applying time-multiplex to data signals which require periodic transmission (hereinafter referred to as “real-time data”) and sporadically-occurring asynchronous data signals (hereinafter referred to as “sporadic data”). The transmission/reception section 11a sends data signals onto the transmission path 2ab, from which the transmission/reception section 11b receives the data signals. The transmission/reception section 11b sends data signals onto the transmission path 2ab, from which the transmission/reception section 11a receives the data signals.
For example, the IEEE1394 standard may be applied as the digital interfaces in the data transfer system. As described earlier, the IEEE1394 standard is characterized so as to enable transmission of both data signals which require periodic transmission (“real-time data”: e.g., video or audio) and sporadically-occurring asynchronous data signals (“sporadic data”: e.g., control signals or still images). The data signal timing according to an IEEE1394-compliant data transfer method is the same as that shown in the upper diagram of
Referring to
At the above step S2, the delay time detection section 12a outputs to the transmission/reception section 11a a control signal for beginning detection of the transmission delay time. At this time, the delay time detection section 12a retains information of the point in time at which the control signal was output. The control signal is sent from the transmission/reception section 11a onto the transmission path 2ab, and received by the transmission/reception section 11b of the data transfer apparatus 1b. The transmission/reception section 11b outputs the received control signal to the delay time detection section 12b. Next, after receiving the control signal which has been issued, the delay time detection section 12b outputs to the transmission/reception section 11b a reply signal to the control signal. The reply signal is sent from the transmission/reception section 11b onto the transmission path 2ab, and received by the transmission/reception section 11a of the data transfer apparatus 1a. The transmission/reception section 11a outputs the received reply signal to the delay time detection section 12a.
Next, the delay time detection section 12a detects the transmission delay time between the data transfer apparatuses 1a and 1b by comparing the point in time at which the control signal was output against the point in time at which the reply signal was received. The detected transmission delay time is output to the storage section 17a. In the case where the data transfer system comprises three or more data transfer apparatuses 1, the transmission delay time detected by each data transfer apparatus 1 is output to the storage section 17a of the data transfer apparatus 1a. The storage section 17a stores the received information of a transmission delay time, and, if necessary, outputs the information to the wait time setting section 14a.
At step S3, it is determined whether a wait time to be observed after each data transfer apparatus 1a or 1b detects a signalless period on the transmission path 2ab and until the data transfer apparatus 1a or 1b begins a data transfer can be prescribed to be equal to or longer than the transmission delay time which was detected at step S2. For example, the wait time may be set on the basis of a gap count value, and it may be determined whether a wait time which is longer than the transmission delay time can be set within the allowable range of gap count values. If the result of the determination indicates that a wait time which is equal to or longer than transmission delay time can be prescribed, then it is determined whether a bandwidth which is necessary for transmitting real-time data between the data transfer apparatuses 1a and 1b can be secured with such a wait time (step S4). In the case where the data transfer system comprises three or more data transfer apparatuses 1, the above determination is to be made with respect to the transmission delay time which is stored in the storage section 17a of each data transfer apparatus 1. If step S3 finds that a wait time which is equal to or greater than the transmission delay time cannot be set, the process proceeds to the next step S8. If step S4 finds that a bandwidth which is necessary for transmitting real-time data can be secured with the given wait time, the process proceeds to the next step S5. On the other hand, if step S4 finds that a bandwidth which is necessary for transmitting real-time data cannot be secured with the given wait time, the process proceeds to the next step S9.
The operations of the data transfer apparatuses 1a and 1b at steps S3 and S4 will be described. When the data input/output sections 16a and 16b perform an inter-apparatus data exchange, the data is to be transferred via the transmission/reception sections 11a and 11b. The data which is input to or output from the data input/output sections 16a and 16b is the aforementioned real-time data and/or sporadic data. Prior to a data transfer, the data transfer apparatus which is on the sending end of the real-time data transmits a control signal for securing a bandwidth (in terms of time) to be used. Via the transmission/reception sections 11a and 11b and the transmission path 2ab, the control signal is input to the bandwidth detection sections 18a and 18b. At this time, the bandwidth detection section 18a of the data transfer apparatus 1a calculates the bandwidth which is necessary for the transmission of real-time data as indicated by the control signal. Then, the bandwidth detection section 18a outputs the result of the calculation to the wait time setting section 14a. The wait time setting section 14a sets a wait time which is equal to or greater than the transmission delay time that is stored in the storage section 17a and which has been determined to enable real-time data transmission based on the result of the calculation output from the bandwidth detection section 18a, and outputs information of this wait time to the comparison section 15a.
Referring to
T≧T1+T2+T3+T4×2.
Stated otherwise, the wait time T4 to be set by the wait time setting section 14a is prescribed so as to be equal to or greater than the transmission delay time stored in the storage section 17a (i.e., equal to or longer than transmission delay time while remaining within the allowable range of gap count values), and to also satisfy the relationship:
T4≦{T−(T1+T2+T3)}/2.
Thus, in the present data transfer system, a wait time is set at step S5 which can secure a sufficient bandwidth for the data transfer of real-time data which is transmitted between devices. Therefore, at step S6, the data transfer apparatuses 1a and 1b are capable of transferring real-time data and sporadic data by applying time-multiplex thereto. Then, the data transfer apparatuses 1a and 1b begin data signal transmission between themselves (step S7), and the processing under this flowchart is ended.
When performing data transfer between the apparatuses at step S7, the data transfer apparatuses 1a and 1b apply time-multiplex to real-time data and sporadic data. For example, the signalless period detection section 13a of the data transfer apparatus 1a detects a signalless period on the transmission path 2ab. The comparison section 15a compares the signalless period which has been detected by the signalless period detection section 13a against the wait time which has been set by the wait time setting section 14a. When the signalless period has become longer than the wait time, the comparison section 15a outputs to the data input/output section 16a a signal which enables outputting of real-time data or sporadic data. Then, the data input/output section 16a outputs data to the transmission/reception section 11a, thus beginning a data transfer. Since the mutual data transfer operations by the data transfer apparatuses 1a and 1b are the same as those described in the conventional techniques, any detailed description thereof is omitted here.
On the other hand, if step S4 finds that a bandwidth which is necessary for transmitting real-time data cannot be secured with the given wait time, the wait time setting section 14a sets a wait time which is equal to or greater than the transmission delay time stored in the storage section 17a (step S9) Thus, the data transfer apparatuses 1a and 1b become capable of transferring sporadic data (step S10). In other words, although connection between the apparatuses is possible, no real-time data transmission ability is guaranteed. Then, the data transfer apparatuses 1a and 1b begin data signal transmission between themselves (step S7), and the processing under this flowchart is ended. The operation to be performed each component elements at step S7 after undergoing step S10 is similar to that performed at step S7 after undergoing step S5. Alternatively, when the signalless period has become longer than the wait time, the comparison section 15a may output to the data input/output section 16a a signal which only enables outputting of sporadic data, thus allowing only sporadic data to be transmitted.
If step S3 finds that a wait time which is equal to or greater than the transmission delay time cannot be set, data transfer between the apparatuses is determined as impossible (step S8), and the processing under this flowchart is ended.
As described earlier, in conventional data transfer methods, a wait time is set to an arbitrary value which is selected so as to be equal to or greater than a transmission delay time while remaining within the allowable range of gap count values (e.g., a maximum value or a fixed value). On the other hand, the data transfer system according to the first embodiment prescribes a wait time which is equal to or greater than a transmission delay time between the data transfer apparatuses and which can guarantee a bandwidth necessary for data signals which require periodic transmission. As a result, it is possible to perform a long-distance transmission of data signals which require periodic transmission and sporadically-occurring asynchronous data signals by applying time-multiplex thereto.
Although the above example illustrates a case where a wait time is set by measuring a transmission delay time between the data transfer apparatuses 1a and 1b and calculating a bandwidth necessary for real-time data transmission after the devices are connected or powered on, the wait time may be set in any other manner. For example, in a data transfer system whose network configuration never changes, the transmission delay time between data transfer apparatuses can be previously obtained through prior measurement or calculation, and such transmission delay time information may be stored in a storage section in advance. Similarly, the bandwidth which is necessary for real-time data transmission can also be previously obtained through prior measurement or calculation, and such bandwidth information may be stored in a storage section in advance. In other words, without having to detect a transmission delay time between the data transfer apparatuses 1a and 1b by means of the delay time detection section 12a or 12b, or detect the bandwidth which is necessary for real-time data transmission by means of the bandwidth detection section 18a or 18b, the previously-determined wait time can be input to the storage sections 17a and 17b. In this case, it is possible to omit the delay time detection section 12a and the bandwidth detection section 18a of the data transfer apparatus 1a, and the delay time detection section 12b and the bandwidth detection section 18b of the data transfer apparatus 1b as shown in
Although the above example illustrates a data transfer method in the case where data transfer is performed between two data transfer apparatuses, it will be appreciated that the present invention is also applicable to a network which comprises three or more data transfer apparatuses.
(Second Embodiment)
Among networks comprising three or more devices connected to one another, some networks may exist in which all devices mutually perform transmission of data signals and transmission/reception of corresponding reply signals, whereas other networks may exist in which exchange of data signals and reply signals occurs only between some of the devices. Turning to
Referring to
As shown in
Referring to
As compared to the first embodiment above, it will be seen that the data transfer apparatuses 10a to 10c according to the second embodiment additionally comprise the device designation sections 19a to 19c, respectively. Since the other component elements are similar to those in the first embodiment, like reference numerals are attached to like component elements, and the detailed descriptions thereof are omitted.
For example, if the data transfer apparatus 10a is set as a master station (root) in the data transfer system, the device designation section 19a outputs to the delay time detection section 12a a signal which designates each pair of data transfer apparatuses among the data transfer apparatuses 10a to 10c between which exchange of data signals and corresponding reply signals is mutually performed. In the exemplary data transfer system shown in
Alternatively, each of the device designation sections 19a to 19c may output to the delay time detection sections 12a to 12c, respectively, a signal designating a counterpart data transfer apparatus with which to perform exchange of data signals and corresponding reply signals. In this case, the device designation section 19a will designate the data transfer apparatus 10b as a counterpart of the aforementioned signal exchange. The device designation section 19b will designate the data transfer apparatuses 10a and 10c as counterparts of the aforementioned signal exchange. The device designation section 19c will designate the data transfer apparatus 10b as a counterpart of the aforementioned signal exchange.
Next, the data transfer method to be performed in the data transfer system according second embodiment will be described with respect to the case where the data transfer apparatus 10a is set as the master station (root) in the data transfer system. As compared to the first embodiment which has been illustrated with reference to
At step S2 in the second embodiment, with respect to each pair of data transfer apparatuses among the data transfer apparatuses 10a to 10c between which mutual data transfer is performed, a transmission delay time incurred for the data transfer is detected, after which the process proceeds to the next step S3. First, the delay time detection section 12a outputs to the transmission/reception section 11a a control signal for enabling detection of transmission delay time. At this time, the delay time detection section 12a retains information of the point in time at which the control signal was output. The control signal is sent from the transmission/reception section 11a onto the transmission paths 2ab and 2bc, and received by the transmission/reception sections 11b and 11c of the data transfer apparatuses 10b and 10c, respectively. The transmission/reception sections 11b and 11c output the received control signal to the delay time detection sections 12b and 12c, respectively. Next, after receiving the control signal, the delay time detection sections 12b and 12c output a reply signal corresponding to the control signal to the transmission/reception sections 11b and 11c, respectively. The reply signals are sent from the transmission/reception sections 11b and 11c onto the transmission paths 2ab and 2bc, respectively, and received by the transmission/reception section 11a of the data transfer apparatus 10a. The transmission/reception section 11a outputs the received reply signals to the delay time detection section 12a.
Next, the delay time detection section 12a detects a transmission delay time between the data transfer apparatuses 10a and 10b by comparing the point in time at which the control signal was output against the point in time at which the reply signal was received from the data transfer apparatus 10b. Moreover, the delay time detection section 12a detects a transmission delay time between the data transfer apparatuses 10a and 10c by comparing the point in time at which the control signal was output against the point in time at which the reply signal was received from the data transfer apparatus 10c.
As shown in
Thus, in the data transfer system according to the second embodiment, a transmission delay time detection is performed only with respect to each pair of data transfer apparatuses between which data signals and corresponding reply signals are mutually exchanged, and a wait time is set based on such transmission delay time information. For example, although the longest transmission delay time would be incurred between the data transfer apparatuses 10a and 10c in the data transfer system shown in
While the invention has been described in detail, the foregoing description is in all aspects illustrative and not restrictive. It is understood that numerous other modifications and variations can be devised without departing from the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2003-367889 | Oct 2003 | JP | national |