Data transmission system and method

Abstract: The data transmission method employs IEEE P1394 protocol. The data header of the transmitted isochronous packet is added with a node identifier identifying the transmitter node, so that the receiver node can immediately identify the transmitter node, and can thereby request the transmitter node to maintain transmission. A Broadcast channel is a default channel used for isochronous packet transmission, unless a different channel number is otherwise specified. Thus, it is not necessary for the user to coordinate the channel number used by the transmitting and receiver nodes. It is also not necessary for the transmitter node to notify the receiver node, or the receiver node to notify the transmitter node, of the channel number used.

Description: BACKGROUND OF THE INVENTION 1. Field of the invention The present invention relates to a system for transmitting audio signals and/or video signals as a digital signal in such applications as a digital video cassette recorder (VCR) whereby audio signals and/or video signals are recorded and reproduced as digital signals, and also to a method thereof. 2. Description of the prior art Devices for transmitting audio signals and/or video signals via a digital signal transmission path are being 'continually developed. Transmitting audio signals and/or video signals as a digital signal, however, requires sending and receiving to be synchronized to the processing speed of the apparatus, and therefore requires a transmission path capable of isochronous transmission. A bus connection is even more preferable considering the potential need for two-way communications on a single transmission path whereby plural devices can receive a signal transmitted from a single device. The Institute of Electrical and Electronic Engineers, Inc. (IEEE) is currently studying a next-generation high speed serial bus protocol under the title P1394 (see "High Performance Serial Bus"). Under the proposed IEEE P1394 standard, isochronous transmission data, including audio signals, video signals, and other real-time data, can be transmitted by isochronous transmission using isochronous packets, which are sent and received every 125 µ sec (= 1 cycle) to achieve isochronous transmission, cf. Teener M: "A Bus on a diet - the serial bus alternative - an introduction to the P1394 high performance serial bus" intellectual leverage, San Francisco, Feb. 24-28, 1992, no. Conf. 37, 24 February 1992, pages 316-321, XP000340753 Institute of Electrical an Electronics Engineers. The isochronous transmission control method of IEEE P1394 is described next. When the bus is initialized according to IEEE P1394, a node identifier is automatically assigned to each device connected to the bus (each 'node') as a means of identifying each node. A maximum 64 isochronous packets per cycle can also be sent over the bus. As a result, each isochronous packet is also assigned a channel number ranging in value from 0 to 63 to identify each isochronous packet. To achieve isochronous transmission on plural channels, one of the plural nodes connected to the bus is used for isochronous transmission management; this node is called the "bus manager" below. The bus manager manages the channel numbers used for isochronous transmission, and the time remaining in each cycle usable for isochronous transmission. The time sharing rate, or the time slot width, required for each node to transmit an isochronous packet in one cycle is referred to as a bandwidth below. To achieve isochronous transmission, the bus manager must reserve the channel number and the bandwidth to be used. It should be noted that communications not essential to isochronous transmission and information that does not require isochronous transmission are transmitted by asynchronous transmission using asynchronous packets. Asynchronous communication is accomplished using cycle time not used for isochronous transmission. The bus is also immediately reinitialized whenever a node is connected or disconnected from the bus, or whenever any node on the bus is turned off, to enable active bus configuration. The first problem addressed by the present invention is described next. When the IEEE P1394 high performance serial bus is applied to isochronous transmission between consumer audiovisual (A/V) devices using the conventional isochronous packet described above, it is not possible for the node receiving the isochronous packet to identify the node sending that isochronous packet. Because of this node identification problem, the node receiving the isochronous packet cannot request the node sending the isochronous packet to continue isochronous packet transmission when it is necessary to prevent interruption of isochronous transmission due to an unexpected user action, and it is therefore not possible to set the transmission node to a protected state. This is described below referring to a system comprising nodes A, B, and C with node B assumed to be receiving and recording the isochronous packet sent by node A. If the user then performs some action causing node C to transmit an isochronous packet, node C must request node A to stop transmitting the isochronous packet. If node A responds to this request by stopping transmission, the recording operation of node B will be interrupted. It is therefore possible by this conventional data transmission method to interrupt the transmission of isochronous packets between communicating nodes when one node not associated with that isochronous packet transmission is accidentally or improperly operated. The second problem is described next. As described above, the IEEE P1394 protocol enables plural channels of real-time data to be output during one cycle. It is therefore necessary for the receiver node(s) to determine the channel numbers of the real-time data that should be received by that node. One method of enabling the receiver node to determine the channel numbers to be received is for the user to inform the receiver node of the channel numbers to be received. To do this, however, the user must determine and inform the receiver node of the channel numbers of the real-time data that should be received, and this increases the burden on the user. SUMMARY OF THE INVENTION In order to solve the above mentioned objects a data transmission method for transmitting real-time data over a bus between at least one of a first node and a second node of a plurality of nodes, in which the real-time data is combined with a channel identifier, according to the present invention contains the steps of reserving by the first node a preselected channel from among a plurality of channels; setting by the first node a required bandwidth of the preselected channel; confirming by the first node that the preselected channel with the required bandwidth has been reserved; transmitting data from the first node using said preselected channel with the required bandwidth to establish a predetermined operation; generating an up command by the second node and transmitting the up command to said first node when the transmission of said data from said first node to the second node is necessary; counting up the number of said up command at said first node; generating a down command by the second node and transmitting the down command to said first node when the transmission of said data from said first node to the second node is no longer necessary; counting down the number of said down command at said first node; setting the first node to a protect state when the counting is greater than zero to protect said predetermined operation from being interrupted; and releasing the protect state when the counting is equal to zero. The objects of the present inventions are also solved by a data transmission system for transmitting real-time data over a bus between at least a first node and a second node, said real-time data being added with a channel identifier, said system comprising: means for reserving by said first node, a preselected channel from among a plurality of channels; means for setting by said first node, a required bandwidth for said preselected channel; means for confirming by said first node that said preselected channel with said required bandwidth has been reserved; means for transmitting data from said first node using said preselected channel with said required bandwidth to establish a predetermined operation; means for generating an up command by said second node; and transmitting said up command to said first node when the transmission of said data from said first node to the second node is necessary; means for generating a down command by said second node, and transmitting said down command to said first node when the transmission of said data from said first node to the second node is no longer necessary; a counter means for counting up upon receipt of said up command and for counting down upon receipt of said down command; means for setting said first node to a protect state when the counter means counts to a number greater than zero to protect said predetermined operation from being interrupted, and for releasing said protect state when the counter means counts down to zero. BRIEF DESCRIPTION OF THE DRAWINGS The present invention will become more fully understood from the detailed description given below and the accompanying diagrams wherein: Fig. 1 is a block diagram of plural audio/visual devices connected to a bus according to the IEEE P1394 protocol; Fig. 2 is a block diagram of the internal configuration of each audio/visual device shown in Fig. 1; Fig. 3 shows the isochronous packet format defined by IEEE P1394; Fig. 4 shows the format of the packet header of the isochronous packet defined by IEEE P1394; Fig. 5 shows the asynchronous packet format defined by IEEE P1394; Fig. 6 shows the format of the packet header of the asynchronous packet defined by IEEE P1394; Fig. 7 shows the isochronous packet format according to the first embodiment of the present invention; Fig. 8 is a block diagram of a VCR connection according to the second embodiment of the present invention; Fig. 9 is a flow chart of the reproduction process of a VCR according to the second embodiment of the present invention; Fig. 10 is a flow chart of the recording process of a VCR according to the second embodiment of the present invention; Fig. 11 is a block diagram of the control block in the second, third and fourth embodiments of the present invention; Fig. 12 is a flow chart of the communications management block when transmission is started by the second embodiment of the invention; Fig. 13 is a flow chart of the communications management block when receiving is started by the second embodiment of the invention. DESCRIPTION OF PREFERRED EMBODIMENTS The present invention relates to a transmission procedure for transmitting real-time data such as audio/visual data using the P1394 protocol currently being considered by the Institute of Electrical and Electronic Engineers, Inc. Fig. 1 shows a plurality of audio/visual devices connected to a bus according to the IEEE P1394 protocol. In this example, four audio/visual devices are connected to a common bus, and the devices are referred to as nodes. A/V devices 101, 102, 103, and 104 are connected by a cable 105 which serves as a bus structure. The A/V devices 101 - 104 have a similar control arrangement which is shown in Fig. 2 by way of example for A/V device 102. Each A/V device comprises an interface block 201, an A/V signal processing block 202, and a control block 203. Signals from the other nodes are input to one, A/V device 102 through the interface block 201. In the interface block 201, the input signals have their waveform shaped, and the waveform-shaped signals are output to the next A/V device 103. The interface block 201 is capable of transmitting the output signals from any other A/V device, i.e., any other node when connected according to the IEEE P1394 protocol as shown in Fig. 1, to all other A/V devices (nodes). In the IEEE P1394 protocol, real-time data is transmitted using isochronous packets, the format of which is shown in Fig. 3 as defined by IEEE P1394. Each isochronous packet comprises a 4-byte packet header 301; a 4-byte header CRC 302 for checking for transmission errors in the packet header 301; a data block 303; and a 4-byte data CRC 304 for checking for transmission errors in the real-time data. The format of the packet header 301 is shown in Fig. 4. As shown in Fig. 4, the packet header 301 includes the channel number 401. According to the IEEE P1394 protocol, plural A/V devices (nodes) can transmit plural isochronous packets on a time-share basis approximately every 125 µ sec (= 1 cycle). The channel number 401 is added to the isochronous packets for identifying each packet transmitted during the same cycle. When transmitting real-time data, the control block 203 instructs the A/V signal processing block 202 to output the real-time data, including the audio/visual data. Based on the instructions from the control block 203, the A/V signal processing block 202 therefore outputs the real-time data. The control block 203 also adds the channel number used and other information, and controls isochronous packet output to the interface block 201. Based on the instructions from the control block 203, the interface block 201 packetizes the real-time data from the A/V signal processing block 202 as the data block 303 shown in Fig. 3 according to the packet format also shown in Fig. 3. The interface block .201 then outputs the isochronous packet to the other nodes (A/V devices). When receiving real-time data, the control block 203 informs the interface block 201 of the channel number of the isochronous packets to be received. The interface block 201 then detects the channel number of each isochronous packet from the packet header. If the detected channel number is the specified channel number, the interface block 201 outputs to the A/V signal processing block 202 the real-time data contained in the data block 303 from the isochronous packet shown in Fig. 3. The control block 203 also controls input of the real-time data to the A/V signal processing block 202, which signal processes the input data. It is therefore possible for plural nodes to transmit plural isochronous packets during the same cycle by the IEEE P1394 protocol as described above, i.e., plural isochronous transmission between plural nodes can be accomplished in an apparently simultaneous manner. It is necessary, however, to reserve sufficient bandwidth for the internal processing speed of each node with each isochronous transmission. Here, the bandwidth means a width of a reserved time slot in each cycle of 125 µ sec, and various time slots in each cycle are distinguished by different channel numbers. According to the IEEE P1394 protocol, it is possible to use, at the maximum, 64 different channel numbers, from 0 to 63. Because the maximum transmittable bandwidth is limited (obviously less than 125 µ sec), it is necessary to manage the bandwidth used by each node. In addition, a channel number is added to each isochronous packet to identify each isochronous packet and thereby enable isochronous transmission of data on plural channels. Managing the channel numbers used by each node is necessary to prevent the same channel number from being assigned to packets on different channels when plural nodes simultaneously output isochronous packets. This channel number duplication is prevented in the IEEE P1394 protocol by dedicating one node as a bus manager for centrally controlling bandwidth and channel numbers. A/V devices or other node devices executing isochronous transmission must receive from the bus manager the specific bandwidth and channel number used by that node for isochronous transmission. Note that the "used bandwidth" defines the amount of time in each cycle that the node outputting the isochronous packet can monopolize the bus to send the isochronous packets. Communications other than the isochronous transmission described above, e.g., communications for obtaining the used bandwidth and channel number, are accomplished by asynchronous transmission using asynchronous packets. Asynchronous transmission is accomplished using the cycle time remaining after isochronous transmission is completed in each cycle. Fig. 5 shows the asynchronous packet format defined by IEEE P1394. Each asynchronous packet comprises a 16-byte packet header 501; a 4-byte header CRC 502 for checking for transmission errors in the packet header 501; an asynchronous data body 503; and a 4-byte data CRC 504 for checking for transmission errors in the asynchronous transmission data. The packet header 501 comprises a receiver node identifier 601, which is the identifier of the node to which the transmitted asynchronous packet is addressed, and a transmitter node identifier 602, which is the identifier of the node transmitting the packet. The receiver node identifier 601 and the transmitter node identifier 602 in the packet header are each two bytes long. The receiver node receives all asynchronous packets in which the value of the receiver node identifier 601 is equal to the node identifier of the receiver node. The receiver node can also determine by the transmitter node identifier 602 in the received asynchronous packets which node sent the asynchronous packet by reading the transmitter node identifier 602. The procedure for asynchronous transmission is described next. To send an asynchronous packet, the control block 203 instructs the interface block 201 to asynchronously transmit the asynchronous transmission data after appending' the receiver node identifier identifying the addressed node. The interface block 201 thus generates and outputs the asynchronous packets from the asynchronous data, receiver node identifier, and other information input from the control block 203. When an asynchronous packet is received, the interface block 201 identifies the asynchronous packets addressed to that node by evaluating the receiver node identifier 601 contained in the packet header 501, and outputs the asynchronous data 503 and the transmitter node identifier 602 from the received asynchronous packet to the control block 203. The control block 203 then executes the required processing based on the asynchronous data input thereto. Referring to Figs. 7 to 10, the first embodiment of the present invention is described below. Note that the first embodiment is described with specific application to a video cassette recorder (VCR) as the A/V device. Fig. 7 shows the format of an isochronous packet transmitted during isochronous transmission by the first embodiment of the invention. Referring to Fig. 7, data block 303 is used to communicate any data the user wishes to communicate, and comprises a data header 702 identifying the type of data transmitted in that isochronous packet, and the A/V data 703 actually transmitted. The data header 702 comprises the node identifier 1101 identifying the node that transmitted that isochronous packet, and other header data. Thus, by detecting and reading the node identifier 1101 at the receiver node, it is possible to detect who is the transmitter node. When a new node is connected and a bus reset is generated according to the IEEE P1394 protocol, a new node identifier is automatically assigned to that newly connected node. As a result, the node transmitting the isochronous packet writes the node identifier assigned thereto to the data header 702 according to the format shown in Fig. 7, and then transmits the isochronous packet. Fig. 8 shows how five VCRs may be connected for dubbing A/V data. The operation of each of the five VCRs 1201 - 1205 is controlled by the control block 203 built in to each VCR. Note that the control block 203 of the present invention is achieved by a microcomputer. The VCRs 1201 - 1205 are connected by connector cables 1205. Each time a cable is connected, a 'bus reset' command is generated to assign the node identifiers to the VCRs 1201 - 1205. Node identifiers (node_ID) 0 - 4 are assigned to VCRs 1201 - 1205, respectively, by way of example only in the following description. As noted above, packet sending and receiving is executed on a 125 µ sec cycle according to the IEEE P1394 protocol, and the first half of each cycle can be assigned to a priority time band for isochronous transmission. It is therefore necessary to reserve the bandwidth required within the finite priority time band reserved for isochronous transmission. More specifically, it is necessary to first determine which communications channel is to be used for what length of time for isochronous packet transmission. Managing this priority time band is also handled by the node used as the bus manager node 1204. It is assumed in the following description that A/V data reproduced by the first VCR 1201 is to be dubbed by VCRs 1202 and 1203, and that VCR 1204 is the bus manager node managing the priority time band. (VCR 1205 will be used for the description of the second embodiment.) The execution of the present embodiment is described below by these three function blocks. Data other than the A/V data used in the following description, e.g. continuation requests and stop enable flags sent from the receiver node to the transmitter node, are communicated using asynchronous packets. In the control block 203 of VCR 1201 serving as a play device, a counter 1201a is provided. In the control block 203 of VCRs 1202 and 1203 each serving as a recording device, up/down command generators 1202a and 1203a are provided, respectively. The up/down command generator 1202a or 1203a generates an up command, it means that the VCR 1202 or 1203 will continue to stay in the recording mode, and when it generates a down command, it means that the VCR 1202 or 1203 is released from the recording mode. For example, when the up/down command generator 1202a generates an up command, the counter 1201a which was before in the reset condition, is incremented from "0" to "1" indicating that there is one VCR which will continue to record the data sending from this player 1201. Thereafter, when the up/down command generator 1203a generates an up command, the counter 1201a now carrying "1" is incremented to "2" indicating that there is two VCRs which will continue to record the data sending from this player 1201. Thereafter, when the up/down command generator 1203a generates a down command, the counter 1201a now carrying "2" is decremented to "2" indicating that there is one VCRs which will continue to record the data sending from this player 1201. When the counter 1201a is carrying a number other than "0", such as "1" or "2", the player 1201 is in a protect mode so that the play mode will not be stopped by an internal stop command, but stops only by an external stop command. Here, the internal stop command is a command transmitted along the bus from some other VCR; and the external stop command is a command given directly by hand to the VCR, such as by the depression of a STOP button (not shown), or by the power cut off. The up command can be considered as a continuation request to continue the play mode of the player, or a protect transmission request to protect the transmission of play until all the recording VCRs stop recording. Fig. 9 is a flow chart of the process executed by the control block 203 in the first play VCR 1201 during the play process whereby the VCR 1201: reproduces the A/V data; requests from the bus manager 1204 the bandwidth required for isochronous transmission; receives permission to transmit; and then actually transmits the isochronous packet. Note, also, that the play VCR 1201, serving as a transmitter node, first writes the assigned node identifier "0" to the node identifier 1101 of the data header 702 according to the isochronous packet format shown in Fig. 7 before commencing isochronous packet transmission. In the first step 1301, the node attempting to transmit determines whether an up command (a continuation request) has been received from any one of the other nodes. If an up command was received, the protect counter 1201a, which is a 6-bit counter set in memory, is incremented (step 1302); if an up command was not received, control skips to step 1303. Note that the protect counter 1201a is reset to "0" immediately before isochronous packet transmission begins. As a result, if an up command is received from each of the other two VCRs 1202 and 1203 after the first VCR 1201 begins isochronous packet transmission, the protect counter 1201a in the first VCR 1201 will have a value of "2." In step 1303, it is determined whether a down command (a stop enable flag) was received from one of the other nodes. If a down command was received, the protect counter 1201a is decremented (step 1304); if not received, control skips to the next step 1305. If, for example, an up command is received from the other two VCRs 1202 and 1203 and the protect counter 1201a in the transmitting VCR 1201 is "2," the protect counter will not be reset to "0" again until both the other two VCRs 1202 and 1203 produces a down command to the transmitting VCR 1201. Note, also, that the protect counter is not decremented in step 1304 even if a down command is received if the value of the protect counter is already "0." In step 1305, it is determined whether a bus reset has been generated; if it has, the protect counter is reset to "0" (step 1306), and control loops back to step 1301. If a bus reset has not been generated; control advances to step 1307. Isochronous packet transmission is temporarily interrupted when a bus reset occurs, but the transmitting VCR 1201 immediately resumes isochronous packet output after recovering from the bus reset operation. Bus resets may occur when a connector is connected or disconnected, or when the power supply to one of the bus devices is interrupted. As a result, any node that sent an up command before the bus reset occurred is disabled from sending the down command once a bus reset occurs. In this case, the transmitting VCR 1201 cannot recover from the protected state. It is therefore necessary to reset the protect counter whenever a bus reset occurs. In step 1307, it is determined whether an asynchronous packet transmission with an internal stop command has been received from any node, e.g., the bus manager node 1204. If it has, it is determined whether the protect counter 1201a is "0" (step 1308). If the protect counter is any value other than "0" at this time, transmission is protected, the internal stop command is therefore not accepted (step 1309), an internal stop command rejection notice is output to the node 1204 that has sent out the internal stop command, and control loops back to step 1301. If the protect counter value is "0", transmission is not protected, the internal stop command is accepted, isochronous packet transmission is stopped (step 1310), and processing terminates. If an asynchronous packet transmission with an internal stop command has not been received in step 1307, it is determined whether an external stop command has been received directly from an external source (step 1311) without communication via the bus. Examples of the external stop commands received directly from an external source include user operation of a STOP SENDING function button provided on the VCR 1201, and pressing a power supply switch turning the power off. When an external stop command is received in step 1311, the protect counter 1201a is immediately reset to 0 irrespective of the current counter value (step 1312), and isochronous packet transmission is stopped (step 1310). In other words, direct user operation of the device is given priority. In a transmitting apparatus comprising a digital output button controlling enabling and disabling the output of data to the bus, a direct external stop command may also be generated by the user operating the digital output button during isochronous packet transmission to disable data output. In a dedicated reproduction device wherein digital signal output stops when reproduction stops because there is no built-in television tuner, a direct external stop command may also be generated by pressing the stop button to stop reproduction and enter the stop mode. When a direct external stop command is not received in step 1311, control loops back to step 1301 and the entire process is repeated. Fig. 10 is a flow chart of the process executed by the control block 203 of the receiving VCRs 1202 and 1203 after recording the A/V data isochronous packet actually received from the transmitting VCR 1201 begins. It is assumed in the description of the present embodiment below that the bus manager node 1204 is accidentally set to the reproduction mode by a user operation during dubbing by the receiving VCRs 1202 and 1203 of the A/V data reproduced by the first VCR 1201. In this case, if the bus manager node 1204 cannot output the isochronous packet, it sends an internal stop command asking the transmitting VCR 1201 to stop outputting the isochronous packets. Even in such a condition as explained above, according to the first embodiment, the A/V data-recording VCRs 1202 and 1203 continues to correctly dubbing the received A/V data without transmission thereof from the first VCR 1201 being interrupted. In other words, in response to the receipt of the isochronous packet from the transmitting VCR 1201, the recording VCRs 1202 and 1203 send an up command to that VCR 1201 to increment the counter and eventually starting the interruption protect state. In addition, it should be noted that recording VCRs 1202 and 1203 execute the same process in this embodiment, and only the process executed by the one VCR 1202 is described below. Referring to Fig. 10, the node identifier "0" of the transmitter node 1201, which is written to the data header 702 of the received isochronous packet as described above, is read in step 1401, and an up command is sent to the node identified by that node identifier "0", i.e., to the transmitter node 1201. Control then advances to step 1402. In step 1402, it is determined whether a bus reset was generated; if it was, control loops back to step 1401 to re-request transmission protection. If a bus reset did not occur, it is determined whether isochronous packet receiving is normal (step 1403). For example, because the play VCR 1201 is set to the transmission stop state (step 1310), it may be determined whether isochronous packet receiving is interrupted. When isochronous packet receiving is normal, control advances to the next step 1404, but if receiving is not normal, the process terminates. In step 1404 it is determined whether a "stop recording" instruction was received; if it was not, control loops back to step 1402, and the loop is repeated to monitor any bus reset instructions until a "stop recording" instruction is received. When the "stop recording" instruction is received, the node identifier 1101 of the transmitter node 1201 written to the data header 702 of the received isochronous packet as described above is again read, and a down command is sent to the transmitter node identified by that node identifier 1101 in step 1405 to end the process. As described in the first embodiment above, the transmitter node 1201 writes and transmits the node identifier assigned to itself in the data header 702 of the transmitted isochronous packet, thereby enabling the nodes 1202 and 1203 receiving this isochronous packet to immediately identify the node 1201 that transmitted that packet. Furthermore, the transmitter node 1201 increments the protect counter at the point an up command is received from, for example, the receiver node 1202 or 1203; decrements the protect counter when a down command is received; and is in a protected state when this protect counter is any value other than "0." When the transmitter node 1201 is protected, it rejects any stop transmission requests received from another node, e.g., from the bus manager node 1204, and continues transmitting. As a result, even when the bus manager node 1204 is accidentally set to the reproduction mode by a user operation during dubbing by the receiving VCRs 1202 and 1203 of the A/V data reproduced by the first VCR 1201, dubbing continues normally without transmission of the isochronous packets from the first VCR 1201 to the A/V data-recording VCRs 1202 and 1203 being interrupted. In addition, by resetting the protect counter when a bus reset occurs, it is possible even when a bus reset occurs to prevent the transmitter node 1201 from not being able to recover from the protected state, a situation which could otherwise occur because any node that transmitted a continuation request before the bus reset occurred is disabled by the bus reset from issuing the stop enable flag. It is to be noted that the receiver node sending a up command to the transmitter node in the embodiment described above need not be the node recording the isochronous packets from the transmitter node. For example, a television monitor ("TV" below) and a laser disk player ("LD player" below) could be connected to the bus with the reproduction image from the LD player viewed on the TV. In this case the user could operate control button(s) on the TV, which in this application is the receiver node, to send an up command to the LD player, which in this application is the transmitter node, to maintain reproduction image transmission from the LD player to the TV and prevent reproduction images from some other device connected to the same bus from being accidentally displayed on the TV. Also in the above embodiment the transmitter node is set to a protected state when an up command is received thereby from a receiver node, but it is to be noted that this protected state can also be set by inputting a "continue transmission" instruction directly from an external device rather than through the bus system. For example, in the above TV and LD player example, a PROTECT function button could be provided on the LD player (transmitter node) for setting the LD player to the protected state by simply operating this PROTECT button. In addition, a counter provided in memory is used as the means for determining whether the transmitter node is in the protected or protection-cancelled state, but any other means of determining whether the transmitter node is in the protected or protection-cancelled state may be alternatively used. For example, it is alternatively possible to use a register having only as many bits as the number of connectable nodes. By the data transmission method of the present invention as described above, when transmitting A/V data requiring real-time processing by isochronous packets using a bus system whereby a node identifier is automatically assigned to each node connected to the bus whenever a bus reset occurs, it is also possible by adding the node identifier of the transmitter node to the isochronous packets before transmission for the receiver node to immediately determine which node transmitted the received isochronous packets; this can be accomplished by simply reading the transmitter node identifier included in the received isochronous packets. Furthermore, by identifying the transmitter node, the receiver node can as required send to the transmitter node an up command requesting sustained transmission of the isochronous packets; and send a down command requesting cancellation of the up command when it is no longer necessary to continue the transmission. The node transmitting said isochronous packets is thus set to a protected state when one or more up commands is received, and cancels the protected state when the number of down commands received by the transmitter node exceeds the number of received up commands. When the transmitter node is in the protected state, internal stop commands received from any node are rejected, and isochronous packet transmission does not stop (is continued). As a result, interruption of isochronous transmission due to accidental or mistaken operation by the user can be prevented. More specifically, it is possible to prevent isochronous packet transmission between any given nodes from being interrupted as a result of misoperation of any node not directly associated with that isochronous packet transmission operation. This is particularly effective during dubbing and other isochronous transmission operations during which communication may be sustained for a relatively long period of time. In addition, by automatically resetting any protected-state transmitter node to the protection-cancelled state whenever a bus reset occurs, it is possible even when a bus reset occurs to prevent the transmitter node from not being able to recover from the protected state, a situation which could otherwise occur because any node that transmitted an up command before the bus reset occurred is disabled by the bus reset from issuing the down command. The second embodiment of a data transmission method according to the present invention is described below. In conventional data transmission methods for isochronous transmission using the IEEE P1394 protocol, the transmitter node selects an unused channel number in the range from 0 - 63, inclusive, and adds the selected channel number to the packet header in the isochronous packet before transmission. The transmitter node must also simultaneously inform the user of the channel number used for transmission. Because there may be plural isochronous packets transmitted on different channels, the user must therefore inform the receiver node of the channel number of the isochronous packets to be received. Isochronous packet transmissions by the method of the prior art thus requires user intervention to match the channel number used by the transmitting and receiver nodes, significantly increasing the user burden. The object of the second embodiment of the present invention is to enable packet transmission using a Broadcast channel, i.e., a preselected channel with a predetermined channel number N (N is an integer between 0 and 63 inclusive), unless the transmitter node specifies the use of a different channel number. The Broadcast channel is also called a default channel. A block diagram of the control block 203 used in this embodiment is shown in Fig. 11. The command interpreter 1501 interprets operating commands received as a result of direct user control or asynchronous transmission from another node, and instructs the communications manager 1502 to begin and end isochronous and asynchronous transmission. The input to the communications manager 1502 includes instructions from the command interpreter 1501, and information input by asynchronous transmission from other nodes and required for communications management. Based on the input information, the communications manager 1502 instructs the interface block 201 and the A/V signal processing block 202 when to begin and end isochronous transmission; outputs the information required for communications management of the other nodes to the interface block 201 as asynchroncus data; and simultaneously instructs the interface block 201 to output that information by asynchronous transmission. The procedure whereby the transmitter node begins isochronous packet transmission by the data transmission method according to this second embodiment is described next. The user first instructs the A/V device that is the transmitter node to output the A/V data by the user operation. This instruction is input to the command interpreter 1501 of the control block 203; the information instructing output of the real-time data on the Broadcast channel is extracted by the command interpreter 1501 from the input instruction; and the extracted information is input to the communications manager 1502. The communications manager 1502 then executes control to begin outputting the real-time data using the Broadcast channel. Fig. 12 is a flow chart of the operation of the communications manager block in the transmitter node. The communications manager 1502 executes step 1601 when real-time data output using the Broadcast channel is instructed by the command interpreter 1501. At step 1601, the communications manager 1502 instructs the interface block 201 to obtain or reserve from the bus manager the Broadcast channel and the usable bandwidth thereof. Based on this instruction, the interface block 201 negotiates with the bus manager 1204 using asynchronous transmission to obtain an acceptance for the reservation of the necessary bandwidth and the Broadcast channel. The interface block 201 then notifies the communications manager 1502 in the control block 203 whether the Broadcast channel and the requested bandwidth were obtained. After executing step 1601, the communications manager 1502 advances to step 1602 to determine from the information input from the interface block 201 whether the Broadcast channel and the requested bandwidth were reserved. If the reservations were accepted by the bus manager 1204, control advances to step 1603; if not, control loops back before step 1601 and the communications manager 1502 re-attempts to reserve the Broadcast channel and the requested bandwidth. In step 1603, the communications manager 1502 instructs the A/V signal processing block 202 to output to the interface block 201 the A/V data and other real-time data. The A/V signal processing block 202 then outputs this real-time data to the interface block 201. The communications manager 1502 also instructs the interface block 201 to output the real-time data input from the A/V signal processing block 202 by isochronous packets using the Broadcast channel. The interface block 201 thus outputs the isochronous packets as instructed by the communications manager 1502. The procedure whereby the receiver node begins receiving isochronous packets by the data transmission method according to this third embodiment is described next. The user first instructs the A/V device that is the receiver node to receive the A/V data. This instruction is input to the command interpreter 1501 of the control block 203, the information instructing input of the real-time data on the Broadcast channel is extracted by the command interpreter 1501 from the input instruction, and the extracted information is input to the communications manager 1502. The communications manager 1502 then executes controls for receiving the real-time data using the Broadcast channel. Fig. 13 is a flow chart of the operation of the communications manager block in the receiver node. The communications manager 1502 executes step 1701 when real-time data receiving using the Broadcast channel is instructed by the command interpreter 1501. At step 1701, the communications manager 1502 instructs the interface block 201 to receive the isochronous packets on the Broadcast channel. Based on this instruction, the interface block 201 receives the isochronous packets to which the Broadcast channel has been assigned, and outputs the real-time data to the A/V signal processing block 202. Also in step 1701, the communications manager 1502 instructs the A/V signal processing block 202 to receive the real-time data from the interface block 201 and execute the appropriate signal processing. The A/V signal processing block 202 therefore receives the real-time data from the interface block 201 and executes signal processing as instructed by the communications manager 1502. It is therefore possible by the second embodiment of a data transmission method according to the present invention to accomplish isochronous transmission with the user simply instructing the transmitter node and receiver node(s) to output and input, respectively. It is therefore not necessary for the user to inform the receiver node of the channel number used, and a more user-friendly system reducing the burden on the user can be achieved.

Claims: A data transmission method for transmitting real-time data over a bus between at least one of a first node and a second node of a plurality of nodes, in which the real-time data is combined with a channel identifier, said data transmission method comprising the steps of: reserving (1601) by the first node a preselected channel from among a plurality of channels; setting (1601) by the first node a required bandwidth of the preselected channel; confirming (1602) by the first node that the preselected channel with the required bandwidth has been reserved; transmitting (1603) data from the first node using said preselected channel with the required bandwidth to establish a predetermined operation; generating (1401) an up command by the second node and transmitting the up command to said first node when the transmission of said data from said first node to the second node is necessary; counting up a number in response to said up command and storing said number at said first node; generating (1405) a down command by the second node and transmitting the down command to said first node when the transmission of said data from said first node to the second node is no longer necessary; counting down said number in response to said down command and storing said number at said first node; setting (1302) the first node to a protect state when said number is greater than zero to protect said predetermined operation from being interrupted; and releasing (1304) the protect state when said number is equal to zero. A data transmission method according to claim 1, wherein the step of reserving a preselected channel comprises reserving (1601) a broadcast channel, which is a prefixed channel. A data transmission system for transmitting real-time data over a bus between at least a first node and a second node, said real-time data being added with a channel identifier, said system comprising: means (203, 1601) for reserving by said first node, a preselected channel from among a plurality of channels; means (203, 1601) for setting by said first node, a required bandwidth for said preselected channel; means (203, 1602) for confirming by said first node that said preselected channel with said required bandwidth has been reserved; means (203, 1603) for transmitting data from said first node using said preselected channel with said required bandwidth to establish a predetermined operation; means (1202a, 1401) for generating an up command by said second node; and transmitting said up command to said first node when the transmission of said data from said first node to the second node is necessary; means (1202a, 1405) for generating a down command by said second node, and transmitting said down command to said first node when the transmission of said data from said first node to the second node is no longer necessary; a counter means (1201a, 1302, 1304) for counting up upon receipt of said up command and for counting down upon receipt of said down command; means (203, 1302) for setting said first node to a protect state when the counter means counts to a number greater than zero to protect said predetermined operation from being interrupted, and for releasing said protect state when the counter means counts down to zero.

Inventors: HAMAI SHINJI, IITSUKA HIROYUKI, KAWAKAMI YASUNORI, NISHIMURA TAKUYA, SAHARA YASUYUKI, HAMAI, SHINJI, IITSUKA, HIROYUKI, KAWAKAMI, YASUNORI, NISHIMURA, TAKUYA, SAHARA, YASUYUKI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1995
Main classification: H04L12
IPC codes: H04L12, H04M7, H04L29, H04M3, H04N7